diff --git a/VERSION b/VERSION index 4d582a70b..57875a7e7 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.2047 \ No newline at end of file +1.36.2048 \ No newline at end of file diff --git a/sophonsoar/CMakeLists.txt b/sophonsoar/CMakeLists.txt new file mode 100644 index 000000000..dc776eebd --- /dev/null +++ b/sophonsoar/CMakeLists.txt @@ -0,0 +1,278 @@ +# +# 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(sophonsoar_public_header + include/alibabacloud/sophonsoar/SophonsoarClient.h + include/alibabacloud/sophonsoar/SophonsoarExport.h ) + +set(sophonsoar_public_header_model + include/alibabacloud/sophonsoar/model/BatchModifyInstanceStatusRequest.h + include/alibabacloud/sophonsoar/model/BatchModifyInstanceStatusResult.h + include/alibabacloud/sophonsoar/model/ComparePlaybooksRequest.h + include/alibabacloud/sophonsoar/model/ComparePlaybooksResult.h + include/alibabacloud/sophonsoar/model/ConvertPlaybookRequest.h + include/alibabacloud/sophonsoar/model/ConvertPlaybookResult.h + include/alibabacloud/sophonsoar/model/CreatePlaybookRequest.h + include/alibabacloud/sophonsoar/model/CreatePlaybookResult.h + include/alibabacloud/sophonsoar/model/DebugPlaybookRequest.h + include/alibabacloud/sophonsoar/model/DebugPlaybookResult.h + include/alibabacloud/sophonsoar/model/DeleteComponentAssetRequest.h + include/alibabacloud/sophonsoar/model/DeleteComponentAssetResult.h + include/alibabacloud/sophonsoar/model/DeletePlaybookRequest.h + include/alibabacloud/sophonsoar/model/DeletePlaybookResult.h + include/alibabacloud/sophonsoar/model/DescribeComponentAssetFormRequest.h + include/alibabacloud/sophonsoar/model/DescribeComponentAssetFormResult.h + include/alibabacloud/sophonsoar/model/DescribeComponentAssetsRequest.h + include/alibabacloud/sophonsoar/model/DescribeComponentAssetsResult.h + include/alibabacloud/sophonsoar/model/DescribeComponentListRequest.h + include/alibabacloud/sophonsoar/model/DescribeComponentListResult.h + include/alibabacloud/sophonsoar/model/DescribeComponentPlaybookRequest.h + include/alibabacloud/sophonsoar/model/DescribeComponentPlaybookResult.h + include/alibabacloud/sophonsoar/model/DescribeComponentsJsRequest.h + include/alibabacloud/sophonsoar/model/DescribeComponentsJsResult.h + include/alibabacloud/sophonsoar/model/DescribeDistinctReleasesRequest.h + include/alibabacloud/sophonsoar/model/DescribeDistinctReleasesResult.h + include/alibabacloud/sophonsoar/model/DescribeEnumItemsRequest.h + include/alibabacloud/sophonsoar/model/DescribeEnumItemsResult.h + include/alibabacloud/sophonsoar/model/DescribeExecutePlaybooksRequest.h + include/alibabacloud/sophonsoar/model/DescribeExecutePlaybooksResult.h + include/alibabacloud/sophonsoar/model/DescribeFieldRequest.h + include/alibabacloud/sophonsoar/model/DescribeFieldResult.h + include/alibabacloud/sophonsoar/model/DescribeLatestRecordSchemaRequest.h + include/alibabacloud/sophonsoar/model/DescribeLatestRecordSchemaResult.h + include/alibabacloud/sophonsoar/model/DescribeNodeParamTagsRequest.h + include/alibabacloud/sophonsoar/model/DescribeNodeParamTagsResult.h + include/alibabacloud/sophonsoar/model/DescribeNodeUsedInfosRequest.h + include/alibabacloud/sophonsoar/model/DescribeNodeUsedInfosResult.h + include/alibabacloud/sophonsoar/model/DescribePlaybookRequest.h + include/alibabacloud/sophonsoar/model/DescribePlaybookResult.h + include/alibabacloud/sophonsoar/model/DescribePlaybookInputOutputRequest.h + include/alibabacloud/sophonsoar/model/DescribePlaybookInputOutputResult.h + include/alibabacloud/sophonsoar/model/DescribePlaybookMetricsRequest.h + include/alibabacloud/sophonsoar/model/DescribePlaybookMetricsResult.h + include/alibabacloud/sophonsoar/model/DescribePlaybookNodesOutputRequest.h + include/alibabacloud/sophonsoar/model/DescribePlaybookNodesOutputResult.h + include/alibabacloud/sophonsoar/model/DescribePlaybookNumberMetricsRequest.h + include/alibabacloud/sophonsoar/model/DescribePlaybookNumberMetricsResult.h + include/alibabacloud/sophonsoar/model/DescribePlaybookReleasesRequest.h + include/alibabacloud/sophonsoar/model/DescribePlaybookReleasesResult.h + include/alibabacloud/sophonsoar/model/DescribePlaybooksRequest.h + include/alibabacloud/sophonsoar/model/DescribePlaybooksResult.h + include/alibabacloud/sophonsoar/model/DescribePopApiRequest.h + include/alibabacloud/sophonsoar/model/DescribePopApiResult.h + include/alibabacloud/sophonsoar/model/DescribeProcessTaskCountRequest.h + include/alibabacloud/sophonsoar/model/DescribeProcessTaskCountResult.h + include/alibabacloud/sophonsoar/model/DescribeProcessTasksRequest.h + include/alibabacloud/sophonsoar/model/DescribeProcessTasksResult.h + include/alibabacloud/sophonsoar/model/DescribeSoarRecordActionOutputListRequest.h + include/alibabacloud/sophonsoar/model/DescribeSoarRecordActionOutputListResult.h + include/alibabacloud/sophonsoar/model/DescribeSoarRecordInOutputRequest.h + include/alibabacloud/sophonsoar/model/DescribeSoarRecordInOutputResult.h + include/alibabacloud/sophonsoar/model/DescribeSoarRecordsRequest.h + include/alibabacloud/sophonsoar/model/DescribeSoarRecordsResult.h + include/alibabacloud/sophonsoar/model/DescribeSoarTaskAndActionsRequest.h + include/alibabacloud/sophonsoar/model/DescribeSoarTaskAndActionsResult.h + include/alibabacloud/sophonsoar/model/DescribeSophonCommandsRequest.h + include/alibabacloud/sophonsoar/model/DescribeSophonCommandsResult.h + include/alibabacloud/sophonsoar/model/DescriberPython3ScriptLogsRequest.h + include/alibabacloud/sophonsoar/model/DescriberPython3ScriptLogsResult.h + include/alibabacloud/sophonsoar/model/ModifyComponentAssetRequest.h + include/alibabacloud/sophonsoar/model/ModifyComponentAssetResult.h + include/alibabacloud/sophonsoar/model/ModifyPlaybookRequest.h + include/alibabacloud/sophonsoar/model/ModifyPlaybookResult.h + include/alibabacloud/sophonsoar/model/ModifyPlaybookInputOutputRequest.h + include/alibabacloud/sophonsoar/model/ModifyPlaybookInputOutputResult.h + include/alibabacloud/sophonsoar/model/ModifyPlaybookInstanceStatusRequest.h + include/alibabacloud/sophonsoar/model/ModifyPlaybookInstanceStatusResult.h + include/alibabacloud/sophonsoar/model/PublishPlaybookRequest.h + include/alibabacloud/sophonsoar/model/PublishPlaybookResult.h + include/alibabacloud/sophonsoar/model/QueryTreeDataRequest.h + include/alibabacloud/sophonsoar/model/QueryTreeDataResult.h + include/alibabacloud/sophonsoar/model/RenamePlaybookNodeRequest.h + include/alibabacloud/sophonsoar/model/RenamePlaybookNodeResult.h + include/alibabacloud/sophonsoar/model/RevertPlaybookReleaseRequest.h + include/alibabacloud/sophonsoar/model/RevertPlaybookReleaseResult.h + include/alibabacloud/sophonsoar/model/RunPython3ScriptRequest.h + include/alibabacloud/sophonsoar/model/RunPython3ScriptResult.h + include/alibabacloud/sophonsoar/model/TriggerPlaybookRequest.h + include/alibabacloud/sophonsoar/model/TriggerPlaybookResult.h + include/alibabacloud/sophonsoar/model/TriggerProcessTaskRequest.h + include/alibabacloud/sophonsoar/model/TriggerProcessTaskResult.h + include/alibabacloud/sophonsoar/model/TriggerSophonPlaybookRequest.h + include/alibabacloud/sophonsoar/model/TriggerSophonPlaybookResult.h + include/alibabacloud/sophonsoar/model/VerifyPlaybookRequest.h + include/alibabacloud/sophonsoar/model/VerifyPlaybookResult.h + include/alibabacloud/sophonsoar/model/VerifyPythonFileRequest.h + include/alibabacloud/sophonsoar/model/VerifyPythonFileResult.h ) + +set(sophonsoar_src + src/SophonsoarClient.cc + src/model/BatchModifyInstanceStatusRequest.cc + src/model/BatchModifyInstanceStatusResult.cc + src/model/ComparePlaybooksRequest.cc + src/model/ComparePlaybooksResult.cc + src/model/ConvertPlaybookRequest.cc + src/model/ConvertPlaybookResult.cc + src/model/CreatePlaybookRequest.cc + src/model/CreatePlaybookResult.cc + src/model/DebugPlaybookRequest.cc + src/model/DebugPlaybookResult.cc + src/model/DeleteComponentAssetRequest.cc + src/model/DeleteComponentAssetResult.cc + src/model/DeletePlaybookRequest.cc + src/model/DeletePlaybookResult.cc + src/model/DescribeComponentAssetFormRequest.cc + src/model/DescribeComponentAssetFormResult.cc + src/model/DescribeComponentAssetsRequest.cc + src/model/DescribeComponentAssetsResult.cc + src/model/DescribeComponentListRequest.cc + src/model/DescribeComponentListResult.cc + src/model/DescribeComponentPlaybookRequest.cc + src/model/DescribeComponentPlaybookResult.cc + src/model/DescribeComponentsJsRequest.cc + src/model/DescribeComponentsJsResult.cc + src/model/DescribeDistinctReleasesRequest.cc + src/model/DescribeDistinctReleasesResult.cc + src/model/DescribeEnumItemsRequest.cc + src/model/DescribeEnumItemsResult.cc + src/model/DescribeExecutePlaybooksRequest.cc + src/model/DescribeExecutePlaybooksResult.cc + src/model/DescribeFieldRequest.cc + src/model/DescribeFieldResult.cc + src/model/DescribeLatestRecordSchemaRequest.cc + src/model/DescribeLatestRecordSchemaResult.cc + src/model/DescribeNodeParamTagsRequest.cc + src/model/DescribeNodeParamTagsResult.cc + src/model/DescribeNodeUsedInfosRequest.cc + src/model/DescribeNodeUsedInfosResult.cc + src/model/DescribePlaybookRequest.cc + src/model/DescribePlaybookResult.cc + src/model/DescribePlaybookInputOutputRequest.cc + src/model/DescribePlaybookInputOutputResult.cc + src/model/DescribePlaybookMetricsRequest.cc + src/model/DescribePlaybookMetricsResult.cc + src/model/DescribePlaybookNodesOutputRequest.cc + src/model/DescribePlaybookNodesOutputResult.cc + src/model/DescribePlaybookNumberMetricsRequest.cc + src/model/DescribePlaybookNumberMetricsResult.cc + src/model/DescribePlaybookReleasesRequest.cc + src/model/DescribePlaybookReleasesResult.cc + src/model/DescribePlaybooksRequest.cc + src/model/DescribePlaybooksResult.cc + src/model/DescribePopApiRequest.cc + src/model/DescribePopApiResult.cc + src/model/DescribeProcessTaskCountRequest.cc + src/model/DescribeProcessTaskCountResult.cc + src/model/DescribeProcessTasksRequest.cc + src/model/DescribeProcessTasksResult.cc + src/model/DescribeSoarRecordActionOutputListRequest.cc + src/model/DescribeSoarRecordActionOutputListResult.cc + src/model/DescribeSoarRecordInOutputRequest.cc + src/model/DescribeSoarRecordInOutputResult.cc + src/model/DescribeSoarRecordsRequest.cc + src/model/DescribeSoarRecordsResult.cc + src/model/DescribeSoarTaskAndActionsRequest.cc + src/model/DescribeSoarTaskAndActionsResult.cc + src/model/DescribeSophonCommandsRequest.cc + src/model/DescribeSophonCommandsResult.cc + src/model/DescriberPython3ScriptLogsRequest.cc + src/model/DescriberPython3ScriptLogsResult.cc + src/model/ModifyComponentAssetRequest.cc + src/model/ModifyComponentAssetResult.cc + src/model/ModifyPlaybookRequest.cc + src/model/ModifyPlaybookResult.cc + src/model/ModifyPlaybookInputOutputRequest.cc + src/model/ModifyPlaybookInputOutputResult.cc + src/model/ModifyPlaybookInstanceStatusRequest.cc + src/model/ModifyPlaybookInstanceStatusResult.cc + src/model/PublishPlaybookRequest.cc + src/model/PublishPlaybookResult.cc + src/model/QueryTreeDataRequest.cc + src/model/QueryTreeDataResult.cc + src/model/RenamePlaybookNodeRequest.cc + src/model/RenamePlaybookNodeResult.cc + src/model/RevertPlaybookReleaseRequest.cc + src/model/RevertPlaybookReleaseResult.cc + src/model/RunPython3ScriptRequest.cc + src/model/RunPython3ScriptResult.cc + src/model/TriggerPlaybookRequest.cc + src/model/TriggerPlaybookResult.cc + src/model/TriggerProcessTaskRequest.cc + src/model/TriggerProcessTaskResult.cc + src/model/TriggerSophonPlaybookRequest.cc + src/model/TriggerSophonPlaybookResult.cc + src/model/VerifyPlaybookRequest.cc + src/model/VerifyPlaybookResult.cc + src/model/VerifyPythonFileRequest.cc + src/model/VerifyPythonFileResult.cc ) + +add_library(sophonsoar ${LIB_TYPE} + ${sophonsoar_public_header} + ${sophonsoar_public_header_model} + ${sophonsoar_src}) + +set_target_properties(sophonsoar + 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}sophonsoar + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(sophonsoar + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_SOPHONSOAR_LIBRARY) +endif() + +target_include_directories(sophonsoar + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(sophonsoar + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(sophonsoar + jsoncpp) + target_include_directories(sophonsoar + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(sophonsoar + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(sophonsoar + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(sophonsoar + PRIVATE /usr/include/jsoncpp) + target_link_libraries(sophonsoar + jsoncpp) +endif() + +install(FILES ${sophonsoar_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/sophonsoar) +install(FILES ${sophonsoar_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/sophonsoar/model) +install(TARGETS sophonsoar + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/SophonsoarClient.h b/sophonsoar/include/alibabacloud/sophonsoar/SophonsoarClient.h new file mode 100644 index 000000000..2568bb57f --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/SophonsoarClient.h @@ -0,0 +1,438 @@ +/* + * 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_SOPHONSOAR_SOPHONSOARCLIENT_H_ +#define ALIBABACLOUD_SOPHONSOAR_SOPHONSOARCLIENT_H_ + +#include +#include +#include +#include +#include "SophonsoarExport.h" +#include "model/BatchModifyInstanceStatusRequest.h" +#include "model/BatchModifyInstanceStatusResult.h" +#include "model/ComparePlaybooksRequest.h" +#include "model/ComparePlaybooksResult.h" +#include "model/ConvertPlaybookRequest.h" +#include "model/ConvertPlaybookResult.h" +#include "model/CreatePlaybookRequest.h" +#include "model/CreatePlaybookResult.h" +#include "model/DebugPlaybookRequest.h" +#include "model/DebugPlaybookResult.h" +#include "model/DeleteComponentAssetRequest.h" +#include "model/DeleteComponentAssetResult.h" +#include "model/DeletePlaybookRequest.h" +#include "model/DeletePlaybookResult.h" +#include "model/DescribeComponentAssetFormRequest.h" +#include "model/DescribeComponentAssetFormResult.h" +#include "model/DescribeComponentAssetsRequest.h" +#include "model/DescribeComponentAssetsResult.h" +#include "model/DescribeComponentListRequest.h" +#include "model/DescribeComponentListResult.h" +#include "model/DescribeComponentPlaybookRequest.h" +#include "model/DescribeComponentPlaybookResult.h" +#include "model/DescribeComponentsJsRequest.h" +#include "model/DescribeComponentsJsResult.h" +#include "model/DescribeDistinctReleasesRequest.h" +#include "model/DescribeDistinctReleasesResult.h" +#include "model/DescribeEnumItemsRequest.h" +#include "model/DescribeEnumItemsResult.h" +#include "model/DescribeExecutePlaybooksRequest.h" +#include "model/DescribeExecutePlaybooksResult.h" +#include "model/DescribeFieldRequest.h" +#include "model/DescribeFieldResult.h" +#include "model/DescribeLatestRecordSchemaRequest.h" +#include "model/DescribeLatestRecordSchemaResult.h" +#include "model/DescribeNodeParamTagsRequest.h" +#include "model/DescribeNodeParamTagsResult.h" +#include "model/DescribeNodeUsedInfosRequest.h" +#include "model/DescribeNodeUsedInfosResult.h" +#include "model/DescribePlaybookRequest.h" +#include "model/DescribePlaybookResult.h" +#include "model/DescribePlaybookInputOutputRequest.h" +#include "model/DescribePlaybookInputOutputResult.h" +#include "model/DescribePlaybookMetricsRequest.h" +#include "model/DescribePlaybookMetricsResult.h" +#include "model/DescribePlaybookNodesOutputRequest.h" +#include "model/DescribePlaybookNodesOutputResult.h" +#include "model/DescribePlaybookNumberMetricsRequest.h" +#include "model/DescribePlaybookNumberMetricsResult.h" +#include "model/DescribePlaybookReleasesRequest.h" +#include "model/DescribePlaybookReleasesResult.h" +#include "model/DescribePlaybooksRequest.h" +#include "model/DescribePlaybooksResult.h" +#include "model/DescribePopApiRequest.h" +#include "model/DescribePopApiResult.h" +#include "model/DescribeProcessTaskCountRequest.h" +#include "model/DescribeProcessTaskCountResult.h" +#include "model/DescribeProcessTasksRequest.h" +#include "model/DescribeProcessTasksResult.h" +#include "model/DescribeSoarRecordActionOutputListRequest.h" +#include "model/DescribeSoarRecordActionOutputListResult.h" +#include "model/DescribeSoarRecordInOutputRequest.h" +#include "model/DescribeSoarRecordInOutputResult.h" +#include "model/DescribeSoarRecordsRequest.h" +#include "model/DescribeSoarRecordsResult.h" +#include "model/DescribeSoarTaskAndActionsRequest.h" +#include "model/DescribeSoarTaskAndActionsResult.h" +#include "model/DescribeSophonCommandsRequest.h" +#include "model/DescribeSophonCommandsResult.h" +#include "model/DescriberPython3ScriptLogsRequest.h" +#include "model/DescriberPython3ScriptLogsResult.h" +#include "model/ModifyComponentAssetRequest.h" +#include "model/ModifyComponentAssetResult.h" +#include "model/ModifyPlaybookRequest.h" +#include "model/ModifyPlaybookResult.h" +#include "model/ModifyPlaybookInputOutputRequest.h" +#include "model/ModifyPlaybookInputOutputResult.h" +#include "model/ModifyPlaybookInstanceStatusRequest.h" +#include "model/ModifyPlaybookInstanceStatusResult.h" +#include "model/PublishPlaybookRequest.h" +#include "model/PublishPlaybookResult.h" +#include "model/QueryTreeDataRequest.h" +#include "model/QueryTreeDataResult.h" +#include "model/RenamePlaybookNodeRequest.h" +#include "model/RenamePlaybookNodeResult.h" +#include "model/RevertPlaybookReleaseRequest.h" +#include "model/RevertPlaybookReleaseResult.h" +#include "model/RunPython3ScriptRequest.h" +#include "model/RunPython3ScriptResult.h" +#include "model/TriggerPlaybookRequest.h" +#include "model/TriggerPlaybookResult.h" +#include "model/TriggerProcessTaskRequest.h" +#include "model/TriggerProcessTaskResult.h" +#include "model/TriggerSophonPlaybookRequest.h" +#include "model/TriggerSophonPlaybookResult.h" +#include "model/VerifyPlaybookRequest.h" +#include "model/VerifyPlaybookResult.h" +#include "model/VerifyPythonFileRequest.h" +#include "model/VerifyPythonFileResult.h" + + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT SophonsoarClient : public RpcServiceClient + { + public: + typedef Outcome BatchModifyInstanceStatusOutcome; + typedef std::future BatchModifyInstanceStatusOutcomeCallable; + typedef std::function&)> BatchModifyInstanceStatusAsyncHandler; + typedef Outcome ComparePlaybooksOutcome; + typedef std::future ComparePlaybooksOutcomeCallable; + typedef std::function&)> ComparePlaybooksAsyncHandler; + typedef Outcome ConvertPlaybookOutcome; + typedef std::future ConvertPlaybookOutcomeCallable; + typedef std::function&)> ConvertPlaybookAsyncHandler; + typedef Outcome CreatePlaybookOutcome; + typedef std::future CreatePlaybookOutcomeCallable; + typedef std::function&)> CreatePlaybookAsyncHandler; + typedef Outcome DebugPlaybookOutcome; + typedef std::future DebugPlaybookOutcomeCallable; + typedef std::function&)> DebugPlaybookAsyncHandler; + typedef Outcome DeleteComponentAssetOutcome; + typedef std::future DeleteComponentAssetOutcomeCallable; + typedef std::function&)> DeleteComponentAssetAsyncHandler; + typedef Outcome DeletePlaybookOutcome; + typedef std::future DeletePlaybookOutcomeCallable; + typedef std::function&)> DeletePlaybookAsyncHandler; + typedef Outcome DescribeComponentAssetFormOutcome; + typedef std::future DescribeComponentAssetFormOutcomeCallable; + typedef std::function&)> DescribeComponentAssetFormAsyncHandler; + typedef Outcome DescribeComponentAssetsOutcome; + typedef std::future DescribeComponentAssetsOutcomeCallable; + typedef std::function&)> DescribeComponentAssetsAsyncHandler; + typedef Outcome DescribeComponentListOutcome; + typedef std::future DescribeComponentListOutcomeCallable; + typedef std::function&)> DescribeComponentListAsyncHandler; + typedef Outcome DescribeComponentPlaybookOutcome; + typedef std::future DescribeComponentPlaybookOutcomeCallable; + typedef std::function&)> DescribeComponentPlaybookAsyncHandler; + typedef Outcome DescribeComponentsJsOutcome; + typedef std::future DescribeComponentsJsOutcomeCallable; + typedef std::function&)> DescribeComponentsJsAsyncHandler; + typedef Outcome DescribeDistinctReleasesOutcome; + typedef std::future DescribeDistinctReleasesOutcomeCallable; + typedef std::function&)> DescribeDistinctReleasesAsyncHandler; + typedef Outcome DescribeEnumItemsOutcome; + typedef std::future DescribeEnumItemsOutcomeCallable; + typedef std::function&)> DescribeEnumItemsAsyncHandler; + typedef Outcome DescribeExecutePlaybooksOutcome; + typedef std::future DescribeExecutePlaybooksOutcomeCallable; + typedef std::function&)> DescribeExecutePlaybooksAsyncHandler; + typedef Outcome DescribeFieldOutcome; + typedef std::future DescribeFieldOutcomeCallable; + typedef std::function&)> DescribeFieldAsyncHandler; + typedef Outcome DescribeLatestRecordSchemaOutcome; + typedef std::future DescribeLatestRecordSchemaOutcomeCallable; + typedef std::function&)> DescribeLatestRecordSchemaAsyncHandler; + typedef Outcome DescribeNodeParamTagsOutcome; + typedef std::future DescribeNodeParamTagsOutcomeCallable; + typedef std::function&)> DescribeNodeParamTagsAsyncHandler; + typedef Outcome DescribeNodeUsedInfosOutcome; + typedef std::future DescribeNodeUsedInfosOutcomeCallable; + typedef std::function&)> DescribeNodeUsedInfosAsyncHandler; + typedef Outcome DescribePlaybookOutcome; + typedef std::future DescribePlaybookOutcomeCallable; + typedef std::function&)> DescribePlaybookAsyncHandler; + typedef Outcome DescribePlaybookInputOutputOutcome; + typedef std::future DescribePlaybookInputOutputOutcomeCallable; + typedef std::function&)> DescribePlaybookInputOutputAsyncHandler; + typedef Outcome DescribePlaybookMetricsOutcome; + typedef std::future DescribePlaybookMetricsOutcomeCallable; + typedef std::function&)> DescribePlaybookMetricsAsyncHandler; + typedef Outcome DescribePlaybookNodesOutputOutcome; + typedef std::future DescribePlaybookNodesOutputOutcomeCallable; + typedef std::function&)> DescribePlaybookNodesOutputAsyncHandler; + typedef Outcome DescribePlaybookNumberMetricsOutcome; + typedef std::future DescribePlaybookNumberMetricsOutcomeCallable; + typedef std::function&)> DescribePlaybookNumberMetricsAsyncHandler; + typedef Outcome DescribePlaybookReleasesOutcome; + typedef std::future DescribePlaybookReleasesOutcomeCallable; + typedef std::function&)> DescribePlaybookReleasesAsyncHandler; + typedef Outcome DescribePlaybooksOutcome; + typedef std::future DescribePlaybooksOutcomeCallable; + typedef std::function&)> DescribePlaybooksAsyncHandler; + typedef Outcome DescribePopApiOutcome; + typedef std::future DescribePopApiOutcomeCallable; + typedef std::function&)> DescribePopApiAsyncHandler; + typedef Outcome DescribeProcessTaskCountOutcome; + typedef std::future DescribeProcessTaskCountOutcomeCallable; + typedef std::function&)> DescribeProcessTaskCountAsyncHandler; + typedef Outcome DescribeProcessTasksOutcome; + typedef std::future DescribeProcessTasksOutcomeCallable; + typedef std::function&)> DescribeProcessTasksAsyncHandler; + typedef Outcome DescribeSoarRecordActionOutputListOutcome; + typedef std::future DescribeSoarRecordActionOutputListOutcomeCallable; + typedef std::function&)> DescribeSoarRecordActionOutputListAsyncHandler; + typedef Outcome DescribeSoarRecordInOutputOutcome; + typedef std::future DescribeSoarRecordInOutputOutcomeCallable; + typedef std::function&)> DescribeSoarRecordInOutputAsyncHandler; + typedef Outcome DescribeSoarRecordsOutcome; + typedef std::future DescribeSoarRecordsOutcomeCallable; + typedef std::function&)> DescribeSoarRecordsAsyncHandler; + typedef Outcome DescribeSoarTaskAndActionsOutcome; + typedef std::future DescribeSoarTaskAndActionsOutcomeCallable; + typedef std::function&)> DescribeSoarTaskAndActionsAsyncHandler; + typedef Outcome DescribeSophonCommandsOutcome; + typedef std::future DescribeSophonCommandsOutcomeCallable; + typedef std::function&)> DescribeSophonCommandsAsyncHandler; + typedef Outcome DescriberPython3ScriptLogsOutcome; + typedef std::future DescriberPython3ScriptLogsOutcomeCallable; + typedef std::function&)> DescriberPython3ScriptLogsAsyncHandler; + typedef Outcome ModifyComponentAssetOutcome; + typedef std::future ModifyComponentAssetOutcomeCallable; + typedef std::function&)> ModifyComponentAssetAsyncHandler; + typedef Outcome ModifyPlaybookOutcome; + typedef std::future ModifyPlaybookOutcomeCallable; + typedef std::function&)> ModifyPlaybookAsyncHandler; + typedef Outcome ModifyPlaybookInputOutputOutcome; + typedef std::future ModifyPlaybookInputOutputOutcomeCallable; + typedef std::function&)> ModifyPlaybookInputOutputAsyncHandler; + typedef Outcome ModifyPlaybookInstanceStatusOutcome; + typedef std::future ModifyPlaybookInstanceStatusOutcomeCallable; + typedef std::function&)> ModifyPlaybookInstanceStatusAsyncHandler; + typedef Outcome PublishPlaybookOutcome; + typedef std::future PublishPlaybookOutcomeCallable; + typedef std::function&)> PublishPlaybookAsyncHandler; + typedef Outcome QueryTreeDataOutcome; + typedef std::future QueryTreeDataOutcomeCallable; + typedef std::function&)> QueryTreeDataAsyncHandler; + typedef Outcome RenamePlaybookNodeOutcome; + typedef std::future RenamePlaybookNodeOutcomeCallable; + typedef std::function&)> RenamePlaybookNodeAsyncHandler; + typedef Outcome RevertPlaybookReleaseOutcome; + typedef std::future RevertPlaybookReleaseOutcomeCallable; + typedef std::function&)> RevertPlaybookReleaseAsyncHandler; + typedef Outcome RunPython3ScriptOutcome; + typedef std::future RunPython3ScriptOutcomeCallable; + typedef std::function&)> RunPython3ScriptAsyncHandler; + typedef Outcome TriggerPlaybookOutcome; + typedef std::future TriggerPlaybookOutcomeCallable; + typedef std::function&)> TriggerPlaybookAsyncHandler; + typedef Outcome TriggerProcessTaskOutcome; + typedef std::future TriggerProcessTaskOutcomeCallable; + typedef std::function&)> TriggerProcessTaskAsyncHandler; + typedef Outcome TriggerSophonPlaybookOutcome; + typedef std::future TriggerSophonPlaybookOutcomeCallable; + typedef std::function&)> TriggerSophonPlaybookAsyncHandler; + typedef Outcome VerifyPlaybookOutcome; + typedef std::future VerifyPlaybookOutcomeCallable; + typedef std::function&)> VerifyPlaybookAsyncHandler; + typedef Outcome VerifyPythonFileOutcome; + typedef std::future VerifyPythonFileOutcomeCallable; + typedef std::function&)> VerifyPythonFileAsyncHandler; + + SophonsoarClient(const Credentials &credentials, const ClientConfiguration &configuration); + SophonsoarClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + SophonsoarClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~SophonsoarClient(); + BatchModifyInstanceStatusOutcome batchModifyInstanceStatus(const Model::BatchModifyInstanceStatusRequest &request)const; + void batchModifyInstanceStatusAsync(const Model::BatchModifyInstanceStatusRequest& request, const BatchModifyInstanceStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BatchModifyInstanceStatusOutcomeCallable batchModifyInstanceStatusCallable(const Model::BatchModifyInstanceStatusRequest& request) const; + ComparePlaybooksOutcome comparePlaybooks(const Model::ComparePlaybooksRequest &request)const; + void comparePlaybooksAsync(const Model::ComparePlaybooksRequest& request, const ComparePlaybooksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ComparePlaybooksOutcomeCallable comparePlaybooksCallable(const Model::ComparePlaybooksRequest& request) const; + ConvertPlaybookOutcome convertPlaybook(const Model::ConvertPlaybookRequest &request)const; + void convertPlaybookAsync(const Model::ConvertPlaybookRequest& request, const ConvertPlaybookAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ConvertPlaybookOutcomeCallable convertPlaybookCallable(const Model::ConvertPlaybookRequest& request) const; + CreatePlaybookOutcome createPlaybook(const Model::CreatePlaybookRequest &request)const; + void createPlaybookAsync(const Model::CreatePlaybookRequest& request, const CreatePlaybookAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreatePlaybookOutcomeCallable createPlaybookCallable(const Model::CreatePlaybookRequest& request) const; + DebugPlaybookOutcome debugPlaybook(const Model::DebugPlaybookRequest &request)const; + void debugPlaybookAsync(const Model::DebugPlaybookRequest& request, const DebugPlaybookAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DebugPlaybookOutcomeCallable debugPlaybookCallable(const Model::DebugPlaybookRequest& request) const; + DeleteComponentAssetOutcome deleteComponentAsset(const Model::DeleteComponentAssetRequest &request)const; + void deleteComponentAssetAsync(const Model::DeleteComponentAssetRequest& request, const DeleteComponentAssetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteComponentAssetOutcomeCallable deleteComponentAssetCallable(const Model::DeleteComponentAssetRequest& request) const; + DeletePlaybookOutcome deletePlaybook(const Model::DeletePlaybookRequest &request)const; + void deletePlaybookAsync(const Model::DeletePlaybookRequest& request, const DeletePlaybookAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeletePlaybookOutcomeCallable deletePlaybookCallable(const Model::DeletePlaybookRequest& request) const; + DescribeComponentAssetFormOutcome describeComponentAssetForm(const Model::DescribeComponentAssetFormRequest &request)const; + void describeComponentAssetFormAsync(const Model::DescribeComponentAssetFormRequest& request, const DescribeComponentAssetFormAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeComponentAssetFormOutcomeCallable describeComponentAssetFormCallable(const Model::DescribeComponentAssetFormRequest& request) const; + DescribeComponentAssetsOutcome describeComponentAssets(const Model::DescribeComponentAssetsRequest &request)const; + void describeComponentAssetsAsync(const Model::DescribeComponentAssetsRequest& request, const DescribeComponentAssetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeComponentAssetsOutcomeCallable describeComponentAssetsCallable(const Model::DescribeComponentAssetsRequest& request) const; + DescribeComponentListOutcome describeComponentList(const Model::DescribeComponentListRequest &request)const; + void describeComponentListAsync(const Model::DescribeComponentListRequest& request, const DescribeComponentListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeComponentListOutcomeCallable describeComponentListCallable(const Model::DescribeComponentListRequest& request) const; + DescribeComponentPlaybookOutcome describeComponentPlaybook(const Model::DescribeComponentPlaybookRequest &request)const; + void describeComponentPlaybookAsync(const Model::DescribeComponentPlaybookRequest& request, const DescribeComponentPlaybookAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeComponentPlaybookOutcomeCallable describeComponentPlaybookCallable(const Model::DescribeComponentPlaybookRequest& request) const; + DescribeComponentsJsOutcome describeComponentsJs(const Model::DescribeComponentsJsRequest &request)const; + void describeComponentsJsAsync(const Model::DescribeComponentsJsRequest& request, const DescribeComponentsJsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeComponentsJsOutcomeCallable describeComponentsJsCallable(const Model::DescribeComponentsJsRequest& request) const; + DescribeDistinctReleasesOutcome describeDistinctReleases(const Model::DescribeDistinctReleasesRequest &request)const; + void describeDistinctReleasesAsync(const Model::DescribeDistinctReleasesRequest& request, const DescribeDistinctReleasesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDistinctReleasesOutcomeCallable describeDistinctReleasesCallable(const Model::DescribeDistinctReleasesRequest& request) const; + DescribeEnumItemsOutcome describeEnumItems(const Model::DescribeEnumItemsRequest &request)const; + void describeEnumItemsAsync(const Model::DescribeEnumItemsRequest& request, const DescribeEnumItemsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEnumItemsOutcomeCallable describeEnumItemsCallable(const Model::DescribeEnumItemsRequest& request) const; + DescribeExecutePlaybooksOutcome describeExecutePlaybooks(const Model::DescribeExecutePlaybooksRequest &request)const; + void describeExecutePlaybooksAsync(const Model::DescribeExecutePlaybooksRequest& request, const DescribeExecutePlaybooksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeExecutePlaybooksOutcomeCallable describeExecutePlaybooksCallable(const Model::DescribeExecutePlaybooksRequest& request) const; + DescribeFieldOutcome describeField(const Model::DescribeFieldRequest &request)const; + void describeFieldAsync(const Model::DescribeFieldRequest& request, const DescribeFieldAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeFieldOutcomeCallable describeFieldCallable(const Model::DescribeFieldRequest& request) const; + DescribeLatestRecordSchemaOutcome describeLatestRecordSchema(const Model::DescribeLatestRecordSchemaRequest &request)const; + void describeLatestRecordSchemaAsync(const Model::DescribeLatestRecordSchemaRequest& request, const DescribeLatestRecordSchemaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLatestRecordSchemaOutcomeCallable describeLatestRecordSchemaCallable(const Model::DescribeLatestRecordSchemaRequest& request) const; + DescribeNodeParamTagsOutcome describeNodeParamTags(const Model::DescribeNodeParamTagsRequest &request)const; + void describeNodeParamTagsAsync(const Model::DescribeNodeParamTagsRequest& request, const DescribeNodeParamTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeNodeParamTagsOutcomeCallable describeNodeParamTagsCallable(const Model::DescribeNodeParamTagsRequest& request) const; + DescribeNodeUsedInfosOutcome describeNodeUsedInfos(const Model::DescribeNodeUsedInfosRequest &request)const; + void describeNodeUsedInfosAsync(const Model::DescribeNodeUsedInfosRequest& request, const DescribeNodeUsedInfosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeNodeUsedInfosOutcomeCallable describeNodeUsedInfosCallable(const Model::DescribeNodeUsedInfosRequest& request) const; + DescribePlaybookOutcome describePlaybook(const Model::DescribePlaybookRequest &request)const; + void describePlaybookAsync(const Model::DescribePlaybookRequest& request, const DescribePlaybookAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePlaybookOutcomeCallable describePlaybookCallable(const Model::DescribePlaybookRequest& request) const; + DescribePlaybookInputOutputOutcome describePlaybookInputOutput(const Model::DescribePlaybookInputOutputRequest &request)const; + void describePlaybookInputOutputAsync(const Model::DescribePlaybookInputOutputRequest& request, const DescribePlaybookInputOutputAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePlaybookInputOutputOutcomeCallable describePlaybookInputOutputCallable(const Model::DescribePlaybookInputOutputRequest& request) const; + DescribePlaybookMetricsOutcome describePlaybookMetrics(const Model::DescribePlaybookMetricsRequest &request)const; + void describePlaybookMetricsAsync(const Model::DescribePlaybookMetricsRequest& request, const DescribePlaybookMetricsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePlaybookMetricsOutcomeCallable describePlaybookMetricsCallable(const Model::DescribePlaybookMetricsRequest& request) const; + DescribePlaybookNodesOutputOutcome describePlaybookNodesOutput(const Model::DescribePlaybookNodesOutputRequest &request)const; + void describePlaybookNodesOutputAsync(const Model::DescribePlaybookNodesOutputRequest& request, const DescribePlaybookNodesOutputAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePlaybookNodesOutputOutcomeCallable describePlaybookNodesOutputCallable(const Model::DescribePlaybookNodesOutputRequest& request) const; + DescribePlaybookNumberMetricsOutcome describePlaybookNumberMetrics(const Model::DescribePlaybookNumberMetricsRequest &request)const; + void describePlaybookNumberMetricsAsync(const Model::DescribePlaybookNumberMetricsRequest& request, const DescribePlaybookNumberMetricsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePlaybookNumberMetricsOutcomeCallable describePlaybookNumberMetricsCallable(const Model::DescribePlaybookNumberMetricsRequest& request) const; + DescribePlaybookReleasesOutcome describePlaybookReleases(const Model::DescribePlaybookReleasesRequest &request)const; + void describePlaybookReleasesAsync(const Model::DescribePlaybookReleasesRequest& request, const DescribePlaybookReleasesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePlaybookReleasesOutcomeCallable describePlaybookReleasesCallable(const Model::DescribePlaybookReleasesRequest& request) const; + DescribePlaybooksOutcome describePlaybooks(const Model::DescribePlaybooksRequest &request)const; + void describePlaybooksAsync(const Model::DescribePlaybooksRequest& request, const DescribePlaybooksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePlaybooksOutcomeCallable describePlaybooksCallable(const Model::DescribePlaybooksRequest& request) const; + DescribePopApiOutcome describePopApi(const Model::DescribePopApiRequest &request)const; + void describePopApiAsync(const Model::DescribePopApiRequest& request, const DescribePopApiAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePopApiOutcomeCallable describePopApiCallable(const Model::DescribePopApiRequest& request) const; + DescribeProcessTaskCountOutcome describeProcessTaskCount(const Model::DescribeProcessTaskCountRequest &request)const; + void describeProcessTaskCountAsync(const Model::DescribeProcessTaskCountRequest& request, const DescribeProcessTaskCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeProcessTaskCountOutcomeCallable describeProcessTaskCountCallable(const Model::DescribeProcessTaskCountRequest& request) const; + DescribeProcessTasksOutcome describeProcessTasks(const Model::DescribeProcessTasksRequest &request)const; + void describeProcessTasksAsync(const Model::DescribeProcessTasksRequest& request, const DescribeProcessTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeProcessTasksOutcomeCallable describeProcessTasksCallable(const Model::DescribeProcessTasksRequest& request) const; + DescribeSoarRecordActionOutputListOutcome describeSoarRecordActionOutputList(const Model::DescribeSoarRecordActionOutputListRequest &request)const; + void describeSoarRecordActionOutputListAsync(const Model::DescribeSoarRecordActionOutputListRequest& request, const DescribeSoarRecordActionOutputListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSoarRecordActionOutputListOutcomeCallable describeSoarRecordActionOutputListCallable(const Model::DescribeSoarRecordActionOutputListRequest& request) const; + DescribeSoarRecordInOutputOutcome describeSoarRecordInOutput(const Model::DescribeSoarRecordInOutputRequest &request)const; + void describeSoarRecordInOutputAsync(const Model::DescribeSoarRecordInOutputRequest& request, const DescribeSoarRecordInOutputAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSoarRecordInOutputOutcomeCallable describeSoarRecordInOutputCallable(const Model::DescribeSoarRecordInOutputRequest& request) const; + DescribeSoarRecordsOutcome describeSoarRecords(const Model::DescribeSoarRecordsRequest &request)const; + void describeSoarRecordsAsync(const Model::DescribeSoarRecordsRequest& request, const DescribeSoarRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSoarRecordsOutcomeCallable describeSoarRecordsCallable(const Model::DescribeSoarRecordsRequest& request) const; + DescribeSoarTaskAndActionsOutcome describeSoarTaskAndActions(const Model::DescribeSoarTaskAndActionsRequest &request)const; + void describeSoarTaskAndActionsAsync(const Model::DescribeSoarTaskAndActionsRequest& request, const DescribeSoarTaskAndActionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSoarTaskAndActionsOutcomeCallable describeSoarTaskAndActionsCallable(const Model::DescribeSoarTaskAndActionsRequest& request) const; + DescribeSophonCommandsOutcome describeSophonCommands(const Model::DescribeSophonCommandsRequest &request)const; + void describeSophonCommandsAsync(const Model::DescribeSophonCommandsRequest& request, const DescribeSophonCommandsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSophonCommandsOutcomeCallable describeSophonCommandsCallable(const Model::DescribeSophonCommandsRequest& request) const; + DescriberPython3ScriptLogsOutcome describerPython3ScriptLogs(const Model::DescriberPython3ScriptLogsRequest &request)const; + void describerPython3ScriptLogsAsync(const Model::DescriberPython3ScriptLogsRequest& request, const DescriberPython3ScriptLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescriberPython3ScriptLogsOutcomeCallable describerPython3ScriptLogsCallable(const Model::DescriberPython3ScriptLogsRequest& request) const; + ModifyComponentAssetOutcome modifyComponentAsset(const Model::ModifyComponentAssetRequest &request)const; + void modifyComponentAssetAsync(const Model::ModifyComponentAssetRequest& request, const ModifyComponentAssetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyComponentAssetOutcomeCallable modifyComponentAssetCallable(const Model::ModifyComponentAssetRequest& request) const; + ModifyPlaybookOutcome modifyPlaybook(const Model::ModifyPlaybookRequest &request)const; + void modifyPlaybookAsync(const Model::ModifyPlaybookRequest& request, const ModifyPlaybookAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyPlaybookOutcomeCallable modifyPlaybookCallable(const Model::ModifyPlaybookRequest& request) const; + ModifyPlaybookInputOutputOutcome modifyPlaybookInputOutput(const Model::ModifyPlaybookInputOutputRequest &request)const; + void modifyPlaybookInputOutputAsync(const Model::ModifyPlaybookInputOutputRequest& request, const ModifyPlaybookInputOutputAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyPlaybookInputOutputOutcomeCallable modifyPlaybookInputOutputCallable(const Model::ModifyPlaybookInputOutputRequest& request) const; + ModifyPlaybookInstanceStatusOutcome modifyPlaybookInstanceStatus(const Model::ModifyPlaybookInstanceStatusRequest &request)const; + void modifyPlaybookInstanceStatusAsync(const Model::ModifyPlaybookInstanceStatusRequest& request, const ModifyPlaybookInstanceStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyPlaybookInstanceStatusOutcomeCallable modifyPlaybookInstanceStatusCallable(const Model::ModifyPlaybookInstanceStatusRequest& request) const; + PublishPlaybookOutcome publishPlaybook(const Model::PublishPlaybookRequest &request)const; + void publishPlaybookAsync(const Model::PublishPlaybookRequest& request, const PublishPlaybookAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PublishPlaybookOutcomeCallable publishPlaybookCallable(const Model::PublishPlaybookRequest& request) const; + QueryTreeDataOutcome queryTreeData(const Model::QueryTreeDataRequest &request)const; + void queryTreeDataAsync(const Model::QueryTreeDataRequest& request, const QueryTreeDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryTreeDataOutcomeCallable queryTreeDataCallable(const Model::QueryTreeDataRequest& request) const; + RenamePlaybookNodeOutcome renamePlaybookNode(const Model::RenamePlaybookNodeRequest &request)const; + void renamePlaybookNodeAsync(const Model::RenamePlaybookNodeRequest& request, const RenamePlaybookNodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RenamePlaybookNodeOutcomeCallable renamePlaybookNodeCallable(const Model::RenamePlaybookNodeRequest& request) const; + RevertPlaybookReleaseOutcome revertPlaybookRelease(const Model::RevertPlaybookReleaseRequest &request)const; + void revertPlaybookReleaseAsync(const Model::RevertPlaybookReleaseRequest& request, const RevertPlaybookReleaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RevertPlaybookReleaseOutcomeCallable revertPlaybookReleaseCallable(const Model::RevertPlaybookReleaseRequest& request) const; + RunPython3ScriptOutcome runPython3Script(const Model::RunPython3ScriptRequest &request)const; + void runPython3ScriptAsync(const Model::RunPython3ScriptRequest& request, const RunPython3ScriptAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RunPython3ScriptOutcomeCallable runPython3ScriptCallable(const Model::RunPython3ScriptRequest& request) const; + TriggerPlaybookOutcome triggerPlaybook(const Model::TriggerPlaybookRequest &request)const; + void triggerPlaybookAsync(const Model::TriggerPlaybookRequest& request, const TriggerPlaybookAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TriggerPlaybookOutcomeCallable triggerPlaybookCallable(const Model::TriggerPlaybookRequest& request) const; + TriggerProcessTaskOutcome triggerProcessTask(const Model::TriggerProcessTaskRequest &request)const; + void triggerProcessTaskAsync(const Model::TriggerProcessTaskRequest& request, const TriggerProcessTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TriggerProcessTaskOutcomeCallable triggerProcessTaskCallable(const Model::TriggerProcessTaskRequest& request) const; + TriggerSophonPlaybookOutcome triggerSophonPlaybook(const Model::TriggerSophonPlaybookRequest &request)const; + void triggerSophonPlaybookAsync(const Model::TriggerSophonPlaybookRequest& request, const TriggerSophonPlaybookAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TriggerSophonPlaybookOutcomeCallable triggerSophonPlaybookCallable(const Model::TriggerSophonPlaybookRequest& request) const; + VerifyPlaybookOutcome verifyPlaybook(const Model::VerifyPlaybookRequest &request)const; + void verifyPlaybookAsync(const Model::VerifyPlaybookRequest& request, const VerifyPlaybookAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + VerifyPlaybookOutcomeCallable verifyPlaybookCallable(const Model::VerifyPlaybookRequest& request) const; + VerifyPythonFileOutcome verifyPythonFile(const Model::VerifyPythonFileRequest &request)const; + void verifyPythonFileAsync(const Model::VerifyPythonFileRequest& request, const VerifyPythonFileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + VerifyPythonFileOutcomeCallable verifyPythonFileCallable(const Model::VerifyPythonFileRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_SOPHONSOAR_SOPHONSOARCLIENT_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/SophonsoarExport.h b/sophonsoar/include/alibabacloud/sophonsoar/SophonsoarExport.h new file mode 100644 index 000000000..4fec56cf7 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/SophonsoarExport.h @@ -0,0 +1,32 @@ +/* + * 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_SOPHONSOAR_SOPHONSOAREXPORT_H_ +#define ALIBABACLOUD_SOPHONSOAR_SOPHONSOAREXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_SOPHONSOAR_LIBRARY) +# define ALIBABACLOUD_SOPHONSOAR_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_SOPHONSOAR_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_SOPHONSOAR_EXPORT +#endif + +#endif // !ALIBABACLOUD_SOPHONSOAR_SOPHONSOAREXPORT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/BatchModifyInstanceStatusRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/BatchModifyInstanceStatusRequest.h new file mode 100644 index 000000000..acd1309cb --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/BatchModifyInstanceStatusRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_BATCHMODIFYINSTANCESTATUSREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_BATCHMODIFYINSTANCESTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT BatchModifyInstanceStatusRequest : public RpcServiceRequest { +public: + BatchModifyInstanceStatusRequest(); + ~BatchModifyInstanceStatusRequest(); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + int getActive() const; + void setActive(int active); + std::string getPlaybookUuid() const; + void setPlaybookUuid(const std::string &playbookUuid); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string roleFor_; + int active_; + std::string playbookUuid_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_BATCHMODIFYINSTANCESTATUSREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/BatchModifyInstanceStatusResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/BatchModifyInstanceStatusResult.h new file mode 100644 index 000000000..1722b9bb4 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/BatchModifyInstanceStatusResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_BATCHMODIFYINSTANCESTATUSRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_BATCHMODIFYINSTANCESTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT BatchModifyInstanceStatusResult : public ServiceResult + { + public: + + + BatchModifyInstanceStatusResult(); + explicit BatchModifyInstanceStatusResult(const std::string &payload); + ~BatchModifyInstanceStatusResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_BATCHMODIFYINSTANCESTATUSRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/ComparePlaybooksRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/ComparePlaybooksRequest.h new file mode 100644 index 000000000..6d5f2377b --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/ComparePlaybooksRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_COMPAREPLAYBOOKSREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_COMPAREPLAYBOOKSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT ComparePlaybooksRequest : public RpcServiceRequest { +public: + ComparePlaybooksRequest(); + ~ComparePlaybooksRequest(); + int getOldPlaybookReleaseId() const; + void setOldPlaybookReleaseId(int oldPlaybookReleaseId); + int getNewPlaybookReleaseId() const; + void setNewPlaybookReleaseId(int newPlaybookReleaseId); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getPlaybookUuid() const; + void setPlaybookUuid(const std::string &playbookUuid); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + int oldPlaybookReleaseId_; + int newPlaybookReleaseId_; + std::string roleFor_; + std::string playbookUuid_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_COMPAREPLAYBOOKSREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/ComparePlaybooksResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/ComparePlaybooksResult.h new file mode 100644 index 000000000..92b8c7b0d --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/ComparePlaybooksResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_COMPAREPLAYBOOKSRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_COMPAREPLAYBOOKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT ComparePlaybooksResult : public ServiceResult + { + public: + struct CompareResult + { + bool same; + std::string description; + bool _new; + }; + + + ComparePlaybooksResult(); + explicit ComparePlaybooksResult(const std::string &payload); + ~ComparePlaybooksResult(); + CompareResult getCompareResult()const; + + protected: + void parse(const std::string &payload); + private: + CompareResult compareResult_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_COMPAREPLAYBOOKSRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/ConvertPlaybookRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/ConvertPlaybookRequest.h new file mode 100644 index 000000000..453eabddb --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/ConvertPlaybookRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_CONVERTPLAYBOOKREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_CONVERTPLAYBOOKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT ConvertPlaybookRequest : public RpcServiceRequest { +public: + ConvertPlaybookRequest(); + ~ConvertPlaybookRequest(); + long getRoleFor() const; + void setRoleFor(long roleFor); + std::string getTaskflow() const; + void setTaskflow(const std::string &taskflow); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + long roleFor_; + std::string taskflow_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_CONVERTPLAYBOOKREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/ConvertPlaybookResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/ConvertPlaybookResult.h new file mode 100644 index 000000000..96fd0b577 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/ConvertPlaybookResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_CONVERTPLAYBOOKRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_CONVERTPLAYBOOKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT ConvertPlaybookResult : public ServiceResult + { + public: + + + ConvertPlaybookResult(); + explicit ConvertPlaybookResult(const std::string &payload); + ~ConvertPlaybookResult(); + std::string getConfig()const; + + protected: + void parse(const std::string &payload); + private: + std::string config_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_CONVERTPLAYBOOKRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/CreatePlaybookRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/CreatePlaybookRequest.h new file mode 100644 index 000000000..0eb940cf5 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/CreatePlaybookRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_CREATEPLAYBOOKREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_CREATEPLAYBOOKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT CreatePlaybookRequest : public RpcServiceRequest { +public: + CreatePlaybookRequest(); + ~CreatePlaybookRequest(); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getTaskflowType() const; + void setTaskflowType(const std::string &taskflowType); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getDisplayName() const; + void setDisplayName(const std::string &displayName); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string roleFor_; + std::string taskflowType_; + std::string description_; + std::string displayName_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_CREATEPLAYBOOKREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/CreatePlaybookResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/CreatePlaybookResult.h new file mode 100644 index 000000000..3156008da --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/CreatePlaybookResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_CREATEPLAYBOOKRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_CREATEPLAYBOOKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT CreatePlaybookResult : public ServiceResult + { + public: + struct Data + { + std::string playbookUuid; + }; + + + CreatePlaybookResult(); + explicit CreatePlaybookResult(const std::string &payload); + ~CreatePlaybookResult(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_CREATEPLAYBOOKRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DebugPlaybookRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DebugPlaybookRequest.h new file mode 100644 index 000000000..36f0c7a28 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DebugPlaybookRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DEBUGPLAYBOOKREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DEBUGPLAYBOOKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT DebugPlaybookRequest : public RpcServiceRequest { +public: + DebugPlaybookRequest(); + ~DebugPlaybookRequest(); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getTaskflow() const; + void setTaskflow(const std::string &taskflow); + std::string getPlaybookUuid() const; + void setPlaybookUuid(const std::string &playbookUuid); + std::string getRecord() const; + void setRecord(const std::string &record); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string roleFor_; + std::string taskflow_; + std::string playbookUuid_; + std::string record_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DEBUGPLAYBOOKREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DebugPlaybookResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DebugPlaybookResult.h new file mode 100644 index 000000000..f6c12967d --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DebugPlaybookResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DEBUGPLAYBOOKRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DEBUGPLAYBOOKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT DebugPlaybookResult : public ServiceResult + { + public: + + + DebugPlaybookResult(); + explicit DebugPlaybookResult(const std::string &payload); + ~DebugPlaybookResult(); + std::string getRequestUuid()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestUuid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DEBUGPLAYBOOKRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DeleteComponentAssetRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DeleteComponentAssetRequest.h new file mode 100644 index 000000000..120a2d56c --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DeleteComponentAssetRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DELETECOMPONENTASSETREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DELETECOMPONENTASSETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT DeleteComponentAssetRequest : public RpcServiceRequest { +public: + DeleteComponentAssetRequest(); + ~DeleteComponentAssetRequest(); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + long getAssetId() const; + void setAssetId(long assetId); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string roleFor_; + long assetId_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DELETECOMPONENTASSETREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DeleteComponentAssetResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DeleteComponentAssetResult.h new file mode 100644 index 000000000..8f96f1e67 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DeleteComponentAssetResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DELETECOMPONENTASSETRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DELETECOMPONENTASSETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT DeleteComponentAssetResult : public ServiceResult + { + public: + + + DeleteComponentAssetResult(); + explicit DeleteComponentAssetResult(const std::string &payload); + ~DeleteComponentAssetResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DELETECOMPONENTASSETRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DeletePlaybookRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DeletePlaybookRequest.h new file mode 100644 index 000000000..c2218215f --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DeletePlaybookRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DELETEPLAYBOOKREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DELETEPLAYBOOKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT DeletePlaybookRequest : public RpcServiceRequest { +public: + DeletePlaybookRequest(); + ~DeletePlaybookRequest(); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getPlaybookUuid() const; + void setPlaybookUuid(const std::string &playbookUuid); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string roleFor_; + std::string playbookUuid_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DELETEPLAYBOOKREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DeletePlaybookResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DeletePlaybookResult.h new file mode 100644 index 000000000..8c086b203 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DeletePlaybookResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DELETEPLAYBOOKRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DELETEPLAYBOOKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT DeletePlaybookResult : public ServiceResult + { + public: + + + DeletePlaybookResult(); + explicit DeletePlaybookResult(const std::string &payload); + ~DeletePlaybookResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DELETEPLAYBOOKRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeComponentAssetFormRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeComponentAssetFormRequest.h new file mode 100644 index 000000000..639e079cb --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeComponentAssetFormRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBECOMPONENTASSETFORMREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBECOMPONENTASSETFORMREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribeComponentAssetFormRequest : public RpcServiceRequest { +public: + DescribeComponentAssetFormRequest(); + ~DescribeComponentAssetFormRequest(); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getComponentName() const; + void setComponentName(const std::string &componentName); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string roleFor_; + std::string componentName_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBECOMPONENTASSETFORMREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeComponentAssetFormResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeComponentAssetFormResult.h new file mode 100644 index 000000000..15f97fd87 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeComponentAssetFormResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBECOMPONENTASSETFORMRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBECOMPONENTASSETFORMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribeComponentAssetFormResult : public ServiceResult + { + public: + + + DescribeComponentAssetFormResult(); + explicit DescribeComponentAssetFormResult(const std::string &payload); + ~DescribeComponentAssetFormResult(); + std::string getComponentAssetForm()const; + + protected: + void parse(const std::string &payload); + private: + std::string componentAssetForm_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBECOMPONENTASSETFORMRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeComponentAssetsRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeComponentAssetsRequest.h new file mode 100644 index 000000000..42ddab84c --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeComponentAssetsRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBECOMPONENTASSETSREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBECOMPONENTASSETSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribeComponentAssetsRequest : public RpcServiceRequest { +public: + DescribeComponentAssetsRequest(); + ~DescribeComponentAssetsRequest(); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getComponentName() const; + void setComponentName(const std::string &componentName); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string roleFor_; + std::string componentName_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBECOMPONENTASSETSREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeComponentAssetsResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeComponentAssetsResult.h new file mode 100644 index 000000000..430103e5c --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeComponentAssetsResult.h @@ -0,0 +1,64 @@ +/* + * 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_SOPHONSOAR_MODEL_DESCRIBECOMPONENTASSETSRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBECOMPONENTASSETSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribeComponentAssetsResult : public ServiceResult + { + public: + struct ComponentAssetsItem + { + std::string gmtCreate; + std::string tenantId; + std::string owner; + std::string domainId; + std::string assetUuid; + std::string gmtModified; + std::string componentname; + std::string params; + long id; + std::string name; + }; + + + DescribeComponentAssetsResult(); + explicit DescribeComponentAssetsResult(const std::string &payload); + ~DescribeComponentAssetsResult(); + std::vector getComponentAssets()const; + + protected: + void parse(const std::string &payload); + private: + std::vector componentAssets_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBECOMPONENTASSETSRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeComponentListRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeComponentListRequest.h new file mode 100644 index 000000000..ace6d19c6 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeComponentListRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBECOMPONENTLISTREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBECOMPONENTLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribeComponentListRequest : public RpcServiceRequest { +public: + DescribeComponentListRequest(); + ~DescribeComponentListRequest(); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getPlaybookUuid() const; + void setPlaybookUuid(const std::string &playbookUuid); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string roleFor_; + std::string playbookUuid_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBECOMPONENTLISTREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeComponentListResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeComponentListResult.h new file mode 100644 index 000000000..4134d6cec --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeComponentListResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBECOMPONENTLISTRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBECOMPONENTLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribeComponentListResult : public ServiceResult + { + public: + + + DescribeComponentListResult(); + explicit DescribeComponentListResult(const std::string &payload); + ~DescribeComponentListResult(); + std::string getComponents()const; + + protected: + void parse(const std::string &payload); + private: + std::string components_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBECOMPONENTLISTRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeComponentPlaybookRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeComponentPlaybookRequest.h new file mode 100644 index 000000000..9b269fbb7 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeComponentPlaybookRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBECOMPONENTPLAYBOOKREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBECOMPONENTPLAYBOOKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribeComponentPlaybookRequest : public RpcServiceRequest { +public: + DescribeComponentPlaybookRequest(); + ~DescribeComponentPlaybookRequest(); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getPlaybookUuid() const; + void setPlaybookUuid(const std::string &playbookUuid); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string roleFor_; + std::string playbookUuid_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBECOMPONENTPLAYBOOKREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeComponentPlaybookResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeComponentPlaybookResult.h new file mode 100644 index 000000000..e85171b08 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeComponentPlaybookResult.h @@ -0,0 +1,61 @@ +/* + * 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_SOPHONSOAR_MODEL_DESCRIBECOMPONENTPLAYBOOKRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBECOMPONENTPLAYBOOKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribeComponentPlaybookResult : public ServiceResult + { + public: + struct Data + { + std::string playbookUuid; + std::string inputParams; + std::string tenantId; + std::string ownType; + std::string description; + std::string displayName; + std::string outputParams; + }; + + + DescribeComponentPlaybookResult(); + explicit DescribeComponentPlaybookResult(const std::string &payload); + ~DescribeComponentPlaybookResult(); + std::vector getPlaybooks()const; + + protected: + void parse(const std::string &payload); + private: + std::vector playbooks_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBECOMPONENTPLAYBOOKRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeComponentsJsRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeComponentsJsRequest.h new file mode 100644 index 000000000..17373774d --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeComponentsJsRequest.h @@ -0,0 +1,48 @@ +/* + * 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_SOPHONSOAR_MODEL_DESCRIBECOMPONENTSJSREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBECOMPONENTSJSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribeComponentsJsRequest : public RpcServiceRequest { +public: + DescribeComponentsJsRequest(); + ~DescribeComponentsJsRequest(); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string roleFor_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBECOMPONENTSJSREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeComponentsJsResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeComponentsJsResult.h new file mode 100644 index 000000000..a8ea2c25c --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeComponentsJsResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBECOMPONENTSJSRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBECOMPONENTSJSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribeComponentsJsResult : public ServiceResult + { + public: + + + DescribeComponentsJsResult(); + explicit DescribeComponentsJsResult(const std::string &payload); + ~DescribeComponentsJsResult(); + std::string getComponentsJs()const; + + protected: + void parse(const std::string &payload); + private: + std::string componentsJs_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBECOMPONENTSJSRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeDistinctReleasesRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeDistinctReleasesRequest.h new file mode 100644 index 000000000..986107fd9 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeDistinctReleasesRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEDISTINCTRELEASESREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEDISTINCTRELEASESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribeDistinctReleasesRequest : public RpcServiceRequest { +public: + DescribeDistinctReleasesRequest(); + ~DescribeDistinctReleasesRequest(); + std::string getTaskflowMd5() const; + void setTaskflowMd5(const std::string &taskflowMd5); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getPlaybookUuid() const; + void setPlaybookUuid(const std::string &playbookUuid); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string taskflowMd5_; + std::string roleFor_; + std::string playbookUuid_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEDISTINCTRELEASESREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeDistinctReleasesResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeDistinctReleasesResult.h new file mode 100644 index 000000000..732b59b08 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeDistinctReleasesResult.h @@ -0,0 +1,59 @@ +/* + * 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_SOPHONSOAR_MODEL_DESCRIBEDISTINCTRELEASESRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEDISTINCTRELEASESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribeDistinctReleasesResult : public ServiceResult + { + public: + struct RecordsItem + { + int flowFlag; + std::string description; + std::string taskflowType; + std::string taskflowMd5; + int flowTag; + }; + + + DescribeDistinctReleasesResult(); + explicit DescribeDistinctReleasesResult(const std::string &payload); + ~DescribeDistinctReleasesResult(); + std::vector getRecords()const; + + protected: + void parse(const std::string &payload); + private: + std::vector records_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEDISTINCTRELEASESRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeEnumItemsRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeEnumItemsRequest.h new file mode 100644 index 000000000..e11ebe57f --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeEnumItemsRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEENUMITEMSREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEENUMITEMSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribeEnumItemsRequest : public RpcServiceRequest { +public: + DescribeEnumItemsRequest(); + ~DescribeEnumItemsRequest(); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getEnumType() const; + void setEnumType(const std::string &enumType); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string roleFor_; + std::string enumType_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEENUMITEMSREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeEnumItemsResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeEnumItemsResult.h new file mode 100644 index 000000000..9b4715604 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeEnumItemsResult.h @@ -0,0 +1,56 @@ +/* + * 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_SOPHONSOAR_MODEL_DESCRIBEENUMITEMSRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEENUMITEMSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribeEnumItemsResult : public ServiceResult + { + public: + struct DataItem + { + std::string value; + std::string key; + }; + + + DescribeEnumItemsResult(); + explicit DescribeEnumItemsResult(const std::string &payload); + ~DescribeEnumItemsResult(); + std::vector getData()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEENUMITEMSRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeExecutePlaybooksRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeExecutePlaybooksRequest.h new file mode 100644 index 000000000..94e410265 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeExecutePlaybooksRequest.h @@ -0,0 +1,66 @@ +/* + * 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_SOPHONSOAR_MODEL_DESCRIBEEXECUTEPLAYBOOKSREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEEXECUTEPLAYBOOKSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribeExecutePlaybooksRequest : public RpcServiceRequest { +public: + DescribeExecutePlaybooksRequest(); + ~DescribeExecutePlaybooksRequest(); + std::string getPlaybookName() const; + void setPlaybookName(const std::string &playbookName); + std::string getParamType() const; + void setParamType(const std::string ¶mType); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getInputMode() const; + void setInputMode(const std::string &inputMode); + int getCheckTag() const; + void setCheckTag(int checkTag); + std::string getSource() const; + void setSource(const std::string &source); + std::string getUuid() const; + void setUuid(const std::string &uuid); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string playbookName_; + std::string paramType_; + std::string roleFor_; + std::string inputMode_; + int checkTag_; + std::string source_; + std::string uuid_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEEXECUTEPLAYBOOKSREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeExecutePlaybooksResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeExecutePlaybooksResult.h new file mode 100644 index 000000000..104a34c1b --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeExecutePlaybooksResult.h @@ -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_SOPHONSOAR_MODEL_DESCRIBEEXECUTEPLAYBOOKSRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEEXECUTEPLAYBOOKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribeExecutePlaybooksResult : public ServiceResult + { + public: + struct Data + { + std::string description; + std::string actionType; + std::string uuid; + std::string displayName; + std::string commandEntity; + std::string taskConfig; + std::string paramConfig; + std::string paramType; + }; + + + DescribeExecutePlaybooksResult(); + explicit DescribeExecutePlaybooksResult(const std::string &payload); + ~DescribeExecutePlaybooksResult(); + std::vector getPlaybookMetrics()const; + + protected: + void parse(const std::string &payload); + private: + std::vector playbookMetrics_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEEXECUTEPLAYBOOKSRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeFieldRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeFieldRequest.h new file mode 100644 index 000000000..16947852e --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeFieldRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEFIELDREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEFIELDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribeFieldRequest : public RpcServiceRequest { +public: + DescribeFieldRequest(); + ~DescribeFieldRequest(); + std::string getQueryKey() const; + void setQueryKey(const std::string &queryKey); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string queryKey_; + std::string roleFor_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEFIELDREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeFieldResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeFieldResult.h new file mode 100644 index 000000000..af6b81790 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeFieldResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEFIELDRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEFIELDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribeFieldResult : public ServiceResult + { + public: + + + DescribeFieldResult(); + explicit DescribeFieldResult(const std::string &payload); + ~DescribeFieldResult(); + std::string getFields()const; + std::string getFieldMode()const; + std::string getName()const; + + protected: + void parse(const std::string &payload); + private: + std::string fields_; + std::string fieldMode_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEFIELDRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeLatestRecordSchemaRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeLatestRecordSchemaRequest.h new file mode 100644 index 000000000..68de06d8c --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeLatestRecordSchemaRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBELATESTRECORDSCHEMAREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBELATESTRECORDSCHEMAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribeLatestRecordSchemaRequest : public RpcServiceRequest { +public: + DescribeLatestRecordSchemaRequest(); + ~DescribeLatestRecordSchemaRequest(); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getPlaybookUuid() const; + void setPlaybookUuid(const std::string &playbookUuid); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string roleFor_; + std::string playbookUuid_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBELATESTRECORDSCHEMAREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeLatestRecordSchemaResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeLatestRecordSchemaResult.h new file mode 100644 index 000000000..0989a7a87 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeLatestRecordSchemaResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBELATESTRECORDSCHEMARESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBELATESTRECORDSCHEMARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribeLatestRecordSchemaResult : public ServiceResult + { + public: + struct PlaybookNodeSchema + { + struct NodeSchemaItem + { + std::string actionName; + std::string nodeName; + std::string componentName; + std::vector outputFields; + }; + std::vector nodeSchema; + bool isFinished; + }; + + + DescribeLatestRecordSchemaResult(); + explicit DescribeLatestRecordSchemaResult(const std::string &payload); + ~DescribeLatestRecordSchemaResult(); + PlaybookNodeSchema getPlaybookNodeSchema()const; + + protected: + void parse(const std::string &payload); + private: + PlaybookNodeSchema playbookNodeSchema_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBELATESTRECORDSCHEMARESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeNodeParamTagsRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeNodeParamTagsRequest.h new file mode 100644 index 000000000..fc0340c5a --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeNodeParamTagsRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBENODEPARAMTAGSREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBENODEPARAMTAGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribeNodeParamTagsRequest : public RpcServiceRequest { +public: + DescribeNodeParamTagsRequest(); + ~DescribeNodeParamTagsRequest(); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getNodeName() const; + void setNodeName(const std::string &nodeName); + std::string getPlaybookUuid() const; + void setPlaybookUuid(const std::string &playbookUuid); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string roleFor_; + std::string nodeName_; + std::string playbookUuid_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBENODEPARAMTAGSREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeNodeParamTagsResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeNodeParamTagsResult.h new file mode 100644 index 000000000..2d5409c94 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeNodeParamTagsResult.h @@ -0,0 +1,56 @@ +/* + * 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_SOPHONSOAR_MODEL_DESCRIBENODEPARAMTAGSRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBENODEPARAMTAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribeNodeParamTagsResult : public ServiceResult + { + public: + struct Data + { + std::vector referredPath; + std::string paramName; + }; + + + DescribeNodeParamTagsResult(); + explicit DescribeNodeParamTagsResult(const std::string &payload); + ~DescribeNodeParamTagsResult(); + std::vector getParamReferredPaths()const; + + protected: + void parse(const std::string &payload); + private: + std::vector paramReferredPaths_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBENODEPARAMTAGSRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeNodeUsedInfosRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeNodeUsedInfosRequest.h new file mode 100644 index 000000000..a6e135fa0 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeNodeUsedInfosRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBENODEUSEDINFOSREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBENODEUSEDINFOSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribeNodeUsedInfosRequest : public RpcServiceRequest { +public: + DescribeNodeUsedInfosRequest(); + ~DescribeNodeUsedInfosRequest(); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getNodeName() const; + void setNodeName(const std::string &nodeName); + std::string getPlaybookUuid() const; + void setPlaybookUuid(const std::string &playbookUuid); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string roleFor_; + std::string nodeName_; + std::string playbookUuid_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBENODEUSEDINFOSREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeNodeUsedInfosResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeNodeUsedInfosResult.h new file mode 100644 index 000000000..e40a54e40 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeNodeUsedInfosResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBENODEUSEDINFOSRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBENODEUSEDINFOSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribeNodeUsedInfosResult : public ServiceResult + { + public: + + + DescribeNodeUsedInfosResult(); + explicit DescribeNodeUsedInfosResult(const std::string &payload); + ~DescribeNodeUsedInfosResult(); + std::string getNodeUsedInfos()const; + + protected: + void parse(const std::string &payload); + private: + std::string nodeUsedInfos_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBENODEUSEDINFOSRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybookInputOutputRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybookInputOutputRequest.h new file mode 100644 index 000000000..9b96060ea --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybookInputOutputRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKINPUTOUTPUTREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKINPUTOUTPUTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribePlaybookInputOutputRequest : public RpcServiceRequest { +public: + DescribePlaybookInputOutputRequest(); + ~DescribePlaybookInputOutputRequest(); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getModelName() const; + void setModelName(const std::string &modelName); + std::string getPlaybookUuid() const; + void setPlaybookUuid(const std::string &playbookUuid); + std::string getModelCode() const; + void setModelCode(const std::string &modelCode); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string roleFor_; + std::string modelName_; + std::string playbookUuid_; + std::string modelCode_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKINPUTOUTPUTREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybookInputOutputResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybookInputOutputResult.h new file mode 100644 index 000000000..71445aec1 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybookInputOutputResult.h @@ -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_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKINPUTOUTPUTRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKINPUTOUTPUTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribePlaybookInputOutputResult : public ServiceResult + { + public: + struct Config + { + std::string playbookUuid; + std::string inputParams; + std::string type; + std::string modelName; + std::string modelCode; + std::string exeConfig; + std::string outputParams; + std::string paramType; + }; + + + DescribePlaybookInputOutputResult(); + explicit DescribePlaybookInputOutputResult(const std::string &payload); + ~DescribePlaybookInputOutputResult(); + Config getConfig()const; + + protected: + void parse(const std::string &payload); + private: + Config config_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKINPUTOUTPUTRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybookMetricsRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybookMetricsRequest.h new file mode 100644 index 000000000..0ce29f3e7 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybookMetricsRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKMETRICSREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKMETRICSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribePlaybookMetricsRequest : public RpcServiceRequest { +public: + DescribePlaybookMetricsRequest(); + ~DescribePlaybookMetricsRequest(); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getPlaybookUuid() const; + void setPlaybookUuid(const std::string &playbookUuid); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string roleFor_; + std::string playbookUuid_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKMETRICSREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybookMetricsResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybookMetricsResult.h new file mode 100644 index 000000000..40f559fd7 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybookMetricsResult.h @@ -0,0 +1,67 @@ +/* + * 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_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKMETRICSRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKMETRICSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribePlaybookMetricsResult : public ServiceResult + { + public: + struct Metrics + { + std::string description; + int succNum; + double failRate; + long lastRuntime; + std::string playbookUuid; + int historyMd5; + int active; + long gmtCreate; + std::string ownType; + std::string displayName; + int permission; + int playbookStatus; + int failNum; + }; + + + DescribePlaybookMetricsResult(); + explicit DescribePlaybookMetricsResult(const std::string &payload); + ~DescribePlaybookMetricsResult(); + Metrics getMetrics()const; + + protected: + void parse(const std::string &payload); + private: + Metrics metrics_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKMETRICSRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybookNodesOutputRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybookNodesOutputRequest.h new file mode 100644 index 000000000..f718a4276 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybookNodesOutputRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKNODESOUTPUTREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKNODESOUTPUTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribePlaybookNodesOutputRequest : public RpcServiceRequest { +public: + DescribePlaybookNodesOutputRequest(); + ~DescribePlaybookNodesOutputRequest(); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getNodeName() const; + void setNodeName(const std::string &nodeName); + std::string getPlaybookUuid() const; + void setPlaybookUuid(const std::string &playbookUuid); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string roleFor_; + std::string nodeName_; + std::string playbookUuid_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKNODESOUTPUTREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybookNodesOutputResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybookNodesOutputResult.h new file mode 100644 index 000000000..fc23a7f3d --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybookNodesOutputResult.h @@ -0,0 +1,56 @@ +/* + * 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_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKNODESOUTPUTRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKNODESOUTPUTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribePlaybookNodesOutputResult : public ServiceResult + { + public: + struct PlaybookNodesOutput + { + std::string nodeName; + std::string nodeOutput; + }; + + + DescribePlaybookNodesOutputResult(); + explicit DescribePlaybookNodesOutputResult(const std::string &payload); + ~DescribePlaybookNodesOutputResult(); + PlaybookNodesOutput getPlaybookNodesOutput()const; + + protected: + void parse(const std::string &payload); + private: + PlaybookNodesOutput playbookNodesOutput_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKNODESOUTPUTRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybookNumberMetricsRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybookNumberMetricsRequest.h new file mode 100644 index 000000000..8236b64c9 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybookNumberMetricsRequest.h @@ -0,0 +1,48 @@ +/* + * 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_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKNUMBERMETRICSREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKNUMBERMETRICSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribePlaybookNumberMetricsRequest : public RpcServiceRequest { +public: + DescribePlaybookNumberMetricsRequest(); + ~DescribePlaybookNumberMetricsRequest(); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string roleFor_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKNUMBERMETRICSREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybookNumberMetricsResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybookNumberMetricsResult.h new file mode 100644 index 000000000..1fa75886f --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybookNumberMetricsResult.h @@ -0,0 +1,56 @@ +/* + * 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_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKNUMBERMETRICSRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKNUMBERMETRICSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribePlaybookNumberMetricsResult : public ServiceResult + { + public: + struct Metrics + { + int totalNum; + int startUpNum; + }; + + + DescribePlaybookNumberMetricsResult(); + explicit DescribePlaybookNumberMetricsResult(const std::string &payload); + ~DescribePlaybookNumberMetricsResult(); + Metrics getMetrics()const; + + protected: + void parse(const std::string &payload); + private: + Metrics metrics_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKNUMBERMETRICSRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybookReleasesRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybookReleasesRequest.h new file mode 100644 index 000000000..9696efbbc --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybookReleasesRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKRELEASESREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKRELEASESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribePlaybookReleasesRequest : public RpcServiceRequest { +public: + DescribePlaybookReleasesRequest(); + ~DescribePlaybookReleasesRequest(); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getPlaybookUuid() const; + void setPlaybookUuid(const std::string &playbookUuid); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string roleFor_; + int pageNumber_; + std::string playbookUuid_; + int pageSize_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKRELEASESREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybookReleasesResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybookReleasesResult.h new file mode 100644 index 000000000..ff7606de6 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybookReleasesResult.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKRELEASESRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKRELEASESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribePlaybookReleasesResult : public ServiceResult + { + public: + struct Page + { + int totalCount; + int pageSize; + int pageNumber; + }; + struct Data + { + int flowFlag; + long gmtCreate; + std::string releaseUuid; + std::string description; + long gmtModified; + long playbookId; + int id; + std::string creator; + std::string taskflowMd5; + int flowTag; + }; + + + DescribePlaybookReleasesResult(); + explicit DescribePlaybookReleasesResult(const std::string &payload); + ~DescribePlaybookReleasesResult(); + Page getPage()const; + std::vector getRecords()const; + + protected: + void parse(const std::string &payload); + private: + Page page_; + std::vector records_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKRELEASESRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybookRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybookRequest.h new file mode 100644 index 000000000..d54ddef73 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybookRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribePlaybookRequest : public RpcServiceRequest { +public: + DescribePlaybookRequest(); + ~DescribePlaybookRequest(); + std::string getTaskflowMd5() const; + void setTaskflowMd5(const std::string &taskflowMd5); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + int getDebugFlag() const; + void setDebugFlag(int debugFlag); + std::string getPlaybookUuid() const; + void setPlaybookUuid(const std::string &playbookUuid); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string taskflowMd5_; + std::string roleFor_; + int debugFlag_; + std::string playbookUuid_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybookResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybookResult.h new file mode 100644 index 000000000..cad268bd6 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybookResult.h @@ -0,0 +1,99 @@ +/* + * 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_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribePlaybookResult : public ServiceResult + { + public: + struct Playbook + { + std::string onlineCron; + std::string description; + std::string gmtModified; + int successExeNum; + std::string onlineReleaseUuid; + std::string onlineReleaseTaskflowMd5; + std::string onlineExecuteMode; + std::string releaseTaskflowMd5; + std::string cron; + std::string taskconfig; + std::string compiledresult; + std::string inputParams; + std::string ownType; + bool onlineActive; + std::string displayName; + int playbookStatus; + std::string inputtype; + std::string executeMode; + std::string outputParams; + std::string operateType; + long lastExeTime; + int parentId; + std::string rightLevel; + std::string taskflow; + std::string releaseUuid; + std::string onlineReleaseTime; + std::string debugFlag; + std::string triggerInfo; + std::string taskflowType; + int flag; + std::string oss; + long onlineSchedulerId; + std::string playbookUuid; + std::string taskFlowDesc; + std::string gmtCreate; + std::string tenantId; + std::string type; + bool active; + int failExeNum; + std::string releaseTime; + std::string onlineOss; + std::string onlineCompiledresult; + int riskLevel; + long schedulerId; + std::string taskflowMd5; + }; + + + DescribePlaybookResult(); + explicit DescribePlaybookResult(const std::string &payload); + ~DescribePlaybookResult(); + Playbook getPlaybook()const; + + protected: + void parse(const std::string &payload); + private: + Playbook playbook_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybooksRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybooksRequest.h new file mode 100644 index 000000000..09cd1492d --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybooksRequest.h @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKSREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribePlaybooksRequest : public RpcServiceRequest { +public: + DescribePlaybooksRequest(); + ~DescribePlaybooksRequest(); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + long getEndMillis() const; + void setEndMillis(long endMillis); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getPlaybookUuids() const; + void setPlaybookUuids(const std::string &playbookUuids); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getOrder() const; + void setOrder(const std::string &order); + std::string getParamTypes() const; + void setParamTypes(const std::string ¶mTypes); + int getActive() const; + void setActive(int active); + std::string getOwnType() const; + void setOwnType(const std::string &ownType); + std::string getSort() const; + void setSort(const std::string &sort); + long getStartMillis() const; + void setStartMillis(long startMillis); + std::string getPlaybookUuid() const; + void setPlaybookUuid(const std::string &playbookUuid); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string roleFor_; + long endMillis_; + long pageNumber_; + std::string playbookUuids_; + int pageSize_; + std::string roleType_; + std::string lang_; + std::string order_; + std::string paramTypes_; + int active_; + std::string ownType_; + std::string sort_; + long startMillis_; + std::string playbookUuid_; + std::string name_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKSREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybooksResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybooksResult.h new file mode 100644 index 000000000..6bdefd95c --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePlaybooksResult.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKSRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribePlaybooksResult : public ServiceResult + { + public: + struct Page + { + int totalCount; + int pageSize; + int pageNumber; + }; + struct Data + { + std::string playbookUuid; + int active; + long gmtCreate; + std::string ownType; + std::string displayName; + int permission; + int playbookStatus; + std::string gmtModified; + long lastRuntime; + std::string paramType; + }; + + + DescribePlaybooksResult(); + explicit DescribePlaybooksResult(const std::string &payload); + ~DescribePlaybooksResult(); + std::vector getPlaybooks()const; + Page getPage()const; + + protected: + void parse(const std::string &payload); + private: + std::vector playbooks_; + Page page_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPLAYBOOKSRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePopApiRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePopApiRequest.h new file mode 100644 index 000000000..1262aa89c --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePopApiRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPOPAPIREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPOPAPIREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribePopApiRequest : public RpcServiceRequest { +public: + DescribePopApiRequest(); + ~DescribePopApiRequest(); + std::string getPopCode() const; + void setPopCode(const std::string &popCode); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getApiVersion() const; + void setApiVersion(const std::string &apiVersion); + std::string getEnv() const; + void setEnv(const std::string &env); + std::string getApiName() const; + void setApiName(const std::string &apiName); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string popCode_; + std::string roleFor_; + std::string apiVersion_; + std::string env_; + std::string apiName_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPOPAPIREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePopApiResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePopApiResult.h new file mode 100644 index 000000000..35e61ac6e --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribePopApiResult.h @@ -0,0 +1,70 @@ +/* + * 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_SOPHONSOAR_MODEL_DESCRIBEPOPAPIRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPOPAPIRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribePopApiResult : public ServiceResult + { + public: + struct OpenApiMetaListItem + { + std::string type; + std::string exampleValue; + std::string description; + bool isRequired; + bool required; + std::string in; + std::string visibility; + std::string name; + }; + + + DescribePopApiResult(); + explicit DescribePopApiResult(const std::string &payload); + ~DescribePopApiResult(); + std::string getApiMeta()const; + std::vector getOpenApiMetaList()const; + std::string getVersion()const; + std::string getApiName()const; + std::string getPopCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string apiMeta_; + std::vector openApiMetaList_; + std::string version_; + std::string apiName_; + std::string popCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPOPAPIRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeProcessTaskCountRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeProcessTaskCountRequest.h new file mode 100644 index 000000000..8935c88d1 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeProcessTaskCountRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPROCESSTASKCOUNTREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPROCESSTASKCOUNTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribeProcessTaskCountRequest : public RpcServiceRequest { +public: + DescribeProcessTaskCountRequest(); + ~DescribeProcessTaskCountRequest(); + std::vector getEntityUuidList() const; + void setEntityUuidList(const std::vector &entityUuidList); + long getRoleFor() const; + void setRoleFor(long roleFor); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::vector entityUuidList_; + long roleFor_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPROCESSTASKCOUNTREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeProcessTaskCountResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeProcessTaskCountResult.h new file mode 100644 index 000000000..3782fd8d4 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeProcessTaskCountResult.h @@ -0,0 +1,56 @@ +/* + * 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_SOPHONSOAR_MODEL_DESCRIBEPROCESSTASKCOUNTRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPROCESSTASKCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribeProcessTaskCountResult : public ServiceResult + { + public: + struct DataItem + { + std::string entityUuid; + long count; + }; + + + DescribeProcessTaskCountResult(); + explicit DescribeProcessTaskCountResult(const std::string &payload); + ~DescribeProcessTaskCountResult(); + std::vector getData()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPROCESSTASKCOUNTRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeProcessTasksRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeProcessTasksRequest.h new file mode 100644 index 000000000..a47bce033 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeProcessTasksRequest.h @@ -0,0 +1,117 @@ +/* + * 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_SOPHONSOAR_MODEL_DESCRIBEPROCESSTASKSREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPROCESSTASKSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribeProcessTasksRequest : public RpcServiceRequest { +public: + DescribeProcessTasksRequest(); + ~DescribeProcessTasksRequest(); + std::string getEntityKey() const; + void setEntityKey(const std::string &entityKey); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getEntityName() const; + void setEntityName(const std::string &entityName); + std::string getTaskName() const; + void setTaskName(const std::string &taskName); + std::string getYunCode() const; + void setYunCode(const std::string &yunCode); + std::string getSource() const; + void setSource(const std::string &source); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getTaskStatus() const; + void setTaskStatus(const std::string &taskStatus); + long getProcessRemoveEnd() const; + void setProcessRemoveEnd(long processRemoveEnd); + std::string getParamContent() const; + void setParamContent(const std::string ¶mContent); + std::string getScope() const; + void setScope(const std::string &scope); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getTriggerSource() const; + void setTriggerSource(const std::string &triggerSource); + long getProcessRemoveStart() const; + void setProcessRemoveStart(long processRemoveStart); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + std::string getOrderField() const; + void setOrderField(const std::string &orderField); + std::string getDirection() const; + void setDirection(const std::string &direction); + std::string getSceneCode() const; + void setSceneCode(const std::string &sceneCode); + long getProcessActionStart() const; + void setProcessActionStart(long processActionStart); + long getProcessActionEnd() const; + void setProcessActionEnd(long processActionEnd); + std::string getProcessStrategyUuid() const; + void setProcessStrategyUuid(const std::string &processStrategyUuid); + std::string getEntityType() const; + void setEntityType(const std::string &entityType); + std::string getEntityUuid() const; + void setEntityUuid(const std::string &entityUuid); + std::string getEventUuid() const; + void setEventUuid(const std::string &eventUuid); + +private: + std::string entityKey_; + std::string roleFor_; + std::string entityName_; + std::string taskName_; + std::string yunCode_; + std::string source_; + long pageNumber_; + std::string taskStatus_; + long processRemoveEnd_; + std::string paramContent_; + std::string scope_; + int pageSize_; + std::string triggerSource_; + long processRemoveStart_; + std::string roleType_; + std::string lang_; + std::string taskId_; + std::string orderField_; + std::string direction_; + std::string sceneCode_; + long processActionStart_; + long processActionEnd_; + std::string processStrategyUuid_; + std::string entityType_; + std::string entityUuid_; + std::string eventUuid_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPROCESSTASKSREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeProcessTasksResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeProcessTasksResult.h new file mode 100644 index 000000000..64e10f635 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeProcessTasksResult.h @@ -0,0 +1,91 @@ +/* + * 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_SOPHONSOAR_MODEL_DESCRIBEPROCESSTASKSRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPROCESSTASKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribeProcessTasksResult : public ServiceResult + { + public: + struct Page + { + int totalCount; + int pageSize; + int pageNumber; + }; + struct Data + { + std::string taskId; + std::string entityName; + std::string errMsg; + std::string sceneCode; + long processTime; + std::string eventUuid; + std::string creator; + std::string source; + std::string entityKey; + std::string inputParams; + long gmtCreateMillis; + std::string sceneName; + long removeTime; + std::string triggerSource; + std::string processStrategyUuid; + std::string yunCode; + std::string reqUuid; + long gmtModifiedMillis; + std::string entityValue; + int taskStatus; + std::string errCode; + std::string errTip; + std::string entityType; + std::string tenantId; + std::string entityUuid; + std::string scope; + std::string taskName; + int removeFlag; + int retryFlag; + }; + + + DescribeProcessTasksResult(); + explicit DescribeProcessTasksResult(const std::string &payload); + ~DescribeProcessTasksResult(); + std::vector getProcessTasks()const; + Page getPage()const; + + protected: + void parse(const std::string &payload); + private: + std::vector processTasks_; + Page page_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBEPROCESSTASKSRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeSoarRecordActionOutputListRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeSoarRecordActionOutputListRequest.h new file mode 100644 index 000000000..89a4dd920 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeSoarRecordActionOutputListRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBESOARRECORDACTIONOUTPUTLISTREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBESOARRECORDACTIONOUTPUTLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribeSoarRecordActionOutputListRequest : public RpcServiceRequest { +public: + DescribeSoarRecordActionOutputListRequest(); + ~DescribeSoarRecordActionOutputListRequest(); + std::string getActionUuid() const; + void setActionUuid(const std::string &actionUuid); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + int getPageNumber() const; + void setPageNumber(int pageNumber); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getQueryValue() const; + void setQueryValue(const std::string &queryValue); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string actionUuid_; + std::string roleFor_; + int pageNumber_; + int pageSize_; + std::string roleType_; + std::string queryValue_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBESOARRECORDACTIONOUTPUTLISTREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeSoarRecordActionOutputListResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeSoarRecordActionOutputListResult.h new file mode 100644 index 000000000..7228b41b5 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeSoarRecordActionOutputListResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBESOARRECORDACTIONOUTPUTLISTRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBESOARRECORDACTIONOUTPUTLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribeSoarRecordActionOutputListResult : public ServiceResult + { + public: + + + DescribeSoarRecordActionOutputListResult(); + explicit DescribeSoarRecordActionOutputListResult(const std::string &payload); + ~DescribeSoarRecordActionOutputListResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::string getActionOutputs()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::string actionOutputs_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBESOARRECORDACTIONOUTPUTLISTRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeSoarRecordInOutputRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeSoarRecordInOutputRequest.h new file mode 100644 index 000000000..5c4a0490b --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeSoarRecordInOutputRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBESOARRECORDINOUTPUTREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBESOARRECORDINOUTPUTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribeSoarRecordInOutputRequest : public RpcServiceRequest { +public: + DescribeSoarRecordInOutputRequest(); + ~DescribeSoarRecordInOutputRequest(); + std::string getActionUuid() const; + void setActionUuid(const std::string &actionUuid); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string actionUuid_; + std::string roleFor_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBESOARRECORDINOUTPUTREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeSoarRecordInOutputResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeSoarRecordInOutputResult.h new file mode 100644 index 000000000..c0ee6070a --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeSoarRecordInOutputResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBESOARRECORDINOUTPUTRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBESOARRECORDINOUTPUTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribeSoarRecordInOutputResult : public ServiceResult + { + public: + + + DescribeSoarRecordInOutputResult(); + explicit DescribeSoarRecordInOutputResult(const std::string &payload); + ~DescribeSoarRecordInOutputResult(); + std::string getInOutputInfo()const; + + protected: + void parse(const std::string &payload); + private: + std::string inOutputInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBESOARRECORDINOUTPUTRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeSoarRecordsRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeSoarRecordsRequest.h new file mode 100644 index 000000000..70968dc01 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeSoarRecordsRequest.h @@ -0,0 +1,78 @@ +/* + * 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_SOPHONSOAR_MODEL_DESCRIBESOARRECORDSREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBESOARRECORDSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribeSoarRecordsRequest : public RpcServiceRequest { +public: + DescribeSoarRecordsRequest(); + ~DescribeSoarRecordsRequest(); + std::string getTaskflowMd5() const; + void setTaskflowMd5(const std::string &taskflowMd5); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getTaskType() const; + void setTaskType(const std::string &taskType); + long getEndMillis() const; + void setEndMillis(long endMillis); + long getStartMillis() const; + void setStartMillis(long startMillis); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getTaskStatus() const; + void setTaskStatus(const std::string &taskStatus); + std::string getPlaybookUuid() const; + void setPlaybookUuid(const std::string &playbookUuid); + std::string getRequestUuid() const; + void setRequestUuid(const std::string &requestUuid); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getTriggerUser() const; + void setTriggerUser(const std::string &triggerUser); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string taskflowMd5_; + std::string roleFor_; + std::string taskType_; + long endMillis_; + long startMillis_; + int pageNumber_; + std::string taskStatus_; + std::string playbookUuid_; + std::string requestUuid_; + int pageSize_; + std::string roleType_; + std::string triggerUser_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBESOARRECORDSREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeSoarRecordsResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeSoarRecordsResult.h new file mode 100644 index 000000000..849f0dc4f --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeSoarRecordsResult.h @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBESOARRECORDSRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBESOARRECORDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribeSoarRecordsResult : public ServiceResult + { + public: + struct Page + { + int totalCount; + int pageSize; + int pageNumber; + }; + struct Data + { + std::string status; + std::string triggerType; + long endTime; + long startTime; + std::string errorMsg; + std::string taskTenantId; + std::string resultMessage; + int success; + std::string triggerUser; + std::string triggerDataId; + std::string resultDetailInfo; + std::string taskName; + std::string dataSourceName; + std::string taskType; + std::string requestUuid; + std::string rawEventReq; + std::string taskflowMd5; + int flowTag; + }; + + + DescribeSoarRecordsResult(); + explicit DescribeSoarRecordsResult(const std::string &payload); + ~DescribeSoarRecordsResult(); + Page getPage()const; + std::vector getSoarExecuteRecords()const; + + protected: + void parse(const std::string &payload); + private: + Page page_; + std::vector soarExecuteRecords_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBESOARRECORDSRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeSoarTaskAndActionsRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeSoarTaskAndActionsRequest.h new file mode 100644 index 000000000..99c8ee8bb --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeSoarTaskAndActionsRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBESOARTASKANDACTIONSREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBESOARTASKANDACTIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribeSoarTaskAndActionsRequest : public RpcServiceRequest { +public: + DescribeSoarTaskAndActionsRequest(); + ~DescribeSoarTaskAndActionsRequest(); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getRequestUuid() const; + void setRequestUuid(const std::string &requestUuid); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string roleFor_; + std::string requestUuid_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBESOARTASKANDACTIONSREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeSoarTaskAndActionsResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeSoarTaskAndActionsResult.h new file mode 100644 index 000000000..2200c62ab --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeSoarTaskAndActionsResult.h @@ -0,0 +1,103 @@ +/* + * 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_SOPHONSOAR_MODEL_DESCRIBESOARTASKANDACTIONSRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBESOARTASKANDACTIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribeSoarTaskAndActionsResult : public ServiceResult + { + public: + struct Details + { + struct Action + { + std::string status; + std::string triggerType; + std::string action; + std::string actionUuid; + long endTime; + std::string nodeName; + long startTime; + std::string taskUuid; + std::string taskTenantId; + std::string srcHostName; + std::string taskStatus; + std::string assetName; + std::string triggerUser; + std::string triggerDataId; + std::string tenantId; + std::string taskName; + std::string dataSourceName; + std::string nodeType; + std::string taskType; + std::string nodeId; + std::string eventId; + std::string component; + std::string requestUuid; + }; + std::string sao; + std::string status; + int all; + std::string triggerType; + long endTime; + std::vector actions; + std::string taskFlowMd5; + long startTime; + std::string taskUuid; + std::string errorMsg; + std::string taskTenantId; + int actionLogNum; + std::string resultMessage; + int success; + std::string triggerUser; + std::string triggerDataId; + std::string resultLevel; + std::string resultDetailInfo; + std::string taskName; + std::string dataSourceName; + std::string taskType; + std::string requestUuid; + std::string rawEventReq; + }; + + + DescribeSoarTaskAndActionsResult(); + explicit DescribeSoarTaskAndActionsResult(const std::string &payload); + ~DescribeSoarTaskAndActionsResult(); + Details getDetails()const; + + protected: + void parse(const std::string &payload); + private: + Details details_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBESOARTASKANDACTIONSRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeSophonCommandsRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeSophonCommandsRequest.h new file mode 100644 index 000000000..35f8f9cce --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeSophonCommandsRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBESOPHONCOMMANDSREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBESOPHONCOMMANDSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribeSophonCommandsRequest : public RpcServiceRequest { +public: + DescribeSophonCommandsRequest(); + ~DescribeSophonCommandsRequest(); + std::string getActionType() const; + void setActionType(const std::string &actionType); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getName() const; + void setName(const std::string &name); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string actionType_; + std::string roleFor_; + std::string name_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBESOPHONCOMMANDSREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeSophonCommandsResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeSophonCommandsResult.h new file mode 100644 index 000000000..adb8485ad --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescribeSophonCommandsResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBESOPHONCOMMANDSRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBESOPHONCOMMANDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT DescribeSophonCommandsResult : public ServiceResult + { + public: + struct DataItem + { + struct ParamConfigItem + { + std::string field; + bool necessary; + std::string checkField; + std::string value; + }; + std::string commandTag; + std::string description; + std::string actionType; + std::string displayName; + std::string commandEntity; + std::string taskConfig; + std::vector paramConfig; + std::string name; + }; + + + DescribeSophonCommandsResult(); + explicit DescribeSophonCommandsResult(const std::string &payload); + ~DescribeSophonCommandsResult(); + std::vector getData()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBESOPHONCOMMANDSRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescriberPython3ScriptLogsRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescriberPython3ScriptLogsRequest.h new file mode 100644 index 000000000..1d0e3129f --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescriberPython3ScriptLogsRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBERPYTHON3SCRIPTLOGSREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBERPYTHON3SCRIPTLOGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT DescriberPython3ScriptLogsRequest : public RpcServiceRequest { +public: + DescriberPython3ScriptLogsRequest(); + ~DescriberPython3ScriptLogsRequest(); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getRequestUuid() const; + void setRequestUuid(const std::string &requestUuid); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string roleFor_; + std::string requestUuid_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBERPYTHON3SCRIPTLOGSREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/DescriberPython3ScriptLogsResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/DescriberPython3ScriptLogsResult.h new file mode 100644 index 000000000..4f4768498 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/DescriberPython3ScriptLogsResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBERPYTHON3SCRIPTLOGSRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBERPYTHON3SCRIPTLOGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT DescriberPython3ScriptLogsResult : public ServiceResult + { + public: + + + DescriberPython3ScriptLogsResult(); + explicit DescriberPython3ScriptLogsResult(const std::string &payload); + ~DescriberPython3ScriptLogsResult(); + std::string getRunResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string runResult_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_DESCRIBERPYTHON3SCRIPTLOGSRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/ModifyComponentAssetRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/ModifyComponentAssetRequest.h new file mode 100644 index 000000000..e0c2d2ca0 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/ModifyComponentAssetRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_MODIFYCOMPONENTASSETREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_MODIFYCOMPONENTASSETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT ModifyComponentAssetRequest : public RpcServiceRequest { +public: + ModifyComponentAssetRequest(); + ~ModifyComponentAssetRequest(); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getAssetConfig() const; + void setAssetConfig(const std::string &assetConfig); + +private: + std::string roleFor_; + std::string roleType_; + std::string lang_; + std::string assetConfig_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_MODIFYCOMPONENTASSETREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/ModifyComponentAssetResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/ModifyComponentAssetResult.h new file mode 100644 index 000000000..0d7a7d024 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/ModifyComponentAssetResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_MODIFYCOMPONENTASSETRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_MODIFYCOMPONENTASSETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT ModifyComponentAssetResult : public ServiceResult + { + public: + + + ModifyComponentAssetResult(); + explicit ModifyComponentAssetResult(const std::string &payload); + ~ModifyComponentAssetResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_MODIFYCOMPONENTASSETRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/ModifyPlaybookInputOutputRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/ModifyPlaybookInputOutputRequest.h new file mode 100644 index 000000000..86028d5e7 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/ModifyPlaybookInputOutputRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_MODIFYPLAYBOOKINPUTOUTPUTREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_MODIFYPLAYBOOKINPUTOUTPUTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT ModifyPlaybookInputOutputRequest : public RpcServiceRequest { +public: + ModifyPlaybookInputOutputRequest(); + ~ModifyPlaybookInputOutputRequest(); + std::string getParamType() const; + void setParamType(const std::string ¶mType); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getInputParams() const; + void setInputParams(const std::string &inputParams); + std::string getOutputParams() const; + void setOutputParams(const std::string &outputParams); + std::string getPlaybookUuid() const; + void setPlaybookUuid(const std::string &playbookUuid); + std::string getExeConfig() const; + void setExeConfig(const std::string &exeConfig); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string paramType_; + std::string roleFor_; + std::string inputParams_; + std::string outputParams_; + std::string playbookUuid_; + std::string exeConfig_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_MODIFYPLAYBOOKINPUTOUTPUTREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/ModifyPlaybookInputOutputResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/ModifyPlaybookInputOutputResult.h new file mode 100644 index 000000000..e50d19391 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/ModifyPlaybookInputOutputResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_MODIFYPLAYBOOKINPUTOUTPUTRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_MODIFYPLAYBOOKINPUTOUTPUTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT ModifyPlaybookInputOutputResult : public ServiceResult + { + public: + + + ModifyPlaybookInputOutputResult(); + explicit ModifyPlaybookInputOutputResult(const std::string &payload); + ~ModifyPlaybookInputOutputResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_MODIFYPLAYBOOKINPUTOUTPUTRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/ModifyPlaybookInstanceStatusRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/ModifyPlaybookInstanceStatusRequest.h new file mode 100644 index 000000000..85f6ad5aa --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/ModifyPlaybookInstanceStatusRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_MODIFYPLAYBOOKINSTANCESTATUSREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_MODIFYPLAYBOOKINSTANCESTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT ModifyPlaybookInstanceStatusRequest : public RpcServiceRequest { +public: + ModifyPlaybookInstanceStatusRequest(); + ~ModifyPlaybookInstanceStatusRequest(); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + int getActive() const; + void setActive(int active); + std::string getPlaybookUuid() const; + void setPlaybookUuid(const std::string &playbookUuid); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string roleFor_; + int active_; + std::string playbookUuid_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_MODIFYPLAYBOOKINSTANCESTATUSREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/ModifyPlaybookInstanceStatusResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/ModifyPlaybookInstanceStatusResult.h new file mode 100644 index 000000000..7675f2920 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/ModifyPlaybookInstanceStatusResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_MODIFYPLAYBOOKINSTANCESTATUSRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_MODIFYPLAYBOOKINSTANCESTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT ModifyPlaybookInstanceStatusResult : public ServiceResult + { + public: + + + ModifyPlaybookInstanceStatusResult(); + explicit ModifyPlaybookInstanceStatusResult(const std::string &payload); + ~ModifyPlaybookInstanceStatusResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_MODIFYPLAYBOOKINSTANCESTATUSRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/ModifyPlaybookRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/ModifyPlaybookRequest.h new file mode 100644 index 000000000..470d059c0 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/ModifyPlaybookRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_MODIFYPLAYBOOKREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_MODIFYPLAYBOOKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT ModifyPlaybookRequest : public RpcServiceRequest { +public: + ModifyPlaybookRequest(); + ~ModifyPlaybookRequest(); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getTaskflow() const; + void setTaskflow(const std::string &taskflow); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getPlaybookUuid() const; + void setPlaybookUuid(const std::string &playbookUuid); + std::string getDisplayName() const; + void setDisplayName(const std::string &displayName); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string roleFor_; + std::string taskflow_; + std::string description_; + std::string playbookUuid_; + std::string displayName_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_MODIFYPLAYBOOKREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/ModifyPlaybookResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/ModifyPlaybookResult.h new file mode 100644 index 000000000..914d97f82 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/ModifyPlaybookResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_MODIFYPLAYBOOKRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_MODIFYPLAYBOOKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT ModifyPlaybookResult : public ServiceResult + { + public: + + + ModifyPlaybookResult(); + explicit ModifyPlaybookResult(const std::string &payload); + ~ModifyPlaybookResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_MODIFYPLAYBOOKRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/PublishPlaybookRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/PublishPlaybookRequest.h new file mode 100644 index 000000000..368a449f8 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/PublishPlaybookRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_PUBLISHPLAYBOOKREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_PUBLISHPLAYBOOKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT PublishPlaybookRequest : public RpcServiceRequest { +public: + PublishPlaybookRequest(); + ~PublishPlaybookRequest(); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getPlaybookUuid() const; + void setPlaybookUuid(const std::string &playbookUuid); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string roleFor_; + std::string description_; + std::string playbookUuid_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_PUBLISHPLAYBOOKREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/PublishPlaybookResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/PublishPlaybookResult.h new file mode 100644 index 000000000..b58c852f5 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/PublishPlaybookResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_PUBLISHPLAYBOOKRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_PUBLISHPLAYBOOKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT PublishPlaybookResult : public ServiceResult + { + public: + + + PublishPlaybookResult(); + explicit PublishPlaybookResult(const std::string &payload); + ~PublishPlaybookResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_PUBLISHPLAYBOOKRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/QueryTreeDataRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/QueryTreeDataRequest.h new file mode 100644 index 000000000..505f76c1e --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/QueryTreeDataRequest.h @@ -0,0 +1,48 @@ +/* + * 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_SOPHONSOAR_MODEL_QUERYTREEDATAREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_QUERYTREEDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT QueryTreeDataRequest : public RpcServiceRequest { +public: + QueryTreeDataRequest(); + ~QueryTreeDataRequest(); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string roleFor_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_QUERYTREEDATAREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/QueryTreeDataResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/QueryTreeDataResult.h new file mode 100644 index 000000000..ba38bf9a9 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/QueryTreeDataResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_QUERYTREEDATARESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_QUERYTREEDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT QueryTreeDataResult : public ServiceResult + { + public: + + + QueryTreeDataResult(); + explicit QueryTreeDataResult(const std::string &payload); + ~QueryTreeDataResult(); + std::string getPlaybooks()const; + + protected: + void parse(const std::string &payload); + private: + std::string playbooks_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_QUERYTREEDATARESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/RenamePlaybookNodeRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/RenamePlaybookNodeRequest.h new file mode 100644 index 000000000..57989aaf6 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/RenamePlaybookNodeRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_RENAMEPLAYBOOKNODEREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_RENAMEPLAYBOOKNODEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT RenamePlaybookNodeRequest : public RpcServiceRequest { +public: + RenamePlaybookNodeRequest(); + ~RenamePlaybookNodeRequest(); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getNewNodeName() const; + void setNewNodeName(const std::string &newNodeName); + std::string getOldNodeName() const; + void setOldNodeName(const std::string &oldNodeName); + std::string getPlaybookUuid() const; + void setPlaybookUuid(const std::string &playbookUuid); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string roleFor_; + std::string newNodeName_; + std::string oldNodeName_; + std::string playbookUuid_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_RENAMEPLAYBOOKNODEREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/RenamePlaybookNodeResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/RenamePlaybookNodeResult.h new file mode 100644 index 000000000..f25ac4d6b --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/RenamePlaybookNodeResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_RENAMEPLAYBOOKNODERESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_RENAMEPLAYBOOKNODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT RenamePlaybookNodeResult : public ServiceResult + { + public: + + + RenamePlaybookNodeResult(); + explicit RenamePlaybookNodeResult(const std::string &payload); + ~RenamePlaybookNodeResult(); + std::string getRenameResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string renameResult_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_RENAMEPLAYBOOKNODERESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/RevertPlaybookReleaseRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/RevertPlaybookReleaseRequest.h new file mode 100644 index 000000000..5d03cde00 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/RevertPlaybookReleaseRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_REVERTPLAYBOOKRELEASEREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_REVERTPLAYBOOKRELEASEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT RevertPlaybookReleaseRequest : public RpcServiceRequest { +public: + RevertPlaybookReleaseRequest(); + ~RevertPlaybookReleaseRequest(); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getPlaybookUuid() const; + void setPlaybookUuid(const std::string &playbookUuid); + int getPlayReleaseId() const; + void setPlayReleaseId(int playReleaseId); + bool getIsPublish() const; + void setIsPublish(bool isPublish); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string roleFor_; + std::string playbookUuid_; + int playReleaseId_; + bool isPublish_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_REVERTPLAYBOOKRELEASEREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/RevertPlaybookReleaseResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/RevertPlaybookReleaseResult.h new file mode 100644 index 000000000..020bef4a3 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/RevertPlaybookReleaseResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_REVERTPLAYBOOKRELEASERESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_REVERTPLAYBOOKRELEASERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT RevertPlaybookReleaseResult : public ServiceResult + { + public: + + + RevertPlaybookReleaseResult(); + explicit RevertPlaybookReleaseResult(const std::string &payload); + ~RevertPlaybookReleaseResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_REVERTPLAYBOOKRELEASERESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/RunPython3ScriptRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/RunPython3ScriptRequest.h new file mode 100644 index 000000000..57f579300 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/RunPython3ScriptRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_RUNPYTHON3SCRIPTREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_RUNPYTHON3SCRIPTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT RunPython3ScriptRequest : public RpcServiceRequest { +public: + RunPython3ScriptRequest(); + ~RunPython3ScriptRequest(); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getParams() const; + void setParams(const std::string ¶ms); + std::string getNodeName() const; + void setNodeName(const std::string &nodeName); + std::string getPlaybookUuid() const; + void setPlaybookUuid(const std::string &playbookUuid); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getPythonScript() const; + void setPythonScript(const std::string &pythonScript); + +private: + std::string roleFor_; + std::string params_; + std::string nodeName_; + std::string playbookUuid_; + std::string roleType_; + std::string lang_; + std::string pythonScript_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_RUNPYTHON3SCRIPTREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/RunPython3ScriptResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/RunPython3ScriptResult.h new file mode 100644 index 000000000..f0b8cf8fc --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/RunPython3ScriptResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_RUNPYTHON3SCRIPTRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_RUNPYTHON3SCRIPTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT RunPython3ScriptResult : public ServiceResult + { + public: + + + RunPython3ScriptResult(); + explicit RunPython3ScriptResult(const std::string &payload); + ~RunPython3ScriptResult(); + std::string getRunResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string runResult_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_RUNPYTHON3SCRIPTRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/TriggerPlaybookRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/TriggerPlaybookRequest.h new file mode 100644 index 000000000..6ec8af894 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/TriggerPlaybookRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_TRIGGERPLAYBOOKREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_TRIGGERPLAYBOOKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT TriggerPlaybookRequest : public RpcServiceRequest { +public: + TriggerPlaybookRequest(); + ~TriggerPlaybookRequest(); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getInputParam() const; + void setInputParam(const std::string &inputParam); + std::string getPlaybookUuid() const; + void setPlaybookUuid(const std::string &playbookUuid); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string roleFor_; + std::string inputParam_; + std::string playbookUuid_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_TRIGGERPLAYBOOKREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/TriggerPlaybookResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/TriggerPlaybookResult.h new file mode 100644 index 000000000..8e27ca237 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/TriggerPlaybookResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_TRIGGERPLAYBOOKRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_TRIGGERPLAYBOOKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT TriggerPlaybookResult : public ServiceResult + { + public: + + + TriggerPlaybookResult(); + explicit TriggerPlaybookResult(const std::string &payload); + ~TriggerPlaybookResult(); + std::string getTriggerUuid()const; + + protected: + void parse(const std::string &payload); + private: + std::string triggerUuid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_TRIGGERPLAYBOOKRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/TriggerProcessTaskRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/TriggerProcessTaskRequest.h new file mode 100644 index 000000000..8bd07204d --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/TriggerProcessTaskRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_TRIGGERPROCESSTASKREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_TRIGGERPROCESSTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT TriggerProcessTaskRequest : public RpcServiceRequest { +public: + TriggerProcessTaskRequest(); + ~TriggerProcessTaskRequest(); + std::string getActionType() const; + void setActionType(const std::string &actionType); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + +private: + std::string actionType_; + std::string roleFor_; + std::string roleType_; + std::string lang_; + std::string taskId_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_TRIGGERPROCESSTASKREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/TriggerProcessTaskResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/TriggerProcessTaskResult.h new file mode 100644 index 000000000..0c3bcd75c --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/TriggerProcessTaskResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_TRIGGERPROCESSTASKRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_TRIGGERPROCESSTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT TriggerProcessTaskResult : public ServiceResult + { + public: + + + TriggerProcessTaskResult(); + explicit TriggerProcessTaskResult(const std::string &payload); + ~TriggerProcessTaskResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_TRIGGERPROCESSTASKRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/TriggerSophonPlaybookRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/TriggerSophonPlaybookRequest.h new file mode 100644 index 000000000..b41e73a36 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/TriggerSophonPlaybookRequest.h @@ -0,0 +1,66 @@ +/* + * 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_SOPHONSOAR_MODEL_TRIGGERSOPHONPLAYBOOKREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_TRIGGERSOPHONPLAYBOOKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT TriggerSophonPlaybookRequest : public RpcServiceRequest { +public: + TriggerSophonPlaybookRequest(); + ~TriggerSophonPlaybookRequest(); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getInputParams() const; + void setInputParams(const std::string &inputParams); + std::string getCommandName() const; + void setCommandName(const std::string &commandName); + std::string getSophonTaskId() const; + void setSophonTaskId(const std::string &sophonTaskId); + std::string getTriggerType() const; + void setTriggerType(const std::string &triggerType); + std::string getUuid() const; + void setUuid(const std::string &uuid); + std::string getTriggerSource() const; + void setTriggerSource(const std::string &triggerSource); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string roleFor_; + std::string inputParams_; + std::string commandName_; + std::string sophonTaskId_; + std::string triggerType_; + std::string uuid_; + std::string triggerSource_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_TRIGGERSOPHONPLAYBOOKREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/TriggerSophonPlaybookResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/TriggerSophonPlaybookResult.h new file mode 100644 index 000000000..352e7a260 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/TriggerSophonPlaybookResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_TRIGGERSOPHONPLAYBOOKRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_TRIGGERSOPHONPLAYBOOKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT TriggerSophonPlaybookResult : public ServiceResult + { + public: + struct Data + { + std::string sophonTaskId; + }; + + + TriggerSophonPlaybookResult(); + explicit TriggerSophonPlaybookResult(const std::string &payload); + ~TriggerSophonPlaybookResult(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_TRIGGERSOPHONPLAYBOOKRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/VerifyPlaybookRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/VerifyPlaybookRequest.h new file mode 100644 index 000000000..57d4b6f28 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/VerifyPlaybookRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_VERIFYPLAYBOOKREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_VERIFYPLAYBOOKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT VerifyPlaybookRequest : public RpcServiceRequest { +public: + VerifyPlaybookRequest(); + ~VerifyPlaybookRequest(); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getTaskFlow() const; + void setTaskFlow(const std::string &taskFlow); + std::string getPlaybookUuid() const; + void setPlaybookUuid(const std::string &playbookUuid); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string roleFor_; + std::string taskFlow_; + std::string playbookUuid_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_VERIFYPLAYBOOKREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/VerifyPlaybookResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/VerifyPlaybookResult.h new file mode 100644 index 000000000..1c85dc371 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/VerifyPlaybookResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_VERIFYPLAYBOOKRESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_VERIFYPLAYBOOKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT VerifyPlaybookResult : public ServiceResult + { + public: + struct Data + { + std::string nodeName; + std::string riskLevel; + std::string detail; + }; + + + VerifyPlaybookResult(); + explicit VerifyPlaybookResult(const std::string &payload); + ~VerifyPlaybookResult(); + std::vector getCheckTaskInfos()const; + + protected: + void parse(const std::string &payload); + private: + std::vector checkTaskInfos_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_VERIFYPLAYBOOKRESULT_H_ \ No newline at end of file diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/VerifyPythonFileRequest.h b/sophonsoar/include/alibabacloud/sophonsoar/model/VerifyPythonFileRequest.h new file mode 100644 index 000000000..5b74147c2 --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/VerifyPythonFileRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_VERIFYPYTHONFILEREQUEST_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_VERIFYPYTHONFILEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sophonsoar { +namespace Model { +class ALIBABACLOUD_SOPHONSOAR_EXPORT VerifyPythonFileRequest : public RpcServiceRequest { +public: + VerifyPythonFileRequest(); + ~VerifyPythonFileRequest(); + std::string getRoleFor() const; + void setRoleFor(const std::string &roleFor); + std::string getContent() const; + void setContent(const std::string &content); + std::string getRoleType() const; + void setRoleType(const std::string &roleType); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string roleFor_; + std::string content_; + std::string roleType_; + std::string lang_; +}; +} // namespace Model +} // namespace Sophonsoar +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_VERIFYPYTHONFILEREQUEST_H_ diff --git a/sophonsoar/include/alibabacloud/sophonsoar/model/VerifyPythonFileResult.h b/sophonsoar/include/alibabacloud/sophonsoar/model/VerifyPythonFileResult.h new file mode 100644 index 000000000..028add20f --- /dev/null +++ b/sophonsoar/include/alibabacloud/sophonsoar/model/VerifyPythonFileResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SOPHONSOAR_MODEL_VERIFYPYTHONFILERESULT_H_ +#define ALIBABACLOUD_SOPHONSOAR_MODEL_VERIFYPYTHONFILERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sophonsoar + { + namespace Model + { + class ALIBABACLOUD_SOPHONSOAR_EXPORT VerifyPythonFileResult : public ServiceResult + { + public: + struct SyntaxItem + { + std::string message; + int startLineNumber; + int endLineNumber; + int endColumn; + int severity; + int startColumn; + }; + + + VerifyPythonFileResult(); + explicit VerifyPythonFileResult(const std::string &payload); + ~VerifyPythonFileResult(); + std::vector getSyntax()const; + + protected: + void parse(const std::string &payload); + private: + std::vector syntax_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SOPHONSOAR_MODEL_VERIFYPYTHONFILERESULT_H_ \ No newline at end of file diff --git a/sophonsoar/src/SophonsoarClient.cc b/sophonsoar/src/SophonsoarClient.cc new file mode 100644 index 000000000..8f819e239 --- /dev/null +++ b/sophonsoar/src/SophonsoarClient.cc @@ -0,0 +1,1817 @@ +/* + * 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 +#include + +using namespace AlibabaCloud; +using namespace AlibabaCloud::Location; +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +namespace +{ + const std::string SERVICE_NAME = "sophonsoar"; +} + +SophonsoarClient::SophonsoarClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +SophonsoarClient::SophonsoarClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +SophonsoarClient::SophonsoarClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +SophonsoarClient::~SophonsoarClient() +{} + +SophonsoarClient::BatchModifyInstanceStatusOutcome SophonsoarClient::batchModifyInstanceStatus(const BatchModifyInstanceStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BatchModifyInstanceStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BatchModifyInstanceStatusOutcome(BatchModifyInstanceStatusResult(outcome.result())); + else + return BatchModifyInstanceStatusOutcome(outcome.error()); +} + +void SophonsoarClient::batchModifyInstanceStatusAsync(const BatchModifyInstanceStatusRequest& request, const BatchModifyInstanceStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, batchModifyInstanceStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::BatchModifyInstanceStatusOutcomeCallable SophonsoarClient::batchModifyInstanceStatusCallable(const BatchModifyInstanceStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->batchModifyInstanceStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::ComparePlaybooksOutcome SophonsoarClient::comparePlaybooks(const ComparePlaybooksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ComparePlaybooksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ComparePlaybooksOutcome(ComparePlaybooksResult(outcome.result())); + else + return ComparePlaybooksOutcome(outcome.error()); +} + +void SophonsoarClient::comparePlaybooksAsync(const ComparePlaybooksRequest& request, const ComparePlaybooksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, comparePlaybooks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::ComparePlaybooksOutcomeCallable SophonsoarClient::comparePlaybooksCallable(const ComparePlaybooksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->comparePlaybooks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::ConvertPlaybookOutcome SophonsoarClient::convertPlaybook(const ConvertPlaybookRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ConvertPlaybookOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ConvertPlaybookOutcome(ConvertPlaybookResult(outcome.result())); + else + return ConvertPlaybookOutcome(outcome.error()); +} + +void SophonsoarClient::convertPlaybookAsync(const ConvertPlaybookRequest& request, const ConvertPlaybookAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, convertPlaybook(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::ConvertPlaybookOutcomeCallable SophonsoarClient::convertPlaybookCallable(const ConvertPlaybookRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->convertPlaybook(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::CreatePlaybookOutcome SophonsoarClient::createPlaybook(const CreatePlaybookRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreatePlaybookOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreatePlaybookOutcome(CreatePlaybookResult(outcome.result())); + else + return CreatePlaybookOutcome(outcome.error()); +} + +void SophonsoarClient::createPlaybookAsync(const CreatePlaybookRequest& request, const CreatePlaybookAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createPlaybook(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::CreatePlaybookOutcomeCallable SophonsoarClient::createPlaybookCallable(const CreatePlaybookRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createPlaybook(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::DebugPlaybookOutcome SophonsoarClient::debugPlaybook(const DebugPlaybookRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DebugPlaybookOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DebugPlaybookOutcome(DebugPlaybookResult(outcome.result())); + else + return DebugPlaybookOutcome(outcome.error()); +} + +void SophonsoarClient::debugPlaybookAsync(const DebugPlaybookRequest& request, const DebugPlaybookAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, debugPlaybook(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::DebugPlaybookOutcomeCallable SophonsoarClient::debugPlaybookCallable(const DebugPlaybookRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->debugPlaybook(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::DeleteComponentAssetOutcome SophonsoarClient::deleteComponentAsset(const DeleteComponentAssetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteComponentAssetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteComponentAssetOutcome(DeleteComponentAssetResult(outcome.result())); + else + return DeleteComponentAssetOutcome(outcome.error()); +} + +void SophonsoarClient::deleteComponentAssetAsync(const DeleteComponentAssetRequest& request, const DeleteComponentAssetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteComponentAsset(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::DeleteComponentAssetOutcomeCallable SophonsoarClient::deleteComponentAssetCallable(const DeleteComponentAssetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteComponentAsset(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::DeletePlaybookOutcome SophonsoarClient::deletePlaybook(const DeletePlaybookRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeletePlaybookOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeletePlaybookOutcome(DeletePlaybookResult(outcome.result())); + else + return DeletePlaybookOutcome(outcome.error()); +} + +void SophonsoarClient::deletePlaybookAsync(const DeletePlaybookRequest& request, const DeletePlaybookAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deletePlaybook(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::DeletePlaybookOutcomeCallable SophonsoarClient::deletePlaybookCallable(const DeletePlaybookRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deletePlaybook(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::DescribeComponentAssetFormOutcome SophonsoarClient::describeComponentAssetForm(const DescribeComponentAssetFormRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeComponentAssetFormOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeComponentAssetFormOutcome(DescribeComponentAssetFormResult(outcome.result())); + else + return DescribeComponentAssetFormOutcome(outcome.error()); +} + +void SophonsoarClient::describeComponentAssetFormAsync(const DescribeComponentAssetFormRequest& request, const DescribeComponentAssetFormAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeComponentAssetForm(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::DescribeComponentAssetFormOutcomeCallable SophonsoarClient::describeComponentAssetFormCallable(const DescribeComponentAssetFormRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeComponentAssetForm(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::DescribeComponentAssetsOutcome SophonsoarClient::describeComponentAssets(const DescribeComponentAssetsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeComponentAssetsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeComponentAssetsOutcome(DescribeComponentAssetsResult(outcome.result())); + else + return DescribeComponentAssetsOutcome(outcome.error()); +} + +void SophonsoarClient::describeComponentAssetsAsync(const DescribeComponentAssetsRequest& request, const DescribeComponentAssetsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeComponentAssets(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::DescribeComponentAssetsOutcomeCallable SophonsoarClient::describeComponentAssetsCallable(const DescribeComponentAssetsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeComponentAssets(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::DescribeComponentListOutcome SophonsoarClient::describeComponentList(const DescribeComponentListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeComponentListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeComponentListOutcome(DescribeComponentListResult(outcome.result())); + else + return DescribeComponentListOutcome(outcome.error()); +} + +void SophonsoarClient::describeComponentListAsync(const DescribeComponentListRequest& request, const DescribeComponentListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeComponentList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::DescribeComponentListOutcomeCallable SophonsoarClient::describeComponentListCallable(const DescribeComponentListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeComponentList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::DescribeComponentPlaybookOutcome SophonsoarClient::describeComponentPlaybook(const DescribeComponentPlaybookRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeComponentPlaybookOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeComponentPlaybookOutcome(DescribeComponentPlaybookResult(outcome.result())); + else + return DescribeComponentPlaybookOutcome(outcome.error()); +} + +void SophonsoarClient::describeComponentPlaybookAsync(const DescribeComponentPlaybookRequest& request, const DescribeComponentPlaybookAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeComponentPlaybook(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::DescribeComponentPlaybookOutcomeCallable SophonsoarClient::describeComponentPlaybookCallable(const DescribeComponentPlaybookRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeComponentPlaybook(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::DescribeComponentsJsOutcome SophonsoarClient::describeComponentsJs(const DescribeComponentsJsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeComponentsJsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeComponentsJsOutcome(DescribeComponentsJsResult(outcome.result())); + else + return DescribeComponentsJsOutcome(outcome.error()); +} + +void SophonsoarClient::describeComponentsJsAsync(const DescribeComponentsJsRequest& request, const DescribeComponentsJsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeComponentsJs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::DescribeComponentsJsOutcomeCallable SophonsoarClient::describeComponentsJsCallable(const DescribeComponentsJsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeComponentsJs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::DescribeDistinctReleasesOutcome SophonsoarClient::describeDistinctReleases(const DescribeDistinctReleasesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDistinctReleasesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDistinctReleasesOutcome(DescribeDistinctReleasesResult(outcome.result())); + else + return DescribeDistinctReleasesOutcome(outcome.error()); +} + +void SophonsoarClient::describeDistinctReleasesAsync(const DescribeDistinctReleasesRequest& request, const DescribeDistinctReleasesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDistinctReleases(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::DescribeDistinctReleasesOutcomeCallable SophonsoarClient::describeDistinctReleasesCallable(const DescribeDistinctReleasesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDistinctReleases(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::DescribeEnumItemsOutcome SophonsoarClient::describeEnumItems(const DescribeEnumItemsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEnumItemsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEnumItemsOutcome(DescribeEnumItemsResult(outcome.result())); + else + return DescribeEnumItemsOutcome(outcome.error()); +} + +void SophonsoarClient::describeEnumItemsAsync(const DescribeEnumItemsRequest& request, const DescribeEnumItemsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEnumItems(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::DescribeEnumItemsOutcomeCallable SophonsoarClient::describeEnumItemsCallable(const DescribeEnumItemsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEnumItems(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::DescribeExecutePlaybooksOutcome SophonsoarClient::describeExecutePlaybooks(const DescribeExecutePlaybooksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeExecutePlaybooksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeExecutePlaybooksOutcome(DescribeExecutePlaybooksResult(outcome.result())); + else + return DescribeExecutePlaybooksOutcome(outcome.error()); +} + +void SophonsoarClient::describeExecutePlaybooksAsync(const DescribeExecutePlaybooksRequest& request, const DescribeExecutePlaybooksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeExecutePlaybooks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::DescribeExecutePlaybooksOutcomeCallable SophonsoarClient::describeExecutePlaybooksCallable(const DescribeExecutePlaybooksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeExecutePlaybooks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::DescribeFieldOutcome SophonsoarClient::describeField(const DescribeFieldRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeFieldOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeFieldOutcome(DescribeFieldResult(outcome.result())); + else + return DescribeFieldOutcome(outcome.error()); +} + +void SophonsoarClient::describeFieldAsync(const DescribeFieldRequest& request, const DescribeFieldAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeField(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::DescribeFieldOutcomeCallable SophonsoarClient::describeFieldCallable(const DescribeFieldRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeField(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::DescribeLatestRecordSchemaOutcome SophonsoarClient::describeLatestRecordSchema(const DescribeLatestRecordSchemaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLatestRecordSchemaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLatestRecordSchemaOutcome(DescribeLatestRecordSchemaResult(outcome.result())); + else + return DescribeLatestRecordSchemaOutcome(outcome.error()); +} + +void SophonsoarClient::describeLatestRecordSchemaAsync(const DescribeLatestRecordSchemaRequest& request, const DescribeLatestRecordSchemaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLatestRecordSchema(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::DescribeLatestRecordSchemaOutcomeCallable SophonsoarClient::describeLatestRecordSchemaCallable(const DescribeLatestRecordSchemaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLatestRecordSchema(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::DescribeNodeParamTagsOutcome SophonsoarClient::describeNodeParamTags(const DescribeNodeParamTagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeNodeParamTagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeNodeParamTagsOutcome(DescribeNodeParamTagsResult(outcome.result())); + else + return DescribeNodeParamTagsOutcome(outcome.error()); +} + +void SophonsoarClient::describeNodeParamTagsAsync(const DescribeNodeParamTagsRequest& request, const DescribeNodeParamTagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeNodeParamTags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::DescribeNodeParamTagsOutcomeCallable SophonsoarClient::describeNodeParamTagsCallable(const DescribeNodeParamTagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeNodeParamTags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::DescribeNodeUsedInfosOutcome SophonsoarClient::describeNodeUsedInfos(const DescribeNodeUsedInfosRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeNodeUsedInfosOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeNodeUsedInfosOutcome(DescribeNodeUsedInfosResult(outcome.result())); + else + return DescribeNodeUsedInfosOutcome(outcome.error()); +} + +void SophonsoarClient::describeNodeUsedInfosAsync(const DescribeNodeUsedInfosRequest& request, const DescribeNodeUsedInfosAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeNodeUsedInfos(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::DescribeNodeUsedInfosOutcomeCallable SophonsoarClient::describeNodeUsedInfosCallable(const DescribeNodeUsedInfosRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeNodeUsedInfos(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::DescribePlaybookOutcome SophonsoarClient::describePlaybook(const DescribePlaybookRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePlaybookOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePlaybookOutcome(DescribePlaybookResult(outcome.result())); + else + return DescribePlaybookOutcome(outcome.error()); +} + +void SophonsoarClient::describePlaybookAsync(const DescribePlaybookRequest& request, const DescribePlaybookAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePlaybook(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::DescribePlaybookOutcomeCallable SophonsoarClient::describePlaybookCallable(const DescribePlaybookRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePlaybook(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::DescribePlaybookInputOutputOutcome SophonsoarClient::describePlaybookInputOutput(const DescribePlaybookInputOutputRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePlaybookInputOutputOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePlaybookInputOutputOutcome(DescribePlaybookInputOutputResult(outcome.result())); + else + return DescribePlaybookInputOutputOutcome(outcome.error()); +} + +void SophonsoarClient::describePlaybookInputOutputAsync(const DescribePlaybookInputOutputRequest& request, const DescribePlaybookInputOutputAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePlaybookInputOutput(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::DescribePlaybookInputOutputOutcomeCallable SophonsoarClient::describePlaybookInputOutputCallable(const DescribePlaybookInputOutputRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePlaybookInputOutput(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::DescribePlaybookMetricsOutcome SophonsoarClient::describePlaybookMetrics(const DescribePlaybookMetricsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePlaybookMetricsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePlaybookMetricsOutcome(DescribePlaybookMetricsResult(outcome.result())); + else + return DescribePlaybookMetricsOutcome(outcome.error()); +} + +void SophonsoarClient::describePlaybookMetricsAsync(const DescribePlaybookMetricsRequest& request, const DescribePlaybookMetricsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePlaybookMetrics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::DescribePlaybookMetricsOutcomeCallable SophonsoarClient::describePlaybookMetricsCallable(const DescribePlaybookMetricsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePlaybookMetrics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::DescribePlaybookNodesOutputOutcome SophonsoarClient::describePlaybookNodesOutput(const DescribePlaybookNodesOutputRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePlaybookNodesOutputOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePlaybookNodesOutputOutcome(DescribePlaybookNodesOutputResult(outcome.result())); + else + return DescribePlaybookNodesOutputOutcome(outcome.error()); +} + +void SophonsoarClient::describePlaybookNodesOutputAsync(const DescribePlaybookNodesOutputRequest& request, const DescribePlaybookNodesOutputAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePlaybookNodesOutput(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::DescribePlaybookNodesOutputOutcomeCallable SophonsoarClient::describePlaybookNodesOutputCallable(const DescribePlaybookNodesOutputRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePlaybookNodesOutput(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::DescribePlaybookNumberMetricsOutcome SophonsoarClient::describePlaybookNumberMetrics(const DescribePlaybookNumberMetricsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePlaybookNumberMetricsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePlaybookNumberMetricsOutcome(DescribePlaybookNumberMetricsResult(outcome.result())); + else + return DescribePlaybookNumberMetricsOutcome(outcome.error()); +} + +void SophonsoarClient::describePlaybookNumberMetricsAsync(const DescribePlaybookNumberMetricsRequest& request, const DescribePlaybookNumberMetricsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePlaybookNumberMetrics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::DescribePlaybookNumberMetricsOutcomeCallable SophonsoarClient::describePlaybookNumberMetricsCallable(const DescribePlaybookNumberMetricsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePlaybookNumberMetrics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::DescribePlaybookReleasesOutcome SophonsoarClient::describePlaybookReleases(const DescribePlaybookReleasesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePlaybookReleasesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePlaybookReleasesOutcome(DescribePlaybookReleasesResult(outcome.result())); + else + return DescribePlaybookReleasesOutcome(outcome.error()); +} + +void SophonsoarClient::describePlaybookReleasesAsync(const DescribePlaybookReleasesRequest& request, const DescribePlaybookReleasesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePlaybookReleases(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::DescribePlaybookReleasesOutcomeCallable SophonsoarClient::describePlaybookReleasesCallable(const DescribePlaybookReleasesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePlaybookReleases(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::DescribePlaybooksOutcome SophonsoarClient::describePlaybooks(const DescribePlaybooksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePlaybooksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePlaybooksOutcome(DescribePlaybooksResult(outcome.result())); + else + return DescribePlaybooksOutcome(outcome.error()); +} + +void SophonsoarClient::describePlaybooksAsync(const DescribePlaybooksRequest& request, const DescribePlaybooksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePlaybooks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::DescribePlaybooksOutcomeCallable SophonsoarClient::describePlaybooksCallable(const DescribePlaybooksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePlaybooks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::DescribePopApiOutcome SophonsoarClient::describePopApi(const DescribePopApiRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePopApiOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePopApiOutcome(DescribePopApiResult(outcome.result())); + else + return DescribePopApiOutcome(outcome.error()); +} + +void SophonsoarClient::describePopApiAsync(const DescribePopApiRequest& request, const DescribePopApiAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePopApi(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::DescribePopApiOutcomeCallable SophonsoarClient::describePopApiCallable(const DescribePopApiRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePopApi(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::DescribeProcessTaskCountOutcome SophonsoarClient::describeProcessTaskCount(const DescribeProcessTaskCountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeProcessTaskCountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeProcessTaskCountOutcome(DescribeProcessTaskCountResult(outcome.result())); + else + return DescribeProcessTaskCountOutcome(outcome.error()); +} + +void SophonsoarClient::describeProcessTaskCountAsync(const DescribeProcessTaskCountRequest& request, const DescribeProcessTaskCountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeProcessTaskCount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::DescribeProcessTaskCountOutcomeCallable SophonsoarClient::describeProcessTaskCountCallable(const DescribeProcessTaskCountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeProcessTaskCount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::DescribeProcessTasksOutcome SophonsoarClient::describeProcessTasks(const DescribeProcessTasksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeProcessTasksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeProcessTasksOutcome(DescribeProcessTasksResult(outcome.result())); + else + return DescribeProcessTasksOutcome(outcome.error()); +} + +void SophonsoarClient::describeProcessTasksAsync(const DescribeProcessTasksRequest& request, const DescribeProcessTasksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeProcessTasks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::DescribeProcessTasksOutcomeCallable SophonsoarClient::describeProcessTasksCallable(const DescribeProcessTasksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeProcessTasks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::DescribeSoarRecordActionOutputListOutcome SophonsoarClient::describeSoarRecordActionOutputList(const DescribeSoarRecordActionOutputListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSoarRecordActionOutputListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSoarRecordActionOutputListOutcome(DescribeSoarRecordActionOutputListResult(outcome.result())); + else + return DescribeSoarRecordActionOutputListOutcome(outcome.error()); +} + +void SophonsoarClient::describeSoarRecordActionOutputListAsync(const DescribeSoarRecordActionOutputListRequest& request, const DescribeSoarRecordActionOutputListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSoarRecordActionOutputList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::DescribeSoarRecordActionOutputListOutcomeCallable SophonsoarClient::describeSoarRecordActionOutputListCallable(const DescribeSoarRecordActionOutputListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSoarRecordActionOutputList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::DescribeSoarRecordInOutputOutcome SophonsoarClient::describeSoarRecordInOutput(const DescribeSoarRecordInOutputRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSoarRecordInOutputOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSoarRecordInOutputOutcome(DescribeSoarRecordInOutputResult(outcome.result())); + else + return DescribeSoarRecordInOutputOutcome(outcome.error()); +} + +void SophonsoarClient::describeSoarRecordInOutputAsync(const DescribeSoarRecordInOutputRequest& request, const DescribeSoarRecordInOutputAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSoarRecordInOutput(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::DescribeSoarRecordInOutputOutcomeCallable SophonsoarClient::describeSoarRecordInOutputCallable(const DescribeSoarRecordInOutputRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSoarRecordInOutput(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::DescribeSoarRecordsOutcome SophonsoarClient::describeSoarRecords(const DescribeSoarRecordsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSoarRecordsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSoarRecordsOutcome(DescribeSoarRecordsResult(outcome.result())); + else + return DescribeSoarRecordsOutcome(outcome.error()); +} + +void SophonsoarClient::describeSoarRecordsAsync(const DescribeSoarRecordsRequest& request, const DescribeSoarRecordsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSoarRecords(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::DescribeSoarRecordsOutcomeCallable SophonsoarClient::describeSoarRecordsCallable(const DescribeSoarRecordsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSoarRecords(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::DescribeSoarTaskAndActionsOutcome SophonsoarClient::describeSoarTaskAndActions(const DescribeSoarTaskAndActionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSoarTaskAndActionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSoarTaskAndActionsOutcome(DescribeSoarTaskAndActionsResult(outcome.result())); + else + return DescribeSoarTaskAndActionsOutcome(outcome.error()); +} + +void SophonsoarClient::describeSoarTaskAndActionsAsync(const DescribeSoarTaskAndActionsRequest& request, const DescribeSoarTaskAndActionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSoarTaskAndActions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::DescribeSoarTaskAndActionsOutcomeCallable SophonsoarClient::describeSoarTaskAndActionsCallable(const DescribeSoarTaskAndActionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSoarTaskAndActions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::DescribeSophonCommandsOutcome SophonsoarClient::describeSophonCommands(const DescribeSophonCommandsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSophonCommandsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSophonCommandsOutcome(DescribeSophonCommandsResult(outcome.result())); + else + return DescribeSophonCommandsOutcome(outcome.error()); +} + +void SophonsoarClient::describeSophonCommandsAsync(const DescribeSophonCommandsRequest& request, const DescribeSophonCommandsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSophonCommands(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::DescribeSophonCommandsOutcomeCallable SophonsoarClient::describeSophonCommandsCallable(const DescribeSophonCommandsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSophonCommands(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::DescriberPython3ScriptLogsOutcome SophonsoarClient::describerPython3ScriptLogs(const DescriberPython3ScriptLogsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescriberPython3ScriptLogsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescriberPython3ScriptLogsOutcome(DescriberPython3ScriptLogsResult(outcome.result())); + else + return DescriberPython3ScriptLogsOutcome(outcome.error()); +} + +void SophonsoarClient::describerPython3ScriptLogsAsync(const DescriberPython3ScriptLogsRequest& request, const DescriberPython3ScriptLogsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describerPython3ScriptLogs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::DescriberPython3ScriptLogsOutcomeCallable SophonsoarClient::describerPython3ScriptLogsCallable(const DescriberPython3ScriptLogsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describerPython3ScriptLogs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::ModifyComponentAssetOutcome SophonsoarClient::modifyComponentAsset(const ModifyComponentAssetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyComponentAssetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyComponentAssetOutcome(ModifyComponentAssetResult(outcome.result())); + else + return ModifyComponentAssetOutcome(outcome.error()); +} + +void SophonsoarClient::modifyComponentAssetAsync(const ModifyComponentAssetRequest& request, const ModifyComponentAssetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyComponentAsset(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::ModifyComponentAssetOutcomeCallable SophonsoarClient::modifyComponentAssetCallable(const ModifyComponentAssetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyComponentAsset(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::ModifyPlaybookOutcome SophonsoarClient::modifyPlaybook(const ModifyPlaybookRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyPlaybookOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyPlaybookOutcome(ModifyPlaybookResult(outcome.result())); + else + return ModifyPlaybookOutcome(outcome.error()); +} + +void SophonsoarClient::modifyPlaybookAsync(const ModifyPlaybookRequest& request, const ModifyPlaybookAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyPlaybook(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::ModifyPlaybookOutcomeCallable SophonsoarClient::modifyPlaybookCallable(const ModifyPlaybookRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyPlaybook(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::ModifyPlaybookInputOutputOutcome SophonsoarClient::modifyPlaybookInputOutput(const ModifyPlaybookInputOutputRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyPlaybookInputOutputOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyPlaybookInputOutputOutcome(ModifyPlaybookInputOutputResult(outcome.result())); + else + return ModifyPlaybookInputOutputOutcome(outcome.error()); +} + +void SophonsoarClient::modifyPlaybookInputOutputAsync(const ModifyPlaybookInputOutputRequest& request, const ModifyPlaybookInputOutputAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyPlaybookInputOutput(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::ModifyPlaybookInputOutputOutcomeCallable SophonsoarClient::modifyPlaybookInputOutputCallable(const ModifyPlaybookInputOutputRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyPlaybookInputOutput(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::ModifyPlaybookInstanceStatusOutcome SophonsoarClient::modifyPlaybookInstanceStatus(const ModifyPlaybookInstanceStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyPlaybookInstanceStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyPlaybookInstanceStatusOutcome(ModifyPlaybookInstanceStatusResult(outcome.result())); + else + return ModifyPlaybookInstanceStatusOutcome(outcome.error()); +} + +void SophonsoarClient::modifyPlaybookInstanceStatusAsync(const ModifyPlaybookInstanceStatusRequest& request, const ModifyPlaybookInstanceStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyPlaybookInstanceStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::ModifyPlaybookInstanceStatusOutcomeCallable SophonsoarClient::modifyPlaybookInstanceStatusCallable(const ModifyPlaybookInstanceStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyPlaybookInstanceStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::PublishPlaybookOutcome SophonsoarClient::publishPlaybook(const PublishPlaybookRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PublishPlaybookOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PublishPlaybookOutcome(PublishPlaybookResult(outcome.result())); + else + return PublishPlaybookOutcome(outcome.error()); +} + +void SophonsoarClient::publishPlaybookAsync(const PublishPlaybookRequest& request, const PublishPlaybookAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, publishPlaybook(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::PublishPlaybookOutcomeCallable SophonsoarClient::publishPlaybookCallable(const PublishPlaybookRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->publishPlaybook(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::QueryTreeDataOutcome SophonsoarClient::queryTreeData(const QueryTreeDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryTreeDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryTreeDataOutcome(QueryTreeDataResult(outcome.result())); + else + return QueryTreeDataOutcome(outcome.error()); +} + +void SophonsoarClient::queryTreeDataAsync(const QueryTreeDataRequest& request, const QueryTreeDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryTreeData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::QueryTreeDataOutcomeCallable SophonsoarClient::queryTreeDataCallable(const QueryTreeDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryTreeData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::RenamePlaybookNodeOutcome SophonsoarClient::renamePlaybookNode(const RenamePlaybookNodeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RenamePlaybookNodeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RenamePlaybookNodeOutcome(RenamePlaybookNodeResult(outcome.result())); + else + return RenamePlaybookNodeOutcome(outcome.error()); +} + +void SophonsoarClient::renamePlaybookNodeAsync(const RenamePlaybookNodeRequest& request, const RenamePlaybookNodeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, renamePlaybookNode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::RenamePlaybookNodeOutcomeCallable SophonsoarClient::renamePlaybookNodeCallable(const RenamePlaybookNodeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->renamePlaybookNode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::RevertPlaybookReleaseOutcome SophonsoarClient::revertPlaybookRelease(const RevertPlaybookReleaseRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RevertPlaybookReleaseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RevertPlaybookReleaseOutcome(RevertPlaybookReleaseResult(outcome.result())); + else + return RevertPlaybookReleaseOutcome(outcome.error()); +} + +void SophonsoarClient::revertPlaybookReleaseAsync(const RevertPlaybookReleaseRequest& request, const RevertPlaybookReleaseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, revertPlaybookRelease(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::RevertPlaybookReleaseOutcomeCallable SophonsoarClient::revertPlaybookReleaseCallable(const RevertPlaybookReleaseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->revertPlaybookRelease(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::RunPython3ScriptOutcome SophonsoarClient::runPython3Script(const RunPython3ScriptRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RunPython3ScriptOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RunPython3ScriptOutcome(RunPython3ScriptResult(outcome.result())); + else + return RunPython3ScriptOutcome(outcome.error()); +} + +void SophonsoarClient::runPython3ScriptAsync(const RunPython3ScriptRequest& request, const RunPython3ScriptAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, runPython3Script(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::RunPython3ScriptOutcomeCallable SophonsoarClient::runPython3ScriptCallable(const RunPython3ScriptRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->runPython3Script(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::TriggerPlaybookOutcome SophonsoarClient::triggerPlaybook(const TriggerPlaybookRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TriggerPlaybookOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TriggerPlaybookOutcome(TriggerPlaybookResult(outcome.result())); + else + return TriggerPlaybookOutcome(outcome.error()); +} + +void SophonsoarClient::triggerPlaybookAsync(const TriggerPlaybookRequest& request, const TriggerPlaybookAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, triggerPlaybook(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::TriggerPlaybookOutcomeCallable SophonsoarClient::triggerPlaybookCallable(const TriggerPlaybookRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->triggerPlaybook(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::TriggerProcessTaskOutcome SophonsoarClient::triggerProcessTask(const TriggerProcessTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TriggerProcessTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TriggerProcessTaskOutcome(TriggerProcessTaskResult(outcome.result())); + else + return TriggerProcessTaskOutcome(outcome.error()); +} + +void SophonsoarClient::triggerProcessTaskAsync(const TriggerProcessTaskRequest& request, const TriggerProcessTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, triggerProcessTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::TriggerProcessTaskOutcomeCallable SophonsoarClient::triggerProcessTaskCallable(const TriggerProcessTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->triggerProcessTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::TriggerSophonPlaybookOutcome SophonsoarClient::triggerSophonPlaybook(const TriggerSophonPlaybookRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TriggerSophonPlaybookOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TriggerSophonPlaybookOutcome(TriggerSophonPlaybookResult(outcome.result())); + else + return TriggerSophonPlaybookOutcome(outcome.error()); +} + +void SophonsoarClient::triggerSophonPlaybookAsync(const TriggerSophonPlaybookRequest& request, const TriggerSophonPlaybookAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, triggerSophonPlaybook(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::TriggerSophonPlaybookOutcomeCallable SophonsoarClient::triggerSophonPlaybookCallable(const TriggerSophonPlaybookRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->triggerSophonPlaybook(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::VerifyPlaybookOutcome SophonsoarClient::verifyPlaybook(const VerifyPlaybookRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return VerifyPlaybookOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return VerifyPlaybookOutcome(VerifyPlaybookResult(outcome.result())); + else + return VerifyPlaybookOutcome(outcome.error()); +} + +void SophonsoarClient::verifyPlaybookAsync(const VerifyPlaybookRequest& request, const VerifyPlaybookAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, verifyPlaybook(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::VerifyPlaybookOutcomeCallable SophonsoarClient::verifyPlaybookCallable(const VerifyPlaybookRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->verifyPlaybook(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SophonsoarClient::VerifyPythonFileOutcome SophonsoarClient::verifyPythonFile(const VerifyPythonFileRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return VerifyPythonFileOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return VerifyPythonFileOutcome(VerifyPythonFileResult(outcome.result())); + else + return VerifyPythonFileOutcome(outcome.error()); +} + +void SophonsoarClient::verifyPythonFileAsync(const VerifyPythonFileRequest& request, const VerifyPythonFileAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, verifyPythonFile(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SophonsoarClient::VerifyPythonFileOutcomeCallable SophonsoarClient::verifyPythonFileCallable(const VerifyPythonFileRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->verifyPythonFile(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/sophonsoar/src/model/BatchModifyInstanceStatusRequest.cc b/sophonsoar/src/model/BatchModifyInstanceStatusRequest.cc new file mode 100644 index 000000000..4b2067e32 --- /dev/null +++ b/sophonsoar/src/model/BatchModifyInstanceStatusRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sophonsoar::Model::BatchModifyInstanceStatusRequest; + +BatchModifyInstanceStatusRequest::BatchModifyInstanceStatusRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "BatchModifyInstanceStatus") { + setMethod(HttpRequest::Method::Post); +} + +BatchModifyInstanceStatusRequest::~BatchModifyInstanceStatusRequest() {} + +std::string BatchModifyInstanceStatusRequest::getRoleFor() const { + return roleFor_; +} + +void BatchModifyInstanceStatusRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +int BatchModifyInstanceStatusRequest::getActive() const { + return active_; +} + +void BatchModifyInstanceStatusRequest::setActive(int active) { + active_ = active; + setBodyParameter(std::string("Active"), std::to_string(active)); +} + +std::string BatchModifyInstanceStatusRequest::getPlaybookUuid() const { + return playbookUuid_; +} + +void BatchModifyInstanceStatusRequest::setPlaybookUuid(const std::string &playbookUuid) { + playbookUuid_ = playbookUuid; + setBodyParameter(std::string("PlaybookUuid"), playbookUuid); +} + +std::string BatchModifyInstanceStatusRequest::getRoleType() const { + return roleType_; +} + +void BatchModifyInstanceStatusRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string BatchModifyInstanceStatusRequest::getLang() const { + return lang_; +} + +void BatchModifyInstanceStatusRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/BatchModifyInstanceStatusResult.cc b/sophonsoar/src/model/BatchModifyInstanceStatusResult.cc new file mode 100644 index 000000000..adb4e6fd5 --- /dev/null +++ b/sophonsoar/src/model/BatchModifyInstanceStatusResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +BatchModifyInstanceStatusResult::BatchModifyInstanceStatusResult() : + ServiceResult() +{} + +BatchModifyInstanceStatusResult::BatchModifyInstanceStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BatchModifyInstanceStatusResult::~BatchModifyInstanceStatusResult() +{} + +void BatchModifyInstanceStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sophonsoar/src/model/ComparePlaybooksRequest.cc b/sophonsoar/src/model/ComparePlaybooksRequest.cc new file mode 100644 index 000000000..06c413726 --- /dev/null +++ b/sophonsoar/src/model/ComparePlaybooksRequest.cc @@ -0,0 +1,81 @@ +/* + * 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 + +using AlibabaCloud::Sophonsoar::Model::ComparePlaybooksRequest; + +ComparePlaybooksRequest::ComparePlaybooksRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "ComparePlaybooks") { + setMethod(HttpRequest::Method::Post); +} + +ComparePlaybooksRequest::~ComparePlaybooksRequest() {} + +int ComparePlaybooksRequest::getOldPlaybookReleaseId() const { + return oldPlaybookReleaseId_; +} + +void ComparePlaybooksRequest::setOldPlaybookReleaseId(int oldPlaybookReleaseId) { + oldPlaybookReleaseId_ = oldPlaybookReleaseId; + setParameter(std::string("OldPlaybookReleaseId"), std::to_string(oldPlaybookReleaseId)); +} + +int ComparePlaybooksRequest::getNewPlaybookReleaseId() const { + return newPlaybookReleaseId_; +} + +void ComparePlaybooksRequest::setNewPlaybookReleaseId(int newPlaybookReleaseId) { + newPlaybookReleaseId_ = newPlaybookReleaseId; + setParameter(std::string("NewPlaybookReleaseId"), std::to_string(newPlaybookReleaseId)); +} + +std::string ComparePlaybooksRequest::getRoleFor() const { + return roleFor_; +} + +void ComparePlaybooksRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string ComparePlaybooksRequest::getPlaybookUuid() const { + return playbookUuid_; +} + +void ComparePlaybooksRequest::setPlaybookUuid(const std::string &playbookUuid) { + playbookUuid_ = playbookUuid; + setParameter(std::string("PlaybookUuid"), playbookUuid); +} + +std::string ComparePlaybooksRequest::getRoleType() const { + return roleType_; +} + +void ComparePlaybooksRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string ComparePlaybooksRequest::getLang() const { + return lang_; +} + +void ComparePlaybooksRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/ComparePlaybooksResult.cc b/sophonsoar/src/model/ComparePlaybooksResult.cc new file mode 100644 index 000000000..9f3abc066 --- /dev/null +++ b/sophonsoar/src/model/ComparePlaybooksResult.cc @@ -0,0 +1,56 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +ComparePlaybooksResult::ComparePlaybooksResult() : + ServiceResult() +{} + +ComparePlaybooksResult::ComparePlaybooksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ComparePlaybooksResult::~ComparePlaybooksResult() +{} + +void ComparePlaybooksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto compareResultNode = value["CompareResult"]; + if(!compareResultNode["Same"].isNull()) + compareResult_.same = compareResultNode["Same"].asString() == "true"; + if(!compareResultNode["New"].isNull()) + compareResult_._new = compareResultNode["New"].asString() == "true"; + if(!compareResultNode["Description"].isNull()) + compareResult_.description = compareResultNode["Description"].asString(); + +} + +ComparePlaybooksResult::CompareResult ComparePlaybooksResult::getCompareResult()const +{ + return compareResult_; +} + diff --git a/sophonsoar/src/model/ConvertPlaybookRequest.cc b/sophonsoar/src/model/ConvertPlaybookRequest.cc new file mode 100644 index 000000000..e0db4c41f --- /dev/null +++ b/sophonsoar/src/model/ConvertPlaybookRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sophonsoar::Model::ConvertPlaybookRequest; + +ConvertPlaybookRequest::ConvertPlaybookRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "ConvertPlaybook") { + setMethod(HttpRequest::Method::Post); +} + +ConvertPlaybookRequest::~ConvertPlaybookRequest() {} + +long ConvertPlaybookRequest::getRoleFor() const { + return roleFor_; +} + +void ConvertPlaybookRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + +std::string ConvertPlaybookRequest::getTaskflow() const { + return taskflow_; +} + +void ConvertPlaybookRequest::setTaskflow(const std::string &taskflow) { + taskflow_ = taskflow; + setBodyParameter(std::string("Taskflow"), taskflow); +} + +std::string ConvertPlaybookRequest::getRoleType() const { + return roleType_; +} + +void ConvertPlaybookRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string ConvertPlaybookRequest::getLang() const { + return lang_; +} + +void ConvertPlaybookRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/ConvertPlaybookResult.cc b/sophonsoar/src/model/ConvertPlaybookResult.cc new file mode 100644 index 000000000..fa5417cfe --- /dev/null +++ b/sophonsoar/src/model/ConvertPlaybookResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +ConvertPlaybookResult::ConvertPlaybookResult() : + ServiceResult() +{} + +ConvertPlaybookResult::ConvertPlaybookResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ConvertPlaybookResult::~ConvertPlaybookResult() +{} + +void ConvertPlaybookResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Config"].isNull()) + config_ = value["Config"].asString(); + +} + +std::string ConvertPlaybookResult::getConfig()const +{ + return config_; +} + diff --git a/sophonsoar/src/model/CreatePlaybookRequest.cc b/sophonsoar/src/model/CreatePlaybookRequest.cc new file mode 100644 index 000000000..01c22a172 --- /dev/null +++ b/sophonsoar/src/model/CreatePlaybookRequest.cc @@ -0,0 +1,81 @@ +/* + * 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 + +using AlibabaCloud::Sophonsoar::Model::CreatePlaybookRequest; + +CreatePlaybookRequest::CreatePlaybookRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "CreatePlaybook") { + setMethod(HttpRequest::Method::Post); +} + +CreatePlaybookRequest::~CreatePlaybookRequest() {} + +std::string CreatePlaybookRequest::getRoleFor() const { + return roleFor_; +} + +void CreatePlaybookRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string CreatePlaybookRequest::getTaskflowType() const { + return taskflowType_; +} + +void CreatePlaybookRequest::setTaskflowType(const std::string &taskflowType) { + taskflowType_ = taskflowType; + setBodyParameter(std::string("TaskflowType"), taskflowType); +} + +std::string CreatePlaybookRequest::getDescription() const { + return description_; +} + +void CreatePlaybookRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +std::string CreatePlaybookRequest::getDisplayName() const { + return displayName_; +} + +void CreatePlaybookRequest::setDisplayName(const std::string &displayName) { + displayName_ = displayName; + setBodyParameter(std::string("DisplayName"), displayName); +} + +std::string CreatePlaybookRequest::getRoleType() const { + return roleType_; +} + +void CreatePlaybookRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string CreatePlaybookRequest::getLang() const { + return lang_; +} + +void CreatePlaybookRequest::setLang(const std::string &lang) { + lang_ = lang; + setBodyParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/CreatePlaybookResult.cc b/sophonsoar/src/model/CreatePlaybookResult.cc new file mode 100644 index 000000000..9932bc9c6 --- /dev/null +++ b/sophonsoar/src/model/CreatePlaybookResult.cc @@ -0,0 +1,52 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +CreatePlaybookResult::CreatePlaybookResult() : + ServiceResult() +{} + +CreatePlaybookResult::CreatePlaybookResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreatePlaybookResult::~CreatePlaybookResult() +{} + +void CreatePlaybookResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["PlaybookUuid"].isNull()) + data_.playbookUuid = dataNode["PlaybookUuid"].asString(); + +} + +CreatePlaybookResult::Data CreatePlaybookResult::getData()const +{ + return data_; +} + diff --git a/sophonsoar/src/model/DebugPlaybookRequest.cc b/sophonsoar/src/model/DebugPlaybookRequest.cc new file mode 100644 index 000000000..4b42fe5b2 --- /dev/null +++ b/sophonsoar/src/model/DebugPlaybookRequest.cc @@ -0,0 +1,81 @@ +/* + * 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 + +using AlibabaCloud::Sophonsoar::Model::DebugPlaybookRequest; + +DebugPlaybookRequest::DebugPlaybookRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "DebugPlaybook") { + setMethod(HttpRequest::Method::Post); +} + +DebugPlaybookRequest::~DebugPlaybookRequest() {} + +std::string DebugPlaybookRequest::getRoleFor() const { + return roleFor_; +} + +void DebugPlaybookRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string DebugPlaybookRequest::getTaskflow() const { + return taskflow_; +} + +void DebugPlaybookRequest::setTaskflow(const std::string &taskflow) { + taskflow_ = taskflow; + setBodyParameter(std::string("Taskflow"), taskflow); +} + +std::string DebugPlaybookRequest::getPlaybookUuid() const { + return playbookUuid_; +} + +void DebugPlaybookRequest::setPlaybookUuid(const std::string &playbookUuid) { + playbookUuid_ = playbookUuid; + setBodyParameter(std::string("PlaybookUuid"), playbookUuid); +} + +std::string DebugPlaybookRequest::getRecord() const { + return record_; +} + +void DebugPlaybookRequest::setRecord(const std::string &record) { + record_ = record; + setBodyParameter(std::string("Record"), record); +} + +std::string DebugPlaybookRequest::getRoleType() const { + return roleType_; +} + +void DebugPlaybookRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string DebugPlaybookRequest::getLang() const { + return lang_; +} + +void DebugPlaybookRequest::setLang(const std::string &lang) { + lang_ = lang; + setBodyParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/DebugPlaybookResult.cc b/sophonsoar/src/model/DebugPlaybookResult.cc new file mode 100644 index 000000000..7c43c4784 --- /dev/null +++ b/sophonsoar/src/model/DebugPlaybookResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +DebugPlaybookResult::DebugPlaybookResult() : + ServiceResult() +{} + +DebugPlaybookResult::DebugPlaybookResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DebugPlaybookResult::~DebugPlaybookResult() +{} + +void DebugPlaybookResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["RequestUuid"].isNull()) + requestUuid_ = value["RequestUuid"].asString(); + +} + +std::string DebugPlaybookResult::getRequestUuid()const +{ + return requestUuid_; +} + diff --git a/sophonsoar/src/model/DeleteComponentAssetRequest.cc b/sophonsoar/src/model/DeleteComponentAssetRequest.cc new file mode 100644 index 000000000..e8a2b1e0e --- /dev/null +++ b/sophonsoar/src/model/DeleteComponentAssetRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sophonsoar::Model::DeleteComponentAssetRequest; + +DeleteComponentAssetRequest::DeleteComponentAssetRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "DeleteComponentAsset") { + setMethod(HttpRequest::Method::Post); +} + +DeleteComponentAssetRequest::~DeleteComponentAssetRequest() {} + +std::string DeleteComponentAssetRequest::getRoleFor() const { + return roleFor_; +} + +void DeleteComponentAssetRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +long DeleteComponentAssetRequest::getAssetId() const { + return assetId_; +} + +void DeleteComponentAssetRequest::setAssetId(long assetId) { + assetId_ = assetId; + setParameter(std::string("AssetId"), std::to_string(assetId)); +} + +std::string DeleteComponentAssetRequest::getRoleType() const { + return roleType_; +} + +void DeleteComponentAssetRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string DeleteComponentAssetRequest::getLang() const { + return lang_; +} + +void DeleteComponentAssetRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/DeleteComponentAssetResult.cc b/sophonsoar/src/model/DeleteComponentAssetResult.cc new file mode 100644 index 000000000..66fdf1a5e --- /dev/null +++ b/sophonsoar/src/model/DeleteComponentAssetResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +DeleteComponentAssetResult::DeleteComponentAssetResult() : + ServiceResult() +{} + +DeleteComponentAssetResult::DeleteComponentAssetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteComponentAssetResult::~DeleteComponentAssetResult() +{} + +void DeleteComponentAssetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sophonsoar/src/model/DeletePlaybookRequest.cc b/sophonsoar/src/model/DeletePlaybookRequest.cc new file mode 100644 index 000000000..cf3024fa5 --- /dev/null +++ b/sophonsoar/src/model/DeletePlaybookRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sophonsoar::Model::DeletePlaybookRequest; + +DeletePlaybookRequest::DeletePlaybookRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "DeletePlaybook") { + setMethod(HttpRequest::Method::Post); +} + +DeletePlaybookRequest::~DeletePlaybookRequest() {} + +std::string DeletePlaybookRequest::getRoleFor() const { + return roleFor_; +} + +void DeletePlaybookRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string DeletePlaybookRequest::getPlaybookUuid() const { + return playbookUuid_; +} + +void DeletePlaybookRequest::setPlaybookUuid(const std::string &playbookUuid) { + playbookUuid_ = playbookUuid; + setBodyParameter(std::string("PlaybookUuid"), playbookUuid); +} + +std::string DeletePlaybookRequest::getRoleType() const { + return roleType_; +} + +void DeletePlaybookRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string DeletePlaybookRequest::getLang() const { + return lang_; +} + +void DeletePlaybookRequest::setLang(const std::string &lang) { + lang_ = lang; + setBodyParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/DeletePlaybookResult.cc b/sophonsoar/src/model/DeletePlaybookResult.cc new file mode 100644 index 000000000..7a10970ec --- /dev/null +++ b/sophonsoar/src/model/DeletePlaybookResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +DeletePlaybookResult::DeletePlaybookResult() : + ServiceResult() +{} + +DeletePlaybookResult::DeletePlaybookResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeletePlaybookResult::~DeletePlaybookResult() +{} + +void DeletePlaybookResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sophonsoar/src/model/DescribeComponentAssetFormRequest.cc b/sophonsoar/src/model/DescribeComponentAssetFormRequest.cc new file mode 100644 index 000000000..05df60028 --- /dev/null +++ b/sophonsoar/src/model/DescribeComponentAssetFormRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sophonsoar::Model::DescribeComponentAssetFormRequest; + +DescribeComponentAssetFormRequest::DescribeComponentAssetFormRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "DescribeComponentAssetForm") { + setMethod(HttpRequest::Method::Get); +} + +DescribeComponentAssetFormRequest::~DescribeComponentAssetFormRequest() {} + +std::string DescribeComponentAssetFormRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeComponentAssetFormRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string DescribeComponentAssetFormRequest::getComponentName() const { + return componentName_; +} + +void DescribeComponentAssetFormRequest::setComponentName(const std::string &componentName) { + componentName_ = componentName; + setParameter(std::string("ComponentName"), componentName); +} + +std::string DescribeComponentAssetFormRequest::getRoleType() const { + return roleType_; +} + +void DescribeComponentAssetFormRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string DescribeComponentAssetFormRequest::getLang() const { + return lang_; +} + +void DescribeComponentAssetFormRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/DescribeComponentAssetFormResult.cc b/sophonsoar/src/model/DescribeComponentAssetFormResult.cc new file mode 100644 index 000000000..76518ce3e --- /dev/null +++ b/sophonsoar/src/model/DescribeComponentAssetFormResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +DescribeComponentAssetFormResult::DescribeComponentAssetFormResult() : + ServiceResult() +{} + +DescribeComponentAssetFormResult::DescribeComponentAssetFormResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeComponentAssetFormResult::~DescribeComponentAssetFormResult() +{} + +void DescribeComponentAssetFormResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ComponentAssetForm"].isNull()) + componentAssetForm_ = value["ComponentAssetForm"].asString(); + +} + +std::string DescribeComponentAssetFormResult::getComponentAssetForm()const +{ + return componentAssetForm_; +} + diff --git a/sophonsoar/src/model/DescribeComponentAssetsRequest.cc b/sophonsoar/src/model/DescribeComponentAssetsRequest.cc new file mode 100644 index 000000000..b909cd62e --- /dev/null +++ b/sophonsoar/src/model/DescribeComponentAssetsRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sophonsoar::Model::DescribeComponentAssetsRequest; + +DescribeComponentAssetsRequest::DescribeComponentAssetsRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "DescribeComponentAssets") { + setMethod(HttpRequest::Method::Get); +} + +DescribeComponentAssetsRequest::~DescribeComponentAssetsRequest() {} + +std::string DescribeComponentAssetsRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeComponentAssetsRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string DescribeComponentAssetsRequest::getComponentName() const { + return componentName_; +} + +void DescribeComponentAssetsRequest::setComponentName(const std::string &componentName) { + componentName_ = componentName; + setParameter(std::string("ComponentName"), componentName); +} + +std::string DescribeComponentAssetsRequest::getRoleType() const { + return roleType_; +} + +void DescribeComponentAssetsRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string DescribeComponentAssetsRequest::getLang() const { + return lang_; +} + +void DescribeComponentAssetsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/DescribeComponentAssetsResult.cc b/sophonsoar/src/model/DescribeComponentAssetsResult.cc new file mode 100644 index 000000000..4bb3f6bad --- /dev/null +++ b/sophonsoar/src/model/DescribeComponentAssetsResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +DescribeComponentAssetsResult::DescribeComponentAssetsResult() : + ServiceResult() +{} + +DescribeComponentAssetsResult::DescribeComponentAssetsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeComponentAssetsResult::~DescribeComponentAssetsResult() +{} + +void DescribeComponentAssetsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allComponentAssetsNode = value["ComponentAssets"]["ComponentAssetsItem"]; + for (auto valueComponentAssetsComponentAssetsItem : allComponentAssetsNode) + { + ComponentAssetsItem componentAssetsObject; + if(!valueComponentAssetsComponentAssetsItem["Id"].isNull()) + componentAssetsObject.id = std::stol(valueComponentAssetsComponentAssetsItem["Id"].asString()); + if(!valueComponentAssetsComponentAssetsItem["GmtCreate"].isNull()) + componentAssetsObject.gmtCreate = valueComponentAssetsComponentAssetsItem["GmtCreate"].asString(); + if(!valueComponentAssetsComponentAssetsItem["GmtModified"].isNull()) + componentAssetsObject.gmtModified = valueComponentAssetsComponentAssetsItem["GmtModified"].asString(); + if(!valueComponentAssetsComponentAssetsItem["Name"].isNull()) + componentAssetsObject.name = valueComponentAssetsComponentAssetsItem["Name"].asString(); + if(!valueComponentAssetsComponentAssetsItem["Componentname"].isNull()) + componentAssetsObject.componentname = valueComponentAssetsComponentAssetsItem["Componentname"].asString(); + if(!valueComponentAssetsComponentAssetsItem["Params"].isNull()) + componentAssetsObject.params = valueComponentAssetsComponentAssetsItem["Params"].asString(); + if(!valueComponentAssetsComponentAssetsItem["DomainId"].isNull()) + componentAssetsObject.domainId = valueComponentAssetsComponentAssetsItem["DomainId"].asString(); + if(!valueComponentAssetsComponentAssetsItem["TenantId"].isNull()) + componentAssetsObject.tenantId = valueComponentAssetsComponentAssetsItem["TenantId"].asString(); + if(!valueComponentAssetsComponentAssetsItem["Owner"].isNull()) + componentAssetsObject.owner = valueComponentAssetsComponentAssetsItem["Owner"].asString(); + if(!valueComponentAssetsComponentAssetsItem["AssetUuid"].isNull()) + componentAssetsObject.assetUuid = valueComponentAssetsComponentAssetsItem["AssetUuid"].asString(); + componentAssets_.push_back(componentAssetsObject); + } + +} + +std::vector DescribeComponentAssetsResult::getComponentAssets()const +{ + return componentAssets_; +} + diff --git a/sophonsoar/src/model/DescribeComponentListRequest.cc b/sophonsoar/src/model/DescribeComponentListRequest.cc new file mode 100644 index 000000000..315c8221a --- /dev/null +++ b/sophonsoar/src/model/DescribeComponentListRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sophonsoar::Model::DescribeComponentListRequest; + +DescribeComponentListRequest::DescribeComponentListRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "DescribeComponentList") { + setMethod(HttpRequest::Method::Get); +} + +DescribeComponentListRequest::~DescribeComponentListRequest() {} + +std::string DescribeComponentListRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeComponentListRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string DescribeComponentListRequest::getPlaybookUuid() const { + return playbookUuid_; +} + +void DescribeComponentListRequest::setPlaybookUuid(const std::string &playbookUuid) { + playbookUuid_ = playbookUuid; + setParameter(std::string("PlaybookUuid"), playbookUuid); +} + +std::string DescribeComponentListRequest::getRoleType() const { + return roleType_; +} + +void DescribeComponentListRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string DescribeComponentListRequest::getLang() const { + return lang_; +} + +void DescribeComponentListRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/DescribeComponentListResult.cc b/sophonsoar/src/model/DescribeComponentListResult.cc new file mode 100644 index 000000000..320efa5d2 --- /dev/null +++ b/sophonsoar/src/model/DescribeComponentListResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +DescribeComponentListResult::DescribeComponentListResult() : + ServiceResult() +{} + +DescribeComponentListResult::DescribeComponentListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeComponentListResult::~DescribeComponentListResult() +{} + +void DescribeComponentListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Components"].isNull()) + components_ = value["Components"].asString(); + +} + +std::string DescribeComponentListResult::getComponents()const +{ + return components_; +} + diff --git a/sophonsoar/src/model/DescribeComponentPlaybookRequest.cc b/sophonsoar/src/model/DescribeComponentPlaybookRequest.cc new file mode 100644 index 000000000..e86fef47e --- /dev/null +++ b/sophonsoar/src/model/DescribeComponentPlaybookRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sophonsoar::Model::DescribeComponentPlaybookRequest; + +DescribeComponentPlaybookRequest::DescribeComponentPlaybookRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "DescribeComponentPlaybook") { + setMethod(HttpRequest::Method::Get); +} + +DescribeComponentPlaybookRequest::~DescribeComponentPlaybookRequest() {} + +std::string DescribeComponentPlaybookRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeComponentPlaybookRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string DescribeComponentPlaybookRequest::getPlaybookUuid() const { + return playbookUuid_; +} + +void DescribeComponentPlaybookRequest::setPlaybookUuid(const std::string &playbookUuid) { + playbookUuid_ = playbookUuid; + setParameter(std::string("PlaybookUuid"), playbookUuid); +} + +std::string DescribeComponentPlaybookRequest::getRoleType() const { + return roleType_; +} + +void DescribeComponentPlaybookRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string DescribeComponentPlaybookRequest::getLang() const { + return lang_; +} + +void DescribeComponentPlaybookRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/DescribeComponentPlaybookResult.cc b/sophonsoar/src/model/DescribeComponentPlaybookResult.cc new file mode 100644 index 000000000..9d7e35662 --- /dev/null +++ b/sophonsoar/src/model/DescribeComponentPlaybookResult.cc @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +DescribeComponentPlaybookResult::DescribeComponentPlaybookResult() : + ServiceResult() +{} + +DescribeComponentPlaybookResult::DescribeComponentPlaybookResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeComponentPlaybookResult::~DescribeComponentPlaybookResult() +{} + +void DescribeComponentPlaybookResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPlaybooksNode = value["Playbooks"]["Data"]; + for (auto valuePlaybooksData : allPlaybooksNode) + { + Data playbooksObject; + if(!valuePlaybooksData["DisplayName"].isNull()) + playbooksObject.displayName = valuePlaybooksData["DisplayName"].asString(); + if(!valuePlaybooksData["PlaybookUuid"].isNull()) + playbooksObject.playbookUuid = valuePlaybooksData["PlaybookUuid"].asString(); + if(!valuePlaybooksData["OwnType"].isNull()) + playbooksObject.ownType = valuePlaybooksData["OwnType"].asString(); + if(!valuePlaybooksData["InputParams"].isNull()) + playbooksObject.inputParams = valuePlaybooksData["InputParams"].asString(); + if(!valuePlaybooksData["OutputParams"].isNull()) + playbooksObject.outputParams = valuePlaybooksData["OutputParams"].asString(); + if(!valuePlaybooksData["Description"].isNull()) + playbooksObject.description = valuePlaybooksData["Description"].asString(); + if(!valuePlaybooksData["TenantId"].isNull()) + playbooksObject.tenantId = valuePlaybooksData["TenantId"].asString(); + playbooks_.push_back(playbooksObject); + } + +} + +std::vector DescribeComponentPlaybookResult::getPlaybooks()const +{ + return playbooks_; +} + diff --git a/sophonsoar/src/model/DescribeComponentsJsRequest.cc b/sophonsoar/src/model/DescribeComponentsJsRequest.cc new file mode 100644 index 000000000..26cc31d12 --- /dev/null +++ b/sophonsoar/src/model/DescribeComponentsJsRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sophonsoar::Model::DescribeComponentsJsRequest; + +DescribeComponentsJsRequest::DescribeComponentsJsRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "DescribeComponentsJs") { + setMethod(HttpRequest::Method::Get); +} + +DescribeComponentsJsRequest::~DescribeComponentsJsRequest() {} + +std::string DescribeComponentsJsRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeComponentsJsRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string DescribeComponentsJsRequest::getRoleType() const { + return roleType_; +} + +void DescribeComponentsJsRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string DescribeComponentsJsRequest::getLang() const { + return lang_; +} + +void DescribeComponentsJsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/DescribeComponentsJsResult.cc b/sophonsoar/src/model/DescribeComponentsJsResult.cc new file mode 100644 index 000000000..8714a4f2b --- /dev/null +++ b/sophonsoar/src/model/DescribeComponentsJsResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +DescribeComponentsJsResult::DescribeComponentsJsResult() : + ServiceResult() +{} + +DescribeComponentsJsResult::DescribeComponentsJsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeComponentsJsResult::~DescribeComponentsJsResult() +{} + +void DescribeComponentsJsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ComponentsJs"].isNull()) + componentsJs_ = value["ComponentsJs"].asString(); + +} + +std::string DescribeComponentsJsResult::getComponentsJs()const +{ + return componentsJs_; +} + diff --git a/sophonsoar/src/model/DescribeDistinctReleasesRequest.cc b/sophonsoar/src/model/DescribeDistinctReleasesRequest.cc new file mode 100644 index 000000000..832788dbf --- /dev/null +++ b/sophonsoar/src/model/DescribeDistinctReleasesRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sophonsoar::Model::DescribeDistinctReleasesRequest; + +DescribeDistinctReleasesRequest::DescribeDistinctReleasesRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "DescribeDistinctReleases") { + setMethod(HttpRequest::Method::Get); +} + +DescribeDistinctReleasesRequest::~DescribeDistinctReleasesRequest() {} + +std::string DescribeDistinctReleasesRequest::getTaskflowMd5() const { + return taskflowMd5_; +} + +void DescribeDistinctReleasesRequest::setTaskflowMd5(const std::string &taskflowMd5) { + taskflowMd5_ = taskflowMd5; + setParameter(std::string("TaskflowMd5"), taskflowMd5); +} + +std::string DescribeDistinctReleasesRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeDistinctReleasesRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string DescribeDistinctReleasesRequest::getPlaybookUuid() const { + return playbookUuid_; +} + +void DescribeDistinctReleasesRequest::setPlaybookUuid(const std::string &playbookUuid) { + playbookUuid_ = playbookUuid; + setParameter(std::string("PlaybookUuid"), playbookUuid); +} + +std::string DescribeDistinctReleasesRequest::getRoleType() const { + return roleType_; +} + +void DescribeDistinctReleasesRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string DescribeDistinctReleasesRequest::getLang() const { + return lang_; +} + +void DescribeDistinctReleasesRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/DescribeDistinctReleasesResult.cc b/sophonsoar/src/model/DescribeDistinctReleasesResult.cc new file mode 100644 index 000000000..5bd04ff04 --- /dev/null +++ b/sophonsoar/src/model/DescribeDistinctReleasesResult.cc @@ -0,0 +1,65 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +DescribeDistinctReleasesResult::DescribeDistinctReleasesResult() : + ServiceResult() +{} + +DescribeDistinctReleasesResult::DescribeDistinctReleasesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDistinctReleasesResult::~DescribeDistinctReleasesResult() +{} + +void DescribeDistinctReleasesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRecordsNode = value["Records"]["RecordsItem"]; + for (auto valueRecordsRecordsItem : allRecordsNode) + { + RecordsItem recordsObject; + if(!valueRecordsRecordsItem["Description"].isNull()) + recordsObject.description = valueRecordsRecordsItem["Description"].asString(); + if(!valueRecordsRecordsItem["TaskflowMd5"].isNull()) + recordsObject.taskflowMd5 = valueRecordsRecordsItem["TaskflowMd5"].asString(); + if(!valueRecordsRecordsItem["FlowFlag"].isNull()) + recordsObject.flowFlag = std::stoi(valueRecordsRecordsItem["FlowFlag"].asString()); + if(!valueRecordsRecordsItem["FlowTag"].isNull()) + recordsObject.flowTag = std::stoi(valueRecordsRecordsItem["FlowTag"].asString()); + if(!valueRecordsRecordsItem["TaskflowType"].isNull()) + recordsObject.taskflowType = valueRecordsRecordsItem["TaskflowType"].asString(); + records_.push_back(recordsObject); + } + +} + +std::vector DescribeDistinctReleasesResult::getRecords()const +{ + return records_; +} + diff --git a/sophonsoar/src/model/DescribeEnumItemsRequest.cc b/sophonsoar/src/model/DescribeEnumItemsRequest.cc new file mode 100644 index 000000000..0a8da4088 --- /dev/null +++ b/sophonsoar/src/model/DescribeEnumItemsRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sophonsoar::Model::DescribeEnumItemsRequest; + +DescribeEnumItemsRequest::DescribeEnumItemsRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "DescribeEnumItems") { + setMethod(HttpRequest::Method::Get); +} + +DescribeEnumItemsRequest::~DescribeEnumItemsRequest() {} + +std::string DescribeEnumItemsRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeEnumItemsRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string DescribeEnumItemsRequest::getEnumType() const { + return enumType_; +} + +void DescribeEnumItemsRequest::setEnumType(const std::string &enumType) { + enumType_ = enumType; + setParameter(std::string("EnumType"), enumType); +} + +std::string DescribeEnumItemsRequest::getRoleType() const { + return roleType_; +} + +void DescribeEnumItemsRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string DescribeEnumItemsRequest::getLang() const { + return lang_; +} + +void DescribeEnumItemsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/DescribeEnumItemsResult.cc b/sophonsoar/src/model/DescribeEnumItemsResult.cc new file mode 100644 index 000000000..09c39b8bc --- /dev/null +++ b/sophonsoar/src/model/DescribeEnumItemsResult.cc @@ -0,0 +1,59 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +DescribeEnumItemsResult::DescribeEnumItemsResult() : + ServiceResult() +{} + +DescribeEnumItemsResult::DescribeEnumItemsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEnumItemsResult::~DescribeEnumItemsResult() +{} + +void DescribeEnumItemsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DataItem"]; + for (auto valueDataDataItem : allDataNode) + { + DataItem dataObject; + if(!valueDataDataItem["Key"].isNull()) + dataObject.key = valueDataDataItem["Key"].asString(); + if(!valueDataDataItem["Value"].isNull()) + dataObject.value = valueDataDataItem["Value"].asString(); + data_.push_back(dataObject); + } + +} + +std::vector DescribeEnumItemsResult::getData()const +{ + return data_; +} + diff --git a/sophonsoar/src/model/DescribeExecutePlaybooksRequest.cc b/sophonsoar/src/model/DescribeExecutePlaybooksRequest.cc new file mode 100644 index 000000000..4cab7df4d --- /dev/null +++ b/sophonsoar/src/model/DescribeExecutePlaybooksRequest.cc @@ -0,0 +1,108 @@ +/* + * 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 + +using AlibabaCloud::Sophonsoar::Model::DescribeExecutePlaybooksRequest; + +DescribeExecutePlaybooksRequest::DescribeExecutePlaybooksRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "DescribeExecutePlaybooks") { + setMethod(HttpRequest::Method::Get); +} + +DescribeExecutePlaybooksRequest::~DescribeExecutePlaybooksRequest() {} + +std::string DescribeExecutePlaybooksRequest::getPlaybookName() const { + return playbookName_; +} + +void DescribeExecutePlaybooksRequest::setPlaybookName(const std::string &playbookName) { + playbookName_ = playbookName; + setParameter(std::string("PlaybookName"), playbookName); +} + +std::string DescribeExecutePlaybooksRequest::getParamType() const { + return paramType_; +} + +void DescribeExecutePlaybooksRequest::setParamType(const std::string ¶mType) { + paramType_ = paramType; + setParameter(std::string("ParamType"), paramType); +} + +std::string DescribeExecutePlaybooksRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeExecutePlaybooksRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string DescribeExecutePlaybooksRequest::getInputMode() const { + return inputMode_; +} + +void DescribeExecutePlaybooksRequest::setInputMode(const std::string &inputMode) { + inputMode_ = inputMode; + setParameter(std::string("InputMode"), inputMode); +} + +int DescribeExecutePlaybooksRequest::getCheckTag() const { + return checkTag_; +} + +void DescribeExecutePlaybooksRequest::setCheckTag(int checkTag) { + checkTag_ = checkTag; + setParameter(std::string("CheckTag"), std::to_string(checkTag)); +} + +std::string DescribeExecutePlaybooksRequest::getSource() const { + return source_; +} + +void DescribeExecutePlaybooksRequest::setSource(const std::string &source) { + source_ = source; + setParameter(std::string("Source"), source); +} + +std::string DescribeExecutePlaybooksRequest::getUuid() const { + return uuid_; +} + +void DescribeExecutePlaybooksRequest::setUuid(const std::string &uuid) { + uuid_ = uuid; + setParameter(std::string("Uuid"), uuid); +} + +std::string DescribeExecutePlaybooksRequest::getRoleType() const { + return roleType_; +} + +void DescribeExecutePlaybooksRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string DescribeExecutePlaybooksRequest::getLang() const { + return lang_; +} + +void DescribeExecutePlaybooksRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/DescribeExecutePlaybooksResult.cc b/sophonsoar/src/model/DescribeExecutePlaybooksResult.cc new file mode 100644 index 000000000..899f464eb --- /dev/null +++ b/sophonsoar/src/model/DescribeExecutePlaybooksResult.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +DescribeExecutePlaybooksResult::DescribeExecutePlaybooksResult() : + ServiceResult() +{} + +DescribeExecutePlaybooksResult::DescribeExecutePlaybooksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeExecutePlaybooksResult::~DescribeExecutePlaybooksResult() +{} + +void DescribeExecutePlaybooksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPlaybookMetricsNode = value["PlaybookMetrics"]["Data"]; + for (auto valuePlaybookMetricsData : allPlaybookMetricsNode) + { + Data playbookMetricsObject; + if(!valuePlaybookMetricsData["Description"].isNull()) + playbookMetricsObject.description = valuePlaybookMetricsData["Description"].asString(); + if(!valuePlaybookMetricsData["ActionType"].isNull()) + playbookMetricsObject.actionType = valuePlaybookMetricsData["ActionType"].asString(); + if(!valuePlaybookMetricsData["DisplayName"].isNull()) + playbookMetricsObject.displayName = valuePlaybookMetricsData["DisplayName"].asString(); + if(!valuePlaybookMetricsData["Uuid"].isNull()) + playbookMetricsObject.uuid = valuePlaybookMetricsData["Uuid"].asString(); + if(!valuePlaybookMetricsData["TaskConfig"].isNull()) + playbookMetricsObject.taskConfig = valuePlaybookMetricsData["TaskConfig"].asString(); + if(!valuePlaybookMetricsData["ParamConfig"].isNull()) + playbookMetricsObject.paramConfig = valuePlaybookMetricsData["ParamConfig"].asString(); + if(!valuePlaybookMetricsData["CommandEntity"].isNull()) + playbookMetricsObject.commandEntity = valuePlaybookMetricsData["CommandEntity"].asString(); + if(!valuePlaybookMetricsData["ParamType"].isNull()) + playbookMetricsObject.paramType = valuePlaybookMetricsData["ParamType"].asString(); + playbookMetrics_.push_back(playbookMetricsObject); + } + +} + +std::vector DescribeExecutePlaybooksResult::getPlaybookMetrics()const +{ + return playbookMetrics_; +} + diff --git a/sophonsoar/src/model/DescribeFieldRequest.cc b/sophonsoar/src/model/DescribeFieldRequest.cc new file mode 100644 index 000000000..95dd91eed --- /dev/null +++ b/sophonsoar/src/model/DescribeFieldRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sophonsoar::Model::DescribeFieldRequest; + +DescribeFieldRequest::DescribeFieldRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "DescribeField") { + setMethod(HttpRequest::Method::Get); +} + +DescribeFieldRequest::~DescribeFieldRequest() {} + +std::string DescribeFieldRequest::getQueryKey() const { + return queryKey_; +} + +void DescribeFieldRequest::setQueryKey(const std::string &queryKey) { + queryKey_ = queryKey; + setParameter(std::string("QueryKey"), queryKey); +} + +std::string DescribeFieldRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeFieldRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string DescribeFieldRequest::getRoleType() const { + return roleType_; +} + +void DescribeFieldRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string DescribeFieldRequest::getLang() const { + return lang_; +} + +void DescribeFieldRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/DescribeFieldResult.cc b/sophonsoar/src/model/DescribeFieldResult.cc new file mode 100644 index 000000000..6101cc9b5 --- /dev/null +++ b/sophonsoar/src/model/DescribeFieldResult.cc @@ -0,0 +1,65 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +DescribeFieldResult::DescribeFieldResult() : + ServiceResult() +{} + +DescribeFieldResult::DescribeFieldResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeFieldResult::~DescribeFieldResult() +{} + +void DescribeFieldResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["Fields"].isNull()) + fields_ = value["Fields"].asString(); + if(!value["FieldMode"].isNull()) + fieldMode_ = value["FieldMode"].asString(); + +} + +std::string DescribeFieldResult::getFields()const +{ + return fields_; +} + +std::string DescribeFieldResult::getFieldMode()const +{ + return fieldMode_; +} + +std::string DescribeFieldResult::getName()const +{ + return name_; +} + diff --git a/sophonsoar/src/model/DescribeLatestRecordSchemaRequest.cc b/sophonsoar/src/model/DescribeLatestRecordSchemaRequest.cc new file mode 100644 index 000000000..62ae0c587 --- /dev/null +++ b/sophonsoar/src/model/DescribeLatestRecordSchemaRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sophonsoar::Model::DescribeLatestRecordSchemaRequest; + +DescribeLatestRecordSchemaRequest::DescribeLatestRecordSchemaRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "DescribeLatestRecordSchema") { + setMethod(HttpRequest::Method::Get); +} + +DescribeLatestRecordSchemaRequest::~DescribeLatestRecordSchemaRequest() {} + +std::string DescribeLatestRecordSchemaRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeLatestRecordSchemaRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string DescribeLatestRecordSchemaRequest::getPlaybookUuid() const { + return playbookUuid_; +} + +void DescribeLatestRecordSchemaRequest::setPlaybookUuid(const std::string &playbookUuid) { + playbookUuid_ = playbookUuid; + setParameter(std::string("PlaybookUuid"), playbookUuid); +} + +std::string DescribeLatestRecordSchemaRequest::getRoleType() const { + return roleType_; +} + +void DescribeLatestRecordSchemaRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string DescribeLatestRecordSchemaRequest::getLang() const { + return lang_; +} + +void DescribeLatestRecordSchemaRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/DescribeLatestRecordSchemaResult.cc b/sophonsoar/src/model/DescribeLatestRecordSchemaResult.cc new file mode 100644 index 000000000..22b6a984f --- /dev/null +++ b/sophonsoar/src/model/DescribeLatestRecordSchemaResult.cc @@ -0,0 +1,67 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +DescribeLatestRecordSchemaResult::DescribeLatestRecordSchemaResult() : + ServiceResult() +{} + +DescribeLatestRecordSchemaResult::DescribeLatestRecordSchemaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeLatestRecordSchemaResult::~DescribeLatestRecordSchemaResult() +{} + +void DescribeLatestRecordSchemaResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto playbookNodeSchemaNode = value["PlaybookNodeSchema"]; + if(!playbookNodeSchemaNode["IsFinished"].isNull()) + playbookNodeSchema_.isFinished = playbookNodeSchemaNode["IsFinished"].asString() == "true"; + auto allNodeSchemaNode = playbookNodeSchemaNode["NodeSchema"]["NodeSchemaItem"]; + for (auto playbookNodeSchemaNodeNodeSchemaNodeSchemaItem : allNodeSchemaNode) + { + PlaybookNodeSchema::NodeSchemaItem nodeSchemaItemObject; + if(!playbookNodeSchemaNodeNodeSchemaNodeSchemaItem["NodeName"].isNull()) + nodeSchemaItemObject.nodeName = playbookNodeSchemaNodeNodeSchemaNodeSchemaItem["NodeName"].asString(); + if(!playbookNodeSchemaNodeNodeSchemaNodeSchemaItem["ComponentName"].isNull()) + nodeSchemaItemObject.componentName = playbookNodeSchemaNodeNodeSchemaNodeSchemaItem["ComponentName"].asString(); + if(!playbookNodeSchemaNodeNodeSchemaNodeSchemaItem["ActionName"].isNull()) + nodeSchemaItemObject.actionName = playbookNodeSchemaNodeNodeSchemaNodeSchemaItem["ActionName"].asString(); + auto allOutputFields = value["OutputFields"]["OutputField"]; + for (auto value : allOutputFields) + nodeSchemaItemObject.outputFields.push_back(value.asString()); + playbookNodeSchema_.nodeSchema.push_back(nodeSchemaItemObject); + } + +} + +DescribeLatestRecordSchemaResult::PlaybookNodeSchema DescribeLatestRecordSchemaResult::getPlaybookNodeSchema()const +{ + return playbookNodeSchema_; +} + diff --git a/sophonsoar/src/model/DescribeNodeParamTagsRequest.cc b/sophonsoar/src/model/DescribeNodeParamTagsRequest.cc new file mode 100644 index 000000000..b2f24d372 --- /dev/null +++ b/sophonsoar/src/model/DescribeNodeParamTagsRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sophonsoar::Model::DescribeNodeParamTagsRequest; + +DescribeNodeParamTagsRequest::DescribeNodeParamTagsRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "DescribeNodeParamTags") { + setMethod(HttpRequest::Method::Get); +} + +DescribeNodeParamTagsRequest::~DescribeNodeParamTagsRequest() {} + +std::string DescribeNodeParamTagsRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeNodeParamTagsRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string DescribeNodeParamTagsRequest::getNodeName() const { + return nodeName_; +} + +void DescribeNodeParamTagsRequest::setNodeName(const std::string &nodeName) { + nodeName_ = nodeName; + setParameter(std::string("NodeName"), nodeName); +} + +std::string DescribeNodeParamTagsRequest::getPlaybookUuid() const { + return playbookUuid_; +} + +void DescribeNodeParamTagsRequest::setPlaybookUuid(const std::string &playbookUuid) { + playbookUuid_ = playbookUuid; + setParameter(std::string("PlaybookUuid"), playbookUuid); +} + +std::string DescribeNodeParamTagsRequest::getRoleType() const { + return roleType_; +} + +void DescribeNodeParamTagsRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string DescribeNodeParamTagsRequest::getLang() const { + return lang_; +} + +void DescribeNodeParamTagsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/DescribeNodeParamTagsResult.cc b/sophonsoar/src/model/DescribeNodeParamTagsResult.cc new file mode 100644 index 000000000..7f3a1afff --- /dev/null +++ b/sophonsoar/src/model/DescribeNodeParamTagsResult.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +DescribeNodeParamTagsResult::DescribeNodeParamTagsResult() : + ServiceResult() +{} + +DescribeNodeParamTagsResult::DescribeNodeParamTagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeNodeParamTagsResult::~DescribeNodeParamTagsResult() +{} + +void DescribeNodeParamTagsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allParamReferredPathsNode = value["ParamReferredPaths"]["Data"]; + for (auto valueParamReferredPathsData : allParamReferredPathsNode) + { + Data paramReferredPathsObject; + if(!valueParamReferredPathsData["ParamName"].isNull()) + paramReferredPathsObject.paramName = valueParamReferredPathsData["ParamName"].asString(); + auto allReferredPath = value["ReferredPath"]["ReferredPath"]; + for (auto value : allReferredPath) + paramReferredPathsObject.referredPath.push_back(value.asString()); + paramReferredPaths_.push_back(paramReferredPathsObject); + } + +} + +std::vector DescribeNodeParamTagsResult::getParamReferredPaths()const +{ + return paramReferredPaths_; +} + diff --git a/sophonsoar/src/model/DescribeNodeUsedInfosRequest.cc b/sophonsoar/src/model/DescribeNodeUsedInfosRequest.cc new file mode 100644 index 000000000..8cd6e18f8 --- /dev/null +++ b/sophonsoar/src/model/DescribeNodeUsedInfosRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sophonsoar::Model::DescribeNodeUsedInfosRequest; + +DescribeNodeUsedInfosRequest::DescribeNodeUsedInfosRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "DescribeNodeUsedInfos") { + setMethod(HttpRequest::Method::Get); +} + +DescribeNodeUsedInfosRequest::~DescribeNodeUsedInfosRequest() {} + +std::string DescribeNodeUsedInfosRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeNodeUsedInfosRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string DescribeNodeUsedInfosRequest::getNodeName() const { + return nodeName_; +} + +void DescribeNodeUsedInfosRequest::setNodeName(const std::string &nodeName) { + nodeName_ = nodeName; + setParameter(std::string("NodeName"), nodeName); +} + +std::string DescribeNodeUsedInfosRequest::getPlaybookUuid() const { + return playbookUuid_; +} + +void DescribeNodeUsedInfosRequest::setPlaybookUuid(const std::string &playbookUuid) { + playbookUuid_ = playbookUuid; + setParameter(std::string("PlaybookUuid"), playbookUuid); +} + +std::string DescribeNodeUsedInfosRequest::getRoleType() const { + return roleType_; +} + +void DescribeNodeUsedInfosRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string DescribeNodeUsedInfosRequest::getLang() const { + return lang_; +} + +void DescribeNodeUsedInfosRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/DescribeNodeUsedInfosResult.cc b/sophonsoar/src/model/DescribeNodeUsedInfosResult.cc new file mode 100644 index 000000000..a924ad57e --- /dev/null +++ b/sophonsoar/src/model/DescribeNodeUsedInfosResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +DescribeNodeUsedInfosResult::DescribeNodeUsedInfosResult() : + ServiceResult() +{} + +DescribeNodeUsedInfosResult::DescribeNodeUsedInfosResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeNodeUsedInfosResult::~DescribeNodeUsedInfosResult() +{} + +void DescribeNodeUsedInfosResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["NodeUsedInfos"].isNull()) + nodeUsedInfos_ = value["NodeUsedInfos"].asString(); + +} + +std::string DescribeNodeUsedInfosResult::getNodeUsedInfos()const +{ + return nodeUsedInfos_; +} + diff --git a/sophonsoar/src/model/DescribePlaybookInputOutputRequest.cc b/sophonsoar/src/model/DescribePlaybookInputOutputRequest.cc new file mode 100644 index 000000000..d91241b99 --- /dev/null +++ b/sophonsoar/src/model/DescribePlaybookInputOutputRequest.cc @@ -0,0 +1,81 @@ +/* + * 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 + +using AlibabaCloud::Sophonsoar::Model::DescribePlaybookInputOutputRequest; + +DescribePlaybookInputOutputRequest::DescribePlaybookInputOutputRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "DescribePlaybookInputOutput") { + setMethod(HttpRequest::Method::Get); +} + +DescribePlaybookInputOutputRequest::~DescribePlaybookInputOutputRequest() {} + +std::string DescribePlaybookInputOutputRequest::getRoleFor() const { + return roleFor_; +} + +void DescribePlaybookInputOutputRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string DescribePlaybookInputOutputRequest::getModelName() const { + return modelName_; +} + +void DescribePlaybookInputOutputRequest::setModelName(const std::string &modelName) { + modelName_ = modelName; + setParameter(std::string("ModelName"), modelName); +} + +std::string DescribePlaybookInputOutputRequest::getPlaybookUuid() const { + return playbookUuid_; +} + +void DescribePlaybookInputOutputRequest::setPlaybookUuid(const std::string &playbookUuid) { + playbookUuid_ = playbookUuid; + setParameter(std::string("PlaybookUuid"), playbookUuid); +} + +std::string DescribePlaybookInputOutputRequest::getModelCode() const { + return modelCode_; +} + +void DescribePlaybookInputOutputRequest::setModelCode(const std::string &modelCode) { + modelCode_ = modelCode; + setParameter(std::string("ModelCode"), modelCode); +} + +std::string DescribePlaybookInputOutputRequest::getRoleType() const { + return roleType_; +} + +void DescribePlaybookInputOutputRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string DescribePlaybookInputOutputRequest::getLang() const { + return lang_; +} + +void DescribePlaybookInputOutputRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/DescribePlaybookInputOutputResult.cc b/sophonsoar/src/model/DescribePlaybookInputOutputResult.cc new file mode 100644 index 000000000..b0a16e411 --- /dev/null +++ b/sophonsoar/src/model/DescribePlaybookInputOutputResult.cc @@ -0,0 +1,66 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +DescribePlaybookInputOutputResult::DescribePlaybookInputOutputResult() : + ServiceResult() +{} + +DescribePlaybookInputOutputResult::DescribePlaybookInputOutputResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePlaybookInputOutputResult::~DescribePlaybookInputOutputResult() +{} + +void DescribePlaybookInputOutputResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto configNode = value["Config"]; + if(!configNode["ParamType"].isNull()) + config_.paramType = configNode["ParamType"].asString(); + if(!configNode["ExeConfig"].isNull()) + config_.exeConfig = configNode["ExeConfig"].asString(); + if(!configNode["InputParams"].isNull()) + config_.inputParams = configNode["InputParams"].asString(); + if(!configNode["OutputParams"].isNull()) + config_.outputParams = configNode["OutputParams"].asString(); + if(!configNode["PlaybookUuid"].isNull()) + config_.playbookUuid = configNode["PlaybookUuid"].asString(); + if(!configNode["Type"].isNull()) + config_.type = configNode["Type"].asString(); + if(!configNode["ModelCode"].isNull()) + config_.modelCode = configNode["ModelCode"].asString(); + if(!configNode["ModelName"].isNull()) + config_.modelName = configNode["ModelName"].asString(); + +} + +DescribePlaybookInputOutputResult::Config DescribePlaybookInputOutputResult::getConfig()const +{ + return config_; +} + diff --git a/sophonsoar/src/model/DescribePlaybookMetricsRequest.cc b/sophonsoar/src/model/DescribePlaybookMetricsRequest.cc new file mode 100644 index 000000000..dde6c5fbd --- /dev/null +++ b/sophonsoar/src/model/DescribePlaybookMetricsRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sophonsoar::Model::DescribePlaybookMetricsRequest; + +DescribePlaybookMetricsRequest::DescribePlaybookMetricsRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "DescribePlaybookMetrics") { + setMethod(HttpRequest::Method::Get); +} + +DescribePlaybookMetricsRequest::~DescribePlaybookMetricsRequest() {} + +std::string DescribePlaybookMetricsRequest::getRoleFor() const { + return roleFor_; +} + +void DescribePlaybookMetricsRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string DescribePlaybookMetricsRequest::getPlaybookUuid() const { + return playbookUuid_; +} + +void DescribePlaybookMetricsRequest::setPlaybookUuid(const std::string &playbookUuid) { + playbookUuid_ = playbookUuid; + setParameter(std::string("PlaybookUuid"), playbookUuid); +} + +std::string DescribePlaybookMetricsRequest::getRoleType() const { + return roleType_; +} + +void DescribePlaybookMetricsRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string DescribePlaybookMetricsRequest::getLang() const { + return lang_; +} + +void DescribePlaybookMetricsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/DescribePlaybookMetricsResult.cc b/sophonsoar/src/model/DescribePlaybookMetricsResult.cc new file mode 100644 index 000000000..fcbc65c98 --- /dev/null +++ b/sophonsoar/src/model/DescribePlaybookMetricsResult.cc @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +DescribePlaybookMetricsResult::DescribePlaybookMetricsResult() : + ServiceResult() +{} + +DescribePlaybookMetricsResult::DescribePlaybookMetricsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePlaybookMetricsResult::~DescribePlaybookMetricsResult() +{} + +void DescribePlaybookMetricsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto metricsNode = value["Metrics"]; + if(!metricsNode["DisplayName"].isNull()) + metrics_.displayName = metricsNode["DisplayName"].asString(); + if(!metricsNode["PlaybookUuid"].isNull()) + metrics_.playbookUuid = metricsNode["PlaybookUuid"].asString(); + if(!metricsNode["OwnType"].isNull()) + metrics_.ownType = metricsNode["OwnType"].asString(); + if(!metricsNode["Active"].isNull()) + metrics_.active = std::stoi(metricsNode["Active"].asString()); + if(!metricsNode["LastRuntime"].isNull()) + metrics_.lastRuntime = std::stol(metricsNode["LastRuntime"].asString()); + if(!metricsNode["Permission"].isNull()) + metrics_.permission = std::stoi(metricsNode["Permission"].asString()); + if(!metricsNode["GmtCreate"].isNull()) + metrics_.gmtCreate = std::stol(metricsNode["GmtCreate"].asString()); + if(!metricsNode["HistoryMd5"].isNull()) + metrics_.historyMd5 = std::stoi(metricsNode["HistoryMd5"].asString()); + if(!metricsNode["SuccNum"].isNull()) + metrics_.succNum = std::stoi(metricsNode["SuccNum"].asString()); + if(!metricsNode["FailNum"].isNull()) + metrics_.failNum = std::stoi(metricsNode["FailNum"].asString()); + if(!metricsNode["FailRate"].isNull()) + metrics_.failRate = metricsNode["FailRate"].asString(); + if(!metricsNode["PlaybookStatus"].isNull()) + metrics_.playbookStatus = std::stoi(metricsNode["PlaybookStatus"].asString()); + if(!metricsNode["Description"].isNull()) + metrics_.description = metricsNode["Description"].asString(); + +} + +DescribePlaybookMetricsResult::Metrics DescribePlaybookMetricsResult::getMetrics()const +{ + return metrics_; +} + diff --git a/sophonsoar/src/model/DescribePlaybookNodesOutputRequest.cc b/sophonsoar/src/model/DescribePlaybookNodesOutputRequest.cc new file mode 100644 index 000000000..01f6270ac --- /dev/null +++ b/sophonsoar/src/model/DescribePlaybookNodesOutputRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sophonsoar::Model::DescribePlaybookNodesOutputRequest; + +DescribePlaybookNodesOutputRequest::DescribePlaybookNodesOutputRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "DescribePlaybookNodesOutput") { + setMethod(HttpRequest::Method::Get); +} + +DescribePlaybookNodesOutputRequest::~DescribePlaybookNodesOutputRequest() {} + +std::string DescribePlaybookNodesOutputRequest::getRoleFor() const { + return roleFor_; +} + +void DescribePlaybookNodesOutputRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string DescribePlaybookNodesOutputRequest::getNodeName() const { + return nodeName_; +} + +void DescribePlaybookNodesOutputRequest::setNodeName(const std::string &nodeName) { + nodeName_ = nodeName; + setParameter(std::string("NodeName"), nodeName); +} + +std::string DescribePlaybookNodesOutputRequest::getPlaybookUuid() const { + return playbookUuid_; +} + +void DescribePlaybookNodesOutputRequest::setPlaybookUuid(const std::string &playbookUuid) { + playbookUuid_ = playbookUuid; + setParameter(std::string("PlaybookUuid"), playbookUuid); +} + +std::string DescribePlaybookNodesOutputRequest::getRoleType() const { + return roleType_; +} + +void DescribePlaybookNodesOutputRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string DescribePlaybookNodesOutputRequest::getLang() const { + return lang_; +} + +void DescribePlaybookNodesOutputRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/DescribePlaybookNodesOutputResult.cc b/sophonsoar/src/model/DescribePlaybookNodesOutputResult.cc new file mode 100644 index 000000000..0115b335c --- /dev/null +++ b/sophonsoar/src/model/DescribePlaybookNodesOutputResult.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +DescribePlaybookNodesOutputResult::DescribePlaybookNodesOutputResult() : + ServiceResult() +{} + +DescribePlaybookNodesOutputResult::DescribePlaybookNodesOutputResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePlaybookNodesOutputResult::~DescribePlaybookNodesOutputResult() +{} + +void DescribePlaybookNodesOutputResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto playbookNodesOutputNode = value["PlaybookNodesOutput"]; + if(!playbookNodesOutputNode["NodeName"].isNull()) + playbookNodesOutput_.nodeName = playbookNodesOutputNode["NodeName"].asString(); + if(!playbookNodesOutputNode["NodeOutput"].isNull()) + playbookNodesOutput_.nodeOutput = playbookNodesOutputNode["NodeOutput"].asString(); + +} + +DescribePlaybookNodesOutputResult::PlaybookNodesOutput DescribePlaybookNodesOutputResult::getPlaybookNodesOutput()const +{ + return playbookNodesOutput_; +} + diff --git a/sophonsoar/src/model/DescribePlaybookNumberMetricsRequest.cc b/sophonsoar/src/model/DescribePlaybookNumberMetricsRequest.cc new file mode 100644 index 000000000..5856214ed --- /dev/null +++ b/sophonsoar/src/model/DescribePlaybookNumberMetricsRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sophonsoar::Model::DescribePlaybookNumberMetricsRequest; + +DescribePlaybookNumberMetricsRequest::DescribePlaybookNumberMetricsRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "DescribePlaybookNumberMetrics") { + setMethod(HttpRequest::Method::Get); +} + +DescribePlaybookNumberMetricsRequest::~DescribePlaybookNumberMetricsRequest() {} + +std::string DescribePlaybookNumberMetricsRequest::getRoleFor() const { + return roleFor_; +} + +void DescribePlaybookNumberMetricsRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string DescribePlaybookNumberMetricsRequest::getRoleType() const { + return roleType_; +} + +void DescribePlaybookNumberMetricsRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string DescribePlaybookNumberMetricsRequest::getLang() const { + return lang_; +} + +void DescribePlaybookNumberMetricsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/DescribePlaybookNumberMetricsResult.cc b/sophonsoar/src/model/DescribePlaybookNumberMetricsResult.cc new file mode 100644 index 000000000..06bea56f9 --- /dev/null +++ b/sophonsoar/src/model/DescribePlaybookNumberMetricsResult.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +DescribePlaybookNumberMetricsResult::DescribePlaybookNumberMetricsResult() : + ServiceResult() +{} + +DescribePlaybookNumberMetricsResult::DescribePlaybookNumberMetricsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePlaybookNumberMetricsResult::~DescribePlaybookNumberMetricsResult() +{} + +void DescribePlaybookNumberMetricsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto metricsNode = value["Metrics"]; + if(!metricsNode["TotalNum"].isNull()) + metrics_.totalNum = std::stoi(metricsNode["TotalNum"].asString()); + if(!metricsNode["StartUpNum"].isNull()) + metrics_.startUpNum = std::stoi(metricsNode["StartUpNum"].asString()); + +} + +DescribePlaybookNumberMetricsResult::Metrics DescribePlaybookNumberMetricsResult::getMetrics()const +{ + return metrics_; +} + diff --git a/sophonsoar/src/model/DescribePlaybookReleasesRequest.cc b/sophonsoar/src/model/DescribePlaybookReleasesRequest.cc new file mode 100644 index 000000000..5ed8d69f5 --- /dev/null +++ b/sophonsoar/src/model/DescribePlaybookReleasesRequest.cc @@ -0,0 +1,81 @@ +/* + * 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 + +using AlibabaCloud::Sophonsoar::Model::DescribePlaybookReleasesRequest; + +DescribePlaybookReleasesRequest::DescribePlaybookReleasesRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "DescribePlaybookReleases") { + setMethod(HttpRequest::Method::Get); +} + +DescribePlaybookReleasesRequest::~DescribePlaybookReleasesRequest() {} + +std::string DescribePlaybookReleasesRequest::getRoleFor() const { + return roleFor_; +} + +void DescribePlaybookReleasesRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +int DescribePlaybookReleasesRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribePlaybookReleasesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribePlaybookReleasesRequest::getPlaybookUuid() const { + return playbookUuid_; +} + +void DescribePlaybookReleasesRequest::setPlaybookUuid(const std::string &playbookUuid) { + playbookUuid_ = playbookUuid; + setParameter(std::string("PlaybookUuid"), playbookUuid); +} + +int DescribePlaybookReleasesRequest::getPageSize() const { + return pageSize_; +} + +void DescribePlaybookReleasesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribePlaybookReleasesRequest::getRoleType() const { + return roleType_; +} + +void DescribePlaybookReleasesRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string DescribePlaybookReleasesRequest::getLang() const { + return lang_; +} + +void DescribePlaybookReleasesRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/DescribePlaybookReleasesResult.cc b/sophonsoar/src/model/DescribePlaybookReleasesResult.cc new file mode 100644 index 000000000..6ef30a4c2 --- /dev/null +++ b/sophonsoar/src/model/DescribePlaybookReleasesResult.cc @@ -0,0 +1,87 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +DescribePlaybookReleasesResult::DescribePlaybookReleasesResult() : + ServiceResult() +{} + +DescribePlaybookReleasesResult::DescribePlaybookReleasesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePlaybookReleasesResult::~DescribePlaybookReleasesResult() +{} + +void DescribePlaybookReleasesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRecordsNode = value["Records"]["Data"]; + for (auto valueRecordsData : allRecordsNode) + { + Data recordsObject; + if(!valueRecordsData["Id"].isNull()) + recordsObject.id = std::stoi(valueRecordsData["Id"].asString()); + if(!valueRecordsData["GmtCreate"].isNull()) + recordsObject.gmtCreate = std::stol(valueRecordsData["GmtCreate"].asString()); + if(!valueRecordsData["GmtModified"].isNull()) + recordsObject.gmtModified = std::stol(valueRecordsData["GmtModified"].asString()); + if(!valueRecordsData["PlaybookId"].isNull()) + recordsObject.playbookId = std::stol(valueRecordsData["PlaybookId"].asString()); + if(!valueRecordsData["ReleaseUuid"].isNull()) + recordsObject.releaseUuid = valueRecordsData["ReleaseUuid"].asString(); + if(!valueRecordsData["Creator"].isNull()) + recordsObject.creator = valueRecordsData["Creator"].asString(); + if(!valueRecordsData["Description"].isNull()) + recordsObject.description = valueRecordsData["Description"].asString(); + if(!valueRecordsData["TaskflowMd5"].isNull()) + recordsObject.taskflowMd5 = valueRecordsData["TaskflowMd5"].asString(); + if(!valueRecordsData["FlowFlag"].isNull()) + recordsObject.flowFlag = std::stoi(valueRecordsData["FlowFlag"].asString()); + if(!valueRecordsData["FlowTag"].isNull()) + recordsObject.flowTag = std::stoi(valueRecordsData["FlowTag"].asString()); + records_.push_back(recordsObject); + } + auto pageNode = value["Page"]; + if(!pageNode["TotalCount"].isNull()) + page_.totalCount = std::stoi(pageNode["TotalCount"].asString()); + if(!pageNode["PageNumber"].isNull()) + page_.pageNumber = std::stoi(pageNode["PageNumber"].asString()); + if(!pageNode["PageSize"].isNull()) + page_.pageSize = std::stoi(pageNode["PageSize"].asString()); + +} + +DescribePlaybookReleasesResult::Page DescribePlaybookReleasesResult::getPage()const +{ + return page_; +} + +std::vector DescribePlaybookReleasesResult::getRecords()const +{ + return records_; +} + diff --git a/sophonsoar/src/model/DescribePlaybookRequest.cc b/sophonsoar/src/model/DescribePlaybookRequest.cc new file mode 100644 index 000000000..3eb7ed7e6 --- /dev/null +++ b/sophonsoar/src/model/DescribePlaybookRequest.cc @@ -0,0 +1,81 @@ +/* + * 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 + +using AlibabaCloud::Sophonsoar::Model::DescribePlaybookRequest; + +DescribePlaybookRequest::DescribePlaybookRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "DescribePlaybook") { + setMethod(HttpRequest::Method::Get); +} + +DescribePlaybookRequest::~DescribePlaybookRequest() {} + +std::string DescribePlaybookRequest::getTaskflowMd5() const { + return taskflowMd5_; +} + +void DescribePlaybookRequest::setTaskflowMd5(const std::string &taskflowMd5) { + taskflowMd5_ = taskflowMd5; + setParameter(std::string("TaskflowMd5"), taskflowMd5); +} + +std::string DescribePlaybookRequest::getRoleFor() const { + return roleFor_; +} + +void DescribePlaybookRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +int DescribePlaybookRequest::getDebugFlag() const { + return debugFlag_; +} + +void DescribePlaybookRequest::setDebugFlag(int debugFlag) { + debugFlag_ = debugFlag; + setParameter(std::string("DebugFlag"), std::to_string(debugFlag)); +} + +std::string DescribePlaybookRequest::getPlaybookUuid() const { + return playbookUuid_; +} + +void DescribePlaybookRequest::setPlaybookUuid(const std::string &playbookUuid) { + playbookUuid_ = playbookUuid; + setParameter(std::string("PlaybookUuid"), playbookUuid); +} + +std::string DescribePlaybookRequest::getRoleType() const { + return roleType_; +} + +void DescribePlaybookRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string DescribePlaybookRequest::getLang() const { + return lang_; +} + +void DescribePlaybookRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/DescribePlaybookResult.cc b/sophonsoar/src/model/DescribePlaybookResult.cc new file mode 100644 index 000000000..0e32d531f --- /dev/null +++ b/sophonsoar/src/model/DescribePlaybookResult.cc @@ -0,0 +1,140 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +DescribePlaybookResult::DescribePlaybookResult() : + ServiceResult() +{} + +DescribePlaybookResult::DescribePlaybookResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePlaybookResult::~DescribePlaybookResult() +{} + +void DescribePlaybookResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto playbookNode = value["Playbook"]; + if(!playbookNode["GmtCreate"].isNull()) + playbook_.gmtCreate = playbookNode["GmtCreate"].asString(); + if(!playbookNode["GmtModified"].isNull()) + playbook_.gmtModified = playbookNode["GmtModified"].asString(); + if(!playbookNode["PlaybookUuid"].isNull()) + playbook_.playbookUuid = playbookNode["PlaybookUuid"].asString(); + if(!playbookNode["Taskflow"].isNull()) + playbook_.taskflow = playbookNode["Taskflow"].asString(); + if(!playbookNode["TaskflowType"].isNull()) + playbook_.taskflowType = playbookNode["TaskflowType"].asString(); + if(!playbookNode["Taskconfig"].isNull()) + playbook_.taskconfig = playbookNode["Taskconfig"].asString(); + if(!playbookNode["TenantId"].isNull()) + playbook_.tenantId = playbookNode["TenantId"].asString(); + if(!playbookNode["Inputtype"].isNull()) + playbook_.inputtype = playbookNode["Inputtype"].asString(); + if(!playbookNode["OwnType"].isNull()) + playbook_.ownType = playbookNode["OwnType"].asString(); + if(!playbookNode["SuccessExeNum"].isNull()) + playbook_.successExeNum = std::stoi(playbookNode["SuccessExeNum"].asString()); + if(!playbookNode["FailExeNum"].isNull()) + playbook_.failExeNum = std::stoi(playbookNode["FailExeNum"].asString()); + if(!playbookNode["LastExeTime"].isNull()) + playbook_.lastExeTime = std::stol(playbookNode["LastExeTime"].asString()); + if(!playbookNode["TriggerInfo"].isNull()) + playbook_.triggerInfo = playbookNode["TriggerInfo"].asString(); + if(!playbookNode["OperateType"].isNull()) + playbook_.operateType = playbookNode["OperateType"].asString(); + if(!playbookNode["DisplayName"].isNull()) + playbook_.displayName = playbookNode["DisplayName"].asString(); + if(!playbookNode["RiskLevel"].isNull()) + playbook_.riskLevel = std::stoi(playbookNode["RiskLevel"].asString()); + if(!playbookNode["Type"].isNull()) + playbook_.type = playbookNode["Type"].asString(); + if(!playbookNode["InputParams"].isNull()) + playbook_.inputParams = playbookNode["InputParams"].asString(); + if(!playbookNode["Description"].isNull()) + playbook_.description = playbookNode["Description"].asString(); + if(!playbookNode["Oss"].isNull()) + playbook_.oss = playbookNode["Oss"].asString(); + if(!playbookNode["Active"].isNull()) + playbook_.active = playbookNode["Active"].asString() == "true"; + if(!playbookNode["Compiledresult"].isNull()) + playbook_.compiledresult = playbookNode["Compiledresult"].asString(); + if(!playbookNode["OnlineOss"].isNull()) + playbook_.onlineOss = playbookNode["OnlineOss"].asString(); + if(!playbookNode["OnlineActive"].isNull()) + playbook_.onlineActive = playbookNode["OnlineActive"].asString() == "true"; + if(!playbookNode["OnlineCompiledresult"].isNull()) + playbook_.onlineCompiledresult = playbookNode["OnlineCompiledresult"].asString(); + if(!playbookNode["ExecuteMode"].isNull()) + playbook_.executeMode = playbookNode["ExecuteMode"].asString(); + if(!playbookNode["Cron"].isNull()) + playbook_.cron = playbookNode["Cron"].asString(); + if(!playbookNode["OnlineExecuteMode"].isNull()) + playbook_.onlineExecuteMode = playbookNode["OnlineExecuteMode"].asString(); + if(!playbookNode["OnlineCron"].isNull()) + playbook_.onlineCron = playbookNode["OnlineCron"].asString(); + if(!playbookNode["SchedulerId"].isNull()) + playbook_.schedulerId = std::stol(playbookNode["SchedulerId"].asString()); + if(!playbookNode["OnlineSchedulerId"].isNull()) + playbook_.onlineSchedulerId = std::stol(playbookNode["OnlineSchedulerId"].asString()); + if(!playbookNode["ParentId"].isNull()) + playbook_.parentId = std::stoi(playbookNode["ParentId"].asString()); + if(!playbookNode["OutputParams"].isNull()) + playbook_.outputParams = playbookNode["OutputParams"].asString(); + if(!playbookNode["TaskflowMd5"].isNull()) + playbook_.taskflowMd5 = playbookNode["TaskflowMd5"].asString(); + if(!playbookNode["OnlineReleaseUuid"].isNull()) + playbook_.onlineReleaseUuid = playbookNode["OnlineReleaseUuid"].asString(); + if(!playbookNode["OnlineReleaseTime"].isNull()) + playbook_.onlineReleaseTime = playbookNode["OnlineReleaseTime"].asString(); + if(!playbookNode["ReleaseUuid"].isNull()) + playbook_.releaseUuid = playbookNode["ReleaseUuid"].asString(); + if(!playbookNode["ReleaseTime"].isNull()) + playbook_.releaseTime = playbookNode["ReleaseTime"].asString(); + if(!playbookNode["OnlineReleaseTaskflowMd5"].isNull()) + playbook_.onlineReleaseTaskflowMd5 = playbookNode["OnlineReleaseTaskflowMd5"].asString(); + if(!playbookNode["ReleaseTaskflowMd5"].isNull()) + playbook_.releaseTaskflowMd5 = playbookNode["ReleaseTaskflowMd5"].asString(); + if(!playbookNode["Flag"].isNull()) + playbook_.flag = std::stoi(playbookNode["Flag"].asString()); + if(!playbookNode["RightLevel"].isNull()) + playbook_.rightLevel = playbookNode["RightLevel"].asString(); + if(!playbookNode["TaskFlowDesc"].isNull()) + playbook_.taskFlowDesc = playbookNode["TaskFlowDesc"].asString(); + if(!playbookNode["DebugFlag"].isNull()) + playbook_.debugFlag = playbookNode["DebugFlag"].asString(); + if(!playbookNode["PlaybookStatus"].isNull()) + playbook_.playbookStatus = std::stoi(playbookNode["PlaybookStatus"].asString()); + +} + +DescribePlaybookResult::Playbook DescribePlaybookResult::getPlaybook()const +{ + return playbook_; +} + diff --git a/sophonsoar/src/model/DescribePlaybooksRequest.cc b/sophonsoar/src/model/DescribePlaybooksRequest.cc new file mode 100644 index 000000000..44bc79b18 --- /dev/null +++ b/sophonsoar/src/model/DescribePlaybooksRequest.cc @@ -0,0 +1,162 @@ +/* + * 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 + +using AlibabaCloud::Sophonsoar::Model::DescribePlaybooksRequest; + +DescribePlaybooksRequest::DescribePlaybooksRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "DescribePlaybooks") { + setMethod(HttpRequest::Method::Get); +} + +DescribePlaybooksRequest::~DescribePlaybooksRequest() {} + +std::string DescribePlaybooksRequest::getRoleFor() const { + return roleFor_; +} + +void DescribePlaybooksRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +long DescribePlaybooksRequest::getEndMillis() const { + return endMillis_; +} + +void DescribePlaybooksRequest::setEndMillis(long endMillis) { + endMillis_ = endMillis; + setParameter(std::string("EndMillis"), std::to_string(endMillis)); +} + +long DescribePlaybooksRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribePlaybooksRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribePlaybooksRequest::getPlaybookUuids() const { + return playbookUuids_; +} + +void DescribePlaybooksRequest::setPlaybookUuids(const std::string &playbookUuids) { + playbookUuids_ = playbookUuids; + setParameter(std::string("PlaybookUuids"), playbookUuids); +} + +int DescribePlaybooksRequest::getPageSize() const { + return pageSize_; +} + +void DescribePlaybooksRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribePlaybooksRequest::getRoleType() const { + return roleType_; +} + +void DescribePlaybooksRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string DescribePlaybooksRequest::getLang() const { + return lang_; +} + +void DescribePlaybooksRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + +std::string DescribePlaybooksRequest::getOrder() const { + return order_; +} + +void DescribePlaybooksRequest::setOrder(const std::string &order) { + order_ = order; + setParameter(std::string("Order"), order); +} + +std::string DescribePlaybooksRequest::getParamTypes() const { + return paramTypes_; +} + +void DescribePlaybooksRequest::setParamTypes(const std::string ¶mTypes) { + paramTypes_ = paramTypes; + setParameter(std::string("ParamTypes"), paramTypes); +} + +int DescribePlaybooksRequest::getActive() const { + return active_; +} + +void DescribePlaybooksRequest::setActive(int active) { + active_ = active; + setParameter(std::string("Active"), std::to_string(active)); +} + +std::string DescribePlaybooksRequest::getOwnType() const { + return ownType_; +} + +void DescribePlaybooksRequest::setOwnType(const std::string &ownType) { + ownType_ = ownType; + setParameter(std::string("OwnType"), ownType); +} + +std::string DescribePlaybooksRequest::getSort() const { + return sort_; +} + +void DescribePlaybooksRequest::setSort(const std::string &sort) { + sort_ = sort; + setParameter(std::string("Sort"), sort); +} + +long DescribePlaybooksRequest::getStartMillis() const { + return startMillis_; +} + +void DescribePlaybooksRequest::setStartMillis(long startMillis) { + startMillis_ = startMillis; + setParameter(std::string("StartMillis"), std::to_string(startMillis)); +} + +std::string DescribePlaybooksRequest::getPlaybookUuid() const { + return playbookUuid_; +} + +void DescribePlaybooksRequest::setPlaybookUuid(const std::string &playbookUuid) { + playbookUuid_ = playbookUuid; + setParameter(std::string("PlaybookUuid"), playbookUuid); +} + +std::string DescribePlaybooksRequest::getName() const { + return name_; +} + +void DescribePlaybooksRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + diff --git a/sophonsoar/src/model/DescribePlaybooksResult.cc b/sophonsoar/src/model/DescribePlaybooksResult.cc new file mode 100644 index 000000000..e0f8fe2b2 --- /dev/null +++ b/sophonsoar/src/model/DescribePlaybooksResult.cc @@ -0,0 +1,87 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +DescribePlaybooksResult::DescribePlaybooksResult() : + ServiceResult() +{} + +DescribePlaybooksResult::DescribePlaybooksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePlaybooksResult::~DescribePlaybooksResult() +{} + +void DescribePlaybooksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPlaybooksNode = value["Playbooks"]["Data"]; + for (auto valuePlaybooksData : allPlaybooksNode) + { + Data playbooksObject; + if(!valuePlaybooksData["DisplayName"].isNull()) + playbooksObject.displayName = valuePlaybooksData["DisplayName"].asString(); + if(!valuePlaybooksData["PlaybookUuid"].isNull()) + playbooksObject.playbookUuid = valuePlaybooksData["PlaybookUuid"].asString(); + if(!valuePlaybooksData["OwnType"].isNull()) + playbooksObject.ownType = valuePlaybooksData["OwnType"].asString(); + if(!valuePlaybooksData["Active"].isNull()) + playbooksObject.active = std::stoi(valuePlaybooksData["Active"].asString()); + if(!valuePlaybooksData["LastRuntime"].isNull()) + playbooksObject.lastRuntime = std::stol(valuePlaybooksData["LastRuntime"].asString()); + if(!valuePlaybooksData["Permission"].isNull()) + playbooksObject.permission = std::stoi(valuePlaybooksData["Permission"].asString()); + if(!valuePlaybooksData["GmtCreate"].isNull()) + playbooksObject.gmtCreate = std::stol(valuePlaybooksData["GmtCreate"].asString()); + if(!valuePlaybooksData["PlaybookStatus"].isNull()) + playbooksObject.playbookStatus = std::stoi(valuePlaybooksData["PlaybookStatus"].asString()); + if(!valuePlaybooksData["GmtModified"].isNull()) + playbooksObject.gmtModified = valuePlaybooksData["GmtModified"].asString(); + if(!valuePlaybooksData["ParamType"].isNull()) + playbooksObject.paramType = valuePlaybooksData["ParamType"].asString(); + playbooks_.push_back(playbooksObject); + } + auto pageNode = value["Page"]; + if(!pageNode["TotalCount"].isNull()) + page_.totalCount = std::stoi(pageNode["TotalCount"].asString()); + if(!pageNode["PageNumber"].isNull()) + page_.pageNumber = std::stoi(pageNode["PageNumber"].asString()); + if(!pageNode["PageSize"].isNull()) + page_.pageSize = std::stoi(pageNode["PageSize"].asString()); + +} + +std::vector DescribePlaybooksResult::getPlaybooks()const +{ + return playbooks_; +} + +DescribePlaybooksResult::Page DescribePlaybooksResult::getPage()const +{ + return page_; +} + diff --git a/sophonsoar/src/model/DescribePopApiRequest.cc b/sophonsoar/src/model/DescribePopApiRequest.cc new file mode 100644 index 000000000..69ae07afa --- /dev/null +++ b/sophonsoar/src/model/DescribePopApiRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Sophonsoar::Model::DescribePopApiRequest; + +DescribePopApiRequest::DescribePopApiRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "DescribePopApi") { + setMethod(HttpRequest::Method::Get); +} + +DescribePopApiRequest::~DescribePopApiRequest() {} + +std::string DescribePopApiRequest::getPopCode() const { + return popCode_; +} + +void DescribePopApiRequest::setPopCode(const std::string &popCode) { + popCode_ = popCode; + setParameter(std::string("PopCode"), popCode); +} + +std::string DescribePopApiRequest::getRoleFor() const { + return roleFor_; +} + +void DescribePopApiRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string DescribePopApiRequest::getApiVersion() const { + return apiVersion_; +} + +void DescribePopApiRequest::setApiVersion(const std::string &apiVersion) { + apiVersion_ = apiVersion; + setParameter(std::string("ApiVersion"), apiVersion); +} + +std::string DescribePopApiRequest::getEnv() const { + return env_; +} + +void DescribePopApiRequest::setEnv(const std::string &env) { + env_ = env; + setParameter(std::string("Env"), env); +} + +std::string DescribePopApiRequest::getApiName() const { + return apiName_; +} + +void DescribePopApiRequest::setApiName(const std::string &apiName) { + apiName_ = apiName; + setParameter(std::string("ApiName"), apiName); +} + +std::string DescribePopApiRequest::getRoleType() const { + return roleType_; +} + +void DescribePopApiRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string DescribePopApiRequest::getLang() const { + return lang_; +} + +void DescribePopApiRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/DescribePopApiResult.cc b/sophonsoar/src/model/DescribePopApiResult.cc new file mode 100644 index 000000000..55c9b6705 --- /dev/null +++ b/sophonsoar/src/model/DescribePopApiResult.cc @@ -0,0 +1,99 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +DescribePopApiResult::DescribePopApiResult() : + ServiceResult() +{} + +DescribePopApiResult::DescribePopApiResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePopApiResult::~DescribePopApiResult() +{} + +void DescribePopApiResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allOpenApiMetaListNode = value["OpenApiMetaList"]["OpenApiMetaListItem"]; + for (auto valueOpenApiMetaListOpenApiMetaListItem : allOpenApiMetaListNode) + { + OpenApiMetaListItem openApiMetaListObject; + if(!valueOpenApiMetaListOpenApiMetaListItem["Name"].isNull()) + openApiMetaListObject.name = valueOpenApiMetaListOpenApiMetaListItem["Name"].asString(); + if(!valueOpenApiMetaListOpenApiMetaListItem["Required"].isNull()) + openApiMetaListObject.required = valueOpenApiMetaListOpenApiMetaListItem["Required"].asString() == "true"; + if(!valueOpenApiMetaListOpenApiMetaListItem["ExampleValue"].isNull()) + openApiMetaListObject.exampleValue = valueOpenApiMetaListOpenApiMetaListItem["ExampleValue"].asString(); + if(!valueOpenApiMetaListOpenApiMetaListItem["Description"].isNull()) + openApiMetaListObject.description = valueOpenApiMetaListOpenApiMetaListItem["Description"].asString(); + if(!valueOpenApiMetaListOpenApiMetaListItem["In"].isNull()) + openApiMetaListObject.in = valueOpenApiMetaListOpenApiMetaListItem["In"].asString(); + if(!valueOpenApiMetaListOpenApiMetaListItem["Visibility"].isNull()) + openApiMetaListObject.visibility = valueOpenApiMetaListOpenApiMetaListItem["Visibility"].asString(); + if(!valueOpenApiMetaListOpenApiMetaListItem["Type"].isNull()) + openApiMetaListObject.type = valueOpenApiMetaListOpenApiMetaListItem["Type"].asString(); + if(!valueOpenApiMetaListOpenApiMetaListItem["IsRequired"].isNull()) + openApiMetaListObject.isRequired = valueOpenApiMetaListOpenApiMetaListItem["IsRequired"].asString() == "true"; + openApiMetaList_.push_back(openApiMetaListObject); + } + if(!value["PopCode"].isNull()) + popCode_ = value["PopCode"].asString(); + if(!value["Version"].isNull()) + version_ = value["Version"].asString(); + if(!value["ApiName"].isNull()) + apiName_ = value["ApiName"].asString(); + if(!value["ApiMeta"].isNull()) + apiMeta_ = value["ApiMeta"].asString(); + +} + +std::string DescribePopApiResult::getApiMeta()const +{ + return apiMeta_; +} + +std::vector DescribePopApiResult::getOpenApiMetaList()const +{ + return openApiMetaList_; +} + +std::string DescribePopApiResult::getVersion()const +{ + return version_; +} + +std::string DescribePopApiResult::getApiName()const +{ + return apiName_; +} + +std::string DescribePopApiResult::getPopCode()const +{ + return popCode_; +} + diff --git a/sophonsoar/src/model/DescribeProcessTaskCountRequest.cc b/sophonsoar/src/model/DescribeProcessTaskCountRequest.cc new file mode 100644 index 000000000..a25f1df93 --- /dev/null +++ b/sophonsoar/src/model/DescribeProcessTaskCountRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Sophonsoar::Model::DescribeProcessTaskCountRequest; + +DescribeProcessTaskCountRequest::DescribeProcessTaskCountRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "DescribeProcessTaskCount") { + setMethod(HttpRequest::Method::Get); +} + +DescribeProcessTaskCountRequest::~DescribeProcessTaskCountRequest() {} + +std::vector DescribeProcessTaskCountRequest::getEntityUuidList() const { + return entityUuidList_; +} + +void DescribeProcessTaskCountRequest::setEntityUuidList(const std::vector &entityUuidList) { + entityUuidList_ = entityUuidList; +} + +long DescribeProcessTaskCountRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeProcessTaskCountRequest::setRoleFor(long roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), std::to_string(roleFor)); +} + +std::string DescribeProcessTaskCountRequest::getRoleType() const { + return roleType_; +} + +void DescribeProcessTaskCountRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string DescribeProcessTaskCountRequest::getLang() const { + return lang_; +} + +void DescribeProcessTaskCountRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/DescribeProcessTaskCountResult.cc b/sophonsoar/src/model/DescribeProcessTaskCountResult.cc new file mode 100644 index 000000000..86512a2d3 --- /dev/null +++ b/sophonsoar/src/model/DescribeProcessTaskCountResult.cc @@ -0,0 +1,59 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +DescribeProcessTaskCountResult::DescribeProcessTaskCountResult() : + ServiceResult() +{} + +DescribeProcessTaskCountResult::DescribeProcessTaskCountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeProcessTaskCountResult::~DescribeProcessTaskCountResult() +{} + +void DescribeProcessTaskCountResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DataItem"]; + for (auto valueDataDataItem : allDataNode) + { + DataItem dataObject; + if(!valueDataDataItem["EntityUuid"].isNull()) + dataObject.entityUuid = valueDataDataItem["EntityUuid"].asString(); + if(!valueDataDataItem["Count"].isNull()) + dataObject.count = std::stol(valueDataDataItem["Count"].asString()); + data_.push_back(dataObject); + } + +} + +std::vector DescribeProcessTaskCountResult::getData()const +{ + return data_; +} + diff --git a/sophonsoar/src/model/DescribeProcessTasksRequest.cc b/sophonsoar/src/model/DescribeProcessTasksRequest.cc new file mode 100644 index 000000000..139cf68dd --- /dev/null +++ b/sophonsoar/src/model/DescribeProcessTasksRequest.cc @@ -0,0 +1,261 @@ +/* + * 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 + +using AlibabaCloud::Sophonsoar::Model::DescribeProcessTasksRequest; + +DescribeProcessTasksRequest::DescribeProcessTasksRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "DescribeProcessTasks") { + setMethod(HttpRequest::Method::Post); +} + +DescribeProcessTasksRequest::~DescribeProcessTasksRequest() {} + +std::string DescribeProcessTasksRequest::getEntityKey() const { + return entityKey_; +} + +void DescribeProcessTasksRequest::setEntityKey(const std::string &entityKey) { + entityKey_ = entityKey; + setParameter(std::string("EntityKey"), entityKey); +} + +std::string DescribeProcessTasksRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeProcessTasksRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string DescribeProcessTasksRequest::getEntityName() const { + return entityName_; +} + +void DescribeProcessTasksRequest::setEntityName(const std::string &entityName) { + entityName_ = entityName; + setParameter(std::string("EntityName"), entityName); +} + +std::string DescribeProcessTasksRequest::getTaskName() const { + return taskName_; +} + +void DescribeProcessTasksRequest::setTaskName(const std::string &taskName) { + taskName_ = taskName; + setParameter(std::string("TaskName"), taskName); +} + +std::string DescribeProcessTasksRequest::getYunCode() const { + return yunCode_; +} + +void DescribeProcessTasksRequest::setYunCode(const std::string &yunCode) { + yunCode_ = yunCode; + setParameter(std::string("YunCode"), yunCode); +} + +std::string DescribeProcessTasksRequest::getSource() const { + return source_; +} + +void DescribeProcessTasksRequest::setSource(const std::string &source) { + source_ = source; + setParameter(std::string("Source"), source); +} + +long DescribeProcessTasksRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeProcessTasksRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeProcessTasksRequest::getTaskStatus() const { + return taskStatus_; +} + +void DescribeProcessTasksRequest::setTaskStatus(const std::string &taskStatus) { + taskStatus_ = taskStatus; + setParameter(std::string("TaskStatus"), taskStatus); +} + +long DescribeProcessTasksRequest::getProcessRemoveEnd() const { + return processRemoveEnd_; +} + +void DescribeProcessTasksRequest::setProcessRemoveEnd(long processRemoveEnd) { + processRemoveEnd_ = processRemoveEnd; + setParameter(std::string("ProcessRemoveEnd"), std::to_string(processRemoveEnd)); +} + +std::string DescribeProcessTasksRequest::getParamContent() const { + return paramContent_; +} + +void DescribeProcessTasksRequest::setParamContent(const std::string ¶mContent) { + paramContent_ = paramContent; + setParameter(std::string("ParamContent"), paramContent); +} + +std::string DescribeProcessTasksRequest::getScope() const { + return scope_; +} + +void DescribeProcessTasksRequest::setScope(const std::string &scope) { + scope_ = scope; + setParameter(std::string("Scope"), scope); +} + +int DescribeProcessTasksRequest::getPageSize() const { + return pageSize_; +} + +void DescribeProcessTasksRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeProcessTasksRequest::getTriggerSource() const { + return triggerSource_; +} + +void DescribeProcessTasksRequest::setTriggerSource(const std::string &triggerSource) { + triggerSource_ = triggerSource; + setParameter(std::string("TriggerSource"), triggerSource); +} + +long DescribeProcessTasksRequest::getProcessRemoveStart() const { + return processRemoveStart_; +} + +void DescribeProcessTasksRequest::setProcessRemoveStart(long processRemoveStart) { + processRemoveStart_ = processRemoveStart; + setParameter(std::string("ProcessRemoveStart"), std::to_string(processRemoveStart)); +} + +std::string DescribeProcessTasksRequest::getRoleType() const { + return roleType_; +} + +void DescribeProcessTasksRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string DescribeProcessTasksRequest::getLang() const { + return lang_; +} + +void DescribeProcessTasksRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + +std::string DescribeProcessTasksRequest::getTaskId() const { + return taskId_; +} + +void DescribeProcessTasksRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); +} + +std::string DescribeProcessTasksRequest::getOrderField() const { + return orderField_; +} + +void DescribeProcessTasksRequest::setOrderField(const std::string &orderField) { + orderField_ = orderField; + setParameter(std::string("OrderField"), orderField); +} + +std::string DescribeProcessTasksRequest::getDirection() const { + return direction_; +} + +void DescribeProcessTasksRequest::setDirection(const std::string &direction) { + direction_ = direction; + setParameter(std::string("Direction"), direction); +} + +std::string DescribeProcessTasksRequest::getSceneCode() const { + return sceneCode_; +} + +void DescribeProcessTasksRequest::setSceneCode(const std::string &sceneCode) { + sceneCode_ = sceneCode; + setParameter(std::string("SceneCode"), sceneCode); +} + +long DescribeProcessTasksRequest::getProcessActionStart() const { + return processActionStart_; +} + +void DescribeProcessTasksRequest::setProcessActionStart(long processActionStart) { + processActionStart_ = processActionStart; + setParameter(std::string("ProcessActionStart"), std::to_string(processActionStart)); +} + +long DescribeProcessTasksRequest::getProcessActionEnd() const { + return processActionEnd_; +} + +void DescribeProcessTasksRequest::setProcessActionEnd(long processActionEnd) { + processActionEnd_ = processActionEnd; + setParameter(std::string("ProcessActionEnd"), std::to_string(processActionEnd)); +} + +std::string DescribeProcessTasksRequest::getProcessStrategyUuid() const { + return processStrategyUuid_; +} + +void DescribeProcessTasksRequest::setProcessStrategyUuid(const std::string &processStrategyUuid) { + processStrategyUuid_ = processStrategyUuid; + setParameter(std::string("ProcessStrategyUuid"), processStrategyUuid); +} + +std::string DescribeProcessTasksRequest::getEntityType() const { + return entityType_; +} + +void DescribeProcessTasksRequest::setEntityType(const std::string &entityType) { + entityType_ = entityType; + setParameter(std::string("EntityType"), entityType); +} + +std::string DescribeProcessTasksRequest::getEntityUuid() const { + return entityUuid_; +} + +void DescribeProcessTasksRequest::setEntityUuid(const std::string &entityUuid) { + entityUuid_ = entityUuid; + setParameter(std::string("EntityUuid"), entityUuid); +} + +std::string DescribeProcessTasksRequest::getEventUuid() const { + return eventUuid_; +} + +void DescribeProcessTasksRequest::setEventUuid(const std::string &eventUuid) { + eventUuid_ = eventUuid; + setParameter(std::string("EventUuid"), eventUuid); +} + diff --git a/sophonsoar/src/model/DescribeProcessTasksResult.cc b/sophonsoar/src/model/DescribeProcessTasksResult.cc new file mode 100644 index 000000000..16789e29f --- /dev/null +++ b/sophonsoar/src/model/DescribeProcessTasksResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +DescribeProcessTasksResult::DescribeProcessTasksResult() : + ServiceResult() +{} + +DescribeProcessTasksResult::DescribeProcessTasksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeProcessTasksResult::~DescribeProcessTasksResult() +{} + +void DescribeProcessTasksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allProcessTasksNode = value["ProcessTasks"]["Data"]; + for (auto valueProcessTasksData : allProcessTasksNode) + { + Data processTasksObject; + if(!valueProcessTasksData["TaskId"].isNull()) + processTasksObject.taskId = valueProcessTasksData["TaskId"].asString(); + if(!valueProcessTasksData["Creator"].isNull()) + processTasksObject.creator = valueProcessTasksData["Creator"].asString(); + if(!valueProcessTasksData["GmtCreateMillis"].isNull()) + processTasksObject.gmtCreateMillis = std::stol(valueProcessTasksData["GmtCreateMillis"].asString()); + if(!valueProcessTasksData["GmtModifiedMillis"].isNull()) + processTasksObject.gmtModifiedMillis = std::stol(valueProcessTasksData["GmtModifiedMillis"].asString()); + if(!valueProcessTasksData["TaskName"].isNull()) + processTasksObject.taskName = valueProcessTasksData["TaskName"].asString(); + if(!valueProcessTasksData["YunCode"].isNull()) + processTasksObject.yunCode = valueProcessTasksData["YunCode"].asString(); + if(!valueProcessTasksData["EntityName"].isNull()) + processTasksObject.entityName = valueProcessTasksData["EntityName"].asString(); + if(!valueProcessTasksData["EntityType"].isNull()) + processTasksObject.entityType = valueProcessTasksData["EntityType"].asString(); + if(!valueProcessTasksData["EntityValue"].isNull()) + processTasksObject.entityValue = valueProcessTasksData["EntityValue"].asString(); + if(!valueProcessTasksData["EntityKey"].isNull()) + processTasksObject.entityKey = valueProcessTasksData["EntityKey"].asString(); + if(!valueProcessTasksData["TaskStatus"].isNull()) + processTasksObject.taskStatus = std::stoi(valueProcessTasksData["TaskStatus"].asString()); + if(!valueProcessTasksData["Scope"].isNull()) + processTasksObject.scope = valueProcessTasksData["Scope"].asString(); + if(!valueProcessTasksData["InputParams"].isNull()) + processTasksObject.inputParams = valueProcessTasksData["InputParams"].asString(); + if(!valueProcessTasksData["SceneCode"].isNull()) + processTasksObject.sceneCode = valueProcessTasksData["SceneCode"].asString(); + if(!valueProcessTasksData["SceneName"].isNull()) + processTasksObject.sceneName = valueProcessTasksData["SceneName"].asString(); + if(!valueProcessTasksData["ProcessTime"].isNull()) + processTasksObject.processTime = std::stol(valueProcessTasksData["ProcessTime"].asString()); + if(!valueProcessTasksData["RemoveTime"].isNull()) + processTasksObject.removeTime = std::stol(valueProcessTasksData["RemoveTime"].asString()); + if(!valueProcessTasksData["ProcessStrategyUuid"].isNull()) + processTasksObject.processStrategyUuid = valueProcessTasksData["ProcessStrategyUuid"].asString(); + if(!valueProcessTasksData["TenantId"].isNull()) + processTasksObject.tenantId = valueProcessTasksData["TenantId"].asString(); + if(!valueProcessTasksData["Source"].isNull()) + processTasksObject.source = valueProcessTasksData["Source"].asString(); + if(!valueProcessTasksData["RemoveFlag"].isNull()) + processTasksObject.removeFlag = std::stoi(valueProcessTasksData["RemoveFlag"].asString()); + if(!valueProcessTasksData["RetryFlag"].isNull()) + processTasksObject.retryFlag = std::stoi(valueProcessTasksData["RetryFlag"].asString()); + if(!valueProcessTasksData["ErrCode"].isNull()) + processTasksObject.errCode = valueProcessTasksData["ErrCode"].asString(); + if(!valueProcessTasksData["ErrMsg"].isNull()) + processTasksObject.errMsg = valueProcessTasksData["ErrMsg"].asString(); + if(!valueProcessTasksData["ErrTip"].isNull()) + processTasksObject.errTip = valueProcessTasksData["ErrTip"].asString(); + if(!valueProcessTasksData["EntityUuid"].isNull()) + processTasksObject.entityUuid = valueProcessTasksData["EntityUuid"].asString(); + if(!valueProcessTasksData["EventUuid"].isNull()) + processTasksObject.eventUuid = valueProcessTasksData["EventUuid"].asString(); + if(!valueProcessTasksData["ReqUuid"].isNull()) + processTasksObject.reqUuid = valueProcessTasksData["ReqUuid"].asString(); + if(!valueProcessTasksData["TriggerSource"].isNull()) + processTasksObject.triggerSource = valueProcessTasksData["TriggerSource"].asString(); + processTasks_.push_back(processTasksObject); + } + auto pageNode = value["Page"]; + if(!pageNode["TotalCount"].isNull()) + page_.totalCount = std::stoi(pageNode["TotalCount"].asString()); + if(!pageNode["PageNumber"].isNull()) + page_.pageNumber = std::stoi(pageNode["PageNumber"].asString()); + if(!pageNode["PageSize"].isNull()) + page_.pageSize = std::stoi(pageNode["PageSize"].asString()); + +} + +std::vector DescribeProcessTasksResult::getProcessTasks()const +{ + return processTasks_; +} + +DescribeProcessTasksResult::Page DescribeProcessTasksResult::getPage()const +{ + return page_; +} + diff --git a/sophonsoar/src/model/DescribeSoarRecordActionOutputListRequest.cc b/sophonsoar/src/model/DescribeSoarRecordActionOutputListRequest.cc new file mode 100644 index 000000000..8544a44c3 --- /dev/null +++ b/sophonsoar/src/model/DescribeSoarRecordActionOutputListRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Sophonsoar::Model::DescribeSoarRecordActionOutputListRequest; + +DescribeSoarRecordActionOutputListRequest::DescribeSoarRecordActionOutputListRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "DescribeSoarRecordActionOutputList") { + setMethod(HttpRequest::Method::Get); +} + +DescribeSoarRecordActionOutputListRequest::~DescribeSoarRecordActionOutputListRequest() {} + +std::string DescribeSoarRecordActionOutputListRequest::getActionUuid() const { + return actionUuid_; +} + +void DescribeSoarRecordActionOutputListRequest::setActionUuid(const std::string &actionUuid) { + actionUuid_ = actionUuid; + setParameter(std::string("ActionUuid"), actionUuid); +} + +std::string DescribeSoarRecordActionOutputListRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeSoarRecordActionOutputListRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +int DescribeSoarRecordActionOutputListRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeSoarRecordActionOutputListRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +int DescribeSoarRecordActionOutputListRequest::getPageSize() const { + return pageSize_; +} + +void DescribeSoarRecordActionOutputListRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeSoarRecordActionOutputListRequest::getRoleType() const { + return roleType_; +} + +void DescribeSoarRecordActionOutputListRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string DescribeSoarRecordActionOutputListRequest::getQueryValue() const { + return queryValue_; +} + +void DescribeSoarRecordActionOutputListRequest::setQueryValue(const std::string &queryValue) { + queryValue_ = queryValue; + setParameter(std::string("QueryValue"), queryValue); +} + +std::string DescribeSoarRecordActionOutputListRequest::getLang() const { + return lang_; +} + +void DescribeSoarRecordActionOutputListRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/DescribeSoarRecordActionOutputListResult.cc b/sophonsoar/src/model/DescribeSoarRecordActionOutputListResult.cc new file mode 100644 index 000000000..88bf64498 --- /dev/null +++ b/sophonsoar/src/model/DescribeSoarRecordActionOutputListResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +DescribeSoarRecordActionOutputListResult::DescribeSoarRecordActionOutputListResult() : + ServiceResult() +{} + +DescribeSoarRecordActionOutputListResult::DescribeSoarRecordActionOutputListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSoarRecordActionOutputListResult::~DescribeSoarRecordActionOutputListResult() +{} + +void DescribeSoarRecordActionOutputListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ActionOutputs"].isNull()) + actionOutputs_ = value["ActionOutputs"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeSoarRecordActionOutputListResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeSoarRecordActionOutputListResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeSoarRecordActionOutputListResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string DescribeSoarRecordActionOutputListResult::getActionOutputs()const +{ + return actionOutputs_; +} + diff --git a/sophonsoar/src/model/DescribeSoarRecordInOutputRequest.cc b/sophonsoar/src/model/DescribeSoarRecordInOutputRequest.cc new file mode 100644 index 000000000..cfe23622d --- /dev/null +++ b/sophonsoar/src/model/DescribeSoarRecordInOutputRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sophonsoar::Model::DescribeSoarRecordInOutputRequest; + +DescribeSoarRecordInOutputRequest::DescribeSoarRecordInOutputRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "DescribeSoarRecordInOutput") { + setMethod(HttpRequest::Method::Get); +} + +DescribeSoarRecordInOutputRequest::~DescribeSoarRecordInOutputRequest() {} + +std::string DescribeSoarRecordInOutputRequest::getActionUuid() const { + return actionUuid_; +} + +void DescribeSoarRecordInOutputRequest::setActionUuid(const std::string &actionUuid) { + actionUuid_ = actionUuid; + setParameter(std::string("ActionUuid"), actionUuid); +} + +std::string DescribeSoarRecordInOutputRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeSoarRecordInOutputRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string DescribeSoarRecordInOutputRequest::getRoleType() const { + return roleType_; +} + +void DescribeSoarRecordInOutputRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string DescribeSoarRecordInOutputRequest::getLang() const { + return lang_; +} + +void DescribeSoarRecordInOutputRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/DescribeSoarRecordInOutputResult.cc b/sophonsoar/src/model/DescribeSoarRecordInOutputResult.cc new file mode 100644 index 000000000..3e65cd60f --- /dev/null +++ b/sophonsoar/src/model/DescribeSoarRecordInOutputResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +DescribeSoarRecordInOutputResult::DescribeSoarRecordInOutputResult() : + ServiceResult() +{} + +DescribeSoarRecordInOutputResult::DescribeSoarRecordInOutputResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSoarRecordInOutputResult::~DescribeSoarRecordInOutputResult() +{} + +void DescribeSoarRecordInOutputResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["InOutputInfo"].isNull()) + inOutputInfo_ = value["InOutputInfo"].asString(); + +} + +std::string DescribeSoarRecordInOutputResult::getInOutputInfo()const +{ + return inOutputInfo_; +} + diff --git a/sophonsoar/src/model/DescribeSoarRecordsRequest.cc b/sophonsoar/src/model/DescribeSoarRecordsRequest.cc new file mode 100644 index 000000000..57e33789c --- /dev/null +++ b/sophonsoar/src/model/DescribeSoarRecordsRequest.cc @@ -0,0 +1,144 @@ +/* + * 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 + +using AlibabaCloud::Sophonsoar::Model::DescribeSoarRecordsRequest; + +DescribeSoarRecordsRequest::DescribeSoarRecordsRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "DescribeSoarRecords") { + setMethod(HttpRequest::Method::Get); +} + +DescribeSoarRecordsRequest::~DescribeSoarRecordsRequest() {} + +std::string DescribeSoarRecordsRequest::getTaskflowMd5() const { + return taskflowMd5_; +} + +void DescribeSoarRecordsRequest::setTaskflowMd5(const std::string &taskflowMd5) { + taskflowMd5_ = taskflowMd5; + setParameter(std::string("TaskflowMd5"), taskflowMd5); +} + +std::string DescribeSoarRecordsRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeSoarRecordsRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string DescribeSoarRecordsRequest::getTaskType() const { + return taskType_; +} + +void DescribeSoarRecordsRequest::setTaskType(const std::string &taskType) { + taskType_ = taskType; + setParameter(std::string("TaskType"), taskType); +} + +long DescribeSoarRecordsRequest::getEndMillis() const { + return endMillis_; +} + +void DescribeSoarRecordsRequest::setEndMillis(long endMillis) { + endMillis_ = endMillis; + setParameter(std::string("EndMillis"), std::to_string(endMillis)); +} + +long DescribeSoarRecordsRequest::getStartMillis() const { + return startMillis_; +} + +void DescribeSoarRecordsRequest::setStartMillis(long startMillis) { + startMillis_ = startMillis; + setParameter(std::string("StartMillis"), std::to_string(startMillis)); +} + +int DescribeSoarRecordsRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeSoarRecordsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeSoarRecordsRequest::getTaskStatus() const { + return taskStatus_; +} + +void DescribeSoarRecordsRequest::setTaskStatus(const std::string &taskStatus) { + taskStatus_ = taskStatus; + setParameter(std::string("TaskStatus"), taskStatus); +} + +std::string DescribeSoarRecordsRequest::getPlaybookUuid() const { + return playbookUuid_; +} + +void DescribeSoarRecordsRequest::setPlaybookUuid(const std::string &playbookUuid) { + playbookUuid_ = playbookUuid; + setParameter(std::string("PlaybookUuid"), playbookUuid); +} + +std::string DescribeSoarRecordsRequest::getRequestUuid() const { + return requestUuid_; +} + +void DescribeSoarRecordsRequest::setRequestUuid(const std::string &requestUuid) { + requestUuid_ = requestUuid; + setParameter(std::string("RequestUuid"), requestUuid); +} + +int DescribeSoarRecordsRequest::getPageSize() const { + return pageSize_; +} + +void DescribeSoarRecordsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeSoarRecordsRequest::getRoleType() const { + return roleType_; +} + +void DescribeSoarRecordsRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string DescribeSoarRecordsRequest::getTriggerUser() const { + return triggerUser_; +} + +void DescribeSoarRecordsRequest::setTriggerUser(const std::string &triggerUser) { + triggerUser_ = triggerUser; + setParameter(std::string("TriggerUser"), triggerUser); +} + +std::string DescribeSoarRecordsRequest::getLang() const { + return lang_; +} + +void DescribeSoarRecordsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/DescribeSoarRecordsResult.cc b/sophonsoar/src/model/DescribeSoarRecordsResult.cc new file mode 100644 index 000000000..eed64edf3 --- /dev/null +++ b/sophonsoar/src/model/DescribeSoarRecordsResult.cc @@ -0,0 +1,103 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +DescribeSoarRecordsResult::DescribeSoarRecordsResult() : + ServiceResult() +{} + +DescribeSoarRecordsResult::DescribeSoarRecordsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSoarRecordsResult::~DescribeSoarRecordsResult() +{} + +void DescribeSoarRecordsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSoarExecuteRecordsNode = value["SoarExecuteRecords"]["Data"]; + for (auto valueSoarExecuteRecordsData : allSoarExecuteRecordsNode) + { + Data soarExecuteRecordsObject; + if(!valueSoarExecuteRecordsData["TriggerType"].isNull()) + soarExecuteRecordsObject.triggerType = valueSoarExecuteRecordsData["TriggerType"].asString(); + if(!valueSoarExecuteRecordsData["TriggerDataId"].isNull()) + soarExecuteRecordsObject.triggerDataId = valueSoarExecuteRecordsData["TriggerDataId"].asString(); + if(!valueSoarExecuteRecordsData["TaskName"].isNull()) + soarExecuteRecordsObject.taskName = valueSoarExecuteRecordsData["TaskName"].asString(); + if(!valueSoarExecuteRecordsData["StartTime"].isNull()) + soarExecuteRecordsObject.startTime = std::stol(valueSoarExecuteRecordsData["StartTime"].asString()); + if(!valueSoarExecuteRecordsData["EndTime"].isNull()) + soarExecuteRecordsObject.endTime = std::stol(valueSoarExecuteRecordsData["EndTime"].asString()); + if(!valueSoarExecuteRecordsData["Status"].isNull()) + soarExecuteRecordsObject.status = valueSoarExecuteRecordsData["Status"].asString(); + if(!valueSoarExecuteRecordsData["Success"].isNull()) + soarExecuteRecordsObject.success = std::stoi(valueSoarExecuteRecordsData["Success"].asString()); + if(!valueSoarExecuteRecordsData["RequestUuid"].isNull()) + soarExecuteRecordsObject.requestUuid = valueSoarExecuteRecordsData["RequestUuid"].asString(); + if(!valueSoarExecuteRecordsData["TriggerUser"].isNull()) + soarExecuteRecordsObject.triggerUser = valueSoarExecuteRecordsData["TriggerUser"].asString(); + if(!valueSoarExecuteRecordsData["ErrorMsg"].isNull()) + soarExecuteRecordsObject.errorMsg = valueSoarExecuteRecordsData["ErrorMsg"].asString(); + if(!valueSoarExecuteRecordsData["DataSourceName"].isNull()) + soarExecuteRecordsObject.dataSourceName = valueSoarExecuteRecordsData["DataSourceName"].asString(); + if(!valueSoarExecuteRecordsData["RawEventReq"].isNull()) + soarExecuteRecordsObject.rawEventReq = valueSoarExecuteRecordsData["RawEventReq"].asString(); + if(!valueSoarExecuteRecordsData["ResultMessage"].isNull()) + soarExecuteRecordsObject.resultMessage = valueSoarExecuteRecordsData["ResultMessage"].asString(); + if(!valueSoarExecuteRecordsData["ResultDetailInfo"].isNull()) + soarExecuteRecordsObject.resultDetailInfo = valueSoarExecuteRecordsData["ResultDetailInfo"].asString(); + if(!valueSoarExecuteRecordsData["TaskTenantId"].isNull()) + soarExecuteRecordsObject.taskTenantId = valueSoarExecuteRecordsData["TaskTenantId"].asString(); + if(!valueSoarExecuteRecordsData["TaskType"].isNull()) + soarExecuteRecordsObject.taskType = valueSoarExecuteRecordsData["TaskType"].asString(); + if(!valueSoarExecuteRecordsData["TaskflowMd5"].isNull()) + soarExecuteRecordsObject.taskflowMd5 = valueSoarExecuteRecordsData["TaskflowMd5"].asString(); + if(!valueSoarExecuteRecordsData["FlowTag"].isNull()) + soarExecuteRecordsObject.flowTag = std::stoi(valueSoarExecuteRecordsData["FlowTag"].asString()); + soarExecuteRecords_.push_back(soarExecuteRecordsObject); + } + auto pageNode = value["Page"]; + if(!pageNode["TotalCount"].isNull()) + page_.totalCount = std::stoi(pageNode["TotalCount"].asString()); + if(!pageNode["PageNumber"].isNull()) + page_.pageNumber = std::stoi(pageNode["PageNumber"].asString()); + if(!pageNode["PageSize"].isNull()) + page_.pageSize = std::stoi(pageNode["PageSize"].asString()); + +} + +DescribeSoarRecordsResult::Page DescribeSoarRecordsResult::getPage()const +{ + return page_; +} + +std::vector DescribeSoarRecordsResult::getSoarExecuteRecords()const +{ + return soarExecuteRecords_; +} + diff --git a/sophonsoar/src/model/DescribeSoarTaskAndActionsRequest.cc b/sophonsoar/src/model/DescribeSoarTaskAndActionsRequest.cc new file mode 100644 index 000000000..d0bb64d78 --- /dev/null +++ b/sophonsoar/src/model/DescribeSoarTaskAndActionsRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sophonsoar::Model::DescribeSoarTaskAndActionsRequest; + +DescribeSoarTaskAndActionsRequest::DescribeSoarTaskAndActionsRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "DescribeSoarTaskAndActions") { + setMethod(HttpRequest::Method::Get); +} + +DescribeSoarTaskAndActionsRequest::~DescribeSoarTaskAndActionsRequest() {} + +std::string DescribeSoarTaskAndActionsRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeSoarTaskAndActionsRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string DescribeSoarTaskAndActionsRequest::getRequestUuid() const { + return requestUuid_; +} + +void DescribeSoarTaskAndActionsRequest::setRequestUuid(const std::string &requestUuid) { + requestUuid_ = requestUuid; + setParameter(std::string("RequestUuid"), requestUuid); +} + +std::string DescribeSoarTaskAndActionsRequest::getRoleType() const { + return roleType_; +} + +void DescribeSoarTaskAndActionsRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string DescribeSoarTaskAndActionsRequest::getLang() const { + return lang_; +} + +void DescribeSoarTaskAndActionsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/DescribeSoarTaskAndActionsResult.cc b/sophonsoar/src/model/DescribeSoarTaskAndActionsResult.cc new file mode 100644 index 000000000..cc1568455 --- /dev/null +++ b/sophonsoar/src/model/DescribeSoarTaskAndActionsResult.cc @@ -0,0 +1,146 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +DescribeSoarTaskAndActionsResult::DescribeSoarTaskAndActionsResult() : + ServiceResult() +{} + +DescribeSoarTaskAndActionsResult::DescribeSoarTaskAndActionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSoarTaskAndActionsResult::~DescribeSoarTaskAndActionsResult() +{} + +void DescribeSoarTaskAndActionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto detailsNode = value["Details"]; + if(!detailsNode["TriggerType"].isNull()) + details_.triggerType = detailsNode["TriggerType"].asString(); + if(!detailsNode["TriggerDataId"].isNull()) + details_.triggerDataId = detailsNode["TriggerDataId"].asString(); + if(!detailsNode["Sao"].isNull()) + details_.sao = detailsNode["Sao"].asString(); + if(!detailsNode["TaskName"].isNull()) + details_.taskName = detailsNode["TaskName"].asString(); + if(!detailsNode["StartTime"].isNull()) + details_.startTime = std::stol(detailsNode["StartTime"].asString()); + if(!detailsNode["EndTime"].isNull()) + details_.endTime = std::stol(detailsNode["EndTime"].asString()); + if(!detailsNode["Status"].isNull()) + details_.status = detailsNode["Status"].asString(); + if(!detailsNode["Success"].isNull()) + details_.success = std::stoi(detailsNode["Success"].asString()); + if(!detailsNode["All"].isNull()) + details_.all = std::stoi(detailsNode["All"].asString()); + if(!detailsNode["RequestUuid"].isNull()) + details_.requestUuid = detailsNode["RequestUuid"].asString(); + if(!detailsNode["TaskUuid"].isNull()) + details_.taskUuid = detailsNode["TaskUuid"].asString(); + if(!detailsNode["TriggerUser"].isNull()) + details_.triggerUser = detailsNode["TriggerUser"].asString(); + if(!detailsNode["ErrorMsg"].isNull()) + details_.errorMsg = detailsNode["ErrorMsg"].asString(); + if(!detailsNode["DataSourceName"].isNull()) + details_.dataSourceName = detailsNode["DataSourceName"].asString(); + if(!detailsNode["RawEventReq"].isNull()) + details_.rawEventReq = detailsNode["RawEventReq"].asString(); + if(!detailsNode["ResultLevel"].isNull()) + details_.resultLevel = detailsNode["ResultLevel"].asString(); + if(!detailsNode["ResultMessage"].isNull()) + details_.resultMessage = detailsNode["ResultMessage"].asString(); + if(!detailsNode["ResultDetailInfo"].isNull()) + details_.resultDetailInfo = detailsNode["ResultDetailInfo"].asString(); + if(!detailsNode["TaskTenantId"].isNull()) + details_.taskTenantId = detailsNode["TaskTenantId"].asString(); + if(!detailsNode["TaskType"].isNull()) + details_.taskType = detailsNode["TaskType"].asString(); + if(!detailsNode["ActionLogNum"].isNull()) + details_.actionLogNum = std::stoi(detailsNode["ActionLogNum"].asString()); + if(!detailsNode["TaskFlowMd5"].isNull()) + details_.taskFlowMd5 = detailsNode["TaskFlowMd5"].asString(); + auto allActionsNode = detailsNode["Actions"]["Action"]; + for (auto detailsNodeActionsAction : allActionsNode) + { + Details::Action actionObject; + if(!detailsNodeActionsAction["TriggerType"].isNull()) + actionObject.triggerType = detailsNodeActionsAction["TriggerType"].asString(); + if(!detailsNodeActionsAction["TriggerDataId"].isNull()) + actionObject.triggerDataId = detailsNodeActionsAction["TriggerDataId"].asString(); + if(!detailsNodeActionsAction["Component"].isNull()) + actionObject.component = detailsNodeActionsAction["Component"].asString(); + if(!detailsNodeActionsAction["Action"].isNull()) + actionObject.action = detailsNodeActionsAction["Action"].asString(); + if(!detailsNodeActionsAction["StartTime"].isNull()) + actionObject.startTime = std::stol(detailsNodeActionsAction["StartTime"].asString()); + if(!detailsNodeActionsAction["EndTime"].isNull()) + actionObject.endTime = std::stol(detailsNodeActionsAction["EndTime"].asString()); + if(!detailsNodeActionsAction["Status"].isNull()) + actionObject.status = detailsNodeActionsAction["Status"].asString(); + if(!detailsNodeActionsAction["RequestUuid"].isNull()) + actionObject.requestUuid = detailsNodeActionsAction["RequestUuid"].asString(); + if(!detailsNodeActionsAction["TaskUuid"].isNull()) + actionObject.taskUuid = detailsNodeActionsAction["TaskUuid"].asString(); + if(!detailsNodeActionsAction["SrcHostName"].isNull()) + actionObject.srcHostName = detailsNodeActionsAction["SrcHostName"].asString(); + if(!detailsNodeActionsAction["TriggerUser"].isNull()) + actionObject.triggerUser = detailsNodeActionsAction["TriggerUser"].asString(); + if(!detailsNodeActionsAction["TaskName"].isNull()) + actionObject.taskName = detailsNodeActionsAction["TaskName"].asString(); + if(!detailsNodeActionsAction["TaskStatus"].isNull()) + actionObject.taskStatus = detailsNodeActionsAction["TaskStatus"].asString(); + if(!detailsNodeActionsAction["ActionUuid"].isNull()) + actionObject.actionUuid = detailsNodeActionsAction["ActionUuid"].asString(); + if(!detailsNodeActionsAction["DataSourceName"].isNull()) + actionObject.dataSourceName = detailsNodeActionsAction["DataSourceName"].asString(); + if(!detailsNodeActionsAction["AssetName"].isNull()) + actionObject.assetName = detailsNodeActionsAction["AssetName"].asString(); + if(!detailsNodeActionsAction["NodeName"].isNull()) + actionObject.nodeName = detailsNodeActionsAction["NodeName"].asString(); + if(!detailsNodeActionsAction["EventId"].isNull()) + actionObject.eventId = detailsNodeActionsAction["EventId"].asString(); + if(!detailsNodeActionsAction["NodeId"].isNull()) + actionObject.nodeId = detailsNodeActionsAction["NodeId"].asString(); + if(!detailsNodeActionsAction["NodeType"].isNull()) + actionObject.nodeType = detailsNodeActionsAction["NodeType"].asString(); + if(!detailsNodeActionsAction["TaskTenantId"].isNull()) + actionObject.taskTenantId = detailsNodeActionsAction["TaskTenantId"].asString(); + if(!detailsNodeActionsAction["TaskType"].isNull()) + actionObject.taskType = detailsNodeActionsAction["TaskType"].asString(); + if(!detailsNodeActionsAction["TenantId"].isNull()) + actionObject.tenantId = detailsNodeActionsAction["TenantId"].asString(); + details_.actions.push_back(actionObject); + } + +} + +DescribeSoarTaskAndActionsResult::Details DescribeSoarTaskAndActionsResult::getDetails()const +{ + return details_; +} + diff --git a/sophonsoar/src/model/DescribeSophonCommandsRequest.cc b/sophonsoar/src/model/DescribeSophonCommandsRequest.cc new file mode 100644 index 000000000..e56be0d21 --- /dev/null +++ b/sophonsoar/src/model/DescribeSophonCommandsRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sophonsoar::Model::DescribeSophonCommandsRequest; + +DescribeSophonCommandsRequest::DescribeSophonCommandsRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "DescribeSophonCommands") { + setMethod(HttpRequest::Method::Post); +} + +DescribeSophonCommandsRequest::~DescribeSophonCommandsRequest() {} + +std::string DescribeSophonCommandsRequest::getActionType() const { + return actionType_; +} + +void DescribeSophonCommandsRequest::setActionType(const std::string &actionType) { + actionType_ = actionType; + setParameter(std::string("ActionType"), actionType); +} + +std::string DescribeSophonCommandsRequest::getRoleFor() const { + return roleFor_; +} + +void DescribeSophonCommandsRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string DescribeSophonCommandsRequest::getName() const { + return name_; +} + +void DescribeSophonCommandsRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string DescribeSophonCommandsRequest::getRoleType() const { + return roleType_; +} + +void DescribeSophonCommandsRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string DescribeSophonCommandsRequest::getLang() const { + return lang_; +} + +void DescribeSophonCommandsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/DescribeSophonCommandsResult.cc b/sophonsoar/src/model/DescribeSophonCommandsResult.cc new file mode 100644 index 000000000..e08feecec --- /dev/null +++ b/sophonsoar/src/model/DescribeSophonCommandsResult.cc @@ -0,0 +1,83 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +DescribeSophonCommandsResult::DescribeSophonCommandsResult() : + ServiceResult() +{} + +DescribeSophonCommandsResult::DescribeSophonCommandsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSophonCommandsResult::~DescribeSophonCommandsResult() +{} + +void DescribeSophonCommandsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DataItem"]; + for (auto valueDataDataItem : allDataNode) + { + DataItem dataObject; + if(!valueDataDataItem["Name"].isNull()) + dataObject.name = valueDataDataItem["Name"].asString(); + if(!valueDataDataItem["DisplayName"].isNull()) + dataObject.displayName = valueDataDataItem["DisplayName"].asString(); + if(!valueDataDataItem["CommandEntity"].isNull()) + dataObject.commandEntity = valueDataDataItem["CommandEntity"].asString(); + if(!valueDataDataItem["CommandTag"].isNull()) + dataObject.commandTag = valueDataDataItem["CommandTag"].asString(); + if(!valueDataDataItem["Description"].isNull()) + dataObject.description = valueDataDataItem["Description"].asString(); + if(!valueDataDataItem["ActionType"].isNull()) + dataObject.actionType = valueDataDataItem["ActionType"].asString(); + if(!valueDataDataItem["TaskConfig"].isNull()) + dataObject.taskConfig = valueDataDataItem["TaskConfig"].asString(); + auto allParamConfigNode = valueDataDataItem["ParamConfig"]["ParamConfigItem"]; + for (auto valueDataDataItemParamConfigParamConfigItem : allParamConfigNode) + { + DataItem::ParamConfigItem paramConfigObject; + if(!valueDataDataItemParamConfigParamConfigItem["Necessary"].isNull()) + paramConfigObject.necessary = valueDataDataItemParamConfigParamConfigItem["Necessary"].asString() == "true"; + if(!valueDataDataItemParamConfigParamConfigItem["Field"].isNull()) + paramConfigObject.field = valueDataDataItemParamConfigParamConfigItem["Field"].asString(); + if(!valueDataDataItemParamConfigParamConfigItem["Value"].isNull()) + paramConfigObject.value = valueDataDataItemParamConfigParamConfigItem["Value"].asString(); + if(!valueDataDataItemParamConfigParamConfigItem["CheckField"].isNull()) + paramConfigObject.checkField = valueDataDataItemParamConfigParamConfigItem["CheckField"].asString(); + dataObject.paramConfig.push_back(paramConfigObject); + } + data_.push_back(dataObject); + } + +} + +std::vector DescribeSophonCommandsResult::getData()const +{ + return data_; +} + diff --git a/sophonsoar/src/model/DescriberPython3ScriptLogsRequest.cc b/sophonsoar/src/model/DescriberPython3ScriptLogsRequest.cc new file mode 100644 index 000000000..b429365c7 --- /dev/null +++ b/sophonsoar/src/model/DescriberPython3ScriptLogsRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sophonsoar::Model::DescriberPython3ScriptLogsRequest; + +DescriberPython3ScriptLogsRequest::DescriberPython3ScriptLogsRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "DescriberPython3ScriptLogs") { + setMethod(HttpRequest::Method::Get); +} + +DescriberPython3ScriptLogsRequest::~DescriberPython3ScriptLogsRequest() {} + +std::string DescriberPython3ScriptLogsRequest::getRoleFor() const { + return roleFor_; +} + +void DescriberPython3ScriptLogsRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string DescriberPython3ScriptLogsRequest::getRequestUuid() const { + return requestUuid_; +} + +void DescriberPython3ScriptLogsRequest::setRequestUuid(const std::string &requestUuid) { + requestUuid_ = requestUuid; + setParameter(std::string("RequestUuid"), requestUuid); +} + +std::string DescriberPython3ScriptLogsRequest::getRoleType() const { + return roleType_; +} + +void DescriberPython3ScriptLogsRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string DescriberPython3ScriptLogsRequest::getLang() const { + return lang_; +} + +void DescriberPython3ScriptLogsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/DescriberPython3ScriptLogsResult.cc b/sophonsoar/src/model/DescriberPython3ScriptLogsResult.cc new file mode 100644 index 000000000..35379e532 --- /dev/null +++ b/sophonsoar/src/model/DescriberPython3ScriptLogsResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +DescriberPython3ScriptLogsResult::DescriberPython3ScriptLogsResult() : + ServiceResult() +{} + +DescriberPython3ScriptLogsResult::DescriberPython3ScriptLogsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescriberPython3ScriptLogsResult::~DescriberPython3ScriptLogsResult() +{} + +void DescriberPython3ScriptLogsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["RunResult"].isNull()) + runResult_ = value["RunResult"].asString(); + +} + +std::string DescriberPython3ScriptLogsResult::getRunResult()const +{ + return runResult_; +} + diff --git a/sophonsoar/src/model/ModifyComponentAssetRequest.cc b/sophonsoar/src/model/ModifyComponentAssetRequest.cc new file mode 100644 index 000000000..01f667cfb --- /dev/null +++ b/sophonsoar/src/model/ModifyComponentAssetRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sophonsoar::Model::ModifyComponentAssetRequest; + +ModifyComponentAssetRequest::ModifyComponentAssetRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "ModifyComponentAsset") { + setMethod(HttpRequest::Method::Post); +} + +ModifyComponentAssetRequest::~ModifyComponentAssetRequest() {} + +std::string ModifyComponentAssetRequest::getRoleFor() const { + return roleFor_; +} + +void ModifyComponentAssetRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string ModifyComponentAssetRequest::getRoleType() const { + return roleType_; +} + +void ModifyComponentAssetRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string ModifyComponentAssetRequest::getLang() const { + return lang_; +} + +void ModifyComponentAssetRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + +std::string ModifyComponentAssetRequest::getAssetConfig() const { + return assetConfig_; +} + +void ModifyComponentAssetRequest::setAssetConfig(const std::string &assetConfig) { + assetConfig_ = assetConfig; + setParameter(std::string("AssetConfig"), assetConfig); +} + diff --git a/sophonsoar/src/model/ModifyComponentAssetResult.cc b/sophonsoar/src/model/ModifyComponentAssetResult.cc new file mode 100644 index 000000000..6c0fbb010 --- /dev/null +++ b/sophonsoar/src/model/ModifyComponentAssetResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +ModifyComponentAssetResult::ModifyComponentAssetResult() : + ServiceResult() +{} + +ModifyComponentAssetResult::ModifyComponentAssetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyComponentAssetResult::~ModifyComponentAssetResult() +{} + +void ModifyComponentAssetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sophonsoar/src/model/ModifyPlaybookInputOutputRequest.cc b/sophonsoar/src/model/ModifyPlaybookInputOutputRequest.cc new file mode 100644 index 000000000..605816db1 --- /dev/null +++ b/sophonsoar/src/model/ModifyPlaybookInputOutputRequest.cc @@ -0,0 +1,99 @@ +/* + * 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 + +using AlibabaCloud::Sophonsoar::Model::ModifyPlaybookInputOutputRequest; + +ModifyPlaybookInputOutputRequest::ModifyPlaybookInputOutputRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "ModifyPlaybookInputOutput") { + setMethod(HttpRequest::Method::Post); +} + +ModifyPlaybookInputOutputRequest::~ModifyPlaybookInputOutputRequest() {} + +std::string ModifyPlaybookInputOutputRequest::getParamType() const { + return paramType_; +} + +void ModifyPlaybookInputOutputRequest::setParamType(const std::string ¶mType) { + paramType_ = paramType; + setBodyParameter(std::string("ParamType"), paramType); +} + +std::string ModifyPlaybookInputOutputRequest::getRoleFor() const { + return roleFor_; +} + +void ModifyPlaybookInputOutputRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string ModifyPlaybookInputOutputRequest::getInputParams() const { + return inputParams_; +} + +void ModifyPlaybookInputOutputRequest::setInputParams(const std::string &inputParams) { + inputParams_ = inputParams; + setBodyParameter(std::string("InputParams"), inputParams); +} + +std::string ModifyPlaybookInputOutputRequest::getOutputParams() const { + return outputParams_; +} + +void ModifyPlaybookInputOutputRequest::setOutputParams(const std::string &outputParams) { + outputParams_ = outputParams; + setBodyParameter(std::string("OutputParams"), outputParams); +} + +std::string ModifyPlaybookInputOutputRequest::getPlaybookUuid() const { + return playbookUuid_; +} + +void ModifyPlaybookInputOutputRequest::setPlaybookUuid(const std::string &playbookUuid) { + playbookUuid_ = playbookUuid; + setBodyParameter(std::string("PlaybookUuid"), playbookUuid); +} + +std::string ModifyPlaybookInputOutputRequest::getExeConfig() const { + return exeConfig_; +} + +void ModifyPlaybookInputOutputRequest::setExeConfig(const std::string &exeConfig) { + exeConfig_ = exeConfig; + setBodyParameter(std::string("ExeConfig"), exeConfig); +} + +std::string ModifyPlaybookInputOutputRequest::getRoleType() const { + return roleType_; +} + +void ModifyPlaybookInputOutputRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string ModifyPlaybookInputOutputRequest::getLang() const { + return lang_; +} + +void ModifyPlaybookInputOutputRequest::setLang(const std::string &lang) { + lang_ = lang; + setBodyParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/ModifyPlaybookInputOutputResult.cc b/sophonsoar/src/model/ModifyPlaybookInputOutputResult.cc new file mode 100644 index 000000000..e795917e6 --- /dev/null +++ b/sophonsoar/src/model/ModifyPlaybookInputOutputResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +ModifyPlaybookInputOutputResult::ModifyPlaybookInputOutputResult() : + ServiceResult() +{} + +ModifyPlaybookInputOutputResult::ModifyPlaybookInputOutputResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyPlaybookInputOutputResult::~ModifyPlaybookInputOutputResult() +{} + +void ModifyPlaybookInputOutputResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sophonsoar/src/model/ModifyPlaybookInstanceStatusRequest.cc b/sophonsoar/src/model/ModifyPlaybookInstanceStatusRequest.cc new file mode 100644 index 000000000..87391d954 --- /dev/null +++ b/sophonsoar/src/model/ModifyPlaybookInstanceStatusRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sophonsoar::Model::ModifyPlaybookInstanceStatusRequest; + +ModifyPlaybookInstanceStatusRequest::ModifyPlaybookInstanceStatusRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "ModifyPlaybookInstanceStatus") { + setMethod(HttpRequest::Method::Post); +} + +ModifyPlaybookInstanceStatusRequest::~ModifyPlaybookInstanceStatusRequest() {} + +std::string ModifyPlaybookInstanceStatusRequest::getRoleFor() const { + return roleFor_; +} + +void ModifyPlaybookInstanceStatusRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +int ModifyPlaybookInstanceStatusRequest::getActive() const { + return active_; +} + +void ModifyPlaybookInstanceStatusRequest::setActive(int active) { + active_ = active; + setBodyParameter(std::string("Active"), std::to_string(active)); +} + +std::string ModifyPlaybookInstanceStatusRequest::getPlaybookUuid() const { + return playbookUuid_; +} + +void ModifyPlaybookInstanceStatusRequest::setPlaybookUuid(const std::string &playbookUuid) { + playbookUuid_ = playbookUuid; + setBodyParameter(std::string("PlaybookUuid"), playbookUuid); +} + +std::string ModifyPlaybookInstanceStatusRequest::getRoleType() const { + return roleType_; +} + +void ModifyPlaybookInstanceStatusRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string ModifyPlaybookInstanceStatusRequest::getLang() const { + return lang_; +} + +void ModifyPlaybookInstanceStatusRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/ModifyPlaybookInstanceStatusResult.cc b/sophonsoar/src/model/ModifyPlaybookInstanceStatusResult.cc new file mode 100644 index 000000000..ba82b4dcb --- /dev/null +++ b/sophonsoar/src/model/ModifyPlaybookInstanceStatusResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +ModifyPlaybookInstanceStatusResult::ModifyPlaybookInstanceStatusResult() : + ServiceResult() +{} + +ModifyPlaybookInstanceStatusResult::ModifyPlaybookInstanceStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyPlaybookInstanceStatusResult::~ModifyPlaybookInstanceStatusResult() +{} + +void ModifyPlaybookInstanceStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sophonsoar/src/model/ModifyPlaybookRequest.cc b/sophonsoar/src/model/ModifyPlaybookRequest.cc new file mode 100644 index 000000000..da6f3287e --- /dev/null +++ b/sophonsoar/src/model/ModifyPlaybookRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Sophonsoar::Model::ModifyPlaybookRequest; + +ModifyPlaybookRequest::ModifyPlaybookRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "ModifyPlaybook") { + setMethod(HttpRequest::Method::Post); +} + +ModifyPlaybookRequest::~ModifyPlaybookRequest() {} + +std::string ModifyPlaybookRequest::getRoleFor() const { + return roleFor_; +} + +void ModifyPlaybookRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string ModifyPlaybookRequest::getTaskflow() const { + return taskflow_; +} + +void ModifyPlaybookRequest::setTaskflow(const std::string &taskflow) { + taskflow_ = taskflow; + setBodyParameter(std::string("Taskflow"), taskflow); +} + +std::string ModifyPlaybookRequest::getDescription() const { + return description_; +} + +void ModifyPlaybookRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +std::string ModifyPlaybookRequest::getPlaybookUuid() const { + return playbookUuid_; +} + +void ModifyPlaybookRequest::setPlaybookUuid(const std::string &playbookUuid) { + playbookUuid_ = playbookUuid; + setBodyParameter(std::string("PlaybookUuid"), playbookUuid); +} + +std::string ModifyPlaybookRequest::getDisplayName() const { + return displayName_; +} + +void ModifyPlaybookRequest::setDisplayName(const std::string &displayName) { + displayName_ = displayName; + setBodyParameter(std::string("DisplayName"), displayName); +} + +std::string ModifyPlaybookRequest::getRoleType() const { + return roleType_; +} + +void ModifyPlaybookRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string ModifyPlaybookRequest::getLang() const { + return lang_; +} + +void ModifyPlaybookRequest::setLang(const std::string &lang) { + lang_ = lang; + setBodyParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/ModifyPlaybookResult.cc b/sophonsoar/src/model/ModifyPlaybookResult.cc new file mode 100644 index 000000000..b7afcd88d --- /dev/null +++ b/sophonsoar/src/model/ModifyPlaybookResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +ModifyPlaybookResult::ModifyPlaybookResult() : + ServiceResult() +{} + +ModifyPlaybookResult::ModifyPlaybookResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyPlaybookResult::~ModifyPlaybookResult() +{} + +void ModifyPlaybookResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sophonsoar/src/model/PublishPlaybookRequest.cc b/sophonsoar/src/model/PublishPlaybookRequest.cc new file mode 100644 index 000000000..988e980fb --- /dev/null +++ b/sophonsoar/src/model/PublishPlaybookRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sophonsoar::Model::PublishPlaybookRequest; + +PublishPlaybookRequest::PublishPlaybookRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "PublishPlaybook") { + setMethod(HttpRequest::Method::Post); +} + +PublishPlaybookRequest::~PublishPlaybookRequest() {} + +std::string PublishPlaybookRequest::getRoleFor() const { + return roleFor_; +} + +void PublishPlaybookRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string PublishPlaybookRequest::getDescription() const { + return description_; +} + +void PublishPlaybookRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +std::string PublishPlaybookRequest::getPlaybookUuid() const { + return playbookUuid_; +} + +void PublishPlaybookRequest::setPlaybookUuid(const std::string &playbookUuid) { + playbookUuid_ = playbookUuid; + setBodyParameter(std::string("PlaybookUuid"), playbookUuid); +} + +std::string PublishPlaybookRequest::getRoleType() const { + return roleType_; +} + +void PublishPlaybookRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string PublishPlaybookRequest::getLang() const { + return lang_; +} + +void PublishPlaybookRequest::setLang(const std::string &lang) { + lang_ = lang; + setBodyParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/PublishPlaybookResult.cc b/sophonsoar/src/model/PublishPlaybookResult.cc new file mode 100644 index 000000000..c731a9690 --- /dev/null +++ b/sophonsoar/src/model/PublishPlaybookResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +PublishPlaybookResult::PublishPlaybookResult() : + ServiceResult() +{} + +PublishPlaybookResult::PublishPlaybookResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PublishPlaybookResult::~PublishPlaybookResult() +{} + +void PublishPlaybookResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sophonsoar/src/model/QueryTreeDataRequest.cc b/sophonsoar/src/model/QueryTreeDataRequest.cc new file mode 100644 index 000000000..b0fee96c9 --- /dev/null +++ b/sophonsoar/src/model/QueryTreeDataRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sophonsoar::Model::QueryTreeDataRequest; + +QueryTreeDataRequest::QueryTreeDataRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "QueryTreeData") { + setMethod(HttpRequest::Method::Get); +} + +QueryTreeDataRequest::~QueryTreeDataRequest() {} + +std::string QueryTreeDataRequest::getRoleFor() const { + return roleFor_; +} + +void QueryTreeDataRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string QueryTreeDataRequest::getRoleType() const { + return roleType_; +} + +void QueryTreeDataRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string QueryTreeDataRequest::getLang() const { + return lang_; +} + +void QueryTreeDataRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/QueryTreeDataResult.cc b/sophonsoar/src/model/QueryTreeDataResult.cc new file mode 100644 index 000000000..ef87d5da4 --- /dev/null +++ b/sophonsoar/src/model/QueryTreeDataResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +QueryTreeDataResult::QueryTreeDataResult() : + ServiceResult() +{} + +QueryTreeDataResult::QueryTreeDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryTreeDataResult::~QueryTreeDataResult() +{} + +void QueryTreeDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Playbooks"].isNull()) + playbooks_ = value["Playbooks"].asString(); + +} + +std::string QueryTreeDataResult::getPlaybooks()const +{ + return playbooks_; +} + diff --git a/sophonsoar/src/model/RenamePlaybookNodeRequest.cc b/sophonsoar/src/model/RenamePlaybookNodeRequest.cc new file mode 100644 index 000000000..477cc69ea --- /dev/null +++ b/sophonsoar/src/model/RenamePlaybookNodeRequest.cc @@ -0,0 +1,81 @@ +/* + * 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 + +using AlibabaCloud::Sophonsoar::Model::RenamePlaybookNodeRequest; + +RenamePlaybookNodeRequest::RenamePlaybookNodeRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "RenamePlaybookNode") { + setMethod(HttpRequest::Method::Post); +} + +RenamePlaybookNodeRequest::~RenamePlaybookNodeRequest() {} + +std::string RenamePlaybookNodeRequest::getRoleFor() const { + return roleFor_; +} + +void RenamePlaybookNodeRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string RenamePlaybookNodeRequest::getNewNodeName() const { + return newNodeName_; +} + +void RenamePlaybookNodeRequest::setNewNodeName(const std::string &newNodeName) { + newNodeName_ = newNodeName; + setParameter(std::string("NewNodeName"), newNodeName); +} + +std::string RenamePlaybookNodeRequest::getOldNodeName() const { + return oldNodeName_; +} + +void RenamePlaybookNodeRequest::setOldNodeName(const std::string &oldNodeName) { + oldNodeName_ = oldNodeName; + setParameter(std::string("OldNodeName"), oldNodeName); +} + +std::string RenamePlaybookNodeRequest::getPlaybookUuid() const { + return playbookUuid_; +} + +void RenamePlaybookNodeRequest::setPlaybookUuid(const std::string &playbookUuid) { + playbookUuid_ = playbookUuid; + setParameter(std::string("PlaybookUuid"), playbookUuid); +} + +std::string RenamePlaybookNodeRequest::getRoleType() const { + return roleType_; +} + +void RenamePlaybookNodeRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string RenamePlaybookNodeRequest::getLang() const { + return lang_; +} + +void RenamePlaybookNodeRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/RenamePlaybookNodeResult.cc b/sophonsoar/src/model/RenamePlaybookNodeResult.cc new file mode 100644 index 000000000..d776b0bb8 --- /dev/null +++ b/sophonsoar/src/model/RenamePlaybookNodeResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +RenamePlaybookNodeResult::RenamePlaybookNodeResult() : + ServiceResult() +{} + +RenamePlaybookNodeResult::RenamePlaybookNodeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RenamePlaybookNodeResult::~RenamePlaybookNodeResult() +{} + +void RenamePlaybookNodeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["RenameResult"].isNull()) + renameResult_ = value["RenameResult"].asString(); + +} + +std::string RenamePlaybookNodeResult::getRenameResult()const +{ + return renameResult_; +} + diff --git a/sophonsoar/src/model/RevertPlaybookReleaseRequest.cc b/sophonsoar/src/model/RevertPlaybookReleaseRequest.cc new file mode 100644 index 000000000..da9c1b08f --- /dev/null +++ b/sophonsoar/src/model/RevertPlaybookReleaseRequest.cc @@ -0,0 +1,81 @@ +/* + * 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 + +using AlibabaCloud::Sophonsoar::Model::RevertPlaybookReleaseRequest; + +RevertPlaybookReleaseRequest::RevertPlaybookReleaseRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "RevertPlaybookRelease") { + setMethod(HttpRequest::Method::Post); +} + +RevertPlaybookReleaseRequest::~RevertPlaybookReleaseRequest() {} + +std::string RevertPlaybookReleaseRequest::getRoleFor() const { + return roleFor_; +} + +void RevertPlaybookReleaseRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string RevertPlaybookReleaseRequest::getPlaybookUuid() const { + return playbookUuid_; +} + +void RevertPlaybookReleaseRequest::setPlaybookUuid(const std::string &playbookUuid) { + playbookUuid_ = playbookUuid; + setBodyParameter(std::string("PlaybookUuid"), playbookUuid); +} + +int RevertPlaybookReleaseRequest::getPlayReleaseId() const { + return playReleaseId_; +} + +void RevertPlaybookReleaseRequest::setPlayReleaseId(int playReleaseId) { + playReleaseId_ = playReleaseId; + setBodyParameter(std::string("PlayReleaseId"), std::to_string(playReleaseId)); +} + +bool RevertPlaybookReleaseRequest::getIsPublish() const { + return isPublish_; +} + +void RevertPlaybookReleaseRequest::setIsPublish(bool isPublish) { + isPublish_ = isPublish; + setBodyParameter(std::string("IsPublish"), isPublish ? "true" : "false"); +} + +std::string RevertPlaybookReleaseRequest::getRoleType() const { + return roleType_; +} + +void RevertPlaybookReleaseRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string RevertPlaybookReleaseRequest::getLang() const { + return lang_; +} + +void RevertPlaybookReleaseRequest::setLang(const std::string &lang) { + lang_ = lang; + setBodyParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/RevertPlaybookReleaseResult.cc b/sophonsoar/src/model/RevertPlaybookReleaseResult.cc new file mode 100644 index 000000000..afc7f27c5 --- /dev/null +++ b/sophonsoar/src/model/RevertPlaybookReleaseResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +RevertPlaybookReleaseResult::RevertPlaybookReleaseResult() : + ServiceResult() +{} + +RevertPlaybookReleaseResult::RevertPlaybookReleaseResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RevertPlaybookReleaseResult::~RevertPlaybookReleaseResult() +{} + +void RevertPlaybookReleaseResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sophonsoar/src/model/RunPython3ScriptRequest.cc b/sophonsoar/src/model/RunPython3ScriptRequest.cc new file mode 100644 index 000000000..eb208321d --- /dev/null +++ b/sophonsoar/src/model/RunPython3ScriptRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Sophonsoar::Model::RunPython3ScriptRequest; + +RunPython3ScriptRequest::RunPython3ScriptRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "RunPython3Script") { + setMethod(HttpRequest::Method::Post); +} + +RunPython3ScriptRequest::~RunPython3ScriptRequest() {} + +std::string RunPython3ScriptRequest::getRoleFor() const { + return roleFor_; +} + +void RunPython3ScriptRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string RunPython3ScriptRequest::getParams() const { + return params_; +} + +void RunPython3ScriptRequest::setParams(const std::string ¶ms) { + params_ = params; + setBodyParameter(std::string("Params"), params); +} + +std::string RunPython3ScriptRequest::getNodeName() const { + return nodeName_; +} + +void RunPython3ScriptRequest::setNodeName(const std::string &nodeName) { + nodeName_ = nodeName; + setBodyParameter(std::string("NodeName"), nodeName); +} + +std::string RunPython3ScriptRequest::getPlaybookUuid() const { + return playbookUuid_; +} + +void RunPython3ScriptRequest::setPlaybookUuid(const std::string &playbookUuid) { + playbookUuid_ = playbookUuid; + setBodyParameter(std::string("PlaybookUuid"), playbookUuid); +} + +std::string RunPython3ScriptRequest::getRoleType() const { + return roleType_; +} + +void RunPython3ScriptRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string RunPython3ScriptRequest::getLang() const { + return lang_; +} + +void RunPython3ScriptRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + +std::string RunPython3ScriptRequest::getPythonScript() const { + return pythonScript_; +} + +void RunPython3ScriptRequest::setPythonScript(const std::string &pythonScript) { + pythonScript_ = pythonScript; + setBodyParameter(std::string("PythonScript"), pythonScript); +} + diff --git a/sophonsoar/src/model/RunPython3ScriptResult.cc b/sophonsoar/src/model/RunPython3ScriptResult.cc new file mode 100644 index 000000000..bf30a4b19 --- /dev/null +++ b/sophonsoar/src/model/RunPython3ScriptResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +RunPython3ScriptResult::RunPython3ScriptResult() : + ServiceResult() +{} + +RunPython3ScriptResult::RunPython3ScriptResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RunPython3ScriptResult::~RunPython3ScriptResult() +{} + +void RunPython3ScriptResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["RunResult"].isNull()) + runResult_ = value["RunResult"].asString(); + +} + +std::string RunPython3ScriptResult::getRunResult()const +{ + return runResult_; +} + diff --git a/sophonsoar/src/model/TriggerPlaybookRequest.cc b/sophonsoar/src/model/TriggerPlaybookRequest.cc new file mode 100644 index 000000000..f798ccd88 --- /dev/null +++ b/sophonsoar/src/model/TriggerPlaybookRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sophonsoar::Model::TriggerPlaybookRequest; + +TriggerPlaybookRequest::TriggerPlaybookRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "TriggerPlaybook") { + setMethod(HttpRequest::Method::Post); +} + +TriggerPlaybookRequest::~TriggerPlaybookRequest() {} + +std::string TriggerPlaybookRequest::getRoleFor() const { + return roleFor_; +} + +void TriggerPlaybookRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string TriggerPlaybookRequest::getInputParam() const { + return inputParam_; +} + +void TriggerPlaybookRequest::setInputParam(const std::string &inputParam) { + inputParam_ = inputParam; + setBodyParameter(std::string("InputParam"), inputParam); +} + +std::string TriggerPlaybookRequest::getPlaybookUuid() const { + return playbookUuid_; +} + +void TriggerPlaybookRequest::setPlaybookUuid(const std::string &playbookUuid) { + playbookUuid_ = playbookUuid; + setBodyParameter(std::string("PlaybookUuid"), playbookUuid); +} + +std::string TriggerPlaybookRequest::getRoleType() const { + return roleType_; +} + +void TriggerPlaybookRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string TriggerPlaybookRequest::getLang() const { + return lang_; +} + +void TriggerPlaybookRequest::setLang(const std::string &lang) { + lang_ = lang; + setBodyParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/TriggerPlaybookResult.cc b/sophonsoar/src/model/TriggerPlaybookResult.cc new file mode 100644 index 000000000..08642869a --- /dev/null +++ b/sophonsoar/src/model/TriggerPlaybookResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +TriggerPlaybookResult::TriggerPlaybookResult() : + ServiceResult() +{} + +TriggerPlaybookResult::TriggerPlaybookResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TriggerPlaybookResult::~TriggerPlaybookResult() +{} + +void TriggerPlaybookResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["TriggerUuid"].isNull()) + triggerUuid_ = value["TriggerUuid"].asString(); + +} + +std::string TriggerPlaybookResult::getTriggerUuid()const +{ + return triggerUuid_; +} + diff --git a/sophonsoar/src/model/TriggerProcessTaskRequest.cc b/sophonsoar/src/model/TriggerProcessTaskRequest.cc new file mode 100644 index 000000000..3f8ac15ef --- /dev/null +++ b/sophonsoar/src/model/TriggerProcessTaskRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sophonsoar::Model::TriggerProcessTaskRequest; + +TriggerProcessTaskRequest::TriggerProcessTaskRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "TriggerProcessTask") { + setMethod(HttpRequest::Method::Post); +} + +TriggerProcessTaskRequest::~TriggerProcessTaskRequest() {} + +std::string TriggerProcessTaskRequest::getActionType() const { + return actionType_; +} + +void TriggerProcessTaskRequest::setActionType(const std::string &actionType) { + actionType_ = actionType; + setParameter(std::string("ActionType"), actionType); +} + +std::string TriggerProcessTaskRequest::getRoleFor() const { + return roleFor_; +} + +void TriggerProcessTaskRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string TriggerProcessTaskRequest::getRoleType() const { + return roleType_; +} + +void TriggerProcessTaskRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string TriggerProcessTaskRequest::getLang() const { + return lang_; +} + +void TriggerProcessTaskRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + +std::string TriggerProcessTaskRequest::getTaskId() const { + return taskId_; +} + +void TriggerProcessTaskRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setBodyParameter(std::string("TaskId"), taskId); +} + diff --git a/sophonsoar/src/model/TriggerProcessTaskResult.cc b/sophonsoar/src/model/TriggerProcessTaskResult.cc new file mode 100644 index 000000000..729feeffa --- /dev/null +++ b/sophonsoar/src/model/TriggerProcessTaskResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +TriggerProcessTaskResult::TriggerProcessTaskResult() : + ServiceResult() +{} + +TriggerProcessTaskResult::TriggerProcessTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TriggerProcessTaskResult::~TriggerProcessTaskResult() +{} + +void TriggerProcessTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sophonsoar/src/model/TriggerSophonPlaybookRequest.cc b/sophonsoar/src/model/TriggerSophonPlaybookRequest.cc new file mode 100644 index 000000000..d4b065436 --- /dev/null +++ b/sophonsoar/src/model/TriggerSophonPlaybookRequest.cc @@ -0,0 +1,108 @@ +/* + * 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 + +using AlibabaCloud::Sophonsoar::Model::TriggerSophonPlaybookRequest; + +TriggerSophonPlaybookRequest::TriggerSophonPlaybookRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "TriggerSophonPlaybook") { + setMethod(HttpRequest::Method::Post); +} + +TriggerSophonPlaybookRequest::~TriggerSophonPlaybookRequest() {} + +std::string TriggerSophonPlaybookRequest::getRoleFor() const { + return roleFor_; +} + +void TriggerSophonPlaybookRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string TriggerSophonPlaybookRequest::getInputParams() const { + return inputParams_; +} + +void TriggerSophonPlaybookRequest::setInputParams(const std::string &inputParams) { + inputParams_ = inputParams; + setParameter(std::string("InputParams"), inputParams); +} + +std::string TriggerSophonPlaybookRequest::getCommandName() const { + return commandName_; +} + +void TriggerSophonPlaybookRequest::setCommandName(const std::string &commandName) { + commandName_ = commandName; + setParameter(std::string("CommandName"), commandName); +} + +std::string TriggerSophonPlaybookRequest::getSophonTaskId() const { + return sophonTaskId_; +} + +void TriggerSophonPlaybookRequest::setSophonTaskId(const std::string &sophonTaskId) { + sophonTaskId_ = sophonTaskId; + setParameter(std::string("SophonTaskId"), sophonTaskId); +} + +std::string TriggerSophonPlaybookRequest::getTriggerType() const { + return triggerType_; +} + +void TriggerSophonPlaybookRequest::setTriggerType(const std::string &triggerType) { + triggerType_ = triggerType; + setParameter(std::string("TriggerType"), triggerType); +} + +std::string TriggerSophonPlaybookRequest::getUuid() const { + return uuid_; +} + +void TriggerSophonPlaybookRequest::setUuid(const std::string &uuid) { + uuid_ = uuid; + setParameter(std::string("Uuid"), uuid); +} + +std::string TriggerSophonPlaybookRequest::getTriggerSource() const { + return triggerSource_; +} + +void TriggerSophonPlaybookRequest::setTriggerSource(const std::string &triggerSource) { + triggerSource_ = triggerSource; + setParameter(std::string("TriggerSource"), triggerSource); +} + +std::string TriggerSophonPlaybookRequest::getRoleType() const { + return roleType_; +} + +void TriggerSophonPlaybookRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string TriggerSophonPlaybookRequest::getLang() const { + return lang_; +} + +void TriggerSophonPlaybookRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/TriggerSophonPlaybookResult.cc b/sophonsoar/src/model/TriggerSophonPlaybookResult.cc new file mode 100644 index 000000000..be1096a77 --- /dev/null +++ b/sophonsoar/src/model/TriggerSophonPlaybookResult.cc @@ -0,0 +1,52 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +TriggerSophonPlaybookResult::TriggerSophonPlaybookResult() : + ServiceResult() +{} + +TriggerSophonPlaybookResult::TriggerSophonPlaybookResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TriggerSophonPlaybookResult::~TriggerSophonPlaybookResult() +{} + +void TriggerSophonPlaybookResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["SophonTaskId"].isNull()) + data_.sophonTaskId = dataNode["SophonTaskId"].asString(); + +} + +TriggerSophonPlaybookResult::Data TriggerSophonPlaybookResult::getData()const +{ + return data_; +} + diff --git a/sophonsoar/src/model/VerifyPlaybookRequest.cc b/sophonsoar/src/model/VerifyPlaybookRequest.cc new file mode 100644 index 000000000..86a00fb0a --- /dev/null +++ b/sophonsoar/src/model/VerifyPlaybookRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sophonsoar::Model::VerifyPlaybookRequest; + +VerifyPlaybookRequest::VerifyPlaybookRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "VerifyPlaybook") { + setMethod(HttpRequest::Method::Post); +} + +VerifyPlaybookRequest::~VerifyPlaybookRequest() {} + +std::string VerifyPlaybookRequest::getRoleFor() const { + return roleFor_; +} + +void VerifyPlaybookRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string VerifyPlaybookRequest::getTaskFlow() const { + return taskFlow_; +} + +void VerifyPlaybookRequest::setTaskFlow(const std::string &taskFlow) { + taskFlow_ = taskFlow; + setBodyParameter(std::string("TaskFlow"), taskFlow); +} + +std::string VerifyPlaybookRequest::getPlaybookUuid() const { + return playbookUuid_; +} + +void VerifyPlaybookRequest::setPlaybookUuid(const std::string &playbookUuid) { + playbookUuid_ = playbookUuid; + setBodyParameter(std::string("PlaybookUuid"), playbookUuid); +} + +std::string VerifyPlaybookRequest::getRoleType() const { + return roleType_; +} + +void VerifyPlaybookRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string VerifyPlaybookRequest::getLang() const { + return lang_; +} + +void VerifyPlaybookRequest::setLang(const std::string &lang) { + lang_ = lang; + setBodyParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/VerifyPlaybookResult.cc b/sophonsoar/src/model/VerifyPlaybookResult.cc new file mode 100644 index 000000000..d5060a6fd --- /dev/null +++ b/sophonsoar/src/model/VerifyPlaybookResult.cc @@ -0,0 +1,61 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +VerifyPlaybookResult::VerifyPlaybookResult() : + ServiceResult() +{} + +VerifyPlaybookResult::VerifyPlaybookResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +VerifyPlaybookResult::~VerifyPlaybookResult() +{} + +void VerifyPlaybookResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allCheckTaskInfosNode = value["CheckTaskInfos"]["Data"]; + for (auto valueCheckTaskInfosData : allCheckTaskInfosNode) + { + Data checkTaskInfosObject; + if(!valueCheckTaskInfosData["RiskLevel"].isNull()) + checkTaskInfosObject.riskLevel = valueCheckTaskInfosData["RiskLevel"].asString(); + if(!valueCheckTaskInfosData["NodeName"].isNull()) + checkTaskInfosObject.nodeName = valueCheckTaskInfosData["NodeName"].asString(); + if(!valueCheckTaskInfosData["Detail"].isNull()) + checkTaskInfosObject.detail = valueCheckTaskInfosData["Detail"].asString(); + checkTaskInfos_.push_back(checkTaskInfosObject); + } + +} + +std::vector VerifyPlaybookResult::getCheckTaskInfos()const +{ + return checkTaskInfos_; +} + diff --git a/sophonsoar/src/model/VerifyPythonFileRequest.cc b/sophonsoar/src/model/VerifyPythonFileRequest.cc new file mode 100644 index 000000000..c5aa4ab9d --- /dev/null +++ b/sophonsoar/src/model/VerifyPythonFileRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sophonsoar::Model::VerifyPythonFileRequest; + +VerifyPythonFileRequest::VerifyPythonFileRequest() + : RpcServiceRequest("sophonsoar", "2022-07-28", "VerifyPythonFile") { + setMethod(HttpRequest::Method::Post); +} + +VerifyPythonFileRequest::~VerifyPythonFileRequest() {} + +std::string VerifyPythonFileRequest::getRoleFor() const { + return roleFor_; +} + +void VerifyPythonFileRequest::setRoleFor(const std::string &roleFor) { + roleFor_ = roleFor; + setParameter(std::string("RoleFor"), roleFor); +} + +std::string VerifyPythonFileRequest::getContent() const { + return content_; +} + +void VerifyPythonFileRequest::setContent(const std::string &content) { + content_ = content; + setBodyParameter(std::string("Content"), content); +} + +std::string VerifyPythonFileRequest::getRoleType() const { + return roleType_; +} + +void VerifyPythonFileRequest::setRoleType(const std::string &roleType) { + roleType_ = roleType; + setParameter(std::string("RoleType"), roleType); +} + +std::string VerifyPythonFileRequest::getLang() const { + return lang_; +} + +void VerifyPythonFileRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sophonsoar/src/model/VerifyPythonFileResult.cc b/sophonsoar/src/model/VerifyPythonFileResult.cc new file mode 100644 index 000000000..0c68ec63f --- /dev/null +++ b/sophonsoar/src/model/VerifyPythonFileResult.cc @@ -0,0 +1,67 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Sophonsoar; +using namespace AlibabaCloud::Sophonsoar::Model; + +VerifyPythonFileResult::VerifyPythonFileResult() : + ServiceResult() +{} + +VerifyPythonFileResult::VerifyPythonFileResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +VerifyPythonFileResult::~VerifyPythonFileResult() +{} + +void VerifyPythonFileResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSyntaxNode = value["Syntax"]["syntaxItem"]; + for (auto valueSyntaxsyntaxItem : allSyntaxNode) + { + SyntaxItem syntaxObject; + if(!valueSyntaxsyntaxItem["StartLineNumber"].isNull()) + syntaxObject.startLineNumber = std::stoi(valueSyntaxsyntaxItem["StartLineNumber"].asString()); + if(!valueSyntaxsyntaxItem["StartColumn"].isNull()) + syntaxObject.startColumn = std::stoi(valueSyntaxsyntaxItem["StartColumn"].asString()); + if(!valueSyntaxsyntaxItem["EndLineNumber"].isNull()) + syntaxObject.endLineNumber = std::stoi(valueSyntaxsyntaxItem["EndLineNumber"].asString()); + if(!valueSyntaxsyntaxItem["EndColumn"].isNull()) + syntaxObject.endColumn = std::stoi(valueSyntaxsyntaxItem["EndColumn"].asString()); + if(!valueSyntaxsyntaxItem["Message"].isNull()) + syntaxObject.message = valueSyntaxsyntaxItem["Message"].asString(); + if(!valueSyntaxsyntaxItem["Severity"].isNull()) + syntaxObject.severity = std::stoi(valueSyntaxsyntaxItem["Severity"].asString()); + syntax_.push_back(syntaxObject); + } + +} + +std::vector VerifyPythonFileResult::getSyntax()const +{ + return syntax_; +} +