Support share resource to service for RS.
This commit is contained in:
170
resourcesharing/CMakeLists.txt
Normal file
170
resourcesharing/CMakeLists.txt
Normal file
@@ -0,0 +1,170 @@
|
|||||||
|
#
|
||||||
|
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT 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(resourcesharing_public_header
|
||||||
|
include/alibabacloud/resourcesharing/ResourceSharingClient.h
|
||||||
|
include/alibabacloud/resourcesharing/ResourceSharingExport.h )
|
||||||
|
|
||||||
|
set(resourcesharing_public_header_model
|
||||||
|
include/alibabacloud/resourcesharing/model/AcceptResourceShareInvitationRequest.h
|
||||||
|
include/alibabacloud/resourcesharing/model/AcceptResourceShareInvitationResult.h
|
||||||
|
include/alibabacloud/resourcesharing/model/AssociateResourceShareRequest.h
|
||||||
|
include/alibabacloud/resourcesharing/model/AssociateResourceShareResult.h
|
||||||
|
include/alibabacloud/resourcesharing/model/AssociateResourceSharePermissionRequest.h
|
||||||
|
include/alibabacloud/resourcesharing/model/AssociateResourceSharePermissionResult.h
|
||||||
|
include/alibabacloud/resourcesharing/model/ChangeResourceGroupRequest.h
|
||||||
|
include/alibabacloud/resourcesharing/model/ChangeResourceGroupResult.h
|
||||||
|
include/alibabacloud/resourcesharing/model/CheckSharingWithResourceDirectoryStatusRequest.h
|
||||||
|
include/alibabacloud/resourcesharing/model/CheckSharingWithResourceDirectoryStatusResult.h
|
||||||
|
include/alibabacloud/resourcesharing/model/CreateResourceShareRequest.h
|
||||||
|
include/alibabacloud/resourcesharing/model/CreateResourceShareResult.h
|
||||||
|
include/alibabacloud/resourcesharing/model/DeleteResourceShareRequest.h
|
||||||
|
include/alibabacloud/resourcesharing/model/DeleteResourceShareResult.h
|
||||||
|
include/alibabacloud/resourcesharing/model/DescribeRegionsRequest.h
|
||||||
|
include/alibabacloud/resourcesharing/model/DescribeRegionsResult.h
|
||||||
|
include/alibabacloud/resourcesharing/model/DisassociateResourceShareRequest.h
|
||||||
|
include/alibabacloud/resourcesharing/model/DisassociateResourceShareResult.h
|
||||||
|
include/alibabacloud/resourcesharing/model/DisassociateResourceSharePermissionRequest.h
|
||||||
|
include/alibabacloud/resourcesharing/model/DisassociateResourceSharePermissionResult.h
|
||||||
|
include/alibabacloud/resourcesharing/model/EnableSharingWithResourceDirectoryRequest.h
|
||||||
|
include/alibabacloud/resourcesharing/model/EnableSharingWithResourceDirectoryResult.h
|
||||||
|
include/alibabacloud/resourcesharing/model/GetPermissionRequest.h
|
||||||
|
include/alibabacloud/resourcesharing/model/GetPermissionResult.h
|
||||||
|
include/alibabacloud/resourcesharing/model/ListPermissionVersionsRequest.h
|
||||||
|
include/alibabacloud/resourcesharing/model/ListPermissionVersionsResult.h
|
||||||
|
include/alibabacloud/resourcesharing/model/ListPermissionsRequest.h
|
||||||
|
include/alibabacloud/resourcesharing/model/ListPermissionsResult.h
|
||||||
|
include/alibabacloud/resourcesharing/model/ListResourceShareAssociationsRequest.h
|
||||||
|
include/alibabacloud/resourcesharing/model/ListResourceShareAssociationsResult.h
|
||||||
|
include/alibabacloud/resourcesharing/model/ListResourceShareInvitationsRequest.h
|
||||||
|
include/alibabacloud/resourcesharing/model/ListResourceShareInvitationsResult.h
|
||||||
|
include/alibabacloud/resourcesharing/model/ListResourceSharePermissionsRequest.h
|
||||||
|
include/alibabacloud/resourcesharing/model/ListResourceSharePermissionsResult.h
|
||||||
|
include/alibabacloud/resourcesharing/model/ListResourceSharesRequest.h
|
||||||
|
include/alibabacloud/resourcesharing/model/ListResourceSharesResult.h
|
||||||
|
include/alibabacloud/resourcesharing/model/ListSharedResourcesRequest.h
|
||||||
|
include/alibabacloud/resourcesharing/model/ListSharedResourcesResult.h
|
||||||
|
include/alibabacloud/resourcesharing/model/ListSharedTargetsRequest.h
|
||||||
|
include/alibabacloud/resourcesharing/model/ListSharedTargetsResult.h
|
||||||
|
include/alibabacloud/resourcesharing/model/RejectResourceShareInvitationRequest.h
|
||||||
|
include/alibabacloud/resourcesharing/model/RejectResourceShareInvitationResult.h
|
||||||
|
include/alibabacloud/resourcesharing/model/UpdateResourceShareRequest.h
|
||||||
|
include/alibabacloud/resourcesharing/model/UpdateResourceShareResult.h )
|
||||||
|
|
||||||
|
set(resourcesharing_src
|
||||||
|
src/ResourceSharingClient.cc
|
||||||
|
src/model/AcceptResourceShareInvitationRequest.cc
|
||||||
|
src/model/AcceptResourceShareInvitationResult.cc
|
||||||
|
src/model/AssociateResourceShareRequest.cc
|
||||||
|
src/model/AssociateResourceShareResult.cc
|
||||||
|
src/model/AssociateResourceSharePermissionRequest.cc
|
||||||
|
src/model/AssociateResourceSharePermissionResult.cc
|
||||||
|
src/model/ChangeResourceGroupRequest.cc
|
||||||
|
src/model/ChangeResourceGroupResult.cc
|
||||||
|
src/model/CheckSharingWithResourceDirectoryStatusRequest.cc
|
||||||
|
src/model/CheckSharingWithResourceDirectoryStatusResult.cc
|
||||||
|
src/model/CreateResourceShareRequest.cc
|
||||||
|
src/model/CreateResourceShareResult.cc
|
||||||
|
src/model/DeleteResourceShareRequest.cc
|
||||||
|
src/model/DeleteResourceShareResult.cc
|
||||||
|
src/model/DescribeRegionsRequest.cc
|
||||||
|
src/model/DescribeRegionsResult.cc
|
||||||
|
src/model/DisassociateResourceShareRequest.cc
|
||||||
|
src/model/DisassociateResourceShareResult.cc
|
||||||
|
src/model/DisassociateResourceSharePermissionRequest.cc
|
||||||
|
src/model/DisassociateResourceSharePermissionResult.cc
|
||||||
|
src/model/EnableSharingWithResourceDirectoryRequest.cc
|
||||||
|
src/model/EnableSharingWithResourceDirectoryResult.cc
|
||||||
|
src/model/GetPermissionRequest.cc
|
||||||
|
src/model/GetPermissionResult.cc
|
||||||
|
src/model/ListPermissionVersionsRequest.cc
|
||||||
|
src/model/ListPermissionVersionsResult.cc
|
||||||
|
src/model/ListPermissionsRequest.cc
|
||||||
|
src/model/ListPermissionsResult.cc
|
||||||
|
src/model/ListResourceShareAssociationsRequest.cc
|
||||||
|
src/model/ListResourceShareAssociationsResult.cc
|
||||||
|
src/model/ListResourceShareInvitationsRequest.cc
|
||||||
|
src/model/ListResourceShareInvitationsResult.cc
|
||||||
|
src/model/ListResourceSharePermissionsRequest.cc
|
||||||
|
src/model/ListResourceSharePermissionsResult.cc
|
||||||
|
src/model/ListResourceSharesRequest.cc
|
||||||
|
src/model/ListResourceSharesResult.cc
|
||||||
|
src/model/ListSharedResourcesRequest.cc
|
||||||
|
src/model/ListSharedResourcesResult.cc
|
||||||
|
src/model/ListSharedTargetsRequest.cc
|
||||||
|
src/model/ListSharedTargetsResult.cc
|
||||||
|
src/model/RejectResourceShareInvitationRequest.cc
|
||||||
|
src/model/RejectResourceShareInvitationResult.cc
|
||||||
|
src/model/UpdateResourceShareRequest.cc
|
||||||
|
src/model/UpdateResourceShareResult.cc )
|
||||||
|
|
||||||
|
add_library(resourcesharing ${LIB_TYPE}
|
||||||
|
${resourcesharing_public_header}
|
||||||
|
${resourcesharing_public_header_model}
|
||||||
|
${resourcesharing_src})
|
||||||
|
|
||||||
|
set_target_properties(resourcesharing
|
||||||
|
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}resourcesharing
|
||||||
|
)
|
||||||
|
|
||||||
|
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||||
|
set_target_properties(resourcesharing
|
||||||
|
PROPERTIES
|
||||||
|
DEFINE_SYMBOL ALIBABACLOUD_RESOURCESHARING_LIBRARY)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
target_include_directories(resourcesharing
|
||||||
|
PRIVATE include
|
||||||
|
${CMAKE_SOURCE_DIR}/core/include
|
||||||
|
)
|
||||||
|
target_link_libraries(resourcesharing
|
||||||
|
core)
|
||||||
|
|
||||||
|
if(CMAKE_HOST_WIN32)
|
||||||
|
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||||
|
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||||
|
add_dependencies(resourcesharing
|
||||||
|
jsoncpp)
|
||||||
|
target_include_directories(resourcesharing
|
||||||
|
PRIVATE ${jsoncpp_install_dir}/include)
|
||||||
|
target_link_libraries(resourcesharing
|
||||||
|
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||||
|
set_target_properties(resourcesharing
|
||||||
|
PROPERTIES
|
||||||
|
COMPILE_OPTIONS "/bigobj")
|
||||||
|
else()
|
||||||
|
target_include_directories(resourcesharing
|
||||||
|
PRIVATE /usr/include/jsoncpp)
|
||||||
|
target_link_libraries(resourcesharing
|
||||||
|
jsoncpp)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
install(FILES ${resourcesharing_public_header}
|
||||||
|
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/resourcesharing)
|
||||||
|
install(FILES ${resourcesharing_public_header_model}
|
||||||
|
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/resourcesharing/model)
|
||||||
|
install(TARGETS resourcesharing
|
||||||
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||||
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||||
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||||
|
)
|
||||||
@@ -0,0 +1,222 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT 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_RESOURCESHARING_RESOURCESHARINGCLIENT_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_RESOURCESHARINGCLIENT_H_
|
||||||
|
|
||||||
|
#include <future>
|
||||||
|
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||||
|
#include <alibabacloud/core/EndpointProvider.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceClient.h>
|
||||||
|
#include "ResourceSharingExport.h"
|
||||||
|
#include "model/AcceptResourceShareInvitationRequest.h"
|
||||||
|
#include "model/AcceptResourceShareInvitationResult.h"
|
||||||
|
#include "model/AssociateResourceShareRequest.h"
|
||||||
|
#include "model/AssociateResourceShareResult.h"
|
||||||
|
#include "model/AssociateResourceSharePermissionRequest.h"
|
||||||
|
#include "model/AssociateResourceSharePermissionResult.h"
|
||||||
|
#include "model/ChangeResourceGroupRequest.h"
|
||||||
|
#include "model/ChangeResourceGroupResult.h"
|
||||||
|
#include "model/CheckSharingWithResourceDirectoryStatusRequest.h"
|
||||||
|
#include "model/CheckSharingWithResourceDirectoryStatusResult.h"
|
||||||
|
#include "model/CreateResourceShareRequest.h"
|
||||||
|
#include "model/CreateResourceShareResult.h"
|
||||||
|
#include "model/DeleteResourceShareRequest.h"
|
||||||
|
#include "model/DeleteResourceShareResult.h"
|
||||||
|
#include "model/DescribeRegionsRequest.h"
|
||||||
|
#include "model/DescribeRegionsResult.h"
|
||||||
|
#include "model/DisassociateResourceShareRequest.h"
|
||||||
|
#include "model/DisassociateResourceShareResult.h"
|
||||||
|
#include "model/DisassociateResourceSharePermissionRequest.h"
|
||||||
|
#include "model/DisassociateResourceSharePermissionResult.h"
|
||||||
|
#include "model/EnableSharingWithResourceDirectoryRequest.h"
|
||||||
|
#include "model/EnableSharingWithResourceDirectoryResult.h"
|
||||||
|
#include "model/GetPermissionRequest.h"
|
||||||
|
#include "model/GetPermissionResult.h"
|
||||||
|
#include "model/ListPermissionVersionsRequest.h"
|
||||||
|
#include "model/ListPermissionVersionsResult.h"
|
||||||
|
#include "model/ListPermissionsRequest.h"
|
||||||
|
#include "model/ListPermissionsResult.h"
|
||||||
|
#include "model/ListResourceShareAssociationsRequest.h"
|
||||||
|
#include "model/ListResourceShareAssociationsResult.h"
|
||||||
|
#include "model/ListResourceShareInvitationsRequest.h"
|
||||||
|
#include "model/ListResourceShareInvitationsResult.h"
|
||||||
|
#include "model/ListResourceSharePermissionsRequest.h"
|
||||||
|
#include "model/ListResourceSharePermissionsResult.h"
|
||||||
|
#include "model/ListResourceSharesRequest.h"
|
||||||
|
#include "model/ListResourceSharesResult.h"
|
||||||
|
#include "model/ListSharedResourcesRequest.h"
|
||||||
|
#include "model/ListSharedResourcesResult.h"
|
||||||
|
#include "model/ListSharedTargetsRequest.h"
|
||||||
|
#include "model/ListSharedTargetsResult.h"
|
||||||
|
#include "model/RejectResourceShareInvitationRequest.h"
|
||||||
|
#include "model/RejectResourceShareInvitationResult.h"
|
||||||
|
#include "model/UpdateResourceShareRequest.h"
|
||||||
|
#include "model/UpdateResourceShareResult.h"
|
||||||
|
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace ResourceSharing
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT ResourceSharingClient : public RpcServiceClient
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
typedef Outcome<Error, Model::AcceptResourceShareInvitationResult> AcceptResourceShareInvitationOutcome;
|
||||||
|
typedef std::future<AcceptResourceShareInvitationOutcome> AcceptResourceShareInvitationOutcomeCallable;
|
||||||
|
typedef std::function<void(const ResourceSharingClient*, const Model::AcceptResourceShareInvitationRequest&, const AcceptResourceShareInvitationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AcceptResourceShareInvitationAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::AssociateResourceShareResult> AssociateResourceShareOutcome;
|
||||||
|
typedef std::future<AssociateResourceShareOutcome> AssociateResourceShareOutcomeCallable;
|
||||||
|
typedef std::function<void(const ResourceSharingClient*, const Model::AssociateResourceShareRequest&, const AssociateResourceShareOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AssociateResourceShareAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::AssociateResourceSharePermissionResult> AssociateResourceSharePermissionOutcome;
|
||||||
|
typedef std::future<AssociateResourceSharePermissionOutcome> AssociateResourceSharePermissionOutcomeCallable;
|
||||||
|
typedef std::function<void(const ResourceSharingClient*, const Model::AssociateResourceSharePermissionRequest&, const AssociateResourceSharePermissionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AssociateResourceSharePermissionAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ChangeResourceGroupResult> ChangeResourceGroupOutcome;
|
||||||
|
typedef std::future<ChangeResourceGroupOutcome> ChangeResourceGroupOutcomeCallable;
|
||||||
|
typedef std::function<void(const ResourceSharingClient*, const Model::ChangeResourceGroupRequest&, const ChangeResourceGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ChangeResourceGroupAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::CheckSharingWithResourceDirectoryStatusResult> CheckSharingWithResourceDirectoryStatusOutcome;
|
||||||
|
typedef std::future<CheckSharingWithResourceDirectoryStatusOutcome> CheckSharingWithResourceDirectoryStatusOutcomeCallable;
|
||||||
|
typedef std::function<void(const ResourceSharingClient*, const Model::CheckSharingWithResourceDirectoryStatusRequest&, const CheckSharingWithResourceDirectoryStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckSharingWithResourceDirectoryStatusAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::CreateResourceShareResult> CreateResourceShareOutcome;
|
||||||
|
typedef std::future<CreateResourceShareOutcome> CreateResourceShareOutcomeCallable;
|
||||||
|
typedef std::function<void(const ResourceSharingClient*, const Model::CreateResourceShareRequest&, const CreateResourceShareOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateResourceShareAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::DeleteResourceShareResult> DeleteResourceShareOutcome;
|
||||||
|
typedef std::future<DeleteResourceShareOutcome> DeleteResourceShareOutcomeCallable;
|
||||||
|
typedef std::function<void(const ResourceSharingClient*, const Model::DeleteResourceShareRequest&, const DeleteResourceShareOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteResourceShareAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::DescribeRegionsResult> DescribeRegionsOutcome;
|
||||||
|
typedef std::future<DescribeRegionsOutcome> DescribeRegionsOutcomeCallable;
|
||||||
|
typedef std::function<void(const ResourceSharingClient*, const Model::DescribeRegionsRequest&, const DescribeRegionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRegionsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::DisassociateResourceShareResult> DisassociateResourceShareOutcome;
|
||||||
|
typedef std::future<DisassociateResourceShareOutcome> DisassociateResourceShareOutcomeCallable;
|
||||||
|
typedef std::function<void(const ResourceSharingClient*, const Model::DisassociateResourceShareRequest&, const DisassociateResourceShareOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DisassociateResourceShareAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::DisassociateResourceSharePermissionResult> DisassociateResourceSharePermissionOutcome;
|
||||||
|
typedef std::future<DisassociateResourceSharePermissionOutcome> DisassociateResourceSharePermissionOutcomeCallable;
|
||||||
|
typedef std::function<void(const ResourceSharingClient*, const Model::DisassociateResourceSharePermissionRequest&, const DisassociateResourceSharePermissionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DisassociateResourceSharePermissionAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::EnableSharingWithResourceDirectoryResult> EnableSharingWithResourceDirectoryOutcome;
|
||||||
|
typedef std::future<EnableSharingWithResourceDirectoryOutcome> EnableSharingWithResourceDirectoryOutcomeCallable;
|
||||||
|
typedef std::function<void(const ResourceSharingClient*, const Model::EnableSharingWithResourceDirectoryRequest&, const EnableSharingWithResourceDirectoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EnableSharingWithResourceDirectoryAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::GetPermissionResult> GetPermissionOutcome;
|
||||||
|
typedef std::future<GetPermissionOutcome> GetPermissionOutcomeCallable;
|
||||||
|
typedef std::function<void(const ResourceSharingClient*, const Model::GetPermissionRequest&, const GetPermissionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPermissionAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListPermissionVersionsResult> ListPermissionVersionsOutcome;
|
||||||
|
typedef std::future<ListPermissionVersionsOutcome> ListPermissionVersionsOutcomeCallable;
|
||||||
|
typedef std::function<void(const ResourceSharingClient*, const Model::ListPermissionVersionsRequest&, const ListPermissionVersionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPermissionVersionsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListPermissionsResult> ListPermissionsOutcome;
|
||||||
|
typedef std::future<ListPermissionsOutcome> ListPermissionsOutcomeCallable;
|
||||||
|
typedef std::function<void(const ResourceSharingClient*, const Model::ListPermissionsRequest&, const ListPermissionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPermissionsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListResourceShareAssociationsResult> ListResourceShareAssociationsOutcome;
|
||||||
|
typedef std::future<ListResourceShareAssociationsOutcome> ListResourceShareAssociationsOutcomeCallable;
|
||||||
|
typedef std::function<void(const ResourceSharingClient*, const Model::ListResourceShareAssociationsRequest&, const ListResourceShareAssociationsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListResourceShareAssociationsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListResourceShareInvitationsResult> ListResourceShareInvitationsOutcome;
|
||||||
|
typedef std::future<ListResourceShareInvitationsOutcome> ListResourceShareInvitationsOutcomeCallable;
|
||||||
|
typedef std::function<void(const ResourceSharingClient*, const Model::ListResourceShareInvitationsRequest&, const ListResourceShareInvitationsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListResourceShareInvitationsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListResourceSharePermissionsResult> ListResourceSharePermissionsOutcome;
|
||||||
|
typedef std::future<ListResourceSharePermissionsOutcome> ListResourceSharePermissionsOutcomeCallable;
|
||||||
|
typedef std::function<void(const ResourceSharingClient*, const Model::ListResourceSharePermissionsRequest&, const ListResourceSharePermissionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListResourceSharePermissionsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListResourceSharesResult> ListResourceSharesOutcome;
|
||||||
|
typedef std::future<ListResourceSharesOutcome> ListResourceSharesOutcomeCallable;
|
||||||
|
typedef std::function<void(const ResourceSharingClient*, const Model::ListResourceSharesRequest&, const ListResourceSharesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListResourceSharesAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListSharedResourcesResult> ListSharedResourcesOutcome;
|
||||||
|
typedef std::future<ListSharedResourcesOutcome> ListSharedResourcesOutcomeCallable;
|
||||||
|
typedef std::function<void(const ResourceSharingClient*, const Model::ListSharedResourcesRequest&, const ListSharedResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListSharedResourcesAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListSharedTargetsResult> ListSharedTargetsOutcome;
|
||||||
|
typedef std::future<ListSharedTargetsOutcome> ListSharedTargetsOutcomeCallable;
|
||||||
|
typedef std::function<void(const ResourceSharingClient*, const Model::ListSharedTargetsRequest&, const ListSharedTargetsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListSharedTargetsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::RejectResourceShareInvitationResult> RejectResourceShareInvitationOutcome;
|
||||||
|
typedef std::future<RejectResourceShareInvitationOutcome> RejectResourceShareInvitationOutcomeCallable;
|
||||||
|
typedef std::function<void(const ResourceSharingClient*, const Model::RejectResourceShareInvitationRequest&, const RejectResourceShareInvitationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RejectResourceShareInvitationAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::UpdateResourceShareResult> UpdateResourceShareOutcome;
|
||||||
|
typedef std::future<UpdateResourceShareOutcome> UpdateResourceShareOutcomeCallable;
|
||||||
|
typedef std::function<void(const ResourceSharingClient*, const Model::UpdateResourceShareRequest&, const UpdateResourceShareOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateResourceShareAsyncHandler;
|
||||||
|
|
||||||
|
ResourceSharingClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||||
|
ResourceSharingClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||||
|
ResourceSharingClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||||
|
~ResourceSharingClient();
|
||||||
|
AcceptResourceShareInvitationOutcome acceptResourceShareInvitation(const Model::AcceptResourceShareInvitationRequest &request)const;
|
||||||
|
void acceptResourceShareInvitationAsync(const Model::AcceptResourceShareInvitationRequest& request, const AcceptResourceShareInvitationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
AcceptResourceShareInvitationOutcomeCallable acceptResourceShareInvitationCallable(const Model::AcceptResourceShareInvitationRequest& request) const;
|
||||||
|
AssociateResourceShareOutcome associateResourceShare(const Model::AssociateResourceShareRequest &request)const;
|
||||||
|
void associateResourceShareAsync(const Model::AssociateResourceShareRequest& request, const AssociateResourceShareAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
AssociateResourceShareOutcomeCallable associateResourceShareCallable(const Model::AssociateResourceShareRequest& request) const;
|
||||||
|
AssociateResourceSharePermissionOutcome associateResourceSharePermission(const Model::AssociateResourceSharePermissionRequest &request)const;
|
||||||
|
void associateResourceSharePermissionAsync(const Model::AssociateResourceSharePermissionRequest& request, const AssociateResourceSharePermissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
AssociateResourceSharePermissionOutcomeCallable associateResourceSharePermissionCallable(const Model::AssociateResourceSharePermissionRequest& request) const;
|
||||||
|
ChangeResourceGroupOutcome changeResourceGroup(const Model::ChangeResourceGroupRequest &request)const;
|
||||||
|
void changeResourceGroupAsync(const Model::ChangeResourceGroupRequest& request, const ChangeResourceGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
ChangeResourceGroupOutcomeCallable changeResourceGroupCallable(const Model::ChangeResourceGroupRequest& request) const;
|
||||||
|
CheckSharingWithResourceDirectoryStatusOutcome checkSharingWithResourceDirectoryStatus(const Model::CheckSharingWithResourceDirectoryStatusRequest &request)const;
|
||||||
|
void checkSharingWithResourceDirectoryStatusAsync(const Model::CheckSharingWithResourceDirectoryStatusRequest& request, const CheckSharingWithResourceDirectoryStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
CheckSharingWithResourceDirectoryStatusOutcomeCallable checkSharingWithResourceDirectoryStatusCallable(const Model::CheckSharingWithResourceDirectoryStatusRequest& request) const;
|
||||||
|
CreateResourceShareOutcome createResourceShare(const Model::CreateResourceShareRequest &request)const;
|
||||||
|
void createResourceShareAsync(const Model::CreateResourceShareRequest& request, const CreateResourceShareAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
CreateResourceShareOutcomeCallable createResourceShareCallable(const Model::CreateResourceShareRequest& request) const;
|
||||||
|
DeleteResourceShareOutcome deleteResourceShare(const Model::DeleteResourceShareRequest &request)const;
|
||||||
|
void deleteResourceShareAsync(const Model::DeleteResourceShareRequest& request, const DeleteResourceShareAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
DeleteResourceShareOutcomeCallable deleteResourceShareCallable(const Model::DeleteResourceShareRequest& request) const;
|
||||||
|
DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const;
|
||||||
|
void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const;
|
||||||
|
DisassociateResourceShareOutcome disassociateResourceShare(const Model::DisassociateResourceShareRequest &request)const;
|
||||||
|
void disassociateResourceShareAsync(const Model::DisassociateResourceShareRequest& request, const DisassociateResourceShareAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
DisassociateResourceShareOutcomeCallable disassociateResourceShareCallable(const Model::DisassociateResourceShareRequest& request) const;
|
||||||
|
DisassociateResourceSharePermissionOutcome disassociateResourceSharePermission(const Model::DisassociateResourceSharePermissionRequest &request)const;
|
||||||
|
void disassociateResourceSharePermissionAsync(const Model::DisassociateResourceSharePermissionRequest& request, const DisassociateResourceSharePermissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
DisassociateResourceSharePermissionOutcomeCallable disassociateResourceSharePermissionCallable(const Model::DisassociateResourceSharePermissionRequest& request) const;
|
||||||
|
EnableSharingWithResourceDirectoryOutcome enableSharingWithResourceDirectory(const Model::EnableSharingWithResourceDirectoryRequest &request)const;
|
||||||
|
void enableSharingWithResourceDirectoryAsync(const Model::EnableSharingWithResourceDirectoryRequest& request, const EnableSharingWithResourceDirectoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
EnableSharingWithResourceDirectoryOutcomeCallable enableSharingWithResourceDirectoryCallable(const Model::EnableSharingWithResourceDirectoryRequest& request) const;
|
||||||
|
GetPermissionOutcome getPermission(const Model::GetPermissionRequest &request)const;
|
||||||
|
void getPermissionAsync(const Model::GetPermissionRequest& request, const GetPermissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
GetPermissionOutcomeCallable getPermissionCallable(const Model::GetPermissionRequest& request) const;
|
||||||
|
ListPermissionVersionsOutcome listPermissionVersions(const Model::ListPermissionVersionsRequest &request)const;
|
||||||
|
void listPermissionVersionsAsync(const Model::ListPermissionVersionsRequest& request, const ListPermissionVersionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
ListPermissionVersionsOutcomeCallable listPermissionVersionsCallable(const Model::ListPermissionVersionsRequest& request) const;
|
||||||
|
ListPermissionsOutcome listPermissions(const Model::ListPermissionsRequest &request)const;
|
||||||
|
void listPermissionsAsync(const Model::ListPermissionsRequest& request, const ListPermissionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
ListPermissionsOutcomeCallable listPermissionsCallable(const Model::ListPermissionsRequest& request) const;
|
||||||
|
ListResourceShareAssociationsOutcome listResourceShareAssociations(const Model::ListResourceShareAssociationsRequest &request)const;
|
||||||
|
void listResourceShareAssociationsAsync(const Model::ListResourceShareAssociationsRequest& request, const ListResourceShareAssociationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
ListResourceShareAssociationsOutcomeCallable listResourceShareAssociationsCallable(const Model::ListResourceShareAssociationsRequest& request) const;
|
||||||
|
ListResourceShareInvitationsOutcome listResourceShareInvitations(const Model::ListResourceShareInvitationsRequest &request)const;
|
||||||
|
void listResourceShareInvitationsAsync(const Model::ListResourceShareInvitationsRequest& request, const ListResourceShareInvitationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
ListResourceShareInvitationsOutcomeCallable listResourceShareInvitationsCallable(const Model::ListResourceShareInvitationsRequest& request) const;
|
||||||
|
ListResourceSharePermissionsOutcome listResourceSharePermissions(const Model::ListResourceSharePermissionsRequest &request)const;
|
||||||
|
void listResourceSharePermissionsAsync(const Model::ListResourceSharePermissionsRequest& request, const ListResourceSharePermissionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
ListResourceSharePermissionsOutcomeCallable listResourceSharePermissionsCallable(const Model::ListResourceSharePermissionsRequest& request) const;
|
||||||
|
ListResourceSharesOutcome listResourceShares(const Model::ListResourceSharesRequest &request)const;
|
||||||
|
void listResourceSharesAsync(const Model::ListResourceSharesRequest& request, const ListResourceSharesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
ListResourceSharesOutcomeCallable listResourceSharesCallable(const Model::ListResourceSharesRequest& request) const;
|
||||||
|
ListSharedResourcesOutcome listSharedResources(const Model::ListSharedResourcesRequest &request)const;
|
||||||
|
void listSharedResourcesAsync(const Model::ListSharedResourcesRequest& request, const ListSharedResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
ListSharedResourcesOutcomeCallable listSharedResourcesCallable(const Model::ListSharedResourcesRequest& request) const;
|
||||||
|
ListSharedTargetsOutcome listSharedTargets(const Model::ListSharedTargetsRequest &request)const;
|
||||||
|
void listSharedTargetsAsync(const Model::ListSharedTargetsRequest& request, const ListSharedTargetsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
ListSharedTargetsOutcomeCallable listSharedTargetsCallable(const Model::ListSharedTargetsRequest& request) const;
|
||||||
|
RejectResourceShareInvitationOutcome rejectResourceShareInvitation(const Model::RejectResourceShareInvitationRequest &request)const;
|
||||||
|
void rejectResourceShareInvitationAsync(const Model::RejectResourceShareInvitationRequest& request, const RejectResourceShareInvitationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
RejectResourceShareInvitationOutcomeCallable rejectResourceShareInvitationCallable(const Model::RejectResourceShareInvitationRequest& request) const;
|
||||||
|
UpdateResourceShareOutcome updateResourceShare(const Model::UpdateResourceShareRequest &request)const;
|
||||||
|
void updateResourceShareAsync(const Model::UpdateResourceShareRequest& request, const UpdateResourceShareAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
UpdateResourceShareOutcomeCallable updateResourceShareCallable(const Model::UpdateResourceShareRequest& request) const;
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_RESOURCESHARINGCLIENT_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_RESOURCESHARING_RESOURCESHARINGEXPORT_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_RESOURCESHARINGEXPORT_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/core/Global.h>
|
||||||
|
|
||||||
|
#if defined(ALIBABACLOUD_SHARED)
|
||||||
|
# if defined(ALIBABACLOUD_RESOURCESHARING_LIBRARY)
|
||||||
|
# define ALIBABACLOUD_RESOURCESHARING_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||||
|
# else
|
||||||
|
# define ALIBABACLOUD_RESOURCESHARING_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||||
|
# endif
|
||||||
|
#else
|
||||||
|
# define ALIBABACLOUD_RESOURCESHARING_EXPORT
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_RESOURCESHARINGEXPORT_H_
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT 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_RESOURCESHARING_MODEL_ACCEPTRESOURCESHAREINVITATIONREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_ACCEPTRESOURCESHAREINVITATIONREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace ResourceSharing {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT AcceptResourceShareInvitationRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
AcceptResourceShareInvitationRequest();
|
||||||
|
~AcceptResourceShareInvitationRequest();
|
||||||
|
std::string getResourceShareInvitationId() const;
|
||||||
|
void setResourceShareInvitationId(const std::string &resourceShareInvitationId);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string resourceShareInvitationId_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace ResourceSharing
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_ACCEPTRESOURCESHAREINVITATIONREQUEST_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_RESOURCESHARING_MODEL_ACCEPTRESOURCESHAREINVITATIONRESULT_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_ACCEPTRESOURCESHAREINVITATIONRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace ResourceSharing
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT AcceptResourceShareInvitationResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct ResourceShareInvitation
|
||||||
|
{
|
||||||
|
struct AcceptInvitationFailedDetail
|
||||||
|
{
|
||||||
|
std::string status;
|
||||||
|
std::string resourceId;
|
||||||
|
std::string associateType;
|
||||||
|
std::string resourceType;
|
||||||
|
std::string statusMessage;
|
||||||
|
};
|
||||||
|
std::vector<AcceptInvitationFailedDetail> acceptInvitationFailedDetails;
|
||||||
|
std::string resourceShareId;
|
||||||
|
std::string resourceShareName;
|
||||||
|
std::string status;
|
||||||
|
std::string senderAccountId;
|
||||||
|
std::string receiverAccountId;
|
||||||
|
std::string createTime;
|
||||||
|
std::string resourceShareInvitationId;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
AcceptResourceShareInvitationResult();
|
||||||
|
explicit AcceptResourceShareInvitationResult(const std::string &payload);
|
||||||
|
~AcceptResourceShareInvitationResult();
|
||||||
|
ResourceShareInvitation getResourceShareInvitation()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
ResourceShareInvitation resourceShareInvitation_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_ACCEPTRESOURCESHAREINVITATIONRESULT_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_RESOURCESHARING_MODEL_ASSOCIATERESOURCESHAREPERMISSIONREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_ASSOCIATERESOURCESHAREPERMISSIONREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace ResourceSharing {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT AssociateResourceSharePermissionRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
AssociateResourceSharePermissionRequest();
|
||||||
|
~AssociateResourceSharePermissionRequest();
|
||||||
|
bool getReplace() const;
|
||||||
|
void setReplace(bool replace);
|
||||||
|
std::string getPermissionName() const;
|
||||||
|
void setPermissionName(const std::string &permissionName);
|
||||||
|
std::string getResourceShareId() const;
|
||||||
|
void setResourceShareId(const std::string &resourceShareId);
|
||||||
|
|
||||||
|
private:
|
||||||
|
bool replace_;
|
||||||
|
std::string permissionName_;
|
||||||
|
std::string resourceShareId_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace ResourceSharing
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_ASSOCIATERESOURCESHAREPERMISSIONREQUEST_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_RESOURCESHARING_MODEL_ASSOCIATERESOURCESHAREPERMISSIONRESULT_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_ASSOCIATERESOURCESHAREPERMISSIONRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace ResourceSharing
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT AssociateResourceSharePermissionResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
AssociateResourceSharePermissionResult();
|
||||||
|
explicit AssociateResourceSharePermissionResult(const std::string &payload);
|
||||||
|
~AssociateResourceSharePermissionResult();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_ASSOCIATERESOURCESHAREPERMISSIONRESULT_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_RESOURCESHARING_MODEL_ASSOCIATERESOURCESHAREREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_ASSOCIATERESOURCESHAREREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace ResourceSharing {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT AssociateResourceShareRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
struct Resources {
|
||||||
|
std::string resourceId;
|
||||||
|
std::string resourceType;
|
||||||
|
};
|
||||||
|
struct TargetProperties {
|
||||||
|
std::string targetId;
|
||||||
|
std::string property;
|
||||||
|
};
|
||||||
|
AssociateResourceShareRequest();
|
||||||
|
~AssociateResourceShareRequest();
|
||||||
|
std::vector<Resources> getResources() const;
|
||||||
|
void setResources(const std::vector<Resources> &resources);
|
||||||
|
std::vector<std::string> getTargets() const;
|
||||||
|
void setTargets(const std::vector<std::string> &targets);
|
||||||
|
std::string getResourceShareId() const;
|
||||||
|
void setResourceShareId(const std::string &resourceShareId);
|
||||||
|
std::vector<std::string> getPermissionNames() const;
|
||||||
|
void setPermissionNames(const std::vector<std::string> &permissionNames);
|
||||||
|
std::vector<TargetProperties> getTargetProperties() const;
|
||||||
|
void setTargetProperties(const std::vector<TargetProperties> &targetProperties);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::vector<Resources> resources_;
|
||||||
|
std::vector<std::string> targets_;
|
||||||
|
std::string resourceShareId_;
|
||||||
|
std::vector<std::string> permissionNames_;
|
||||||
|
std::vector<TargetProperties> targetProperties_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace ResourceSharing
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_ASSOCIATERESOURCESHAREREQUEST_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_RESOURCESHARING_MODEL_ASSOCIATERESOURCESHARERESULT_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_ASSOCIATERESOURCESHARERESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace ResourceSharing
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT AssociateResourceShareResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct ResourceShareAssociation
|
||||||
|
{
|
||||||
|
std::string entityId;
|
||||||
|
std::string resourceShareName;
|
||||||
|
std::string entityType;
|
||||||
|
std::string resourceShareId;
|
||||||
|
std::string associationStatusMessage;
|
||||||
|
std::string associationType;
|
||||||
|
std::string createTime;
|
||||||
|
std::string updateTime;
|
||||||
|
std::string targetProperty;
|
||||||
|
std::string associationStatus;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
AssociateResourceShareResult();
|
||||||
|
explicit AssociateResourceShareResult(const std::string &payload);
|
||||||
|
~AssociateResourceShareResult();
|
||||||
|
std::vector<ResourceShareAssociation> getResourceShareAssociations()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::vector<ResourceShareAssociation> resourceShareAssociations_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_ASSOCIATERESOURCESHARERESULT_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_RESOURCESHARING_MODEL_CHANGERESOURCEGROUPREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_CHANGERESOURCEGROUPREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace ResourceSharing {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT ChangeResourceGroupRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
ChangeResourceGroupRequest();
|
||||||
|
~ChangeResourceGroupRequest();
|
||||||
|
std::string getResourceGroupId() const;
|
||||||
|
void setResourceGroupId(const std::string &resourceGroupId);
|
||||||
|
std::string getResourceRegionId() const;
|
||||||
|
void setResourceRegionId(const std::string &resourceRegionId);
|
||||||
|
std::string getResourceId() const;
|
||||||
|
void setResourceId(const std::string &resourceId);
|
||||||
|
std::string getResourceType() const;
|
||||||
|
void setResourceType(const std::string &resourceType);
|
||||||
|
std::string getService() const;
|
||||||
|
void setService(const std::string &service);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string resourceGroupId_;
|
||||||
|
std::string resourceRegionId_;
|
||||||
|
std::string resourceId_;
|
||||||
|
std::string resourceType_;
|
||||||
|
std::string service_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace ResourceSharing
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_CHANGERESOURCEGROUPREQUEST_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_RESOURCESHARING_MODEL_CHANGERESOURCEGROUPRESULT_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_CHANGERESOURCEGROUPRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace ResourceSharing
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT ChangeResourceGroupResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
ChangeResourceGroupResult();
|
||||||
|
explicit ChangeResourceGroupResult(const std::string &payload);
|
||||||
|
~ChangeResourceGroupResult();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_CHANGERESOURCEGROUPRESULT_H_
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT 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_RESOURCESHARING_MODEL_CHECKSHARINGWITHRESOURCEDIRECTORYSTATUSREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_CHECKSHARINGWITHRESOURCEDIRECTORYSTATUSREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace ResourceSharing {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT CheckSharingWithResourceDirectoryStatusRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
CheckSharingWithResourceDirectoryStatusRequest();
|
||||||
|
~CheckSharingWithResourceDirectoryStatusRequest();
|
||||||
|
|
||||||
|
private:
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace ResourceSharing
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_CHECKSHARINGWITHRESOURCEDIRECTORYSTATUSREQUEST_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_RESOURCESHARING_MODEL_CHECKSHARINGWITHRESOURCEDIRECTORYSTATUSRESULT_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_CHECKSHARINGWITHRESOURCEDIRECTORYSTATUSRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace ResourceSharing
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT CheckSharingWithResourceDirectoryStatusResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
CheckSharingWithResourceDirectoryStatusResult();
|
||||||
|
explicit CheckSharingWithResourceDirectoryStatusResult(const std::string &payload);
|
||||||
|
~CheckSharingWithResourceDirectoryStatusResult();
|
||||||
|
bool getEnableSharingWithRd()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
bool enableSharingWithRd_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_CHECKSHARINGWITHRESOURCEDIRECTORYSTATUSRESULT_H_
|
||||||
@@ -0,0 +1,68 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT 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_RESOURCESHARING_MODEL_CREATERESOURCESHAREREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_CREATERESOURCESHAREREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace ResourceSharing {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT CreateResourceShareRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
struct Resources {
|
||||||
|
std::string resourceId;
|
||||||
|
std::string resourceType;
|
||||||
|
};
|
||||||
|
struct TargetProperties {
|
||||||
|
std::string targetId;
|
||||||
|
std::string property;
|
||||||
|
};
|
||||||
|
CreateResourceShareRequest();
|
||||||
|
~CreateResourceShareRequest();
|
||||||
|
std::string getResourceShareName() const;
|
||||||
|
void setResourceShareName(const std::string &resourceShareName);
|
||||||
|
std::vector<std::string> getTargets() const;
|
||||||
|
void setTargets(const std::vector<std::string> &targets);
|
||||||
|
std::string getResourceGroupId() const;
|
||||||
|
void setResourceGroupId(const std::string &resourceGroupId);
|
||||||
|
std::vector<Resources> getResources() const;
|
||||||
|
void setResources(const std::vector<Resources> &resources);
|
||||||
|
bool getAllowExternalTargets() const;
|
||||||
|
void setAllowExternalTargets(bool allowExternalTargets);
|
||||||
|
std::vector<std::string> getPermissionNames() const;
|
||||||
|
void setPermissionNames(const std::vector<std::string> &permissionNames);
|
||||||
|
std::vector<TargetProperties> getTargetProperties() const;
|
||||||
|
void setTargetProperties(const std::vector<TargetProperties> &targetProperties);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string resourceShareName_;
|
||||||
|
std::vector<std::string> targets_;
|
||||||
|
std::string resourceGroupId_;
|
||||||
|
std::vector<Resources> resources_;
|
||||||
|
bool allowExternalTargets_;
|
||||||
|
std::vector<std::string> permissionNames_;
|
||||||
|
std::vector<TargetProperties> targetProperties_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace ResourceSharing
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_CREATERESOURCESHAREREQUEST_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_RESOURCESHARING_MODEL_CREATERESOURCESHARERESULT_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_CREATERESOURCESHARERESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace ResourceSharing
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT CreateResourceShareResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct ResourceShare
|
||||||
|
{
|
||||||
|
std::string resourceShareName;
|
||||||
|
std::string resourceShareId;
|
||||||
|
std::string createTime;
|
||||||
|
std::string resourceShareStatus;
|
||||||
|
std::string updateTime;
|
||||||
|
std::string resourceShareOwner;
|
||||||
|
bool allowExternalTargets;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
CreateResourceShareResult();
|
||||||
|
explicit CreateResourceShareResult(const std::string &payload);
|
||||||
|
~CreateResourceShareResult();
|
||||||
|
ResourceShare getResourceShare()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
ResourceShare resourceShare_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_CREATERESOURCESHARERESULT_H_
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT 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_RESOURCESHARING_MODEL_DELETERESOURCESHAREREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_DELETERESOURCESHAREREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace ResourceSharing {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT DeleteResourceShareRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
DeleteResourceShareRequest();
|
||||||
|
~DeleteResourceShareRequest();
|
||||||
|
std::string getResourceShareId() const;
|
||||||
|
void setResourceShareId(const std::string &resourceShareId);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string resourceShareId_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace ResourceSharing
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_DELETERESOURCESHAREREQUEST_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_RESOURCESHARING_MODEL_DELETERESOURCESHARERESULT_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_DELETERESOURCESHARERESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace ResourceSharing
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT DeleteResourceShareResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
DeleteResourceShareResult();
|
||||||
|
explicit DeleteResourceShareResult(const std::string &payload);
|
||||||
|
~DeleteResourceShareResult();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_DELETERESOURCESHARERESULT_H_
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT 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_RESOURCESHARING_MODEL_DESCRIBEREGIONSREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_DESCRIBEREGIONSREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace ResourceSharing {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT DescribeRegionsRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
DescribeRegionsRequest();
|
||||||
|
~DescribeRegionsRequest();
|
||||||
|
std::string getAcceptLanguage() const;
|
||||||
|
void setAcceptLanguage(const std::string &acceptLanguage);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string acceptLanguage_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace ResourceSharing
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_DESCRIBEREGIONSREQUEST_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_RESOURCESHARING_MODEL_DESCRIBEREGIONSRESULT_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_DESCRIBEREGIONSRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace ResourceSharing
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT DescribeRegionsResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct Region
|
||||||
|
{
|
||||||
|
std::string regionId;
|
||||||
|
std::string regionEndpoint;
|
||||||
|
std::string localName;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
DescribeRegionsResult();
|
||||||
|
explicit DescribeRegionsResult(const std::string &payload);
|
||||||
|
~DescribeRegionsResult();
|
||||||
|
std::vector<Region> getRegions()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::vector<Region> regions_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_DESCRIBEREGIONSRESULT_H_
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_RESOURCESHARING_MODEL_DISASSOCIATERESOURCESHAREPERMISSIONREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_DISASSOCIATERESOURCESHAREPERMISSIONREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace ResourceSharing {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT DisassociateResourceSharePermissionRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
DisassociateResourceSharePermissionRequest();
|
||||||
|
~DisassociateResourceSharePermissionRequest();
|
||||||
|
std::string getPermissionName() const;
|
||||||
|
void setPermissionName(const std::string &permissionName);
|
||||||
|
std::string getResourceShareId() const;
|
||||||
|
void setResourceShareId(const std::string &resourceShareId);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string permissionName_;
|
||||||
|
std::string resourceShareId_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace ResourceSharing
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_DISASSOCIATERESOURCESHAREPERMISSIONREQUEST_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_RESOURCESHARING_MODEL_DISASSOCIATERESOURCESHAREPERMISSIONRESULT_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_DISASSOCIATERESOURCESHAREPERMISSIONRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace ResourceSharing
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT DisassociateResourceSharePermissionResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
DisassociateResourceSharePermissionResult();
|
||||||
|
explicit DisassociateResourceSharePermissionResult(const std::string &payload);
|
||||||
|
~DisassociateResourceSharePermissionResult();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_DISASSOCIATERESOURCESHAREPERMISSIONRESULT_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_RESOURCESHARING_MODEL_DISASSOCIATERESOURCESHAREREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_DISASSOCIATERESOURCESHAREREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace ResourceSharing {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT DisassociateResourceShareRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
struct Resources {
|
||||||
|
std::string resourceId;
|
||||||
|
std::string resourceType;
|
||||||
|
};
|
||||||
|
DisassociateResourceShareRequest();
|
||||||
|
~DisassociateResourceShareRequest();
|
||||||
|
std::string getResourceOwner() const;
|
||||||
|
void setResourceOwner(const std::string &resourceOwner);
|
||||||
|
std::vector<Resources> getResources() const;
|
||||||
|
void setResources(const std::vector<Resources> &resources);
|
||||||
|
std::vector<std::string> getTargets() const;
|
||||||
|
void setTargets(const std::vector<std::string> &targets);
|
||||||
|
std::string getResourceShareId() const;
|
||||||
|
void setResourceShareId(const std::string &resourceShareId);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string resourceOwner_;
|
||||||
|
std::vector<Resources> resources_;
|
||||||
|
std::vector<std::string> targets_;
|
||||||
|
std::string resourceShareId_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace ResourceSharing
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_DISASSOCIATERESOURCESHAREREQUEST_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_RESOURCESHARING_MODEL_DISASSOCIATERESOURCESHARERESULT_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_DISASSOCIATERESOURCESHARERESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace ResourceSharing
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT DisassociateResourceShareResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct ResourceShareAssociation
|
||||||
|
{
|
||||||
|
std::string entityId;
|
||||||
|
std::string resourceShareName;
|
||||||
|
std::string entityType;
|
||||||
|
std::string resourceShareId;
|
||||||
|
std::string associationStatusMessage;
|
||||||
|
std::string associationType;
|
||||||
|
std::string createTime;
|
||||||
|
std::string updateTime;
|
||||||
|
std::string targetProperty;
|
||||||
|
std::string associationStatus;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
DisassociateResourceShareResult();
|
||||||
|
explicit DisassociateResourceShareResult(const std::string &payload);
|
||||||
|
~DisassociateResourceShareResult();
|
||||||
|
std::vector<ResourceShareAssociation> getResourceShareAssociations()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::vector<ResourceShareAssociation> resourceShareAssociations_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_DISASSOCIATERESOURCESHARERESULT_H_
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT 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_RESOURCESHARING_MODEL_ENABLESHARINGWITHRESOURCEDIRECTORYREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_ENABLESHARINGWITHRESOURCEDIRECTORYREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace ResourceSharing {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT EnableSharingWithResourceDirectoryRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
EnableSharingWithResourceDirectoryRequest();
|
||||||
|
~EnableSharingWithResourceDirectoryRequest();
|
||||||
|
|
||||||
|
private:
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace ResourceSharing
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_ENABLESHARINGWITHRESOURCEDIRECTORYREQUEST_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_RESOURCESHARING_MODEL_ENABLESHARINGWITHRESOURCEDIRECTORYRESULT_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_ENABLESHARINGWITHRESOURCEDIRECTORYRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace ResourceSharing
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT EnableSharingWithResourceDirectoryResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
EnableSharingWithResourceDirectoryResult();
|
||||||
|
explicit EnableSharingWithResourceDirectoryResult(const std::string &payload);
|
||||||
|
~EnableSharingWithResourceDirectoryResult();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_ENABLESHARINGWITHRESOURCEDIRECTORYRESULT_H_
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_RESOURCESHARING_MODEL_GETPERMISSIONREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_GETPERMISSIONREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace ResourceSharing {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT GetPermissionRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
GetPermissionRequest();
|
||||||
|
~GetPermissionRequest();
|
||||||
|
std::string getPermissionVersion() const;
|
||||||
|
void setPermissionVersion(const std::string &permissionVersion);
|
||||||
|
std::string getPermissionName() const;
|
||||||
|
void setPermissionName(const std::string &permissionName);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string permissionVersion_;
|
||||||
|
std::string permissionName_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace ResourceSharing
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_GETPERMISSIONREQUEST_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_RESOURCESHARING_MODEL_GETPERMISSIONRESULT_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_GETPERMISSIONRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace ResourceSharing
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT GetPermissionResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct Permission
|
||||||
|
{
|
||||||
|
std::string permissionName;
|
||||||
|
bool defaultVersion;
|
||||||
|
std::string createTime;
|
||||||
|
std::string permission;
|
||||||
|
std::string updateTime;
|
||||||
|
std::string resourceType;
|
||||||
|
bool defaultPermission;
|
||||||
|
std::string permissionVersion;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
GetPermissionResult();
|
||||||
|
explicit GetPermissionResult(const std::string &payload);
|
||||||
|
~GetPermissionResult();
|
||||||
|
Permission getPermission()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
Permission permission_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_GETPERMISSIONRESULT_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_RESOURCESHARING_MODEL_LISTPERMISSIONVERSIONSREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_LISTPERMISSIONVERSIONSREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace ResourceSharing {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT ListPermissionVersionsRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
ListPermissionVersionsRequest();
|
||||||
|
~ListPermissionVersionsRequest();
|
||||||
|
std::string getPermissionName() const;
|
||||||
|
void setPermissionName(const std::string &permissionName);
|
||||||
|
std::string getNextToken() const;
|
||||||
|
void setNextToken(const std::string &nextToken);
|
||||||
|
int getMaxResults() const;
|
||||||
|
void setMaxResults(int maxResults);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string permissionName_;
|
||||||
|
std::string nextToken_;
|
||||||
|
int maxResults_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace ResourceSharing
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_LISTPERMISSIONVERSIONSREQUEST_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_RESOURCESHARING_MODEL_LISTPERMISSIONVERSIONSRESULT_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_LISTPERMISSIONVERSIONSRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace ResourceSharing
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT ListPermissionVersionsResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct Permission
|
||||||
|
{
|
||||||
|
std::string permissionName;
|
||||||
|
bool defaultVersion;
|
||||||
|
std::string createTime;
|
||||||
|
std::string updateTime;
|
||||||
|
std::string resourceType;
|
||||||
|
bool defaultPermission;
|
||||||
|
std::string permissionVersion;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
ListPermissionVersionsResult();
|
||||||
|
explicit ListPermissionVersionsResult(const std::string &payload);
|
||||||
|
~ListPermissionVersionsResult();
|
||||||
|
std::string getNextToken()const;
|
||||||
|
std::vector<Permission> getPermissions()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string nextToken_;
|
||||||
|
std::vector<Permission> permissions_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_LISTPERMISSIONVERSIONSRESULT_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_RESOURCESHARING_MODEL_LISTPERMISSIONSREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_LISTPERMISSIONSREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace ResourceSharing {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT ListPermissionsRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
ListPermissionsRequest();
|
||||||
|
~ListPermissionsRequest();
|
||||||
|
std::string getResourceType() const;
|
||||||
|
void setResourceType(const std::string &resourceType);
|
||||||
|
std::string getNextToken() const;
|
||||||
|
void setNextToken(const std::string &nextToken);
|
||||||
|
int getMaxResults() const;
|
||||||
|
void setMaxResults(int maxResults);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string resourceType_;
|
||||||
|
std::string nextToken_;
|
||||||
|
int maxResults_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace ResourceSharing
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_LISTPERMISSIONSREQUEST_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_RESOURCESHARING_MODEL_LISTPERMISSIONSRESULT_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_LISTPERMISSIONSRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace ResourceSharing
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT ListPermissionsResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct Permission
|
||||||
|
{
|
||||||
|
std::string permissionName;
|
||||||
|
bool defaultVersion;
|
||||||
|
std::string createTime;
|
||||||
|
std::string updateTime;
|
||||||
|
std::string resourceType;
|
||||||
|
bool defaultPermission;
|
||||||
|
std::string permissionVersion;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
ListPermissionsResult();
|
||||||
|
explicit ListPermissionsResult(const std::string &payload);
|
||||||
|
~ListPermissionsResult();
|
||||||
|
std::string getNextToken()const;
|
||||||
|
std::vector<Permission> getPermissions()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string nextToken_;
|
||||||
|
std::vector<Permission> permissions_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_LISTPERMISSIONSRESULT_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_RESOURCESHARING_MODEL_LISTRESOURCESHAREASSOCIATIONSREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_LISTRESOURCESHAREASSOCIATIONSREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace ResourceSharing {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT ListResourceShareAssociationsRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
ListResourceShareAssociationsRequest();
|
||||||
|
~ListResourceShareAssociationsRequest();
|
||||||
|
std::string getNextToken() const;
|
||||||
|
void setNextToken(const std::string &nextToken);
|
||||||
|
std::vector<std::string> getResourceShareIds() const;
|
||||||
|
void setResourceShareIds(const std::vector<std::string> &resourceShareIds);
|
||||||
|
std::string getResourceId() const;
|
||||||
|
void setResourceId(const std::string &resourceId);
|
||||||
|
std::string getTarget() const;
|
||||||
|
void setTarget(const std::string &target);
|
||||||
|
std::string getAssociationType() const;
|
||||||
|
void setAssociationType(const std::string &associationType);
|
||||||
|
std::string getAssociationStatus() const;
|
||||||
|
void setAssociationStatus(const std::string &associationStatus);
|
||||||
|
int getMaxResults() const;
|
||||||
|
void setMaxResults(int maxResults);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string nextToken_;
|
||||||
|
std::vector<std::string> resourceShareIds_;
|
||||||
|
std::string resourceId_;
|
||||||
|
std::string target_;
|
||||||
|
std::string associationType_;
|
||||||
|
std::string associationStatus_;
|
||||||
|
int maxResults_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace ResourceSharing
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_LISTRESOURCESHAREASSOCIATIONSREQUEST_H_
|
||||||
@@ -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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_RESOURCESHARING_MODEL_LISTRESOURCESHAREASSOCIATIONSRESULT_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_LISTRESOURCESHAREASSOCIATIONSRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace ResourceSharing
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT ListResourceShareAssociationsResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct ResourceShareAssociation
|
||||||
|
{
|
||||||
|
struct AssociationFailedDetail
|
||||||
|
{
|
||||||
|
std::string status;
|
||||||
|
std::string entityId;
|
||||||
|
std::string entityType;
|
||||||
|
std::string associateType;
|
||||||
|
std::string statusMessage;
|
||||||
|
};
|
||||||
|
std::string entityId;
|
||||||
|
std::string resourceShareName;
|
||||||
|
std::string entityType;
|
||||||
|
std::string resourceShareId;
|
||||||
|
std::string associationStatusMessage;
|
||||||
|
std::vector<ResourceShareAssociation::AssociationFailedDetail> associationFailedDetails;
|
||||||
|
std::string associationType;
|
||||||
|
std::string createTime;
|
||||||
|
std::string updateTime;
|
||||||
|
bool external;
|
||||||
|
std::string targetProperty;
|
||||||
|
std::string associationStatus;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
ListResourceShareAssociationsResult();
|
||||||
|
explicit ListResourceShareAssociationsResult(const std::string &payload);
|
||||||
|
~ListResourceShareAssociationsResult();
|
||||||
|
std::vector<ResourceShareAssociation> getResourceShareAssociations()const;
|
||||||
|
std::string getNextToken()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::vector<ResourceShareAssociation> resourceShareAssociations_;
|
||||||
|
std::string nextToken_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_LISTRESOURCESHAREASSOCIATIONSRESULT_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_RESOURCESHARING_MODEL_LISTRESOURCESHAREINVITATIONSREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_LISTRESOURCESHAREINVITATIONSREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace ResourceSharing {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT ListResourceShareInvitationsRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
ListResourceShareInvitationsRequest();
|
||||||
|
~ListResourceShareInvitationsRequest();
|
||||||
|
std::vector<std::string> getResourceShareInvitationIds() const;
|
||||||
|
void setResourceShareInvitationIds(const std::vector<std::string> &resourceShareInvitationIds);
|
||||||
|
std::string getNextToken() const;
|
||||||
|
void setNextToken(const std::string &nextToken);
|
||||||
|
std::vector<std::string> getResourceShareIds() const;
|
||||||
|
void setResourceShareIds(const std::vector<std::string> &resourceShareIds);
|
||||||
|
int getMaxResults() const;
|
||||||
|
void setMaxResults(int maxResults);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::vector<std::string> resourceShareInvitationIds_;
|
||||||
|
std::string nextToken_;
|
||||||
|
std::vector<std::string> resourceShareIds_;
|
||||||
|
int maxResults_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace ResourceSharing
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_LISTRESOURCESHAREINVITATIONSREQUEST_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_RESOURCESHARING_MODEL_LISTRESOURCESHAREINVITATIONSRESULT_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_LISTRESOURCESHAREINVITATIONSRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace ResourceSharing
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT ListResourceShareInvitationsResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct ResourceShareInvitation
|
||||||
|
{
|
||||||
|
struct InvitationFailedDetail
|
||||||
|
{
|
||||||
|
std::string status;
|
||||||
|
std::string resourceId;
|
||||||
|
std::string associateType;
|
||||||
|
std::string resourceType;
|
||||||
|
std::string statusMessage;
|
||||||
|
};
|
||||||
|
std::string status;
|
||||||
|
std::string resourceShareId;
|
||||||
|
std::string resourceShareName;
|
||||||
|
std::string senderAccountId;
|
||||||
|
std::string receiverAccountId;
|
||||||
|
std::string createTime;
|
||||||
|
std::vector<ResourceShareInvitation::InvitationFailedDetail> invitationFailedDetails;
|
||||||
|
std::string resourceShareInvitationId;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
ListResourceShareInvitationsResult();
|
||||||
|
explicit ListResourceShareInvitationsResult(const std::string &payload);
|
||||||
|
~ListResourceShareInvitationsResult();
|
||||||
|
std::vector<ResourceShareInvitation> getResourceShareInvitations()const;
|
||||||
|
std::string getNextToken()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::vector<ResourceShareInvitation> resourceShareInvitations_;
|
||||||
|
std::string nextToken_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_LISTRESOURCESHAREINVITATIONSRESULT_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_RESOURCESHARING_MODEL_LISTRESOURCESHAREPERMISSIONSREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_LISTRESOURCESHAREPERMISSIONSREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace ResourceSharing {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT ListResourceSharePermissionsRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
ListResourceSharePermissionsRequest();
|
||||||
|
~ListResourceSharePermissionsRequest();
|
||||||
|
std::string getResourceOwner() const;
|
||||||
|
void setResourceOwner(const std::string &resourceOwner);
|
||||||
|
std::string getNextToken() const;
|
||||||
|
void setNextToken(const std::string &nextToken);
|
||||||
|
int getMaxResults() const;
|
||||||
|
void setMaxResults(int maxResults);
|
||||||
|
std::string getResourceShareId() const;
|
||||||
|
void setResourceShareId(const std::string &resourceShareId);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string resourceOwner_;
|
||||||
|
std::string nextToken_;
|
||||||
|
int maxResults_;
|
||||||
|
std::string resourceShareId_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace ResourceSharing
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_LISTRESOURCESHAREPERMISSIONSREQUEST_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_RESOURCESHARING_MODEL_LISTRESOURCESHAREPERMISSIONSRESULT_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_LISTRESOURCESHAREPERMISSIONSRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace ResourceSharing
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT ListResourceSharePermissionsResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct Permission
|
||||||
|
{
|
||||||
|
std::string permissionName;
|
||||||
|
bool defaultVersion;
|
||||||
|
std::string createTime;
|
||||||
|
std::string updateTime;
|
||||||
|
std::string resourceType;
|
||||||
|
bool defaultPermission;
|
||||||
|
std::string permissionVersion;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
ListResourceSharePermissionsResult();
|
||||||
|
explicit ListResourceSharePermissionsResult(const std::string &payload);
|
||||||
|
~ListResourceSharePermissionsResult();
|
||||||
|
std::string getNextToken()const;
|
||||||
|
std::vector<Permission> getPermissions()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string nextToken_;
|
||||||
|
std::vector<Permission> permissions_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_LISTRESOURCESHAREPERMISSIONSRESULT_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_RESOURCESHARING_MODEL_LISTRESOURCESHARESREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_LISTRESOURCESHARESREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace ResourceSharing {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT ListResourceSharesRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
ListResourceSharesRequest();
|
||||||
|
~ListResourceSharesRequest();
|
||||||
|
std::string getResourceShareName() const;
|
||||||
|
void setResourceShareName(const std::string &resourceShareName);
|
||||||
|
std::string getPermissionName() const;
|
||||||
|
void setPermissionName(const std::string &permissionName);
|
||||||
|
std::string getResourceGroupId() const;
|
||||||
|
void setResourceGroupId(const std::string &resourceGroupId);
|
||||||
|
std::string getNextToken() const;
|
||||||
|
void setNextToken(const std::string &nextToken);
|
||||||
|
std::vector<std::string> getResourceShareIds() const;
|
||||||
|
void setResourceShareIds(const std::vector<std::string> &resourceShareIds);
|
||||||
|
std::string getResourceOwner() const;
|
||||||
|
void setResourceOwner(const std::string &resourceOwner);
|
||||||
|
std::string getResourceShareStatus() const;
|
||||||
|
void setResourceShareStatus(const std::string &resourceShareStatus);
|
||||||
|
int getMaxResults() const;
|
||||||
|
void setMaxResults(int maxResults);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string resourceShareName_;
|
||||||
|
std::string permissionName_;
|
||||||
|
std::string resourceGroupId_;
|
||||||
|
std::string nextToken_;
|
||||||
|
std::vector<std::string> resourceShareIds_;
|
||||||
|
std::string resourceOwner_;
|
||||||
|
std::string resourceShareStatus_;
|
||||||
|
int maxResults_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace ResourceSharing
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_LISTRESOURCESHARESREQUEST_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_RESOURCESHARING_MODEL_LISTRESOURCESHARESRESULT_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_LISTRESOURCESHARESRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace ResourceSharing
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT ListResourceSharesResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct ResourceShare
|
||||||
|
{
|
||||||
|
std::string resourceShareName;
|
||||||
|
std::string resourceShareId;
|
||||||
|
std::string resourceGroupId;
|
||||||
|
std::string createTime;
|
||||||
|
std::string resourceShareStatus;
|
||||||
|
std::string updateTime;
|
||||||
|
std::string resourceShareOwner;
|
||||||
|
bool allowExternalTargets;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
ListResourceSharesResult();
|
||||||
|
explicit ListResourceSharesResult(const std::string &payload);
|
||||||
|
~ListResourceSharesResult();
|
||||||
|
std::vector<ResourceShare> getResourceShares()const;
|
||||||
|
std::string getNextToken()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::vector<ResourceShare> resourceShares_;
|
||||||
|
std::string nextToken_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_LISTRESOURCESHARESRESULT_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_RESOURCESHARING_MODEL_LISTSHAREDRESOURCESREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_LISTSHAREDRESOURCESREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace ResourceSharing {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT ListSharedResourcesRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
ListSharedResourcesRequest();
|
||||||
|
~ListSharedResourcesRequest();
|
||||||
|
std::string getNextToken() const;
|
||||||
|
void setNextToken(const std::string &nextToken);
|
||||||
|
std::vector<std::string> getResourceShareIds() const;
|
||||||
|
void setResourceShareIds(const std::vector<std::string> &resourceShareIds);
|
||||||
|
std::string getResourceOwner() const;
|
||||||
|
void setResourceOwner(const std::string &resourceOwner);
|
||||||
|
std::string getResourceType() const;
|
||||||
|
void setResourceType(const std::string &resourceType);
|
||||||
|
std::string getTarget() const;
|
||||||
|
void setTarget(const std::string &target);
|
||||||
|
int getMaxResults() const;
|
||||||
|
void setMaxResults(int maxResults);
|
||||||
|
std::vector<std::string> getResourceIds() const;
|
||||||
|
void setResourceIds(const std::vector<std::string> &resourceIds);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string nextToken_;
|
||||||
|
std::vector<std::string> resourceShareIds_;
|
||||||
|
std::string resourceOwner_;
|
||||||
|
std::string resourceType_;
|
||||||
|
std::string target_;
|
||||||
|
int maxResults_;
|
||||||
|
std::vector<std::string> resourceIds_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace ResourceSharing
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_LISTSHAREDRESOURCESREQUEST_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_RESOURCESHARING_MODEL_LISTSHAREDRESOURCESRESULT_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_LISTSHAREDRESOURCESRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace ResourceSharing
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT ListSharedResourcesResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct SharedResource
|
||||||
|
{
|
||||||
|
std::string resourceShareId;
|
||||||
|
std::string resourceId;
|
||||||
|
std::string createTime;
|
||||||
|
std::string updateTime;
|
||||||
|
std::string resourceStatusMessage;
|
||||||
|
std::string resourceStatus;
|
||||||
|
std::string resourceType;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
ListSharedResourcesResult();
|
||||||
|
explicit ListSharedResourcesResult(const std::string &payload);
|
||||||
|
~ListSharedResourcesResult();
|
||||||
|
std::string getNextToken()const;
|
||||||
|
std::vector<SharedResource> getSharedResources()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string nextToken_;
|
||||||
|
std::vector<SharedResource> sharedResources_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_LISTSHAREDRESOURCESRESULT_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_RESOURCESHARING_MODEL_LISTSHAREDTARGETSREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_LISTSHAREDTARGETSREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace ResourceSharing {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT ListSharedTargetsRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
ListSharedTargetsRequest();
|
||||||
|
~ListSharedTargetsRequest();
|
||||||
|
std::vector<std::string> getTargets() const;
|
||||||
|
void setTargets(const std::vector<std::string> &targets);
|
||||||
|
std::string getNextToken() const;
|
||||||
|
void setNextToken(const std::string &nextToken);
|
||||||
|
std::vector<std::string> getResourceShareIds() const;
|
||||||
|
void setResourceShareIds(const std::vector<std::string> &resourceShareIds);
|
||||||
|
std::string getResourceId() const;
|
||||||
|
void setResourceId(const std::string &resourceId);
|
||||||
|
std::string getResourceOwner() const;
|
||||||
|
void setResourceOwner(const std::string &resourceOwner);
|
||||||
|
std::string getResourceType() const;
|
||||||
|
void setResourceType(const std::string &resourceType);
|
||||||
|
int getMaxResults() const;
|
||||||
|
void setMaxResults(int maxResults);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::vector<std::string> targets_;
|
||||||
|
std::string nextToken_;
|
||||||
|
std::vector<std::string> resourceShareIds_;
|
||||||
|
std::string resourceId_;
|
||||||
|
std::string resourceOwner_;
|
||||||
|
std::string resourceType_;
|
||||||
|
int maxResults_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace ResourceSharing
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_LISTSHAREDTARGETSREQUEST_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_RESOURCESHARING_MODEL_LISTSHAREDTARGETSRESULT_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_LISTSHAREDTARGETSRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace ResourceSharing
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT ListSharedTargetsResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct SharedTarget
|
||||||
|
{
|
||||||
|
std::string resourceShareId;
|
||||||
|
std::string createTime;
|
||||||
|
std::string updateTime;
|
||||||
|
bool external;
|
||||||
|
std::string targetProperty;
|
||||||
|
std::string targetId;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
ListSharedTargetsResult();
|
||||||
|
explicit ListSharedTargetsResult(const std::string &payload);
|
||||||
|
~ListSharedTargetsResult();
|
||||||
|
std::string getNextToken()const;
|
||||||
|
std::vector<SharedTarget> getSharedTargets()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string nextToken_;
|
||||||
|
std::vector<SharedTarget> sharedTargets_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_LISTSHAREDTARGETSRESULT_H_
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT 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_RESOURCESHARING_MODEL_REJECTRESOURCESHAREINVITATIONREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_REJECTRESOURCESHAREINVITATIONREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace ResourceSharing {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT RejectResourceShareInvitationRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
RejectResourceShareInvitationRequest();
|
||||||
|
~RejectResourceShareInvitationRequest();
|
||||||
|
std::string getResourceShareInvitationId() const;
|
||||||
|
void setResourceShareInvitationId(const std::string &resourceShareInvitationId);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string resourceShareInvitationId_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace ResourceSharing
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_REJECTRESOURCESHAREINVITATIONREQUEST_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_RESOURCESHARING_MODEL_REJECTRESOURCESHAREINVITATIONRESULT_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_REJECTRESOURCESHAREINVITATIONRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace ResourceSharing
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT RejectResourceShareInvitationResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct ResourceShareInvitation
|
||||||
|
{
|
||||||
|
std::string resourceShareId;
|
||||||
|
std::string resourceShareName;
|
||||||
|
std::string status;
|
||||||
|
std::string senderAccountId;
|
||||||
|
std::string receiverAccountId;
|
||||||
|
std::string createTime;
|
||||||
|
std::string resourceShareInvitationId;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
RejectResourceShareInvitationResult();
|
||||||
|
explicit RejectResourceShareInvitationResult(const std::string &payload);
|
||||||
|
~RejectResourceShareInvitationResult();
|
||||||
|
ResourceShareInvitation getResourceShareInvitation()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
ResourceShareInvitation resourceShareInvitation_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_REJECTRESOURCESHAREINVITATIONRESULT_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_RESOURCESHARING_MODEL_UPDATERESOURCESHAREREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_UPDATERESOURCESHAREREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace ResourceSharing {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT UpdateResourceShareRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
UpdateResourceShareRequest();
|
||||||
|
~UpdateResourceShareRequest();
|
||||||
|
std::string getResourceShareName() const;
|
||||||
|
void setResourceShareName(const std::string &resourceShareName);
|
||||||
|
std::string getResourceShareId() const;
|
||||||
|
void setResourceShareId(const std::string &resourceShareId);
|
||||||
|
bool getAllowExternalTargets() const;
|
||||||
|
void setAllowExternalTargets(bool allowExternalTargets);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string resourceShareName_;
|
||||||
|
std::string resourceShareId_;
|
||||||
|
bool allowExternalTargets_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace ResourceSharing
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_UPDATERESOURCESHAREREQUEST_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_RESOURCESHARING_MODEL_UPDATERESOURCESHARERESULT_H_
|
||||||
|
#define ALIBABACLOUD_RESOURCESHARING_MODEL_UPDATERESOURCESHARERESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace ResourceSharing
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_RESOURCESHARING_EXPORT UpdateResourceShareResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct ResourceShare
|
||||||
|
{
|
||||||
|
std::string resourceShareName;
|
||||||
|
std::string resourceShareId;
|
||||||
|
std::string createTime;
|
||||||
|
std::string resourceShareStatus;
|
||||||
|
std::string updateTime;
|
||||||
|
std::string resourceShareOwner;
|
||||||
|
bool allowExternalTargets;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
UpdateResourceShareResult();
|
||||||
|
explicit UpdateResourceShareResult(const std::string &payload);
|
||||||
|
~UpdateResourceShareResult();
|
||||||
|
ResourceShare getResourceShare()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
ResourceShare resourceShare_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_RESOURCESHARING_MODEL_UPDATERESOURCESHARERESULT_H_
|
||||||
845
resourcesharing/src/ResourceSharingClient.cc
Normal file
845
resourcesharing/src/ResourceSharingClient.cc
Normal file
@@ -0,0 +1,845 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/ResourceSharingClient.h>
|
||||||
|
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud;
|
||||||
|
using namespace AlibabaCloud::Location;
|
||||||
|
using namespace AlibabaCloud::ResourceSharing;
|
||||||
|
using namespace AlibabaCloud::ResourceSharing::Model;
|
||||||
|
|
||||||
|
namespace
|
||||||
|
{
|
||||||
|
const std::string SERVICE_NAME = "ResourceSharing";
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::ResourceSharingClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
||||||
|
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||||
|
{
|
||||||
|
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||||
|
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "ressharing");
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::ResourceSharingClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||||
|
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||||
|
{
|
||||||
|
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||||
|
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "ressharing");
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::ResourceSharingClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||||
|
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||||
|
{
|
||||||
|
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||||
|
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "ressharing");
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::~ResourceSharingClient()
|
||||||
|
{}
|
||||||
|
|
||||||
|
ResourceSharingClient::AcceptResourceShareInvitationOutcome ResourceSharingClient::acceptResourceShareInvitation(const AcceptResourceShareInvitationRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return AcceptResourceShareInvitationOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return AcceptResourceShareInvitationOutcome(AcceptResourceShareInvitationResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return AcceptResourceShareInvitationOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ResourceSharingClient::acceptResourceShareInvitationAsync(const AcceptResourceShareInvitationRequest& request, const AcceptResourceShareInvitationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, acceptResourceShareInvitation(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::AcceptResourceShareInvitationOutcomeCallable ResourceSharingClient::acceptResourceShareInvitationCallable(const AcceptResourceShareInvitationRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<AcceptResourceShareInvitationOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->acceptResourceShareInvitation(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::AssociateResourceShareOutcome ResourceSharingClient::associateResourceShare(const AssociateResourceShareRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return AssociateResourceShareOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return AssociateResourceShareOutcome(AssociateResourceShareResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return AssociateResourceShareOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ResourceSharingClient::associateResourceShareAsync(const AssociateResourceShareRequest& request, const AssociateResourceShareAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, associateResourceShare(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::AssociateResourceShareOutcomeCallable ResourceSharingClient::associateResourceShareCallable(const AssociateResourceShareRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<AssociateResourceShareOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->associateResourceShare(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::AssociateResourceSharePermissionOutcome ResourceSharingClient::associateResourceSharePermission(const AssociateResourceSharePermissionRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return AssociateResourceSharePermissionOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return AssociateResourceSharePermissionOutcome(AssociateResourceSharePermissionResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return AssociateResourceSharePermissionOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ResourceSharingClient::associateResourceSharePermissionAsync(const AssociateResourceSharePermissionRequest& request, const AssociateResourceSharePermissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, associateResourceSharePermission(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::AssociateResourceSharePermissionOutcomeCallable ResourceSharingClient::associateResourceSharePermissionCallable(const AssociateResourceSharePermissionRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<AssociateResourceSharePermissionOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->associateResourceSharePermission(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::ChangeResourceGroupOutcome ResourceSharingClient::changeResourceGroup(const ChangeResourceGroupRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return ChangeResourceGroupOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return ChangeResourceGroupOutcome(ChangeResourceGroupResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return ChangeResourceGroupOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ResourceSharingClient::changeResourceGroupAsync(const ChangeResourceGroupRequest& request, const ChangeResourceGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, changeResourceGroup(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::ChangeResourceGroupOutcomeCallable ResourceSharingClient::changeResourceGroupCallable(const ChangeResourceGroupRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<ChangeResourceGroupOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->changeResourceGroup(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::CheckSharingWithResourceDirectoryStatusOutcome ResourceSharingClient::checkSharingWithResourceDirectoryStatus(const CheckSharingWithResourceDirectoryStatusRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return CheckSharingWithResourceDirectoryStatusOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return CheckSharingWithResourceDirectoryStatusOutcome(CheckSharingWithResourceDirectoryStatusResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return CheckSharingWithResourceDirectoryStatusOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ResourceSharingClient::checkSharingWithResourceDirectoryStatusAsync(const CheckSharingWithResourceDirectoryStatusRequest& request, const CheckSharingWithResourceDirectoryStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, checkSharingWithResourceDirectoryStatus(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::CheckSharingWithResourceDirectoryStatusOutcomeCallable ResourceSharingClient::checkSharingWithResourceDirectoryStatusCallable(const CheckSharingWithResourceDirectoryStatusRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<CheckSharingWithResourceDirectoryStatusOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->checkSharingWithResourceDirectoryStatus(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::CreateResourceShareOutcome ResourceSharingClient::createResourceShare(const CreateResourceShareRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return CreateResourceShareOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return CreateResourceShareOutcome(CreateResourceShareResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return CreateResourceShareOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ResourceSharingClient::createResourceShareAsync(const CreateResourceShareRequest& request, const CreateResourceShareAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, createResourceShare(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::CreateResourceShareOutcomeCallable ResourceSharingClient::createResourceShareCallable(const CreateResourceShareRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<CreateResourceShareOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->createResourceShare(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::DeleteResourceShareOutcome ResourceSharingClient::deleteResourceShare(const DeleteResourceShareRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return DeleteResourceShareOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return DeleteResourceShareOutcome(DeleteResourceShareResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return DeleteResourceShareOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ResourceSharingClient::deleteResourceShareAsync(const DeleteResourceShareRequest& request, const DeleteResourceShareAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, deleteResourceShare(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::DeleteResourceShareOutcomeCallable ResourceSharingClient::deleteResourceShareCallable(const DeleteResourceShareRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<DeleteResourceShareOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->deleteResourceShare(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::DescribeRegionsOutcome ResourceSharingClient::describeRegions(const DescribeRegionsRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return DescribeRegionsOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return DescribeRegionsOutcome(DescribeRegionsResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return DescribeRegionsOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ResourceSharingClient::describeRegionsAsync(const DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, describeRegions(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::DescribeRegionsOutcomeCallable ResourceSharingClient::describeRegionsCallable(const DescribeRegionsRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<DescribeRegionsOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->describeRegions(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::DisassociateResourceShareOutcome ResourceSharingClient::disassociateResourceShare(const DisassociateResourceShareRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return DisassociateResourceShareOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return DisassociateResourceShareOutcome(DisassociateResourceShareResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return DisassociateResourceShareOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ResourceSharingClient::disassociateResourceShareAsync(const DisassociateResourceShareRequest& request, const DisassociateResourceShareAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, disassociateResourceShare(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::DisassociateResourceShareOutcomeCallable ResourceSharingClient::disassociateResourceShareCallable(const DisassociateResourceShareRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<DisassociateResourceShareOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->disassociateResourceShare(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::DisassociateResourceSharePermissionOutcome ResourceSharingClient::disassociateResourceSharePermission(const DisassociateResourceSharePermissionRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return DisassociateResourceSharePermissionOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return DisassociateResourceSharePermissionOutcome(DisassociateResourceSharePermissionResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return DisassociateResourceSharePermissionOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ResourceSharingClient::disassociateResourceSharePermissionAsync(const DisassociateResourceSharePermissionRequest& request, const DisassociateResourceSharePermissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, disassociateResourceSharePermission(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::DisassociateResourceSharePermissionOutcomeCallable ResourceSharingClient::disassociateResourceSharePermissionCallable(const DisassociateResourceSharePermissionRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<DisassociateResourceSharePermissionOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->disassociateResourceSharePermission(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::EnableSharingWithResourceDirectoryOutcome ResourceSharingClient::enableSharingWithResourceDirectory(const EnableSharingWithResourceDirectoryRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return EnableSharingWithResourceDirectoryOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return EnableSharingWithResourceDirectoryOutcome(EnableSharingWithResourceDirectoryResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return EnableSharingWithResourceDirectoryOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ResourceSharingClient::enableSharingWithResourceDirectoryAsync(const EnableSharingWithResourceDirectoryRequest& request, const EnableSharingWithResourceDirectoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, enableSharingWithResourceDirectory(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::EnableSharingWithResourceDirectoryOutcomeCallable ResourceSharingClient::enableSharingWithResourceDirectoryCallable(const EnableSharingWithResourceDirectoryRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<EnableSharingWithResourceDirectoryOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->enableSharingWithResourceDirectory(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::GetPermissionOutcome ResourceSharingClient::getPermission(const GetPermissionRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return GetPermissionOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return GetPermissionOutcome(GetPermissionResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return GetPermissionOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ResourceSharingClient::getPermissionAsync(const GetPermissionRequest& request, const GetPermissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, getPermission(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::GetPermissionOutcomeCallable ResourceSharingClient::getPermissionCallable(const GetPermissionRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<GetPermissionOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->getPermission(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::ListPermissionVersionsOutcome ResourceSharingClient::listPermissionVersions(const ListPermissionVersionsRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return ListPermissionVersionsOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return ListPermissionVersionsOutcome(ListPermissionVersionsResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return ListPermissionVersionsOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ResourceSharingClient::listPermissionVersionsAsync(const ListPermissionVersionsRequest& request, const ListPermissionVersionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, listPermissionVersions(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::ListPermissionVersionsOutcomeCallable ResourceSharingClient::listPermissionVersionsCallable(const ListPermissionVersionsRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<ListPermissionVersionsOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->listPermissionVersions(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::ListPermissionsOutcome ResourceSharingClient::listPermissions(const ListPermissionsRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return ListPermissionsOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return ListPermissionsOutcome(ListPermissionsResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return ListPermissionsOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ResourceSharingClient::listPermissionsAsync(const ListPermissionsRequest& request, const ListPermissionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, listPermissions(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::ListPermissionsOutcomeCallable ResourceSharingClient::listPermissionsCallable(const ListPermissionsRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<ListPermissionsOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->listPermissions(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::ListResourceShareAssociationsOutcome ResourceSharingClient::listResourceShareAssociations(const ListResourceShareAssociationsRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return ListResourceShareAssociationsOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return ListResourceShareAssociationsOutcome(ListResourceShareAssociationsResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return ListResourceShareAssociationsOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ResourceSharingClient::listResourceShareAssociationsAsync(const ListResourceShareAssociationsRequest& request, const ListResourceShareAssociationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, listResourceShareAssociations(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::ListResourceShareAssociationsOutcomeCallable ResourceSharingClient::listResourceShareAssociationsCallable(const ListResourceShareAssociationsRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<ListResourceShareAssociationsOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->listResourceShareAssociations(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::ListResourceShareInvitationsOutcome ResourceSharingClient::listResourceShareInvitations(const ListResourceShareInvitationsRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return ListResourceShareInvitationsOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return ListResourceShareInvitationsOutcome(ListResourceShareInvitationsResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return ListResourceShareInvitationsOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ResourceSharingClient::listResourceShareInvitationsAsync(const ListResourceShareInvitationsRequest& request, const ListResourceShareInvitationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, listResourceShareInvitations(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::ListResourceShareInvitationsOutcomeCallable ResourceSharingClient::listResourceShareInvitationsCallable(const ListResourceShareInvitationsRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<ListResourceShareInvitationsOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->listResourceShareInvitations(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::ListResourceSharePermissionsOutcome ResourceSharingClient::listResourceSharePermissions(const ListResourceSharePermissionsRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return ListResourceSharePermissionsOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return ListResourceSharePermissionsOutcome(ListResourceSharePermissionsResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return ListResourceSharePermissionsOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ResourceSharingClient::listResourceSharePermissionsAsync(const ListResourceSharePermissionsRequest& request, const ListResourceSharePermissionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, listResourceSharePermissions(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::ListResourceSharePermissionsOutcomeCallable ResourceSharingClient::listResourceSharePermissionsCallable(const ListResourceSharePermissionsRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<ListResourceSharePermissionsOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->listResourceSharePermissions(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::ListResourceSharesOutcome ResourceSharingClient::listResourceShares(const ListResourceSharesRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return ListResourceSharesOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return ListResourceSharesOutcome(ListResourceSharesResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return ListResourceSharesOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ResourceSharingClient::listResourceSharesAsync(const ListResourceSharesRequest& request, const ListResourceSharesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, listResourceShares(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::ListResourceSharesOutcomeCallable ResourceSharingClient::listResourceSharesCallable(const ListResourceSharesRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<ListResourceSharesOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->listResourceShares(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::ListSharedResourcesOutcome ResourceSharingClient::listSharedResources(const ListSharedResourcesRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return ListSharedResourcesOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return ListSharedResourcesOutcome(ListSharedResourcesResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return ListSharedResourcesOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ResourceSharingClient::listSharedResourcesAsync(const ListSharedResourcesRequest& request, const ListSharedResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, listSharedResources(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::ListSharedResourcesOutcomeCallable ResourceSharingClient::listSharedResourcesCallable(const ListSharedResourcesRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<ListSharedResourcesOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->listSharedResources(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::ListSharedTargetsOutcome ResourceSharingClient::listSharedTargets(const ListSharedTargetsRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return ListSharedTargetsOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return ListSharedTargetsOutcome(ListSharedTargetsResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return ListSharedTargetsOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ResourceSharingClient::listSharedTargetsAsync(const ListSharedTargetsRequest& request, const ListSharedTargetsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, listSharedTargets(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::ListSharedTargetsOutcomeCallable ResourceSharingClient::listSharedTargetsCallable(const ListSharedTargetsRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<ListSharedTargetsOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->listSharedTargets(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::RejectResourceShareInvitationOutcome ResourceSharingClient::rejectResourceShareInvitation(const RejectResourceShareInvitationRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return RejectResourceShareInvitationOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return RejectResourceShareInvitationOutcome(RejectResourceShareInvitationResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return RejectResourceShareInvitationOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ResourceSharingClient::rejectResourceShareInvitationAsync(const RejectResourceShareInvitationRequest& request, const RejectResourceShareInvitationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, rejectResourceShareInvitation(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::RejectResourceShareInvitationOutcomeCallable ResourceSharingClient::rejectResourceShareInvitationCallable(const RejectResourceShareInvitationRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<RejectResourceShareInvitationOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->rejectResourceShareInvitation(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::UpdateResourceShareOutcome ResourceSharingClient::updateResourceShare(const UpdateResourceShareRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return UpdateResourceShareOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return UpdateResourceShareOutcome(UpdateResourceShareResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return UpdateResourceShareOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void ResourceSharingClient::updateResourceShareAsync(const UpdateResourceShareRequest& request, const UpdateResourceShareAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, updateResourceShare(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
ResourceSharingClient::UpdateResourceShareOutcomeCallable ResourceSharingClient::updateResourceShareCallable(const UpdateResourceShareRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<UpdateResourceShareOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->updateResourceShare(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/model/AcceptResourceShareInvitationRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::ResourceSharing::Model::AcceptResourceShareInvitationRequest;
|
||||||
|
|
||||||
|
AcceptResourceShareInvitationRequest::AcceptResourceShareInvitationRequest()
|
||||||
|
: RpcServiceRequest("resourcesharing", "2020-01-10", "AcceptResourceShareInvitation") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
AcceptResourceShareInvitationRequest::~AcceptResourceShareInvitationRequest() {}
|
||||||
|
|
||||||
|
std::string AcceptResourceShareInvitationRequest::getResourceShareInvitationId() const {
|
||||||
|
return resourceShareInvitationId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void AcceptResourceShareInvitationRequest::setResourceShareInvitationId(const std::string &resourceShareInvitationId) {
|
||||||
|
resourceShareInvitationId_ = resourceShareInvitationId;
|
||||||
|
setParameter(std::string("ResourceShareInvitationId"), resourceShareInvitationId);
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,80 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/model/AcceptResourceShareInvitationResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::ResourceSharing;
|
||||||
|
using namespace AlibabaCloud::ResourceSharing::Model;
|
||||||
|
|
||||||
|
AcceptResourceShareInvitationResult::AcceptResourceShareInvitationResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
AcceptResourceShareInvitationResult::AcceptResourceShareInvitationResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
AcceptResourceShareInvitationResult::~AcceptResourceShareInvitationResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void AcceptResourceShareInvitationResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto resourceShareInvitationNode = value["ResourceShareInvitation"];
|
||||||
|
if(!resourceShareInvitationNode["ResourceShareInvitationId"].isNull())
|
||||||
|
resourceShareInvitation_.resourceShareInvitationId = resourceShareInvitationNode["ResourceShareInvitationId"].asString();
|
||||||
|
if(!resourceShareInvitationNode["ResourceShareId"].isNull())
|
||||||
|
resourceShareInvitation_.resourceShareId = resourceShareInvitationNode["ResourceShareId"].asString();
|
||||||
|
if(!resourceShareInvitationNode["ResourceShareName"].isNull())
|
||||||
|
resourceShareInvitation_.resourceShareName = resourceShareInvitationNode["ResourceShareName"].asString();
|
||||||
|
if(!resourceShareInvitationNode["SenderAccountId"].isNull())
|
||||||
|
resourceShareInvitation_.senderAccountId = resourceShareInvitationNode["SenderAccountId"].asString();
|
||||||
|
if(!resourceShareInvitationNode["ReceiverAccountId"].isNull())
|
||||||
|
resourceShareInvitation_.receiverAccountId = resourceShareInvitationNode["ReceiverAccountId"].asString();
|
||||||
|
if(!resourceShareInvitationNode["CreateTime"].isNull())
|
||||||
|
resourceShareInvitation_.createTime = resourceShareInvitationNode["CreateTime"].asString();
|
||||||
|
if(!resourceShareInvitationNode["Status"].isNull())
|
||||||
|
resourceShareInvitation_.status = resourceShareInvitationNode["Status"].asString();
|
||||||
|
auto allAcceptInvitationFailedDetailsNode = resourceShareInvitationNode["AcceptInvitationFailedDetails"]["AcceptInvitationFailedDetail"];
|
||||||
|
for (auto resourceShareInvitationNodeAcceptInvitationFailedDetailsAcceptInvitationFailedDetail : allAcceptInvitationFailedDetailsNode)
|
||||||
|
{
|
||||||
|
ResourceShareInvitation::AcceptInvitationFailedDetail acceptInvitationFailedDetailObject;
|
||||||
|
if(!resourceShareInvitationNodeAcceptInvitationFailedDetailsAcceptInvitationFailedDetail["Status"].isNull())
|
||||||
|
acceptInvitationFailedDetailObject.status = resourceShareInvitationNodeAcceptInvitationFailedDetailsAcceptInvitationFailedDetail["Status"].asString();
|
||||||
|
if(!resourceShareInvitationNodeAcceptInvitationFailedDetailsAcceptInvitationFailedDetail["StatusMessage"].isNull())
|
||||||
|
acceptInvitationFailedDetailObject.statusMessage = resourceShareInvitationNodeAcceptInvitationFailedDetailsAcceptInvitationFailedDetail["StatusMessage"].asString();
|
||||||
|
if(!resourceShareInvitationNodeAcceptInvitationFailedDetailsAcceptInvitationFailedDetail["AssociateType"].isNull())
|
||||||
|
acceptInvitationFailedDetailObject.associateType = resourceShareInvitationNodeAcceptInvitationFailedDetailsAcceptInvitationFailedDetail["AssociateType"].asString();
|
||||||
|
if(!resourceShareInvitationNodeAcceptInvitationFailedDetailsAcceptInvitationFailedDetail["ResourceId"].isNull())
|
||||||
|
acceptInvitationFailedDetailObject.resourceId = resourceShareInvitationNodeAcceptInvitationFailedDetailsAcceptInvitationFailedDetail["ResourceId"].asString();
|
||||||
|
if(!resourceShareInvitationNodeAcceptInvitationFailedDetailsAcceptInvitationFailedDetail["ResourceType"].isNull())
|
||||||
|
acceptInvitationFailedDetailObject.resourceType = resourceShareInvitationNodeAcceptInvitationFailedDetailsAcceptInvitationFailedDetail["ResourceType"].asString();
|
||||||
|
resourceShareInvitation_.acceptInvitationFailedDetails.push_back(acceptInvitationFailedDetailObject);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
AcceptResourceShareInvitationResult::ResourceShareInvitation AcceptResourceShareInvitationResult::getResourceShareInvitation()const
|
||||||
|
{
|
||||||
|
return resourceShareInvitation_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -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 <alibabacloud/resourcesharing/model/AssociateResourceSharePermissionRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::ResourceSharing::Model::AssociateResourceSharePermissionRequest;
|
||||||
|
|
||||||
|
AssociateResourceSharePermissionRequest::AssociateResourceSharePermissionRequest()
|
||||||
|
: RpcServiceRequest("resourcesharing", "2020-01-10", "AssociateResourceSharePermission") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
AssociateResourceSharePermissionRequest::~AssociateResourceSharePermissionRequest() {}
|
||||||
|
|
||||||
|
bool AssociateResourceSharePermissionRequest::getReplace() const {
|
||||||
|
return replace_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void AssociateResourceSharePermissionRequest::setReplace(bool replace) {
|
||||||
|
replace_ = replace;
|
||||||
|
setParameter(std::string("Replace"), replace ? "true" : "false");
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string AssociateResourceSharePermissionRequest::getPermissionName() const {
|
||||||
|
return permissionName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void AssociateResourceSharePermissionRequest::setPermissionName(const std::string &permissionName) {
|
||||||
|
permissionName_ = permissionName;
|
||||||
|
setParameter(std::string("PermissionName"), permissionName);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string AssociateResourceSharePermissionRequest::getResourceShareId() const {
|
||||||
|
return resourceShareId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void AssociateResourceSharePermissionRequest::setResourceShareId(const std::string &resourceShareId) {
|
||||||
|
resourceShareId_ = resourceShareId;
|
||||||
|
setParameter(std::string("ResourceShareId"), resourceShareId);
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/model/AssociateResourceSharePermissionResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::ResourceSharing;
|
||||||
|
using namespace AlibabaCloud::ResourceSharing::Model;
|
||||||
|
|
||||||
|
AssociateResourceSharePermissionResult::AssociateResourceSharePermissionResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
AssociateResourceSharePermissionResult::AssociateResourceSharePermissionResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
AssociateResourceSharePermissionResult::~AssociateResourceSharePermissionResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void AssociateResourceSharePermissionResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
78
resourcesharing/src/model/AssociateResourceShareRequest.cc
Normal file
78
resourcesharing/src/model/AssociateResourceShareRequest.cc
Normal file
@@ -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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/model/AssociateResourceShareRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::ResourceSharing::Model::AssociateResourceShareRequest;
|
||||||
|
|
||||||
|
AssociateResourceShareRequest::AssociateResourceShareRequest()
|
||||||
|
: RpcServiceRequest("resourcesharing", "2020-01-10", "AssociateResourceShare") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
AssociateResourceShareRequest::~AssociateResourceShareRequest() {}
|
||||||
|
|
||||||
|
std::vector<AssociateResourceShareRequest::Resources> AssociateResourceShareRequest::getResources() const {
|
||||||
|
return resources_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void AssociateResourceShareRequest::setResources(const std::vector<AssociateResourceShareRequest::Resources> &resources) {
|
||||||
|
resources_ = resources;
|
||||||
|
for(int dep1 = 0; dep1 != resources.size(); dep1++) {
|
||||||
|
auto resourcesObj = resources.at(dep1);
|
||||||
|
std::string resourcesObjStr = std::string("Resources") + "." + std::to_string(dep1 + 1);
|
||||||
|
setParameter(resourcesObjStr + ".ResourceId", resourcesObj.resourceId);
|
||||||
|
setParameter(resourcesObjStr + ".ResourceType", resourcesObj.resourceType);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<std::string> AssociateResourceShareRequest::getTargets() const {
|
||||||
|
return targets_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void AssociateResourceShareRequest::setTargets(const std::vector<std::string> &targets) {
|
||||||
|
targets_ = targets;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string AssociateResourceShareRequest::getResourceShareId() const {
|
||||||
|
return resourceShareId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void AssociateResourceShareRequest::setResourceShareId(const std::string &resourceShareId) {
|
||||||
|
resourceShareId_ = resourceShareId;
|
||||||
|
setParameter(std::string("ResourceShareId"), resourceShareId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<std::string> AssociateResourceShareRequest::getPermissionNames() const {
|
||||||
|
return permissionNames_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void AssociateResourceShareRequest::setPermissionNames(const std::vector<std::string> &permissionNames) {
|
||||||
|
permissionNames_ = permissionNames;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<AssociateResourceShareRequest::TargetProperties> AssociateResourceShareRequest::getTargetProperties() const {
|
||||||
|
return targetProperties_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void AssociateResourceShareRequest::setTargetProperties(const std::vector<AssociateResourceShareRequest::TargetProperties> &targetProperties) {
|
||||||
|
targetProperties_ = targetProperties;
|
||||||
|
for(int dep1 = 0; dep1 != targetProperties.size(); dep1++) {
|
||||||
|
setParameter(std::string("TargetProperties") + "." + std::to_string(dep1 + 1) + ".TargetId", targetProperties[dep1].targetId);
|
||||||
|
setParameter(std::string("TargetProperties") + "." + std::to_string(dep1 + 1) + ".Property", targetProperties[dep1].property);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
75
resourcesharing/src/model/AssociateResourceShareResult.cc
Normal file
75
resourcesharing/src/model/AssociateResourceShareResult.cc
Normal file
@@ -0,0 +1,75 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/model/AssociateResourceShareResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::ResourceSharing;
|
||||||
|
using namespace AlibabaCloud::ResourceSharing::Model;
|
||||||
|
|
||||||
|
AssociateResourceShareResult::AssociateResourceShareResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
AssociateResourceShareResult::AssociateResourceShareResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
AssociateResourceShareResult::~AssociateResourceShareResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void AssociateResourceShareResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto allResourceShareAssociationsNode = value["ResourceShareAssociations"]["ResourceShareAssociation"];
|
||||||
|
for (auto valueResourceShareAssociationsResourceShareAssociation : allResourceShareAssociationsNode)
|
||||||
|
{
|
||||||
|
ResourceShareAssociation resourceShareAssociationsObject;
|
||||||
|
if(!valueResourceShareAssociationsResourceShareAssociation["UpdateTime"].isNull())
|
||||||
|
resourceShareAssociationsObject.updateTime = valueResourceShareAssociationsResourceShareAssociation["UpdateTime"].asString();
|
||||||
|
if(!valueResourceShareAssociationsResourceShareAssociation["EntityId"].isNull())
|
||||||
|
resourceShareAssociationsObject.entityId = valueResourceShareAssociationsResourceShareAssociation["EntityId"].asString();
|
||||||
|
if(!valueResourceShareAssociationsResourceShareAssociation["ResourceShareName"].isNull())
|
||||||
|
resourceShareAssociationsObject.resourceShareName = valueResourceShareAssociationsResourceShareAssociation["ResourceShareName"].asString();
|
||||||
|
if(!valueResourceShareAssociationsResourceShareAssociation["CreateTime"].isNull())
|
||||||
|
resourceShareAssociationsObject.createTime = valueResourceShareAssociationsResourceShareAssociation["CreateTime"].asString();
|
||||||
|
if(!valueResourceShareAssociationsResourceShareAssociation["EntityType"].isNull())
|
||||||
|
resourceShareAssociationsObject.entityType = valueResourceShareAssociationsResourceShareAssociation["EntityType"].asString();
|
||||||
|
if(!valueResourceShareAssociationsResourceShareAssociation["ResourceShareId"].isNull())
|
||||||
|
resourceShareAssociationsObject.resourceShareId = valueResourceShareAssociationsResourceShareAssociation["ResourceShareId"].asString();
|
||||||
|
if(!valueResourceShareAssociationsResourceShareAssociation["AssociationStatusMessage"].isNull())
|
||||||
|
resourceShareAssociationsObject.associationStatusMessage = valueResourceShareAssociationsResourceShareAssociation["AssociationStatusMessage"].asString();
|
||||||
|
if(!valueResourceShareAssociationsResourceShareAssociation["AssociationType"].isNull())
|
||||||
|
resourceShareAssociationsObject.associationType = valueResourceShareAssociationsResourceShareAssociation["AssociationType"].asString();
|
||||||
|
if(!valueResourceShareAssociationsResourceShareAssociation["AssociationStatus"].isNull())
|
||||||
|
resourceShareAssociationsObject.associationStatus = valueResourceShareAssociationsResourceShareAssociation["AssociationStatus"].asString();
|
||||||
|
if(!valueResourceShareAssociationsResourceShareAssociation["TargetProperty"].isNull())
|
||||||
|
resourceShareAssociationsObject.targetProperty = valueResourceShareAssociationsResourceShareAssociation["TargetProperty"].asString();
|
||||||
|
resourceShareAssociations_.push_back(resourceShareAssociationsObject);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<AssociateResourceShareResult::ResourceShareAssociation> AssociateResourceShareResult::getResourceShareAssociations()const
|
||||||
|
{
|
||||||
|
return resourceShareAssociations_;
|
||||||
|
}
|
||||||
|
|
||||||
72
resourcesharing/src/model/ChangeResourceGroupRequest.cc
Normal file
72
resourcesharing/src/model/ChangeResourceGroupRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/model/ChangeResourceGroupRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::ResourceSharing::Model::ChangeResourceGroupRequest;
|
||||||
|
|
||||||
|
ChangeResourceGroupRequest::ChangeResourceGroupRequest()
|
||||||
|
: RpcServiceRequest("resourcesharing", "2020-01-10", "ChangeResourceGroup") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
ChangeResourceGroupRequest::~ChangeResourceGroupRequest() {}
|
||||||
|
|
||||||
|
std::string ChangeResourceGroupRequest::getResourceGroupId() const {
|
||||||
|
return resourceGroupId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ChangeResourceGroupRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||||
|
resourceGroupId_ = resourceGroupId;
|
||||||
|
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ChangeResourceGroupRequest::getResourceRegionId() const {
|
||||||
|
return resourceRegionId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ChangeResourceGroupRequest::setResourceRegionId(const std::string &resourceRegionId) {
|
||||||
|
resourceRegionId_ = resourceRegionId;
|
||||||
|
setParameter(std::string("ResourceRegionId"), resourceRegionId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ChangeResourceGroupRequest::getResourceId() const {
|
||||||
|
return resourceId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ChangeResourceGroupRequest::setResourceId(const std::string &resourceId) {
|
||||||
|
resourceId_ = resourceId;
|
||||||
|
setParameter(std::string("ResourceId"), resourceId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ChangeResourceGroupRequest::getResourceType() const {
|
||||||
|
return resourceType_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ChangeResourceGroupRequest::setResourceType(const std::string &resourceType) {
|
||||||
|
resourceType_ = resourceType;
|
||||||
|
setParameter(std::string("ResourceType"), resourceType);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ChangeResourceGroupRequest::getService() const {
|
||||||
|
return service_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ChangeResourceGroupRequest::setService(const std::string &service) {
|
||||||
|
service_ = service;
|
||||||
|
setParameter(std::string("Service"), service);
|
||||||
|
}
|
||||||
|
|
||||||
44
resourcesharing/src/model/ChangeResourceGroupResult.cc
Normal file
44
resourcesharing/src/model/ChangeResourceGroupResult.cc
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/model/ChangeResourceGroupResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::ResourceSharing;
|
||||||
|
using namespace AlibabaCloud::ResourceSharing::Model;
|
||||||
|
|
||||||
|
ChangeResourceGroupResult::ChangeResourceGroupResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
ChangeResourceGroupResult::ChangeResourceGroupResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
ChangeResourceGroupResult::~ChangeResourceGroupResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void ChangeResourceGroupResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/model/CheckSharingWithResourceDirectoryStatusRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::ResourceSharing::Model::CheckSharingWithResourceDirectoryStatusRequest;
|
||||||
|
|
||||||
|
CheckSharingWithResourceDirectoryStatusRequest::CheckSharingWithResourceDirectoryStatusRequest()
|
||||||
|
: RpcServiceRequest("resourcesharing", "2020-01-10", "CheckSharingWithResourceDirectoryStatus") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
CheckSharingWithResourceDirectoryStatusRequest::~CheckSharingWithResourceDirectoryStatusRequest() {}
|
||||||
|
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/model/CheckSharingWithResourceDirectoryStatusResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::ResourceSharing;
|
||||||
|
using namespace AlibabaCloud::ResourceSharing::Model;
|
||||||
|
|
||||||
|
CheckSharingWithResourceDirectoryStatusResult::CheckSharingWithResourceDirectoryStatusResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
CheckSharingWithResourceDirectoryStatusResult::CheckSharingWithResourceDirectoryStatusResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
CheckSharingWithResourceDirectoryStatusResult::~CheckSharingWithResourceDirectoryStatusResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void CheckSharingWithResourceDirectoryStatusResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
if(!value["EnableSharingWithRd"].isNull())
|
||||||
|
enableSharingWithRd_ = value["EnableSharingWithRd"].asString() == "true";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
bool CheckSharingWithResourceDirectoryStatusResult::getEnableSharingWithRd()const
|
||||||
|
{
|
||||||
|
return enableSharingWithRd_;
|
||||||
|
}
|
||||||
|
|
||||||
96
resourcesharing/src/model/CreateResourceShareRequest.cc
Normal file
96
resourcesharing/src/model/CreateResourceShareRequest.cc
Normal file
@@ -0,0 +1,96 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/model/CreateResourceShareRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::ResourceSharing::Model::CreateResourceShareRequest;
|
||||||
|
|
||||||
|
CreateResourceShareRequest::CreateResourceShareRequest()
|
||||||
|
: RpcServiceRequest("resourcesharing", "2020-01-10", "CreateResourceShare") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
CreateResourceShareRequest::~CreateResourceShareRequest() {}
|
||||||
|
|
||||||
|
std::string CreateResourceShareRequest::getResourceShareName() const {
|
||||||
|
return resourceShareName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateResourceShareRequest::setResourceShareName(const std::string &resourceShareName) {
|
||||||
|
resourceShareName_ = resourceShareName;
|
||||||
|
setParameter(std::string("ResourceShareName"), resourceShareName);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<std::string> CreateResourceShareRequest::getTargets() const {
|
||||||
|
return targets_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateResourceShareRequest::setTargets(const std::vector<std::string> &targets) {
|
||||||
|
targets_ = targets;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateResourceShareRequest::getResourceGroupId() const {
|
||||||
|
return resourceGroupId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateResourceShareRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||||
|
resourceGroupId_ = resourceGroupId;
|
||||||
|
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<CreateResourceShareRequest::Resources> CreateResourceShareRequest::getResources() const {
|
||||||
|
return resources_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateResourceShareRequest::setResources(const std::vector<CreateResourceShareRequest::Resources> &resources) {
|
||||||
|
resources_ = resources;
|
||||||
|
for(int dep1 = 0; dep1 != resources.size(); dep1++) {
|
||||||
|
auto resourcesObj = resources.at(dep1);
|
||||||
|
std::string resourcesObjStr = std::string("Resources") + "." + std::to_string(dep1 + 1);
|
||||||
|
setParameter(resourcesObjStr + ".ResourceId", resourcesObj.resourceId);
|
||||||
|
setParameter(resourcesObjStr + ".ResourceType", resourcesObj.resourceType);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
bool CreateResourceShareRequest::getAllowExternalTargets() const {
|
||||||
|
return allowExternalTargets_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateResourceShareRequest::setAllowExternalTargets(bool allowExternalTargets) {
|
||||||
|
allowExternalTargets_ = allowExternalTargets;
|
||||||
|
setParameter(std::string("AllowExternalTargets"), allowExternalTargets ? "true" : "false");
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<std::string> CreateResourceShareRequest::getPermissionNames() const {
|
||||||
|
return permissionNames_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateResourceShareRequest::setPermissionNames(const std::vector<std::string> &permissionNames) {
|
||||||
|
permissionNames_ = permissionNames;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<CreateResourceShareRequest::TargetProperties> CreateResourceShareRequest::getTargetProperties() const {
|
||||||
|
return targetProperties_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateResourceShareRequest::setTargetProperties(const std::vector<CreateResourceShareRequest::TargetProperties> &targetProperties) {
|
||||||
|
targetProperties_ = targetProperties;
|
||||||
|
for(int dep1 = 0; dep1 != targetProperties.size(); dep1++) {
|
||||||
|
setParameter(std::string("TargetProperties") + "." + std::to_string(dep1 + 1) + ".TargetId", targetProperties[dep1].targetId);
|
||||||
|
setParameter(std::string("TargetProperties") + "." + std::to_string(dep1 + 1) + ".Property", targetProperties[dep1].property);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
64
resourcesharing/src/model/CreateResourceShareResult.cc
Normal file
64
resourcesharing/src/model/CreateResourceShareResult.cc
Normal file
@@ -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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/model/CreateResourceShareResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::ResourceSharing;
|
||||||
|
using namespace AlibabaCloud::ResourceSharing::Model;
|
||||||
|
|
||||||
|
CreateResourceShareResult::CreateResourceShareResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
CreateResourceShareResult::CreateResourceShareResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
CreateResourceShareResult::~CreateResourceShareResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void CreateResourceShareResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto resourceShareNode = value["ResourceShare"];
|
||||||
|
if(!resourceShareNode["UpdateTime"].isNull())
|
||||||
|
resourceShare_.updateTime = resourceShareNode["UpdateTime"].asString();
|
||||||
|
if(!resourceShareNode["ResourceShareName"].isNull())
|
||||||
|
resourceShare_.resourceShareName = resourceShareNode["ResourceShareName"].asString();
|
||||||
|
if(!resourceShareNode["ResourceShareOwner"].isNull())
|
||||||
|
resourceShare_.resourceShareOwner = resourceShareNode["ResourceShareOwner"].asString();
|
||||||
|
if(!resourceShareNode["CreateTime"].isNull())
|
||||||
|
resourceShare_.createTime = resourceShareNode["CreateTime"].asString();
|
||||||
|
if(!resourceShareNode["ResourceShareId"].isNull())
|
||||||
|
resourceShare_.resourceShareId = resourceShareNode["ResourceShareId"].asString();
|
||||||
|
if(!resourceShareNode["ResourceShareStatus"].isNull())
|
||||||
|
resourceShare_.resourceShareStatus = resourceShareNode["ResourceShareStatus"].asString();
|
||||||
|
if(!resourceShareNode["AllowExternalTargets"].isNull())
|
||||||
|
resourceShare_.allowExternalTargets = resourceShareNode["AllowExternalTargets"].asString() == "true";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
CreateResourceShareResult::ResourceShare CreateResourceShareResult::getResourceShare()const
|
||||||
|
{
|
||||||
|
return resourceShare_;
|
||||||
|
}
|
||||||
|
|
||||||
36
resourcesharing/src/model/DeleteResourceShareRequest.cc
Normal file
36
resourcesharing/src/model/DeleteResourceShareRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/model/DeleteResourceShareRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::ResourceSharing::Model::DeleteResourceShareRequest;
|
||||||
|
|
||||||
|
DeleteResourceShareRequest::DeleteResourceShareRequest()
|
||||||
|
: RpcServiceRequest("resourcesharing", "2020-01-10", "DeleteResourceShare") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
DeleteResourceShareRequest::~DeleteResourceShareRequest() {}
|
||||||
|
|
||||||
|
std::string DeleteResourceShareRequest::getResourceShareId() const {
|
||||||
|
return resourceShareId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteResourceShareRequest::setResourceShareId(const std::string &resourceShareId) {
|
||||||
|
resourceShareId_ = resourceShareId;
|
||||||
|
setParameter(std::string("ResourceShareId"), resourceShareId);
|
||||||
|
}
|
||||||
|
|
||||||
44
resourcesharing/src/model/DeleteResourceShareResult.cc
Normal file
44
resourcesharing/src/model/DeleteResourceShareResult.cc
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/model/DeleteResourceShareResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::ResourceSharing;
|
||||||
|
using namespace AlibabaCloud::ResourceSharing::Model;
|
||||||
|
|
||||||
|
DeleteResourceShareResult::DeleteResourceShareResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
DeleteResourceShareResult::DeleteResourceShareResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
DeleteResourceShareResult::~DeleteResourceShareResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void DeleteResourceShareResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
36
resourcesharing/src/model/DescribeRegionsRequest.cc
Normal file
36
resourcesharing/src/model/DescribeRegionsRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/model/DescribeRegionsRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::ResourceSharing::Model::DescribeRegionsRequest;
|
||||||
|
|
||||||
|
DescribeRegionsRequest::DescribeRegionsRequest()
|
||||||
|
: RpcServiceRequest("resourcesharing", "2020-01-10", "DescribeRegions") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
DescribeRegionsRequest::~DescribeRegionsRequest() {}
|
||||||
|
|
||||||
|
std::string DescribeRegionsRequest::getAcceptLanguage() const {
|
||||||
|
return acceptLanguage_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DescribeRegionsRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||||
|
acceptLanguage_ = acceptLanguage;
|
||||||
|
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||||
|
}
|
||||||
|
|
||||||
61
resourcesharing/src/model/DescribeRegionsResult.cc
Normal file
61
resourcesharing/src/model/DescribeRegionsResult.cc
Normal file
@@ -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 <alibabacloud/resourcesharing/model/DescribeRegionsResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::ResourceSharing;
|
||||||
|
using namespace AlibabaCloud::ResourceSharing::Model;
|
||||||
|
|
||||||
|
DescribeRegionsResult::DescribeRegionsResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
DescribeRegionsResult::~DescribeRegionsResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void DescribeRegionsResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto allRegionsNode = value["Regions"]["Region"];
|
||||||
|
for (auto valueRegionsRegion : allRegionsNode)
|
||||||
|
{
|
||||||
|
Region regionsObject;
|
||||||
|
if(!valueRegionsRegion["RegionEndpoint"].isNull())
|
||||||
|
regionsObject.regionEndpoint = valueRegionsRegion["RegionEndpoint"].asString();
|
||||||
|
if(!valueRegionsRegion["LocalName"].isNull())
|
||||||
|
regionsObject.localName = valueRegionsRegion["LocalName"].asString();
|
||||||
|
if(!valueRegionsRegion["RegionId"].isNull())
|
||||||
|
regionsObject.regionId = valueRegionsRegion["RegionId"].asString();
|
||||||
|
regions_.push_back(regionsObject);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<DescribeRegionsResult::Region> DescribeRegionsResult::getRegions()const
|
||||||
|
{
|
||||||
|
return regions_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/model/DisassociateResourceSharePermissionRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::ResourceSharing::Model::DisassociateResourceSharePermissionRequest;
|
||||||
|
|
||||||
|
DisassociateResourceSharePermissionRequest::DisassociateResourceSharePermissionRequest()
|
||||||
|
: RpcServiceRequest("resourcesharing", "2020-01-10", "DisassociateResourceSharePermission") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
DisassociateResourceSharePermissionRequest::~DisassociateResourceSharePermissionRequest() {}
|
||||||
|
|
||||||
|
std::string DisassociateResourceSharePermissionRequest::getPermissionName() const {
|
||||||
|
return permissionName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DisassociateResourceSharePermissionRequest::setPermissionName(const std::string &permissionName) {
|
||||||
|
permissionName_ = permissionName;
|
||||||
|
setParameter(std::string("PermissionName"), permissionName);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DisassociateResourceSharePermissionRequest::getResourceShareId() const {
|
||||||
|
return resourceShareId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DisassociateResourceSharePermissionRequest::setResourceShareId(const std::string &resourceShareId) {
|
||||||
|
resourceShareId_ = resourceShareId;
|
||||||
|
setParameter(std::string("ResourceShareId"), resourceShareId);
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/model/DisassociateResourceSharePermissionResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::ResourceSharing;
|
||||||
|
using namespace AlibabaCloud::ResourceSharing::Model;
|
||||||
|
|
||||||
|
DisassociateResourceSharePermissionResult::DisassociateResourceSharePermissionResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
DisassociateResourceSharePermissionResult::DisassociateResourceSharePermissionResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
DisassociateResourceSharePermissionResult::~DisassociateResourceSharePermissionResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void DisassociateResourceSharePermissionResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@@ -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 <alibabacloud/resourcesharing/model/DisassociateResourceShareRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::ResourceSharing::Model::DisassociateResourceShareRequest;
|
||||||
|
|
||||||
|
DisassociateResourceShareRequest::DisassociateResourceShareRequest()
|
||||||
|
: RpcServiceRequest("resourcesharing", "2020-01-10", "DisassociateResourceShare") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
DisassociateResourceShareRequest::~DisassociateResourceShareRequest() {}
|
||||||
|
|
||||||
|
std::string DisassociateResourceShareRequest::getResourceOwner() const {
|
||||||
|
return resourceOwner_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DisassociateResourceShareRequest::setResourceOwner(const std::string &resourceOwner) {
|
||||||
|
resourceOwner_ = resourceOwner;
|
||||||
|
setParameter(std::string("ResourceOwner"), resourceOwner);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<DisassociateResourceShareRequest::Resources> DisassociateResourceShareRequest::getResources() const {
|
||||||
|
return resources_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DisassociateResourceShareRequest::setResources(const std::vector<DisassociateResourceShareRequest::Resources> &resources) {
|
||||||
|
resources_ = resources;
|
||||||
|
for(int dep1 = 0; dep1 != resources.size(); dep1++) {
|
||||||
|
auto resourcesObj = resources.at(dep1);
|
||||||
|
std::string resourcesObjStr = std::string("Resources") + "." + std::to_string(dep1 + 1);
|
||||||
|
setParameter(resourcesObjStr + ".ResourceId", resourcesObj.resourceId);
|
||||||
|
setParameter(resourcesObjStr + ".ResourceType", resourcesObj.resourceType);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<std::string> DisassociateResourceShareRequest::getTargets() const {
|
||||||
|
return targets_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DisassociateResourceShareRequest::setTargets(const std::vector<std::string> &targets) {
|
||||||
|
targets_ = targets;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DisassociateResourceShareRequest::getResourceShareId() const {
|
||||||
|
return resourceShareId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DisassociateResourceShareRequest::setResourceShareId(const std::string &resourceShareId) {
|
||||||
|
resourceShareId_ = resourceShareId;
|
||||||
|
setParameter(std::string("ResourceShareId"), resourceShareId);
|
||||||
|
}
|
||||||
|
|
||||||
75
resourcesharing/src/model/DisassociateResourceShareResult.cc
Normal file
75
resourcesharing/src/model/DisassociateResourceShareResult.cc
Normal file
@@ -0,0 +1,75 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/model/DisassociateResourceShareResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::ResourceSharing;
|
||||||
|
using namespace AlibabaCloud::ResourceSharing::Model;
|
||||||
|
|
||||||
|
DisassociateResourceShareResult::DisassociateResourceShareResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
DisassociateResourceShareResult::DisassociateResourceShareResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
DisassociateResourceShareResult::~DisassociateResourceShareResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void DisassociateResourceShareResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto allResourceShareAssociationsNode = value["ResourceShareAssociations"]["ResourceShareAssociation"];
|
||||||
|
for (auto valueResourceShareAssociationsResourceShareAssociation : allResourceShareAssociationsNode)
|
||||||
|
{
|
||||||
|
ResourceShareAssociation resourceShareAssociationsObject;
|
||||||
|
if(!valueResourceShareAssociationsResourceShareAssociation["UpdateTime"].isNull())
|
||||||
|
resourceShareAssociationsObject.updateTime = valueResourceShareAssociationsResourceShareAssociation["UpdateTime"].asString();
|
||||||
|
if(!valueResourceShareAssociationsResourceShareAssociation["EntityId"].isNull())
|
||||||
|
resourceShareAssociationsObject.entityId = valueResourceShareAssociationsResourceShareAssociation["EntityId"].asString();
|
||||||
|
if(!valueResourceShareAssociationsResourceShareAssociation["ResourceShareName"].isNull())
|
||||||
|
resourceShareAssociationsObject.resourceShareName = valueResourceShareAssociationsResourceShareAssociation["ResourceShareName"].asString();
|
||||||
|
if(!valueResourceShareAssociationsResourceShareAssociation["CreateTime"].isNull())
|
||||||
|
resourceShareAssociationsObject.createTime = valueResourceShareAssociationsResourceShareAssociation["CreateTime"].asString();
|
||||||
|
if(!valueResourceShareAssociationsResourceShareAssociation["EntityType"].isNull())
|
||||||
|
resourceShareAssociationsObject.entityType = valueResourceShareAssociationsResourceShareAssociation["EntityType"].asString();
|
||||||
|
if(!valueResourceShareAssociationsResourceShareAssociation["ResourceShareId"].isNull())
|
||||||
|
resourceShareAssociationsObject.resourceShareId = valueResourceShareAssociationsResourceShareAssociation["ResourceShareId"].asString();
|
||||||
|
if(!valueResourceShareAssociationsResourceShareAssociation["AssociationStatusMessage"].isNull())
|
||||||
|
resourceShareAssociationsObject.associationStatusMessage = valueResourceShareAssociationsResourceShareAssociation["AssociationStatusMessage"].asString();
|
||||||
|
if(!valueResourceShareAssociationsResourceShareAssociation["AssociationType"].isNull())
|
||||||
|
resourceShareAssociationsObject.associationType = valueResourceShareAssociationsResourceShareAssociation["AssociationType"].asString();
|
||||||
|
if(!valueResourceShareAssociationsResourceShareAssociation["AssociationStatus"].isNull())
|
||||||
|
resourceShareAssociationsObject.associationStatus = valueResourceShareAssociationsResourceShareAssociation["AssociationStatus"].asString();
|
||||||
|
if(!valueResourceShareAssociationsResourceShareAssociation["TargetProperty"].isNull())
|
||||||
|
resourceShareAssociationsObject.targetProperty = valueResourceShareAssociationsResourceShareAssociation["TargetProperty"].asString();
|
||||||
|
resourceShareAssociations_.push_back(resourceShareAssociationsObject);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<DisassociateResourceShareResult::ResourceShareAssociation> DisassociateResourceShareResult::getResourceShareAssociations()const
|
||||||
|
{
|
||||||
|
return resourceShareAssociations_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/model/EnableSharingWithResourceDirectoryRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::ResourceSharing::Model::EnableSharingWithResourceDirectoryRequest;
|
||||||
|
|
||||||
|
EnableSharingWithResourceDirectoryRequest::EnableSharingWithResourceDirectoryRequest()
|
||||||
|
: RpcServiceRequest("resourcesharing", "2020-01-10", "EnableSharingWithResourceDirectory") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
EnableSharingWithResourceDirectoryRequest::~EnableSharingWithResourceDirectoryRequest() {}
|
||||||
|
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/model/EnableSharingWithResourceDirectoryResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::ResourceSharing;
|
||||||
|
using namespace AlibabaCloud::ResourceSharing::Model;
|
||||||
|
|
||||||
|
EnableSharingWithResourceDirectoryResult::EnableSharingWithResourceDirectoryResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
EnableSharingWithResourceDirectoryResult::EnableSharingWithResourceDirectoryResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
EnableSharingWithResourceDirectoryResult::~EnableSharingWithResourceDirectoryResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void EnableSharingWithResourceDirectoryResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
45
resourcesharing/src/model/GetPermissionRequest.cc
Normal file
45
resourcesharing/src/model/GetPermissionRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/model/GetPermissionRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::ResourceSharing::Model::GetPermissionRequest;
|
||||||
|
|
||||||
|
GetPermissionRequest::GetPermissionRequest()
|
||||||
|
: RpcServiceRequest("resourcesharing", "2020-01-10", "GetPermission") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
GetPermissionRequest::~GetPermissionRequest() {}
|
||||||
|
|
||||||
|
std::string GetPermissionRequest::getPermissionVersion() const {
|
||||||
|
return permissionVersion_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetPermissionRequest::setPermissionVersion(const std::string &permissionVersion) {
|
||||||
|
permissionVersion_ = permissionVersion;
|
||||||
|
setParameter(std::string("PermissionVersion"), permissionVersion);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetPermissionRequest::getPermissionName() const {
|
||||||
|
return permissionName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetPermissionRequest::setPermissionName(const std::string &permissionName) {
|
||||||
|
permissionName_ = permissionName;
|
||||||
|
setParameter(std::string("PermissionName"), permissionName);
|
||||||
|
}
|
||||||
|
|
||||||
66
resourcesharing/src/model/GetPermissionResult.cc
Normal file
66
resourcesharing/src/model/GetPermissionResult.cc
Normal file
@@ -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 <alibabacloud/resourcesharing/model/GetPermissionResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::ResourceSharing;
|
||||||
|
using namespace AlibabaCloud::ResourceSharing::Model;
|
||||||
|
|
||||||
|
GetPermissionResult::GetPermissionResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
GetPermissionResult::GetPermissionResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
GetPermissionResult::~GetPermissionResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void GetPermissionResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto permissionNode = value["Permission"];
|
||||||
|
if(!permissionNode["PermissionName"].isNull())
|
||||||
|
permission_.permissionName = permissionNode["PermissionName"].asString();
|
||||||
|
if(!permissionNode["PermissionVersion"].isNull())
|
||||||
|
permission_.permissionVersion = permissionNode["PermissionVersion"].asString();
|
||||||
|
if(!permissionNode["Permission"].isNull())
|
||||||
|
permission_.permission = permissionNode["Permission"].asString();
|
||||||
|
if(!permissionNode["ResourceType"].isNull())
|
||||||
|
permission_.resourceType = permissionNode["ResourceType"].asString();
|
||||||
|
if(!permissionNode["DefaultVersion"].isNull())
|
||||||
|
permission_.defaultVersion = permissionNode["DefaultVersion"].asString() == "true";
|
||||||
|
if(!permissionNode["CreateTime"].isNull())
|
||||||
|
permission_.createTime = permissionNode["CreateTime"].asString();
|
||||||
|
if(!permissionNode["UpdateTime"].isNull())
|
||||||
|
permission_.updateTime = permissionNode["UpdateTime"].asString();
|
||||||
|
if(!permissionNode["DefaultPermission"].isNull())
|
||||||
|
permission_.defaultPermission = permissionNode["DefaultPermission"].asString() == "true";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
GetPermissionResult::Permission GetPermissionResult::getPermission()const
|
||||||
|
{
|
||||||
|
return permission_;
|
||||||
|
}
|
||||||
|
|
||||||
54
resourcesharing/src/model/ListPermissionVersionsRequest.cc
Normal file
54
resourcesharing/src/model/ListPermissionVersionsRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/model/ListPermissionVersionsRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::ResourceSharing::Model::ListPermissionVersionsRequest;
|
||||||
|
|
||||||
|
ListPermissionVersionsRequest::ListPermissionVersionsRequest()
|
||||||
|
: RpcServiceRequest("resourcesharing", "2020-01-10", "ListPermissionVersions") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListPermissionVersionsRequest::~ListPermissionVersionsRequest() {}
|
||||||
|
|
||||||
|
std::string ListPermissionVersionsRequest::getPermissionName() const {
|
||||||
|
return permissionName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListPermissionVersionsRequest::setPermissionName(const std::string &permissionName) {
|
||||||
|
permissionName_ = permissionName;
|
||||||
|
setParameter(std::string("PermissionName"), permissionName);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListPermissionVersionsRequest::getNextToken() const {
|
||||||
|
return nextToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListPermissionVersionsRequest::setNextToken(const std::string &nextToken) {
|
||||||
|
nextToken_ = nextToken;
|
||||||
|
setParameter(std::string("NextToken"), nextToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListPermissionVersionsRequest::getMaxResults() const {
|
||||||
|
return maxResults_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListPermissionVersionsRequest::setMaxResults(int maxResults) {
|
||||||
|
maxResults_ = maxResults;
|
||||||
|
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||||
|
}
|
||||||
|
|
||||||
76
resourcesharing/src/model/ListPermissionVersionsResult.cc
Normal file
76
resourcesharing/src/model/ListPermissionVersionsResult.cc
Normal file
@@ -0,0 +1,76 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/model/ListPermissionVersionsResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::ResourceSharing;
|
||||||
|
using namespace AlibabaCloud::ResourceSharing::Model;
|
||||||
|
|
||||||
|
ListPermissionVersionsResult::ListPermissionVersionsResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
ListPermissionVersionsResult::ListPermissionVersionsResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListPermissionVersionsResult::~ListPermissionVersionsResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void ListPermissionVersionsResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto allPermissionsNode = value["Permissions"]["Permission"];
|
||||||
|
for (auto valuePermissionsPermission : allPermissionsNode)
|
||||||
|
{
|
||||||
|
Permission permissionsObject;
|
||||||
|
if(!valuePermissionsPermission["PermissionName"].isNull())
|
||||||
|
permissionsObject.permissionName = valuePermissionsPermission["PermissionName"].asString();
|
||||||
|
if(!valuePermissionsPermission["PermissionVersion"].isNull())
|
||||||
|
permissionsObject.permissionVersion = valuePermissionsPermission["PermissionVersion"].asString();
|
||||||
|
if(!valuePermissionsPermission["DefaultVersion"].isNull())
|
||||||
|
permissionsObject.defaultVersion = valuePermissionsPermission["DefaultVersion"].asString() == "true";
|
||||||
|
if(!valuePermissionsPermission["CreateTime"].isNull())
|
||||||
|
permissionsObject.createTime = valuePermissionsPermission["CreateTime"].asString();
|
||||||
|
if(!valuePermissionsPermission["UpdateTime"].isNull())
|
||||||
|
permissionsObject.updateTime = valuePermissionsPermission["UpdateTime"].asString();
|
||||||
|
if(!valuePermissionsPermission["ResourceType"].isNull())
|
||||||
|
permissionsObject.resourceType = valuePermissionsPermission["ResourceType"].asString();
|
||||||
|
if(!valuePermissionsPermission["DefaultPermission"].isNull())
|
||||||
|
permissionsObject.defaultPermission = valuePermissionsPermission["DefaultPermission"].asString() == "true";
|
||||||
|
permissions_.push_back(permissionsObject);
|
||||||
|
}
|
||||||
|
if(!value["NextToken"].isNull())
|
||||||
|
nextToken_ = value["NextToken"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListPermissionVersionsResult::getNextToken()const
|
||||||
|
{
|
||||||
|
return nextToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<ListPermissionVersionsResult::Permission> ListPermissionVersionsResult::getPermissions()const
|
||||||
|
{
|
||||||
|
return permissions_;
|
||||||
|
}
|
||||||
|
|
||||||
54
resourcesharing/src/model/ListPermissionsRequest.cc
Normal file
54
resourcesharing/src/model/ListPermissionsRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/model/ListPermissionsRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::ResourceSharing::Model::ListPermissionsRequest;
|
||||||
|
|
||||||
|
ListPermissionsRequest::ListPermissionsRequest()
|
||||||
|
: RpcServiceRequest("resourcesharing", "2020-01-10", "ListPermissions") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListPermissionsRequest::~ListPermissionsRequest() {}
|
||||||
|
|
||||||
|
std::string ListPermissionsRequest::getResourceType() const {
|
||||||
|
return resourceType_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListPermissionsRequest::setResourceType(const std::string &resourceType) {
|
||||||
|
resourceType_ = resourceType;
|
||||||
|
setParameter(std::string("ResourceType"), resourceType);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListPermissionsRequest::getNextToken() const {
|
||||||
|
return nextToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListPermissionsRequest::setNextToken(const std::string &nextToken) {
|
||||||
|
nextToken_ = nextToken;
|
||||||
|
setParameter(std::string("NextToken"), nextToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListPermissionsRequest::getMaxResults() const {
|
||||||
|
return maxResults_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListPermissionsRequest::setMaxResults(int maxResults) {
|
||||||
|
maxResults_ = maxResults;
|
||||||
|
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||||
|
}
|
||||||
|
|
||||||
76
resourcesharing/src/model/ListPermissionsResult.cc
Normal file
76
resourcesharing/src/model/ListPermissionsResult.cc
Normal file
@@ -0,0 +1,76 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/model/ListPermissionsResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::ResourceSharing;
|
||||||
|
using namespace AlibabaCloud::ResourceSharing::Model;
|
||||||
|
|
||||||
|
ListPermissionsResult::ListPermissionsResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
ListPermissionsResult::ListPermissionsResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListPermissionsResult::~ListPermissionsResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void ListPermissionsResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto allPermissionsNode = value["Permissions"]["Permission"];
|
||||||
|
for (auto valuePermissionsPermission : allPermissionsNode)
|
||||||
|
{
|
||||||
|
Permission permissionsObject;
|
||||||
|
if(!valuePermissionsPermission["PermissionName"].isNull())
|
||||||
|
permissionsObject.permissionName = valuePermissionsPermission["PermissionName"].asString();
|
||||||
|
if(!valuePermissionsPermission["PermissionVersion"].isNull())
|
||||||
|
permissionsObject.permissionVersion = valuePermissionsPermission["PermissionVersion"].asString();
|
||||||
|
if(!valuePermissionsPermission["DefaultVersion"].isNull())
|
||||||
|
permissionsObject.defaultVersion = valuePermissionsPermission["DefaultVersion"].asString() == "true";
|
||||||
|
if(!valuePermissionsPermission["CreateTime"].isNull())
|
||||||
|
permissionsObject.createTime = valuePermissionsPermission["CreateTime"].asString();
|
||||||
|
if(!valuePermissionsPermission["UpdateTime"].isNull())
|
||||||
|
permissionsObject.updateTime = valuePermissionsPermission["UpdateTime"].asString();
|
||||||
|
if(!valuePermissionsPermission["ResourceType"].isNull())
|
||||||
|
permissionsObject.resourceType = valuePermissionsPermission["ResourceType"].asString();
|
||||||
|
if(!valuePermissionsPermission["DefaultPermission"].isNull())
|
||||||
|
permissionsObject.defaultPermission = valuePermissionsPermission["DefaultPermission"].asString() == "true";
|
||||||
|
permissions_.push_back(permissionsObject);
|
||||||
|
}
|
||||||
|
if(!value["NextToken"].isNull())
|
||||||
|
nextToken_ = value["NextToken"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListPermissionsResult::getNextToken()const
|
||||||
|
{
|
||||||
|
return nextToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<ListPermissionsResult::Permission> ListPermissionsResult::getPermissions()const
|
||||||
|
{
|
||||||
|
return permissions_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,89 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/model/ListResourceShareAssociationsRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::ResourceSharing::Model::ListResourceShareAssociationsRequest;
|
||||||
|
|
||||||
|
ListResourceShareAssociationsRequest::ListResourceShareAssociationsRequest()
|
||||||
|
: RpcServiceRequest("resourcesharing", "2020-01-10", "ListResourceShareAssociations") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListResourceShareAssociationsRequest::~ListResourceShareAssociationsRequest() {}
|
||||||
|
|
||||||
|
std::string ListResourceShareAssociationsRequest::getNextToken() const {
|
||||||
|
return nextToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListResourceShareAssociationsRequest::setNextToken(const std::string &nextToken) {
|
||||||
|
nextToken_ = nextToken;
|
||||||
|
setParameter(std::string("NextToken"), nextToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<std::string> ListResourceShareAssociationsRequest::getResourceShareIds() const {
|
||||||
|
return resourceShareIds_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListResourceShareAssociationsRequest::setResourceShareIds(const std::vector<std::string> &resourceShareIds) {
|
||||||
|
resourceShareIds_ = resourceShareIds;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListResourceShareAssociationsRequest::getResourceId() const {
|
||||||
|
return resourceId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListResourceShareAssociationsRequest::setResourceId(const std::string &resourceId) {
|
||||||
|
resourceId_ = resourceId;
|
||||||
|
setParameter(std::string("ResourceId"), resourceId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListResourceShareAssociationsRequest::getTarget() const {
|
||||||
|
return target_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListResourceShareAssociationsRequest::setTarget(const std::string &target) {
|
||||||
|
target_ = target;
|
||||||
|
setParameter(std::string("Target"), target);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListResourceShareAssociationsRequest::getAssociationType() const {
|
||||||
|
return associationType_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListResourceShareAssociationsRequest::setAssociationType(const std::string &associationType) {
|
||||||
|
associationType_ = associationType;
|
||||||
|
setParameter(std::string("AssociationType"), associationType);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListResourceShareAssociationsRequest::getAssociationStatus() const {
|
||||||
|
return associationStatus_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListResourceShareAssociationsRequest::setAssociationStatus(const std::string &associationStatus) {
|
||||||
|
associationStatus_ = associationStatus;
|
||||||
|
setParameter(std::string("AssociationStatus"), associationStatus);
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListResourceShareAssociationsRequest::getMaxResults() const {
|
||||||
|
return maxResults_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListResourceShareAssociationsRequest::setMaxResults(int maxResults) {
|
||||||
|
maxResults_ = maxResults;
|
||||||
|
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||||
|
}
|
||||||
|
|
||||||
100
resourcesharing/src/model/ListResourceShareAssociationsResult.cc
Normal file
100
resourcesharing/src/model/ListResourceShareAssociationsResult.cc
Normal file
@@ -0,0 +1,100 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/model/ListResourceShareAssociationsResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::ResourceSharing;
|
||||||
|
using namespace AlibabaCloud::ResourceSharing::Model;
|
||||||
|
|
||||||
|
ListResourceShareAssociationsResult::ListResourceShareAssociationsResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
ListResourceShareAssociationsResult::ListResourceShareAssociationsResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListResourceShareAssociationsResult::~ListResourceShareAssociationsResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void ListResourceShareAssociationsResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto allResourceShareAssociationsNode = value["ResourceShareAssociations"]["ResourceShareAssociation"];
|
||||||
|
for (auto valueResourceShareAssociationsResourceShareAssociation : allResourceShareAssociationsNode)
|
||||||
|
{
|
||||||
|
ResourceShareAssociation resourceShareAssociationsObject;
|
||||||
|
if(!valueResourceShareAssociationsResourceShareAssociation["UpdateTime"].isNull())
|
||||||
|
resourceShareAssociationsObject.updateTime = valueResourceShareAssociationsResourceShareAssociation["UpdateTime"].asString();
|
||||||
|
if(!valueResourceShareAssociationsResourceShareAssociation["EntityId"].isNull())
|
||||||
|
resourceShareAssociationsObject.entityId = valueResourceShareAssociationsResourceShareAssociation["EntityId"].asString();
|
||||||
|
if(!valueResourceShareAssociationsResourceShareAssociation["ResourceShareName"].isNull())
|
||||||
|
resourceShareAssociationsObject.resourceShareName = valueResourceShareAssociationsResourceShareAssociation["ResourceShareName"].asString();
|
||||||
|
if(!valueResourceShareAssociationsResourceShareAssociation["CreateTime"].isNull())
|
||||||
|
resourceShareAssociationsObject.createTime = valueResourceShareAssociationsResourceShareAssociation["CreateTime"].asString();
|
||||||
|
if(!valueResourceShareAssociationsResourceShareAssociation["EntityType"].isNull())
|
||||||
|
resourceShareAssociationsObject.entityType = valueResourceShareAssociationsResourceShareAssociation["EntityType"].asString();
|
||||||
|
if(!valueResourceShareAssociationsResourceShareAssociation["ResourceShareId"].isNull())
|
||||||
|
resourceShareAssociationsObject.resourceShareId = valueResourceShareAssociationsResourceShareAssociation["ResourceShareId"].asString();
|
||||||
|
if(!valueResourceShareAssociationsResourceShareAssociation["AssociationStatusMessage"].isNull())
|
||||||
|
resourceShareAssociationsObject.associationStatusMessage = valueResourceShareAssociationsResourceShareAssociation["AssociationStatusMessage"].asString();
|
||||||
|
if(!valueResourceShareAssociationsResourceShareAssociation["AssociationType"].isNull())
|
||||||
|
resourceShareAssociationsObject.associationType = valueResourceShareAssociationsResourceShareAssociation["AssociationType"].asString();
|
||||||
|
if(!valueResourceShareAssociationsResourceShareAssociation["AssociationStatus"].isNull())
|
||||||
|
resourceShareAssociationsObject.associationStatus = valueResourceShareAssociationsResourceShareAssociation["AssociationStatus"].asString();
|
||||||
|
if(!valueResourceShareAssociationsResourceShareAssociation["External"].isNull())
|
||||||
|
resourceShareAssociationsObject.external = valueResourceShareAssociationsResourceShareAssociation["External"].asString() == "true";
|
||||||
|
if(!valueResourceShareAssociationsResourceShareAssociation["TargetProperty"].isNull())
|
||||||
|
resourceShareAssociationsObject.targetProperty = valueResourceShareAssociationsResourceShareAssociation["TargetProperty"].asString();
|
||||||
|
auto allAssociationFailedDetailsNode = valueResourceShareAssociationsResourceShareAssociation["AssociationFailedDetails"]["AssociationFailedDetail"];
|
||||||
|
for (auto valueResourceShareAssociationsResourceShareAssociationAssociationFailedDetailsAssociationFailedDetail : allAssociationFailedDetailsNode)
|
||||||
|
{
|
||||||
|
ResourceShareAssociation::AssociationFailedDetail associationFailedDetailsObject;
|
||||||
|
if(!valueResourceShareAssociationsResourceShareAssociationAssociationFailedDetailsAssociationFailedDetail["Status"].isNull())
|
||||||
|
associationFailedDetailsObject.status = valueResourceShareAssociationsResourceShareAssociationAssociationFailedDetailsAssociationFailedDetail["Status"].asString();
|
||||||
|
if(!valueResourceShareAssociationsResourceShareAssociationAssociationFailedDetailsAssociationFailedDetail["StatusMessage"].isNull())
|
||||||
|
associationFailedDetailsObject.statusMessage = valueResourceShareAssociationsResourceShareAssociationAssociationFailedDetailsAssociationFailedDetail["StatusMessage"].asString();
|
||||||
|
if(!valueResourceShareAssociationsResourceShareAssociationAssociationFailedDetailsAssociationFailedDetail["AssociateType"].isNull())
|
||||||
|
associationFailedDetailsObject.associateType = valueResourceShareAssociationsResourceShareAssociationAssociationFailedDetailsAssociationFailedDetail["AssociateType"].asString();
|
||||||
|
if(!valueResourceShareAssociationsResourceShareAssociationAssociationFailedDetailsAssociationFailedDetail["EntityId"].isNull())
|
||||||
|
associationFailedDetailsObject.entityId = valueResourceShareAssociationsResourceShareAssociationAssociationFailedDetailsAssociationFailedDetail["EntityId"].asString();
|
||||||
|
if(!valueResourceShareAssociationsResourceShareAssociationAssociationFailedDetailsAssociationFailedDetail["EntityType"].isNull())
|
||||||
|
associationFailedDetailsObject.entityType = valueResourceShareAssociationsResourceShareAssociationAssociationFailedDetailsAssociationFailedDetail["EntityType"].asString();
|
||||||
|
resourceShareAssociationsObject.associationFailedDetails.push_back(associationFailedDetailsObject);
|
||||||
|
}
|
||||||
|
resourceShareAssociations_.push_back(resourceShareAssociationsObject);
|
||||||
|
}
|
||||||
|
if(!value["NextToken"].isNull())
|
||||||
|
nextToken_ = value["NextToken"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<ListResourceShareAssociationsResult::ResourceShareAssociation> ListResourceShareAssociationsResult::getResourceShareAssociations()const
|
||||||
|
{
|
||||||
|
return resourceShareAssociations_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListResourceShareAssociationsResult::getNextToken()const
|
||||||
|
{
|
||||||
|
return nextToken_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -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 <alibabacloud/resourcesharing/model/ListResourceShareInvitationsRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::ResourceSharing::Model::ListResourceShareInvitationsRequest;
|
||||||
|
|
||||||
|
ListResourceShareInvitationsRequest::ListResourceShareInvitationsRequest()
|
||||||
|
: RpcServiceRequest("resourcesharing", "2020-01-10", "ListResourceShareInvitations") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListResourceShareInvitationsRequest::~ListResourceShareInvitationsRequest() {}
|
||||||
|
|
||||||
|
std::vector<std::string> ListResourceShareInvitationsRequest::getResourceShareInvitationIds() const {
|
||||||
|
return resourceShareInvitationIds_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListResourceShareInvitationsRequest::setResourceShareInvitationIds(const std::vector<std::string> &resourceShareInvitationIds) {
|
||||||
|
resourceShareInvitationIds_ = resourceShareInvitationIds;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListResourceShareInvitationsRequest::getNextToken() const {
|
||||||
|
return nextToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListResourceShareInvitationsRequest::setNextToken(const std::string &nextToken) {
|
||||||
|
nextToken_ = nextToken;
|
||||||
|
setParameter(std::string("NextToken"), nextToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<std::string> ListResourceShareInvitationsRequest::getResourceShareIds() const {
|
||||||
|
return resourceShareIds_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListResourceShareInvitationsRequest::setResourceShareIds(const std::vector<std::string> &resourceShareIds) {
|
||||||
|
resourceShareIds_ = resourceShareIds;
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListResourceShareInvitationsRequest::getMaxResults() const {
|
||||||
|
return maxResults_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListResourceShareInvitationsRequest::setMaxResults(int maxResults) {
|
||||||
|
maxResults_ = maxResults;
|
||||||
|
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,92 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/model/ListResourceShareInvitationsResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::ResourceSharing;
|
||||||
|
using namespace AlibabaCloud::ResourceSharing::Model;
|
||||||
|
|
||||||
|
ListResourceShareInvitationsResult::ListResourceShareInvitationsResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
ListResourceShareInvitationsResult::ListResourceShareInvitationsResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListResourceShareInvitationsResult::~ListResourceShareInvitationsResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void ListResourceShareInvitationsResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto allResourceShareInvitationsNode = value["ResourceShareInvitations"]["ResourceShareInvitation"];
|
||||||
|
for (auto valueResourceShareInvitationsResourceShareInvitation : allResourceShareInvitationsNode)
|
||||||
|
{
|
||||||
|
ResourceShareInvitation resourceShareInvitationsObject;
|
||||||
|
if(!valueResourceShareInvitationsResourceShareInvitation["Status"].isNull())
|
||||||
|
resourceShareInvitationsObject.status = valueResourceShareInvitationsResourceShareInvitation["Status"].asString();
|
||||||
|
if(!valueResourceShareInvitationsResourceShareInvitation["CreateTime"].isNull())
|
||||||
|
resourceShareInvitationsObject.createTime = valueResourceShareInvitationsResourceShareInvitation["CreateTime"].asString();
|
||||||
|
if(!valueResourceShareInvitationsResourceShareInvitation["ResourceShareId"].isNull())
|
||||||
|
resourceShareInvitationsObject.resourceShareId = valueResourceShareInvitationsResourceShareInvitation["ResourceShareId"].asString();
|
||||||
|
if(!valueResourceShareInvitationsResourceShareInvitation["ResourceShareName"].isNull())
|
||||||
|
resourceShareInvitationsObject.resourceShareName = valueResourceShareInvitationsResourceShareInvitation["ResourceShareName"].asString();
|
||||||
|
if(!valueResourceShareInvitationsResourceShareInvitation["SenderAccountId"].isNull())
|
||||||
|
resourceShareInvitationsObject.senderAccountId = valueResourceShareInvitationsResourceShareInvitation["SenderAccountId"].asString();
|
||||||
|
if(!valueResourceShareInvitationsResourceShareInvitation["ReceiverAccountId"].isNull())
|
||||||
|
resourceShareInvitationsObject.receiverAccountId = valueResourceShareInvitationsResourceShareInvitation["ReceiverAccountId"].asString();
|
||||||
|
if(!valueResourceShareInvitationsResourceShareInvitation["ResourceShareInvitationId"].isNull())
|
||||||
|
resourceShareInvitationsObject.resourceShareInvitationId = valueResourceShareInvitationsResourceShareInvitation["ResourceShareInvitationId"].asString();
|
||||||
|
auto allInvitationFailedDetailsNode = valueResourceShareInvitationsResourceShareInvitation["InvitationFailedDetails"]["InvitationFailedDetail"];
|
||||||
|
for (auto valueResourceShareInvitationsResourceShareInvitationInvitationFailedDetailsInvitationFailedDetail : allInvitationFailedDetailsNode)
|
||||||
|
{
|
||||||
|
ResourceShareInvitation::InvitationFailedDetail invitationFailedDetailsObject;
|
||||||
|
if(!valueResourceShareInvitationsResourceShareInvitationInvitationFailedDetailsInvitationFailedDetail["Status"].isNull())
|
||||||
|
invitationFailedDetailsObject.status = valueResourceShareInvitationsResourceShareInvitationInvitationFailedDetailsInvitationFailedDetail["Status"].asString();
|
||||||
|
if(!valueResourceShareInvitationsResourceShareInvitationInvitationFailedDetailsInvitationFailedDetail["StatusMessage"].isNull())
|
||||||
|
invitationFailedDetailsObject.statusMessage = valueResourceShareInvitationsResourceShareInvitationInvitationFailedDetailsInvitationFailedDetail["StatusMessage"].asString();
|
||||||
|
if(!valueResourceShareInvitationsResourceShareInvitationInvitationFailedDetailsInvitationFailedDetail["AssociateType"].isNull())
|
||||||
|
invitationFailedDetailsObject.associateType = valueResourceShareInvitationsResourceShareInvitationInvitationFailedDetailsInvitationFailedDetail["AssociateType"].asString();
|
||||||
|
if(!valueResourceShareInvitationsResourceShareInvitationInvitationFailedDetailsInvitationFailedDetail["ResourceId"].isNull())
|
||||||
|
invitationFailedDetailsObject.resourceId = valueResourceShareInvitationsResourceShareInvitationInvitationFailedDetailsInvitationFailedDetail["ResourceId"].asString();
|
||||||
|
if(!valueResourceShareInvitationsResourceShareInvitationInvitationFailedDetailsInvitationFailedDetail["ResourceType"].isNull())
|
||||||
|
invitationFailedDetailsObject.resourceType = valueResourceShareInvitationsResourceShareInvitationInvitationFailedDetailsInvitationFailedDetail["ResourceType"].asString();
|
||||||
|
resourceShareInvitationsObject.invitationFailedDetails.push_back(invitationFailedDetailsObject);
|
||||||
|
}
|
||||||
|
resourceShareInvitations_.push_back(resourceShareInvitationsObject);
|
||||||
|
}
|
||||||
|
if(!value["NextToken"].isNull())
|
||||||
|
nextToken_ = value["NextToken"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<ListResourceShareInvitationsResult::ResourceShareInvitation> ListResourceShareInvitationsResult::getResourceShareInvitations()const
|
||||||
|
{
|
||||||
|
return resourceShareInvitations_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListResourceShareInvitationsResult::getNextToken()const
|
||||||
|
{
|
||||||
|
return nextToken_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -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 <alibabacloud/resourcesharing/model/ListResourceSharePermissionsRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::ResourceSharing::Model::ListResourceSharePermissionsRequest;
|
||||||
|
|
||||||
|
ListResourceSharePermissionsRequest::ListResourceSharePermissionsRequest()
|
||||||
|
: RpcServiceRequest("resourcesharing", "2020-01-10", "ListResourceSharePermissions") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListResourceSharePermissionsRequest::~ListResourceSharePermissionsRequest() {}
|
||||||
|
|
||||||
|
std::string ListResourceSharePermissionsRequest::getResourceOwner() const {
|
||||||
|
return resourceOwner_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListResourceSharePermissionsRequest::setResourceOwner(const std::string &resourceOwner) {
|
||||||
|
resourceOwner_ = resourceOwner;
|
||||||
|
setParameter(std::string("ResourceOwner"), resourceOwner);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListResourceSharePermissionsRequest::getNextToken() const {
|
||||||
|
return nextToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListResourceSharePermissionsRequest::setNextToken(const std::string &nextToken) {
|
||||||
|
nextToken_ = nextToken;
|
||||||
|
setParameter(std::string("NextToken"), nextToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListResourceSharePermissionsRequest::getMaxResults() const {
|
||||||
|
return maxResults_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListResourceSharePermissionsRequest::setMaxResults(int maxResults) {
|
||||||
|
maxResults_ = maxResults;
|
||||||
|
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListResourceSharePermissionsRequest::getResourceShareId() const {
|
||||||
|
return resourceShareId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListResourceSharePermissionsRequest::setResourceShareId(const std::string &resourceShareId) {
|
||||||
|
resourceShareId_ = resourceShareId;
|
||||||
|
setParameter(std::string("ResourceShareId"), resourceShareId);
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,76 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/model/ListResourceSharePermissionsResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::ResourceSharing;
|
||||||
|
using namespace AlibabaCloud::ResourceSharing::Model;
|
||||||
|
|
||||||
|
ListResourceSharePermissionsResult::ListResourceSharePermissionsResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
ListResourceSharePermissionsResult::ListResourceSharePermissionsResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListResourceSharePermissionsResult::~ListResourceSharePermissionsResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void ListResourceSharePermissionsResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto allPermissionsNode = value["Permissions"]["Permission"];
|
||||||
|
for (auto valuePermissionsPermission : allPermissionsNode)
|
||||||
|
{
|
||||||
|
Permission permissionsObject;
|
||||||
|
if(!valuePermissionsPermission["PermissionName"].isNull())
|
||||||
|
permissionsObject.permissionName = valuePermissionsPermission["PermissionName"].asString();
|
||||||
|
if(!valuePermissionsPermission["PermissionVersion"].isNull())
|
||||||
|
permissionsObject.permissionVersion = valuePermissionsPermission["PermissionVersion"].asString();
|
||||||
|
if(!valuePermissionsPermission["DefaultVersion"].isNull())
|
||||||
|
permissionsObject.defaultVersion = valuePermissionsPermission["DefaultVersion"].asString() == "true";
|
||||||
|
if(!valuePermissionsPermission["CreateTime"].isNull())
|
||||||
|
permissionsObject.createTime = valuePermissionsPermission["CreateTime"].asString();
|
||||||
|
if(!valuePermissionsPermission["UpdateTime"].isNull())
|
||||||
|
permissionsObject.updateTime = valuePermissionsPermission["UpdateTime"].asString();
|
||||||
|
if(!valuePermissionsPermission["ResourceType"].isNull())
|
||||||
|
permissionsObject.resourceType = valuePermissionsPermission["ResourceType"].asString();
|
||||||
|
if(!valuePermissionsPermission["DefaultPermission"].isNull())
|
||||||
|
permissionsObject.defaultPermission = valuePermissionsPermission["DefaultPermission"].asString() == "true";
|
||||||
|
permissions_.push_back(permissionsObject);
|
||||||
|
}
|
||||||
|
if(!value["NextToken"].isNull())
|
||||||
|
nextToken_ = value["NextToken"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListResourceSharePermissionsResult::getNextToken()const
|
||||||
|
{
|
||||||
|
return nextToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<ListResourceSharePermissionsResult::Permission> ListResourceSharePermissionsResult::getPermissions()const
|
||||||
|
{
|
||||||
|
return permissions_;
|
||||||
|
}
|
||||||
|
|
||||||
98
resourcesharing/src/model/ListResourceSharesRequest.cc
Normal file
98
resourcesharing/src/model/ListResourceSharesRequest.cc
Normal file
@@ -0,0 +1,98 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/model/ListResourceSharesRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::ResourceSharing::Model::ListResourceSharesRequest;
|
||||||
|
|
||||||
|
ListResourceSharesRequest::ListResourceSharesRequest()
|
||||||
|
: RpcServiceRequest("resourcesharing", "2020-01-10", "ListResourceShares") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListResourceSharesRequest::~ListResourceSharesRequest() {}
|
||||||
|
|
||||||
|
std::string ListResourceSharesRequest::getResourceShareName() const {
|
||||||
|
return resourceShareName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListResourceSharesRequest::setResourceShareName(const std::string &resourceShareName) {
|
||||||
|
resourceShareName_ = resourceShareName;
|
||||||
|
setParameter(std::string("ResourceShareName"), resourceShareName);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListResourceSharesRequest::getPermissionName() const {
|
||||||
|
return permissionName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListResourceSharesRequest::setPermissionName(const std::string &permissionName) {
|
||||||
|
permissionName_ = permissionName;
|
||||||
|
setParameter(std::string("PermissionName"), permissionName);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListResourceSharesRequest::getResourceGroupId() const {
|
||||||
|
return resourceGroupId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListResourceSharesRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||||
|
resourceGroupId_ = resourceGroupId;
|
||||||
|
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListResourceSharesRequest::getNextToken() const {
|
||||||
|
return nextToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListResourceSharesRequest::setNextToken(const std::string &nextToken) {
|
||||||
|
nextToken_ = nextToken;
|
||||||
|
setParameter(std::string("NextToken"), nextToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<std::string> ListResourceSharesRequest::getResourceShareIds() const {
|
||||||
|
return resourceShareIds_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListResourceSharesRequest::setResourceShareIds(const std::vector<std::string> &resourceShareIds) {
|
||||||
|
resourceShareIds_ = resourceShareIds;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListResourceSharesRequest::getResourceOwner() const {
|
||||||
|
return resourceOwner_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListResourceSharesRequest::setResourceOwner(const std::string &resourceOwner) {
|
||||||
|
resourceOwner_ = resourceOwner;
|
||||||
|
setParameter(std::string("ResourceOwner"), resourceOwner);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListResourceSharesRequest::getResourceShareStatus() const {
|
||||||
|
return resourceShareStatus_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListResourceSharesRequest::setResourceShareStatus(const std::string &resourceShareStatus) {
|
||||||
|
resourceShareStatus_ = resourceShareStatus;
|
||||||
|
setParameter(std::string("ResourceShareStatus"), resourceShareStatus);
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListResourceSharesRequest::getMaxResults() const {
|
||||||
|
return maxResults_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListResourceSharesRequest::setMaxResults(int maxResults) {
|
||||||
|
maxResults_ = maxResults;
|
||||||
|
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||||
|
}
|
||||||
|
|
||||||
78
resourcesharing/src/model/ListResourceSharesResult.cc
Normal file
78
resourcesharing/src/model/ListResourceSharesResult.cc
Normal file
@@ -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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/model/ListResourceSharesResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::ResourceSharing;
|
||||||
|
using namespace AlibabaCloud::ResourceSharing::Model;
|
||||||
|
|
||||||
|
ListResourceSharesResult::ListResourceSharesResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
ListResourceSharesResult::ListResourceSharesResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListResourceSharesResult::~ListResourceSharesResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void ListResourceSharesResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto allResourceSharesNode = value["ResourceShares"]["ResourceShare"];
|
||||||
|
for (auto valueResourceSharesResourceShare : allResourceSharesNode)
|
||||||
|
{
|
||||||
|
ResourceShare resourceSharesObject;
|
||||||
|
if(!valueResourceSharesResourceShare["UpdateTime"].isNull())
|
||||||
|
resourceSharesObject.updateTime = valueResourceSharesResourceShare["UpdateTime"].asString();
|
||||||
|
if(!valueResourceSharesResourceShare["ResourceShareName"].isNull())
|
||||||
|
resourceSharesObject.resourceShareName = valueResourceSharesResourceShare["ResourceShareName"].asString();
|
||||||
|
if(!valueResourceSharesResourceShare["ResourceShareOwner"].isNull())
|
||||||
|
resourceSharesObject.resourceShareOwner = valueResourceSharesResourceShare["ResourceShareOwner"].asString();
|
||||||
|
if(!valueResourceSharesResourceShare["CreateTime"].isNull())
|
||||||
|
resourceSharesObject.createTime = valueResourceSharesResourceShare["CreateTime"].asString();
|
||||||
|
if(!valueResourceSharesResourceShare["ResourceShareId"].isNull())
|
||||||
|
resourceSharesObject.resourceShareId = valueResourceSharesResourceShare["ResourceShareId"].asString();
|
||||||
|
if(!valueResourceSharesResourceShare["ResourceShareStatus"].isNull())
|
||||||
|
resourceSharesObject.resourceShareStatus = valueResourceSharesResourceShare["ResourceShareStatus"].asString();
|
||||||
|
if(!valueResourceSharesResourceShare["AllowExternalTargets"].isNull())
|
||||||
|
resourceSharesObject.allowExternalTargets = valueResourceSharesResourceShare["AllowExternalTargets"].asString() == "true";
|
||||||
|
if(!valueResourceSharesResourceShare["ResourceGroupId"].isNull())
|
||||||
|
resourceSharesObject.resourceGroupId = valueResourceSharesResourceShare["ResourceGroupId"].asString();
|
||||||
|
resourceShares_.push_back(resourceSharesObject);
|
||||||
|
}
|
||||||
|
if(!value["NextToken"].isNull())
|
||||||
|
nextToken_ = value["NextToken"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<ListResourceSharesResult::ResourceShare> ListResourceSharesResult::getResourceShares()const
|
||||||
|
{
|
||||||
|
return resourceShares_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListResourceSharesResult::getNextToken()const
|
||||||
|
{
|
||||||
|
return nextToken_;
|
||||||
|
}
|
||||||
|
|
||||||
88
resourcesharing/src/model/ListSharedResourcesRequest.cc
Normal file
88
resourcesharing/src/model/ListSharedResourcesRequest.cc
Normal file
@@ -0,0 +1,88 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/model/ListSharedResourcesRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::ResourceSharing::Model::ListSharedResourcesRequest;
|
||||||
|
|
||||||
|
ListSharedResourcesRequest::ListSharedResourcesRequest()
|
||||||
|
: RpcServiceRequest("resourcesharing", "2020-01-10", "ListSharedResources") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListSharedResourcesRequest::~ListSharedResourcesRequest() {}
|
||||||
|
|
||||||
|
std::string ListSharedResourcesRequest::getNextToken() const {
|
||||||
|
return nextToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListSharedResourcesRequest::setNextToken(const std::string &nextToken) {
|
||||||
|
nextToken_ = nextToken;
|
||||||
|
setParameter(std::string("NextToken"), nextToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<std::string> ListSharedResourcesRequest::getResourceShareIds() const {
|
||||||
|
return resourceShareIds_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListSharedResourcesRequest::setResourceShareIds(const std::vector<std::string> &resourceShareIds) {
|
||||||
|
resourceShareIds_ = resourceShareIds;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListSharedResourcesRequest::getResourceOwner() const {
|
||||||
|
return resourceOwner_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListSharedResourcesRequest::setResourceOwner(const std::string &resourceOwner) {
|
||||||
|
resourceOwner_ = resourceOwner;
|
||||||
|
setParameter(std::string("ResourceOwner"), resourceOwner);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListSharedResourcesRequest::getResourceType() const {
|
||||||
|
return resourceType_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListSharedResourcesRequest::setResourceType(const std::string &resourceType) {
|
||||||
|
resourceType_ = resourceType;
|
||||||
|
setParameter(std::string("ResourceType"), resourceType);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListSharedResourcesRequest::getTarget() const {
|
||||||
|
return target_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListSharedResourcesRequest::setTarget(const std::string &target) {
|
||||||
|
target_ = target;
|
||||||
|
setParameter(std::string("Target"), target);
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListSharedResourcesRequest::getMaxResults() const {
|
||||||
|
return maxResults_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListSharedResourcesRequest::setMaxResults(int maxResults) {
|
||||||
|
maxResults_ = maxResults;
|
||||||
|
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<std::string> ListSharedResourcesRequest::getResourceIds() const {
|
||||||
|
return resourceIds_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListSharedResourcesRequest::setResourceIds(const std::vector<std::string> &resourceIds) {
|
||||||
|
resourceIds_ = resourceIds;
|
||||||
|
}
|
||||||
|
|
||||||
76
resourcesharing/src/model/ListSharedResourcesResult.cc
Normal file
76
resourcesharing/src/model/ListSharedResourcesResult.cc
Normal file
@@ -0,0 +1,76 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/model/ListSharedResourcesResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::ResourceSharing;
|
||||||
|
using namespace AlibabaCloud::ResourceSharing::Model;
|
||||||
|
|
||||||
|
ListSharedResourcesResult::ListSharedResourcesResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
ListSharedResourcesResult::ListSharedResourcesResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListSharedResourcesResult::~ListSharedResourcesResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void ListSharedResourcesResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto allSharedResourcesNode = value["SharedResources"]["SharedResource"];
|
||||||
|
for (auto valueSharedResourcesSharedResource : allSharedResourcesNode)
|
||||||
|
{
|
||||||
|
SharedResource sharedResourcesObject;
|
||||||
|
if(!valueSharedResourcesSharedResource["UpdateTime"].isNull())
|
||||||
|
sharedResourcesObject.updateTime = valueSharedResourcesSharedResource["UpdateTime"].asString();
|
||||||
|
if(!valueSharedResourcesSharedResource["ResourceType"].isNull())
|
||||||
|
sharedResourcesObject.resourceType = valueSharedResourcesSharedResource["ResourceType"].asString();
|
||||||
|
if(!valueSharedResourcesSharedResource["CreateTime"].isNull())
|
||||||
|
sharedResourcesObject.createTime = valueSharedResourcesSharedResource["CreateTime"].asString();
|
||||||
|
if(!valueSharedResourcesSharedResource["ResourceShareId"].isNull())
|
||||||
|
sharedResourcesObject.resourceShareId = valueSharedResourcesSharedResource["ResourceShareId"].asString();
|
||||||
|
if(!valueSharedResourcesSharedResource["ResourceId"].isNull())
|
||||||
|
sharedResourcesObject.resourceId = valueSharedResourcesSharedResource["ResourceId"].asString();
|
||||||
|
if(!valueSharedResourcesSharedResource["ResourceStatus"].isNull())
|
||||||
|
sharedResourcesObject.resourceStatus = valueSharedResourcesSharedResource["ResourceStatus"].asString();
|
||||||
|
if(!valueSharedResourcesSharedResource["ResourceStatusMessage"].isNull())
|
||||||
|
sharedResourcesObject.resourceStatusMessage = valueSharedResourcesSharedResource["ResourceStatusMessage"].asString();
|
||||||
|
sharedResources_.push_back(sharedResourcesObject);
|
||||||
|
}
|
||||||
|
if(!value["NextToken"].isNull())
|
||||||
|
nextToken_ = value["NextToken"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListSharedResourcesResult::getNextToken()const
|
||||||
|
{
|
||||||
|
return nextToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<ListSharedResourcesResult::SharedResource> ListSharedResourcesResult::getSharedResources()const
|
||||||
|
{
|
||||||
|
return sharedResources_;
|
||||||
|
}
|
||||||
|
|
||||||
88
resourcesharing/src/model/ListSharedTargetsRequest.cc
Normal file
88
resourcesharing/src/model/ListSharedTargetsRequest.cc
Normal file
@@ -0,0 +1,88 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/model/ListSharedTargetsRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::ResourceSharing::Model::ListSharedTargetsRequest;
|
||||||
|
|
||||||
|
ListSharedTargetsRequest::ListSharedTargetsRequest()
|
||||||
|
: RpcServiceRequest("resourcesharing", "2020-01-10", "ListSharedTargets") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListSharedTargetsRequest::~ListSharedTargetsRequest() {}
|
||||||
|
|
||||||
|
std::vector<std::string> ListSharedTargetsRequest::getTargets() const {
|
||||||
|
return targets_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListSharedTargetsRequest::setTargets(const std::vector<std::string> &targets) {
|
||||||
|
targets_ = targets;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListSharedTargetsRequest::getNextToken() const {
|
||||||
|
return nextToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListSharedTargetsRequest::setNextToken(const std::string &nextToken) {
|
||||||
|
nextToken_ = nextToken;
|
||||||
|
setParameter(std::string("NextToken"), nextToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<std::string> ListSharedTargetsRequest::getResourceShareIds() const {
|
||||||
|
return resourceShareIds_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListSharedTargetsRequest::setResourceShareIds(const std::vector<std::string> &resourceShareIds) {
|
||||||
|
resourceShareIds_ = resourceShareIds;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListSharedTargetsRequest::getResourceId() const {
|
||||||
|
return resourceId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListSharedTargetsRequest::setResourceId(const std::string &resourceId) {
|
||||||
|
resourceId_ = resourceId;
|
||||||
|
setParameter(std::string("ResourceId"), resourceId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListSharedTargetsRequest::getResourceOwner() const {
|
||||||
|
return resourceOwner_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListSharedTargetsRequest::setResourceOwner(const std::string &resourceOwner) {
|
||||||
|
resourceOwner_ = resourceOwner;
|
||||||
|
setParameter(std::string("ResourceOwner"), resourceOwner);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListSharedTargetsRequest::getResourceType() const {
|
||||||
|
return resourceType_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListSharedTargetsRequest::setResourceType(const std::string &resourceType) {
|
||||||
|
resourceType_ = resourceType;
|
||||||
|
setParameter(std::string("ResourceType"), resourceType);
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListSharedTargetsRequest::getMaxResults() const {
|
||||||
|
return maxResults_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListSharedTargetsRequest::setMaxResults(int maxResults) {
|
||||||
|
maxResults_ = maxResults;
|
||||||
|
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||||
|
}
|
||||||
|
|
||||||
74
resourcesharing/src/model/ListSharedTargetsResult.cc
Normal file
74
resourcesharing/src/model/ListSharedTargetsResult.cc
Normal file
@@ -0,0 +1,74 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/model/ListSharedTargetsResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::ResourceSharing;
|
||||||
|
using namespace AlibabaCloud::ResourceSharing::Model;
|
||||||
|
|
||||||
|
ListSharedTargetsResult::ListSharedTargetsResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
ListSharedTargetsResult::ListSharedTargetsResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListSharedTargetsResult::~ListSharedTargetsResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void ListSharedTargetsResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto allSharedTargetsNode = value["SharedTargets"]["SharedTarget"];
|
||||||
|
for (auto valueSharedTargetsSharedTarget : allSharedTargetsNode)
|
||||||
|
{
|
||||||
|
SharedTarget sharedTargetsObject;
|
||||||
|
if(!valueSharedTargetsSharedTarget["TargetId"].isNull())
|
||||||
|
sharedTargetsObject.targetId = valueSharedTargetsSharedTarget["TargetId"].asString();
|
||||||
|
if(!valueSharedTargetsSharedTarget["UpdateTime"].isNull())
|
||||||
|
sharedTargetsObject.updateTime = valueSharedTargetsSharedTarget["UpdateTime"].asString();
|
||||||
|
if(!valueSharedTargetsSharedTarget["CreateTime"].isNull())
|
||||||
|
sharedTargetsObject.createTime = valueSharedTargetsSharedTarget["CreateTime"].asString();
|
||||||
|
if(!valueSharedTargetsSharedTarget["ResourceShareId"].isNull())
|
||||||
|
sharedTargetsObject.resourceShareId = valueSharedTargetsSharedTarget["ResourceShareId"].asString();
|
||||||
|
if(!valueSharedTargetsSharedTarget["External"].isNull())
|
||||||
|
sharedTargetsObject.external = valueSharedTargetsSharedTarget["External"].asString() == "true";
|
||||||
|
if(!valueSharedTargetsSharedTarget["TargetProperty"].isNull())
|
||||||
|
sharedTargetsObject.targetProperty = valueSharedTargetsSharedTarget["TargetProperty"].asString();
|
||||||
|
sharedTargets_.push_back(sharedTargetsObject);
|
||||||
|
}
|
||||||
|
if(!value["NextToken"].isNull())
|
||||||
|
nextToken_ = value["NextToken"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListSharedTargetsResult::getNextToken()const
|
||||||
|
{
|
||||||
|
return nextToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<ListSharedTargetsResult::SharedTarget> ListSharedTargetsResult::getSharedTargets()const
|
||||||
|
{
|
||||||
|
return sharedTargets_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/model/RejectResourceShareInvitationRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::ResourceSharing::Model::RejectResourceShareInvitationRequest;
|
||||||
|
|
||||||
|
RejectResourceShareInvitationRequest::RejectResourceShareInvitationRequest()
|
||||||
|
: RpcServiceRequest("resourcesharing", "2020-01-10", "RejectResourceShareInvitation") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
RejectResourceShareInvitationRequest::~RejectResourceShareInvitationRequest() {}
|
||||||
|
|
||||||
|
std::string RejectResourceShareInvitationRequest::getResourceShareInvitationId() const {
|
||||||
|
return resourceShareInvitationId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void RejectResourceShareInvitationRequest::setResourceShareInvitationId(const std::string &resourceShareInvitationId) {
|
||||||
|
resourceShareInvitationId_ = resourceShareInvitationId;
|
||||||
|
setParameter(std::string("ResourceShareInvitationId"), resourceShareInvitationId);
|
||||||
|
}
|
||||||
|
|
||||||
@@ -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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/model/RejectResourceShareInvitationResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::ResourceSharing;
|
||||||
|
using namespace AlibabaCloud::ResourceSharing::Model;
|
||||||
|
|
||||||
|
RejectResourceShareInvitationResult::RejectResourceShareInvitationResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
RejectResourceShareInvitationResult::RejectResourceShareInvitationResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
RejectResourceShareInvitationResult::~RejectResourceShareInvitationResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void RejectResourceShareInvitationResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto resourceShareInvitationNode = value["ResourceShareInvitation"];
|
||||||
|
if(!resourceShareInvitationNode["ResourceShareInvitationId"].isNull())
|
||||||
|
resourceShareInvitation_.resourceShareInvitationId = resourceShareInvitationNode["ResourceShareInvitationId"].asString();
|
||||||
|
if(!resourceShareInvitationNode["ResourceShareId"].isNull())
|
||||||
|
resourceShareInvitation_.resourceShareId = resourceShareInvitationNode["ResourceShareId"].asString();
|
||||||
|
if(!resourceShareInvitationNode["ResourceShareName"].isNull())
|
||||||
|
resourceShareInvitation_.resourceShareName = resourceShareInvitationNode["ResourceShareName"].asString();
|
||||||
|
if(!resourceShareInvitationNode["SenderAccountId"].isNull())
|
||||||
|
resourceShareInvitation_.senderAccountId = resourceShareInvitationNode["SenderAccountId"].asString();
|
||||||
|
if(!resourceShareInvitationNode["ReceiverAccountId"].isNull())
|
||||||
|
resourceShareInvitation_.receiverAccountId = resourceShareInvitationNode["ReceiverAccountId"].asString();
|
||||||
|
if(!resourceShareInvitationNode["CreateTime"].isNull())
|
||||||
|
resourceShareInvitation_.createTime = resourceShareInvitationNode["CreateTime"].asString();
|
||||||
|
if(!resourceShareInvitationNode["Status"].isNull())
|
||||||
|
resourceShareInvitation_.status = resourceShareInvitationNode["Status"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
RejectResourceShareInvitationResult::ResourceShareInvitation RejectResourceShareInvitationResult::getResourceShareInvitation()const
|
||||||
|
{
|
||||||
|
return resourceShareInvitation_;
|
||||||
|
}
|
||||||
|
|
||||||
54
resourcesharing/src/model/UpdateResourceShareRequest.cc
Normal file
54
resourcesharing/src/model/UpdateResourceShareRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/model/UpdateResourceShareRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::ResourceSharing::Model::UpdateResourceShareRequest;
|
||||||
|
|
||||||
|
UpdateResourceShareRequest::UpdateResourceShareRequest()
|
||||||
|
: RpcServiceRequest("resourcesharing", "2020-01-10", "UpdateResourceShare") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
UpdateResourceShareRequest::~UpdateResourceShareRequest() {}
|
||||||
|
|
||||||
|
std::string UpdateResourceShareRequest::getResourceShareName() const {
|
||||||
|
return resourceShareName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateResourceShareRequest::setResourceShareName(const std::string &resourceShareName) {
|
||||||
|
resourceShareName_ = resourceShareName;
|
||||||
|
setParameter(std::string("ResourceShareName"), resourceShareName);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpdateResourceShareRequest::getResourceShareId() const {
|
||||||
|
return resourceShareId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateResourceShareRequest::setResourceShareId(const std::string &resourceShareId) {
|
||||||
|
resourceShareId_ = resourceShareId;
|
||||||
|
setParameter(std::string("ResourceShareId"), resourceShareId);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool UpdateResourceShareRequest::getAllowExternalTargets() const {
|
||||||
|
return allowExternalTargets_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateResourceShareRequest::setAllowExternalTargets(bool allowExternalTargets) {
|
||||||
|
allowExternalTargets_ = allowExternalTargets;
|
||||||
|
setParameter(std::string("AllowExternalTargets"), allowExternalTargets ? "true" : "false");
|
||||||
|
}
|
||||||
|
|
||||||
64
resourcesharing/src/model/UpdateResourceShareResult.cc
Normal file
64
resourcesharing/src/model/UpdateResourceShareResult.cc
Normal file
@@ -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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/resourcesharing/model/UpdateResourceShareResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::ResourceSharing;
|
||||||
|
using namespace AlibabaCloud::ResourceSharing::Model;
|
||||||
|
|
||||||
|
UpdateResourceShareResult::UpdateResourceShareResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
UpdateResourceShareResult::UpdateResourceShareResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
UpdateResourceShareResult::~UpdateResourceShareResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void UpdateResourceShareResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto resourceShareNode = value["ResourceShare"];
|
||||||
|
if(!resourceShareNode["UpdateTime"].isNull())
|
||||||
|
resourceShare_.updateTime = resourceShareNode["UpdateTime"].asString();
|
||||||
|
if(!resourceShareNode["ResourceShareName"].isNull())
|
||||||
|
resourceShare_.resourceShareName = resourceShareNode["ResourceShareName"].asString();
|
||||||
|
if(!resourceShareNode["ResourceShareOwner"].isNull())
|
||||||
|
resourceShare_.resourceShareOwner = resourceShareNode["ResourceShareOwner"].asString();
|
||||||
|
if(!resourceShareNode["CreateTime"].isNull())
|
||||||
|
resourceShare_.createTime = resourceShareNode["CreateTime"].asString();
|
||||||
|
if(!resourceShareNode["ResourceShareId"].isNull())
|
||||||
|
resourceShare_.resourceShareId = resourceShareNode["ResourceShareId"].asString();
|
||||||
|
if(!resourceShareNode["ResourceShareStatus"].isNull())
|
||||||
|
resourceShare_.resourceShareStatus = resourceShareNode["ResourceShareStatus"].asString();
|
||||||
|
if(!resourceShareNode["AllowExternalTargets"].isNull())
|
||||||
|
resourceShare_.allowExternalTargets = resourceShareNode["AllowExternalTargets"].asString() == "true";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
UpdateResourceShareResult::ResourceShare UpdateResourceShareResult::getResourceShare()const
|
||||||
|
{
|
||||||
|
return resourceShare_;
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user