diff --git a/CHANGELOG b/CHANGELOG index dda4843a2..3d5347efb 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2021-09-26 Version: 1.36.887 +- Support odcap device. + 2021-09-26 Version: 1.36.886 - Update imageenhan. diff --git a/VERSION b/VERSION index 41dd31d13..d4db91f63 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.886 \ No newline at end of file +1.36.887 \ No newline at end of file diff --git a/vs/CMakeLists.txt b/vs/CMakeLists.txt index bdce31525..51838d092 100644 --- a/vs/CMakeLists.txt +++ b/vs/CMakeLists.txt @@ -21,6 +21,10 @@ set(vs_public_header include/alibabacloud/vs/VsExport.h ) set(vs_public_header_model + include/alibabacloud/vs/model/AddDeviceRequest.h + include/alibabacloud/vs/model/AddDeviceResult.h + include/alibabacloud/vs/model/AddRenderingDeviceInternetPortsRequest.h + include/alibabacloud/vs/model/AddRenderingDeviceInternetPortsResult.h include/alibabacloud/vs/model/AddVsPullStreamInfoConfigRequest.h include/alibabacloud/vs/model/AddVsPullStreamInfoConfigResult.h include/alibabacloud/vs/model/BatchBindDirectoriesRequest.h @@ -73,20 +77,30 @@ set(vs_public_header_model include/alibabacloud/vs/model/ContinuousAdjustResult.h include/alibabacloud/vs/model/ContinuousMoveRequest.h include/alibabacloud/vs/model/ContinuousMoveResult.h + include/alibabacloud/vs/model/CreateClusterRequest.h + include/alibabacloud/vs/model/CreateClusterResult.h include/alibabacloud/vs/model/CreateDeviceRequest.h include/alibabacloud/vs/model/CreateDeviceResult.h include/alibabacloud/vs/model/CreateDeviceAlarmRequest.h include/alibabacloud/vs/model/CreateDeviceAlarmResult.h + include/alibabacloud/vs/model/CreateDeviceSnapshotRequest.h + include/alibabacloud/vs/model/CreateDeviceSnapshotResult.h include/alibabacloud/vs/model/CreateDirectoryRequest.h include/alibabacloud/vs/model/CreateDirectoryResult.h include/alibabacloud/vs/model/CreateGroupRequest.h include/alibabacloud/vs/model/CreateGroupResult.h include/alibabacloud/vs/model/CreateParentPlatformRequest.h include/alibabacloud/vs/model/CreateParentPlatformResult.h + include/alibabacloud/vs/model/CreateRenderingDeviceRequest.h + include/alibabacloud/vs/model/CreateRenderingDeviceResult.h include/alibabacloud/vs/model/CreateStreamSnapshotRequest.h include/alibabacloud/vs/model/CreateStreamSnapshotResult.h include/alibabacloud/vs/model/CreateTemplateRequest.h include/alibabacloud/vs/model/CreateTemplateResult.h + include/alibabacloud/vs/model/DeleteBucketRequest.h + include/alibabacloud/vs/model/DeleteBucketResult.h + include/alibabacloud/vs/model/DeleteClusterRequest.h + include/alibabacloud/vs/model/DeleteClusterResult.h include/alibabacloud/vs/model/DeleteDeviceRequest.h include/alibabacloud/vs/model/DeleteDeviceResult.h include/alibabacloud/vs/model/DeleteDirectoryRequest.h @@ -97,6 +111,10 @@ set(vs_public_header_model include/alibabacloud/vs/model/DeleteParentPlatformResult.h include/alibabacloud/vs/model/DeletePresetRequest.h include/alibabacloud/vs/model/DeletePresetResult.h + include/alibabacloud/vs/model/DeleteRenderingDeviceInternetPortsRequest.h + include/alibabacloud/vs/model/DeleteRenderingDeviceInternetPortsResult.h + include/alibabacloud/vs/model/DeleteRenderingDevicesRequest.h + include/alibabacloud/vs/model/DeleteRenderingDevicesResult.h include/alibabacloud/vs/model/DeleteTemplateRequest.h include/alibabacloud/vs/model/DeleteTemplateResult.h include/alibabacloud/vs/model/DeleteVsPullStreamInfoConfigRequest.h @@ -105,6 +123,12 @@ set(vs_public_header_model include/alibabacloud/vs/model/DeleteVsStreamsNotifyUrlConfigResult.h include/alibabacloud/vs/model/DescribeAccountStatRequest.h include/alibabacloud/vs/model/DescribeAccountStatResult.h + include/alibabacloud/vs/model/DescribeClusterRequest.h + include/alibabacloud/vs/model/DescribeClusterResult.h + include/alibabacloud/vs/model/DescribeClusterDevicesRequest.h + include/alibabacloud/vs/model/DescribeClusterDevicesResult.h + include/alibabacloud/vs/model/DescribeClustersRequest.h + include/alibabacloud/vs/model/DescribeClustersResult.h include/alibabacloud/vs/model/DescribeDeviceRequest.h include/alibabacloud/vs/model/DescribeDeviceResult.h include/alibabacloud/vs/model/DescribeDeviceChannelsRequest.h @@ -123,6 +147,8 @@ set(vs_public_header_model include/alibabacloud/vs/model/DescribeGroupResult.h include/alibabacloud/vs/model/DescribeGroupsRequest.h include/alibabacloud/vs/model/DescribeGroupsResult.h + include/alibabacloud/vs/model/DescribeNodeDevicesInfoRequest.h + include/alibabacloud/vs/model/DescribeNodeDevicesInfoResult.h include/alibabacloud/vs/model/DescribeParentPlatformRequest.h include/alibabacloud/vs/model/DescribeParentPlatformResult.h include/alibabacloud/vs/model/DescribeParentPlatformDevicesRequest.h @@ -137,6 +163,8 @@ set(vs_public_header_model include/alibabacloud/vs/model/DescribePurchasedDevicesResult.h include/alibabacloud/vs/model/DescribeRecordsRequest.h include/alibabacloud/vs/model/DescribeRecordsResult.h + include/alibabacloud/vs/model/DescribeRenderingDevicesRequest.h + include/alibabacloud/vs/model/DescribeRenderingDevicesResult.h include/alibabacloud/vs/model/DescribeStreamRequest.h include/alibabacloud/vs/model/DescribeStreamResult.h include/alibabacloud/vs/model/DescribeStreamURLRequest.h @@ -183,6 +211,10 @@ set(vs_public_header_model include/alibabacloud/vs/model/DescribeVsDomainUvDataResult.h include/alibabacloud/vs/model/DescribeVsPullStreamInfoConfigRequest.h include/alibabacloud/vs/model/DescribeVsPullStreamInfoConfigResult.h + include/alibabacloud/vs/model/DescribeVsStorageTrafficUsageDataRequest.h + include/alibabacloud/vs/model/DescribeVsStorageTrafficUsageDataResult.h + include/alibabacloud/vs/model/DescribeVsStorageUsageDataRequest.h + include/alibabacloud/vs/model/DescribeVsStorageUsageDataResult.h include/alibabacloud/vs/model/DescribeVsStreamsNotifyUrlConfigRequest.h include/alibabacloud/vs/model/DescribeVsStreamsNotifyUrlConfigResult.h include/alibabacloud/vs/model/DescribeVsStreamsOnlineListRequest.h @@ -197,8 +229,18 @@ set(vs_public_header_model include/alibabacloud/vs/model/DescribeVsUserResourcePackageResult.h include/alibabacloud/vs/model/ForbidVsStreamRequest.h include/alibabacloud/vs/model/ForbidVsStreamResult.h + include/alibabacloud/vs/model/GetBucketInfoRequest.h + include/alibabacloud/vs/model/GetBucketInfoResult.h include/alibabacloud/vs/model/GotoPresetRequest.h include/alibabacloud/vs/model/GotoPresetResult.h + include/alibabacloud/vs/model/ListBucketsRequest.h + include/alibabacloud/vs/model/ListBucketsResult.h + include/alibabacloud/vs/model/ListDeviceChannelsRequest.h + include/alibabacloud/vs/model/ListDeviceChannelsResult.h + include/alibabacloud/vs/model/ListDeviceRecordsRequest.h + include/alibabacloud/vs/model/ListDeviceRecordsResult.h + include/alibabacloud/vs/model/ListObjectsRequest.h + include/alibabacloud/vs/model/ListObjectsResult.h include/alibabacloud/vs/model/ModifyDeviceRequest.h include/alibabacloud/vs/model/ModifyDeviceResult.h include/alibabacloud/vs/model/ModifyDeviceAlarmRequest.h @@ -215,6 +257,16 @@ set(vs_public_header_model include/alibabacloud/vs/model/ModifyParentPlatformResult.h include/alibabacloud/vs/model/ModifyTemplateRequest.h include/alibabacloud/vs/model/ModifyTemplateResult.h + include/alibabacloud/vs/model/OpenVsServiceRequest.h + include/alibabacloud/vs/model/OpenVsServiceResult.h + include/alibabacloud/vs/model/OperateRenderingDevicesRequest.h + include/alibabacloud/vs/model/OperateRenderingDevicesResult.h + include/alibabacloud/vs/model/PrepareUploadRequest.h + include/alibabacloud/vs/model/PrepareUploadResult.h + include/alibabacloud/vs/model/PutBucketRequest.h + include/alibabacloud/vs/model/PutBucketResult.h + include/alibabacloud/vs/model/ResetRenderingDevicesRequest.h + include/alibabacloud/vs/model/ResetRenderingDevicesResult.h include/alibabacloud/vs/model/ResumeVsStreamRequest.h include/alibabacloud/vs/model/ResumeVsStreamResult.h include/alibabacloud/vs/model/SetPresetRequest.h @@ -247,6 +299,8 @@ set(vs_public_header_model include/alibabacloud/vs/model/StopTransferStreamResult.h include/alibabacloud/vs/model/SyncCatalogsRequest.h include/alibabacloud/vs/model/SyncCatalogsResult.h + include/alibabacloud/vs/model/SyncDeviceChannelsRequest.h + include/alibabacloud/vs/model/SyncDeviceChannelsResult.h include/alibabacloud/vs/model/UnbindDirectoryRequest.h include/alibabacloud/vs/model/UnbindDirectoryResult.h include/alibabacloud/vs/model/UnbindParentPlatformDeviceRequest.h @@ -257,11 +311,23 @@ set(vs_public_header_model include/alibabacloud/vs/model/UnbindTemplateResult.h include/alibabacloud/vs/model/UnlockDeviceRequest.h include/alibabacloud/vs/model/UnlockDeviceResult.h + include/alibabacloud/vs/model/UpdateBucketInfoRequest.h + include/alibabacloud/vs/model/UpdateBucketInfoResult.h + include/alibabacloud/vs/model/UpdateClusterRequest.h + include/alibabacloud/vs/model/UpdateClusterResult.h + include/alibabacloud/vs/model/UpdateRenderingDeviceSpecRequest.h + include/alibabacloud/vs/model/UpdateRenderingDeviceSpecResult.h include/alibabacloud/vs/model/UpdateVsPullStreamInfoConfigRequest.h - include/alibabacloud/vs/model/UpdateVsPullStreamInfoConfigResult.h ) + include/alibabacloud/vs/model/UpdateVsPullStreamInfoConfigResult.h + include/alibabacloud/vs/model/UploadDeviceRecordRequest.h + include/alibabacloud/vs/model/UploadDeviceRecordResult.h ) set(vs_src src/VsClient.cc + src/model/AddDeviceRequest.cc + src/model/AddDeviceResult.cc + src/model/AddRenderingDeviceInternetPortsRequest.cc + src/model/AddRenderingDeviceInternetPortsResult.cc src/model/AddVsPullStreamInfoConfigRequest.cc src/model/AddVsPullStreamInfoConfigResult.cc src/model/BatchBindDirectoriesRequest.cc @@ -314,20 +380,30 @@ set(vs_src src/model/ContinuousAdjustResult.cc src/model/ContinuousMoveRequest.cc src/model/ContinuousMoveResult.cc + src/model/CreateClusterRequest.cc + src/model/CreateClusterResult.cc src/model/CreateDeviceRequest.cc src/model/CreateDeviceResult.cc src/model/CreateDeviceAlarmRequest.cc src/model/CreateDeviceAlarmResult.cc + src/model/CreateDeviceSnapshotRequest.cc + src/model/CreateDeviceSnapshotResult.cc src/model/CreateDirectoryRequest.cc src/model/CreateDirectoryResult.cc src/model/CreateGroupRequest.cc src/model/CreateGroupResult.cc src/model/CreateParentPlatformRequest.cc src/model/CreateParentPlatformResult.cc + src/model/CreateRenderingDeviceRequest.cc + src/model/CreateRenderingDeviceResult.cc src/model/CreateStreamSnapshotRequest.cc src/model/CreateStreamSnapshotResult.cc src/model/CreateTemplateRequest.cc src/model/CreateTemplateResult.cc + src/model/DeleteBucketRequest.cc + src/model/DeleteBucketResult.cc + src/model/DeleteClusterRequest.cc + src/model/DeleteClusterResult.cc src/model/DeleteDeviceRequest.cc src/model/DeleteDeviceResult.cc src/model/DeleteDirectoryRequest.cc @@ -338,6 +414,10 @@ set(vs_src src/model/DeleteParentPlatformResult.cc src/model/DeletePresetRequest.cc src/model/DeletePresetResult.cc + src/model/DeleteRenderingDeviceInternetPortsRequest.cc + src/model/DeleteRenderingDeviceInternetPortsResult.cc + src/model/DeleteRenderingDevicesRequest.cc + src/model/DeleteRenderingDevicesResult.cc src/model/DeleteTemplateRequest.cc src/model/DeleteTemplateResult.cc src/model/DeleteVsPullStreamInfoConfigRequest.cc @@ -346,6 +426,12 @@ set(vs_src src/model/DeleteVsStreamsNotifyUrlConfigResult.cc src/model/DescribeAccountStatRequest.cc src/model/DescribeAccountStatResult.cc + src/model/DescribeClusterRequest.cc + src/model/DescribeClusterResult.cc + src/model/DescribeClusterDevicesRequest.cc + src/model/DescribeClusterDevicesResult.cc + src/model/DescribeClustersRequest.cc + src/model/DescribeClustersResult.cc src/model/DescribeDeviceRequest.cc src/model/DescribeDeviceResult.cc src/model/DescribeDeviceChannelsRequest.cc @@ -364,6 +450,8 @@ set(vs_src src/model/DescribeGroupResult.cc src/model/DescribeGroupsRequest.cc src/model/DescribeGroupsResult.cc + src/model/DescribeNodeDevicesInfoRequest.cc + src/model/DescribeNodeDevicesInfoResult.cc src/model/DescribeParentPlatformRequest.cc src/model/DescribeParentPlatformResult.cc src/model/DescribeParentPlatformDevicesRequest.cc @@ -378,6 +466,8 @@ set(vs_src src/model/DescribePurchasedDevicesResult.cc src/model/DescribeRecordsRequest.cc src/model/DescribeRecordsResult.cc + src/model/DescribeRenderingDevicesRequest.cc + src/model/DescribeRenderingDevicesResult.cc src/model/DescribeStreamRequest.cc src/model/DescribeStreamResult.cc src/model/DescribeStreamURLRequest.cc @@ -424,6 +514,10 @@ set(vs_src src/model/DescribeVsDomainUvDataResult.cc src/model/DescribeVsPullStreamInfoConfigRequest.cc src/model/DescribeVsPullStreamInfoConfigResult.cc + src/model/DescribeVsStorageTrafficUsageDataRequest.cc + src/model/DescribeVsStorageTrafficUsageDataResult.cc + src/model/DescribeVsStorageUsageDataRequest.cc + src/model/DescribeVsStorageUsageDataResult.cc src/model/DescribeVsStreamsNotifyUrlConfigRequest.cc src/model/DescribeVsStreamsNotifyUrlConfigResult.cc src/model/DescribeVsStreamsOnlineListRequest.cc @@ -438,8 +532,18 @@ set(vs_src src/model/DescribeVsUserResourcePackageResult.cc src/model/ForbidVsStreamRequest.cc src/model/ForbidVsStreamResult.cc + src/model/GetBucketInfoRequest.cc + src/model/GetBucketInfoResult.cc src/model/GotoPresetRequest.cc src/model/GotoPresetResult.cc + src/model/ListBucketsRequest.cc + src/model/ListBucketsResult.cc + src/model/ListDeviceChannelsRequest.cc + src/model/ListDeviceChannelsResult.cc + src/model/ListDeviceRecordsRequest.cc + src/model/ListDeviceRecordsResult.cc + src/model/ListObjectsRequest.cc + src/model/ListObjectsResult.cc src/model/ModifyDeviceRequest.cc src/model/ModifyDeviceResult.cc src/model/ModifyDeviceAlarmRequest.cc @@ -456,6 +560,16 @@ set(vs_src src/model/ModifyParentPlatformResult.cc src/model/ModifyTemplateRequest.cc src/model/ModifyTemplateResult.cc + src/model/OpenVsServiceRequest.cc + src/model/OpenVsServiceResult.cc + src/model/OperateRenderingDevicesRequest.cc + src/model/OperateRenderingDevicesResult.cc + src/model/PrepareUploadRequest.cc + src/model/PrepareUploadResult.cc + src/model/PutBucketRequest.cc + src/model/PutBucketResult.cc + src/model/ResetRenderingDevicesRequest.cc + src/model/ResetRenderingDevicesResult.cc src/model/ResumeVsStreamRequest.cc src/model/ResumeVsStreamResult.cc src/model/SetPresetRequest.cc @@ -488,6 +602,8 @@ set(vs_src src/model/StopTransferStreamResult.cc src/model/SyncCatalogsRequest.cc src/model/SyncCatalogsResult.cc + src/model/SyncDeviceChannelsRequest.cc + src/model/SyncDeviceChannelsResult.cc src/model/UnbindDirectoryRequest.cc src/model/UnbindDirectoryResult.cc src/model/UnbindParentPlatformDeviceRequest.cc @@ -498,8 +614,16 @@ set(vs_src src/model/UnbindTemplateResult.cc src/model/UnlockDeviceRequest.cc src/model/UnlockDeviceResult.cc + src/model/UpdateBucketInfoRequest.cc + src/model/UpdateBucketInfoResult.cc + src/model/UpdateClusterRequest.cc + src/model/UpdateClusterResult.cc + src/model/UpdateRenderingDeviceSpecRequest.cc + src/model/UpdateRenderingDeviceSpecResult.cc src/model/UpdateVsPullStreamInfoConfigRequest.cc - src/model/UpdateVsPullStreamInfoConfigResult.cc ) + src/model/UpdateVsPullStreamInfoConfigResult.cc + src/model/UploadDeviceRecordRequest.cc + src/model/UploadDeviceRecordResult.cc ) add_library(vs ${LIB_TYPE} ${vs_public_header} diff --git a/vs/include/alibabacloud/vs/VsClient.h b/vs/include/alibabacloud/vs/VsClient.h index 5c208e972..26c12ad5f 100644 --- a/vs/include/alibabacloud/vs/VsClient.h +++ b/vs/include/alibabacloud/vs/VsClient.h @@ -22,6 +22,10 @@ #include #include #include "VsExport.h" +#include "model/AddDeviceRequest.h" +#include "model/AddDeviceResult.h" +#include "model/AddRenderingDeviceInternetPortsRequest.h" +#include "model/AddRenderingDeviceInternetPortsResult.h" #include "model/AddVsPullStreamInfoConfigRequest.h" #include "model/AddVsPullStreamInfoConfigResult.h" #include "model/BatchBindDirectoriesRequest.h" @@ -74,20 +78,30 @@ #include "model/ContinuousAdjustResult.h" #include "model/ContinuousMoveRequest.h" #include "model/ContinuousMoveResult.h" +#include "model/CreateClusterRequest.h" +#include "model/CreateClusterResult.h" #include "model/CreateDeviceRequest.h" #include "model/CreateDeviceResult.h" #include "model/CreateDeviceAlarmRequest.h" #include "model/CreateDeviceAlarmResult.h" +#include "model/CreateDeviceSnapshotRequest.h" +#include "model/CreateDeviceSnapshotResult.h" #include "model/CreateDirectoryRequest.h" #include "model/CreateDirectoryResult.h" #include "model/CreateGroupRequest.h" #include "model/CreateGroupResult.h" #include "model/CreateParentPlatformRequest.h" #include "model/CreateParentPlatformResult.h" +#include "model/CreateRenderingDeviceRequest.h" +#include "model/CreateRenderingDeviceResult.h" #include "model/CreateStreamSnapshotRequest.h" #include "model/CreateStreamSnapshotResult.h" #include "model/CreateTemplateRequest.h" #include "model/CreateTemplateResult.h" +#include "model/DeleteBucketRequest.h" +#include "model/DeleteBucketResult.h" +#include "model/DeleteClusterRequest.h" +#include "model/DeleteClusterResult.h" #include "model/DeleteDeviceRequest.h" #include "model/DeleteDeviceResult.h" #include "model/DeleteDirectoryRequest.h" @@ -98,6 +112,10 @@ #include "model/DeleteParentPlatformResult.h" #include "model/DeletePresetRequest.h" #include "model/DeletePresetResult.h" +#include "model/DeleteRenderingDeviceInternetPortsRequest.h" +#include "model/DeleteRenderingDeviceInternetPortsResult.h" +#include "model/DeleteRenderingDevicesRequest.h" +#include "model/DeleteRenderingDevicesResult.h" #include "model/DeleteTemplateRequest.h" #include "model/DeleteTemplateResult.h" #include "model/DeleteVsPullStreamInfoConfigRequest.h" @@ -106,6 +124,12 @@ #include "model/DeleteVsStreamsNotifyUrlConfigResult.h" #include "model/DescribeAccountStatRequest.h" #include "model/DescribeAccountStatResult.h" +#include "model/DescribeClusterRequest.h" +#include "model/DescribeClusterResult.h" +#include "model/DescribeClusterDevicesRequest.h" +#include "model/DescribeClusterDevicesResult.h" +#include "model/DescribeClustersRequest.h" +#include "model/DescribeClustersResult.h" #include "model/DescribeDeviceRequest.h" #include "model/DescribeDeviceResult.h" #include "model/DescribeDeviceChannelsRequest.h" @@ -124,6 +148,8 @@ #include "model/DescribeGroupResult.h" #include "model/DescribeGroupsRequest.h" #include "model/DescribeGroupsResult.h" +#include "model/DescribeNodeDevicesInfoRequest.h" +#include "model/DescribeNodeDevicesInfoResult.h" #include "model/DescribeParentPlatformRequest.h" #include "model/DescribeParentPlatformResult.h" #include "model/DescribeParentPlatformDevicesRequest.h" @@ -138,6 +164,8 @@ #include "model/DescribePurchasedDevicesResult.h" #include "model/DescribeRecordsRequest.h" #include "model/DescribeRecordsResult.h" +#include "model/DescribeRenderingDevicesRequest.h" +#include "model/DescribeRenderingDevicesResult.h" #include "model/DescribeStreamRequest.h" #include "model/DescribeStreamResult.h" #include "model/DescribeStreamURLRequest.h" @@ -184,6 +212,10 @@ #include "model/DescribeVsDomainUvDataResult.h" #include "model/DescribeVsPullStreamInfoConfigRequest.h" #include "model/DescribeVsPullStreamInfoConfigResult.h" +#include "model/DescribeVsStorageTrafficUsageDataRequest.h" +#include "model/DescribeVsStorageTrafficUsageDataResult.h" +#include "model/DescribeVsStorageUsageDataRequest.h" +#include "model/DescribeVsStorageUsageDataResult.h" #include "model/DescribeVsStreamsNotifyUrlConfigRequest.h" #include "model/DescribeVsStreamsNotifyUrlConfigResult.h" #include "model/DescribeVsStreamsOnlineListRequest.h" @@ -198,8 +230,18 @@ #include "model/DescribeVsUserResourcePackageResult.h" #include "model/ForbidVsStreamRequest.h" #include "model/ForbidVsStreamResult.h" +#include "model/GetBucketInfoRequest.h" +#include "model/GetBucketInfoResult.h" #include "model/GotoPresetRequest.h" #include "model/GotoPresetResult.h" +#include "model/ListBucketsRequest.h" +#include "model/ListBucketsResult.h" +#include "model/ListDeviceChannelsRequest.h" +#include "model/ListDeviceChannelsResult.h" +#include "model/ListDeviceRecordsRequest.h" +#include "model/ListDeviceRecordsResult.h" +#include "model/ListObjectsRequest.h" +#include "model/ListObjectsResult.h" #include "model/ModifyDeviceRequest.h" #include "model/ModifyDeviceResult.h" #include "model/ModifyDeviceAlarmRequest.h" @@ -216,6 +258,16 @@ #include "model/ModifyParentPlatformResult.h" #include "model/ModifyTemplateRequest.h" #include "model/ModifyTemplateResult.h" +#include "model/OpenVsServiceRequest.h" +#include "model/OpenVsServiceResult.h" +#include "model/OperateRenderingDevicesRequest.h" +#include "model/OperateRenderingDevicesResult.h" +#include "model/PrepareUploadRequest.h" +#include "model/PrepareUploadResult.h" +#include "model/PutBucketRequest.h" +#include "model/PutBucketResult.h" +#include "model/ResetRenderingDevicesRequest.h" +#include "model/ResetRenderingDevicesResult.h" #include "model/ResumeVsStreamRequest.h" #include "model/ResumeVsStreamResult.h" #include "model/SetPresetRequest.h" @@ -248,6 +300,8 @@ #include "model/StopTransferStreamResult.h" #include "model/SyncCatalogsRequest.h" #include "model/SyncCatalogsResult.h" +#include "model/SyncDeviceChannelsRequest.h" +#include "model/SyncDeviceChannelsResult.h" #include "model/UnbindDirectoryRequest.h" #include "model/UnbindDirectoryResult.h" #include "model/UnbindParentPlatformDeviceRequest.h" @@ -258,8 +312,16 @@ #include "model/UnbindTemplateResult.h" #include "model/UnlockDeviceRequest.h" #include "model/UnlockDeviceResult.h" +#include "model/UpdateBucketInfoRequest.h" +#include "model/UpdateBucketInfoResult.h" +#include "model/UpdateClusterRequest.h" +#include "model/UpdateClusterResult.h" +#include "model/UpdateRenderingDeviceSpecRequest.h" +#include "model/UpdateRenderingDeviceSpecResult.h" #include "model/UpdateVsPullStreamInfoConfigRequest.h" #include "model/UpdateVsPullStreamInfoConfigResult.h" +#include "model/UploadDeviceRecordRequest.h" +#include "model/UploadDeviceRecordResult.h" namespace AlibabaCloud @@ -269,6 +331,12 @@ namespace AlibabaCloud class ALIBABACLOUD_VS_EXPORT VsClient : public RpcServiceClient { public: + typedef Outcome AddDeviceOutcome; + typedef std::future AddDeviceOutcomeCallable; + typedef std::function&)> AddDeviceAsyncHandler; + typedef Outcome AddRenderingDeviceInternetPortsOutcome; + typedef std::future AddRenderingDeviceInternetPortsOutcomeCallable; + typedef std::function&)> AddRenderingDeviceInternetPortsAsyncHandler; typedef Outcome AddVsPullStreamInfoConfigOutcome; typedef std::future AddVsPullStreamInfoConfigOutcomeCallable; typedef std::function&)> AddVsPullStreamInfoConfigAsyncHandler; @@ -347,12 +415,18 @@ namespace AlibabaCloud typedef Outcome ContinuousMoveOutcome; typedef std::future ContinuousMoveOutcomeCallable; typedef std::function&)> ContinuousMoveAsyncHandler; + typedef Outcome CreateClusterOutcome; + typedef std::future CreateClusterOutcomeCallable; + typedef std::function&)> CreateClusterAsyncHandler; typedef Outcome CreateDeviceOutcome; typedef std::future CreateDeviceOutcomeCallable; typedef std::function&)> CreateDeviceAsyncHandler; typedef Outcome CreateDeviceAlarmOutcome; typedef std::future CreateDeviceAlarmOutcomeCallable; typedef std::function&)> CreateDeviceAlarmAsyncHandler; + typedef Outcome CreateDeviceSnapshotOutcome; + typedef std::future CreateDeviceSnapshotOutcomeCallable; + typedef std::function&)> CreateDeviceSnapshotAsyncHandler; typedef Outcome CreateDirectoryOutcome; typedef std::future CreateDirectoryOutcomeCallable; typedef std::function&)> CreateDirectoryAsyncHandler; @@ -362,12 +436,21 @@ namespace AlibabaCloud typedef Outcome CreateParentPlatformOutcome; typedef std::future CreateParentPlatformOutcomeCallable; typedef std::function&)> CreateParentPlatformAsyncHandler; + typedef Outcome CreateRenderingDeviceOutcome; + typedef std::future CreateRenderingDeviceOutcomeCallable; + typedef std::function&)> CreateRenderingDeviceAsyncHandler; typedef Outcome CreateStreamSnapshotOutcome; typedef std::future CreateStreamSnapshotOutcomeCallable; typedef std::function&)> CreateStreamSnapshotAsyncHandler; typedef Outcome CreateTemplateOutcome; typedef std::future CreateTemplateOutcomeCallable; typedef std::function&)> CreateTemplateAsyncHandler; + typedef Outcome DeleteBucketOutcome; + typedef std::future DeleteBucketOutcomeCallable; + typedef std::function&)> DeleteBucketAsyncHandler; + typedef Outcome DeleteClusterOutcome; + typedef std::future DeleteClusterOutcomeCallable; + typedef std::function&)> DeleteClusterAsyncHandler; typedef Outcome DeleteDeviceOutcome; typedef std::future DeleteDeviceOutcomeCallable; typedef std::function&)> DeleteDeviceAsyncHandler; @@ -383,6 +466,12 @@ namespace AlibabaCloud typedef Outcome DeletePresetOutcome; typedef std::future DeletePresetOutcomeCallable; typedef std::function&)> DeletePresetAsyncHandler; + typedef Outcome DeleteRenderingDeviceInternetPortsOutcome; + typedef std::future DeleteRenderingDeviceInternetPortsOutcomeCallable; + typedef std::function&)> DeleteRenderingDeviceInternetPortsAsyncHandler; + typedef Outcome DeleteRenderingDevicesOutcome; + typedef std::future DeleteRenderingDevicesOutcomeCallable; + typedef std::function&)> DeleteRenderingDevicesAsyncHandler; typedef Outcome DeleteTemplateOutcome; typedef std::future DeleteTemplateOutcomeCallable; typedef std::function&)> DeleteTemplateAsyncHandler; @@ -395,6 +484,15 @@ namespace AlibabaCloud typedef Outcome DescribeAccountStatOutcome; typedef std::future DescribeAccountStatOutcomeCallable; typedef std::function&)> DescribeAccountStatAsyncHandler; + typedef Outcome DescribeClusterOutcome; + typedef std::future DescribeClusterOutcomeCallable; + typedef std::function&)> DescribeClusterAsyncHandler; + typedef Outcome DescribeClusterDevicesOutcome; + typedef std::future DescribeClusterDevicesOutcomeCallable; + typedef std::function&)> DescribeClusterDevicesAsyncHandler; + typedef Outcome DescribeClustersOutcome; + typedef std::future DescribeClustersOutcomeCallable; + typedef std::function&)> DescribeClustersAsyncHandler; typedef Outcome DescribeDeviceOutcome; typedef std::future DescribeDeviceOutcomeCallable; typedef std::function&)> DescribeDeviceAsyncHandler; @@ -422,6 +520,9 @@ namespace AlibabaCloud typedef Outcome DescribeGroupsOutcome; typedef std::future DescribeGroupsOutcomeCallable; typedef std::function&)> DescribeGroupsAsyncHandler; + typedef Outcome DescribeNodeDevicesInfoOutcome; + typedef std::future DescribeNodeDevicesInfoOutcomeCallable; + typedef std::function&)> DescribeNodeDevicesInfoAsyncHandler; typedef Outcome DescribeParentPlatformOutcome; typedef std::future DescribeParentPlatformOutcomeCallable; typedef std::function&)> DescribeParentPlatformAsyncHandler; @@ -443,6 +544,9 @@ namespace AlibabaCloud typedef Outcome DescribeRecordsOutcome; typedef std::future DescribeRecordsOutcomeCallable; typedef std::function&)> DescribeRecordsAsyncHandler; + typedef Outcome DescribeRenderingDevicesOutcome; + typedef std::future DescribeRenderingDevicesOutcomeCallable; + typedef std::function&)> DescribeRenderingDevicesAsyncHandler; typedef Outcome DescribeStreamOutcome; typedef std::future DescribeStreamOutcomeCallable; typedef std::function&)> DescribeStreamAsyncHandler; @@ -512,6 +616,12 @@ namespace AlibabaCloud typedef Outcome DescribeVsPullStreamInfoConfigOutcome; typedef std::future DescribeVsPullStreamInfoConfigOutcomeCallable; typedef std::function&)> DescribeVsPullStreamInfoConfigAsyncHandler; + typedef Outcome DescribeVsStorageTrafficUsageDataOutcome; + typedef std::future DescribeVsStorageTrafficUsageDataOutcomeCallable; + typedef std::function&)> DescribeVsStorageTrafficUsageDataAsyncHandler; + typedef Outcome DescribeVsStorageUsageDataOutcome; + typedef std::future DescribeVsStorageUsageDataOutcomeCallable; + typedef std::function&)> DescribeVsStorageUsageDataAsyncHandler; typedef Outcome DescribeVsStreamsNotifyUrlConfigOutcome; typedef std::future DescribeVsStreamsNotifyUrlConfigOutcomeCallable; typedef std::function&)> DescribeVsStreamsNotifyUrlConfigAsyncHandler; @@ -533,9 +643,24 @@ namespace AlibabaCloud typedef Outcome ForbidVsStreamOutcome; typedef std::future ForbidVsStreamOutcomeCallable; typedef std::function&)> ForbidVsStreamAsyncHandler; + typedef Outcome GetBucketInfoOutcome; + typedef std::future GetBucketInfoOutcomeCallable; + typedef std::function&)> GetBucketInfoAsyncHandler; typedef Outcome GotoPresetOutcome; typedef std::future GotoPresetOutcomeCallable; typedef std::function&)> GotoPresetAsyncHandler; + typedef Outcome ListBucketsOutcome; + typedef std::future ListBucketsOutcomeCallable; + typedef std::function&)> ListBucketsAsyncHandler; + typedef Outcome ListDeviceChannelsOutcome; + typedef std::future ListDeviceChannelsOutcomeCallable; + typedef std::function&)> ListDeviceChannelsAsyncHandler; + typedef Outcome ListDeviceRecordsOutcome; + typedef std::future ListDeviceRecordsOutcomeCallable; + typedef std::function&)> ListDeviceRecordsAsyncHandler; + typedef Outcome ListObjectsOutcome; + typedef std::future ListObjectsOutcomeCallable; + typedef std::function&)> ListObjectsAsyncHandler; typedef Outcome ModifyDeviceOutcome; typedef std::future ModifyDeviceOutcomeCallable; typedef std::function&)> ModifyDeviceAsyncHandler; @@ -560,6 +685,21 @@ namespace AlibabaCloud typedef Outcome ModifyTemplateOutcome; typedef std::future ModifyTemplateOutcomeCallable; typedef std::function&)> ModifyTemplateAsyncHandler; + typedef Outcome OpenVsServiceOutcome; + typedef std::future OpenVsServiceOutcomeCallable; + typedef std::function&)> OpenVsServiceAsyncHandler; + typedef Outcome OperateRenderingDevicesOutcome; + typedef std::future OperateRenderingDevicesOutcomeCallable; + typedef std::function&)> OperateRenderingDevicesAsyncHandler; + typedef Outcome PrepareUploadOutcome; + typedef std::future PrepareUploadOutcomeCallable; + typedef std::function&)> PrepareUploadAsyncHandler; + typedef Outcome PutBucketOutcome; + typedef std::future PutBucketOutcomeCallable; + typedef std::function&)> PutBucketAsyncHandler; + typedef Outcome ResetRenderingDevicesOutcome; + typedef std::future ResetRenderingDevicesOutcomeCallable; + typedef std::function&)> ResetRenderingDevicesAsyncHandler; typedef Outcome ResumeVsStreamOutcome; typedef std::future ResumeVsStreamOutcomeCallable; typedef std::function&)> ResumeVsStreamAsyncHandler; @@ -608,6 +748,9 @@ namespace AlibabaCloud typedef Outcome SyncCatalogsOutcome; typedef std::future SyncCatalogsOutcomeCallable; typedef std::function&)> SyncCatalogsAsyncHandler; + typedef Outcome SyncDeviceChannelsOutcome; + typedef std::future SyncDeviceChannelsOutcomeCallable; + typedef std::function&)> SyncDeviceChannelsAsyncHandler; typedef Outcome UnbindDirectoryOutcome; typedef std::future UnbindDirectoryOutcomeCallable; typedef std::function&)> UnbindDirectoryAsyncHandler; @@ -623,14 +766,32 @@ namespace AlibabaCloud typedef Outcome UnlockDeviceOutcome; typedef std::future UnlockDeviceOutcomeCallable; typedef std::function&)> UnlockDeviceAsyncHandler; + typedef Outcome UpdateBucketInfoOutcome; + typedef std::future UpdateBucketInfoOutcomeCallable; + typedef std::function&)> UpdateBucketInfoAsyncHandler; + typedef Outcome UpdateClusterOutcome; + typedef std::future UpdateClusterOutcomeCallable; + typedef std::function&)> UpdateClusterAsyncHandler; + typedef Outcome UpdateRenderingDeviceSpecOutcome; + typedef std::future UpdateRenderingDeviceSpecOutcomeCallable; + typedef std::function&)> UpdateRenderingDeviceSpecAsyncHandler; typedef Outcome UpdateVsPullStreamInfoConfigOutcome; typedef std::future UpdateVsPullStreamInfoConfigOutcomeCallable; typedef std::function&)> UpdateVsPullStreamInfoConfigAsyncHandler; + typedef Outcome UploadDeviceRecordOutcome; + typedef std::future UploadDeviceRecordOutcomeCallable; + typedef std::function&)> UploadDeviceRecordAsyncHandler; VsClient(const Credentials &credentials, const ClientConfiguration &configuration); VsClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); VsClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~VsClient(); + AddDeviceOutcome addDevice(const Model::AddDeviceRequest &request)const; + void addDeviceAsync(const Model::AddDeviceRequest& request, const AddDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddDeviceOutcomeCallable addDeviceCallable(const Model::AddDeviceRequest& request) const; + AddRenderingDeviceInternetPortsOutcome addRenderingDeviceInternetPorts(const Model::AddRenderingDeviceInternetPortsRequest &request)const; + void addRenderingDeviceInternetPortsAsync(const Model::AddRenderingDeviceInternetPortsRequest& request, const AddRenderingDeviceInternetPortsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddRenderingDeviceInternetPortsOutcomeCallable addRenderingDeviceInternetPortsCallable(const Model::AddRenderingDeviceInternetPortsRequest& request) const; AddVsPullStreamInfoConfigOutcome addVsPullStreamInfoConfig(const Model::AddVsPullStreamInfoConfigRequest &request)const; void addVsPullStreamInfoConfigAsync(const Model::AddVsPullStreamInfoConfigRequest& request, const AddVsPullStreamInfoConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddVsPullStreamInfoConfigOutcomeCallable addVsPullStreamInfoConfigCallable(const Model::AddVsPullStreamInfoConfigRequest& request) const; @@ -709,12 +870,18 @@ namespace AlibabaCloud ContinuousMoveOutcome continuousMove(const Model::ContinuousMoveRequest &request)const; void continuousMoveAsync(const Model::ContinuousMoveRequest& request, const ContinuousMoveAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ContinuousMoveOutcomeCallable continuousMoveCallable(const Model::ContinuousMoveRequest& request) const; + CreateClusterOutcome createCluster(const Model::CreateClusterRequest &request)const; + void createClusterAsync(const Model::CreateClusterRequest& request, const CreateClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateClusterOutcomeCallable createClusterCallable(const Model::CreateClusterRequest& request) const; CreateDeviceOutcome createDevice(const Model::CreateDeviceRequest &request)const; void createDeviceAsync(const Model::CreateDeviceRequest& request, const CreateDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateDeviceOutcomeCallable createDeviceCallable(const Model::CreateDeviceRequest& request) const; CreateDeviceAlarmOutcome createDeviceAlarm(const Model::CreateDeviceAlarmRequest &request)const; void createDeviceAlarmAsync(const Model::CreateDeviceAlarmRequest& request, const CreateDeviceAlarmAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateDeviceAlarmOutcomeCallable createDeviceAlarmCallable(const Model::CreateDeviceAlarmRequest& request) const; + CreateDeviceSnapshotOutcome createDeviceSnapshot(const Model::CreateDeviceSnapshotRequest &request)const; + void createDeviceSnapshotAsync(const Model::CreateDeviceSnapshotRequest& request, const CreateDeviceSnapshotAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDeviceSnapshotOutcomeCallable createDeviceSnapshotCallable(const Model::CreateDeviceSnapshotRequest& request) const; CreateDirectoryOutcome createDirectory(const Model::CreateDirectoryRequest &request)const; void createDirectoryAsync(const Model::CreateDirectoryRequest& request, const CreateDirectoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateDirectoryOutcomeCallable createDirectoryCallable(const Model::CreateDirectoryRequest& request) const; @@ -724,12 +891,21 @@ namespace AlibabaCloud CreateParentPlatformOutcome createParentPlatform(const Model::CreateParentPlatformRequest &request)const; void createParentPlatformAsync(const Model::CreateParentPlatformRequest& request, const CreateParentPlatformAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateParentPlatformOutcomeCallable createParentPlatformCallable(const Model::CreateParentPlatformRequest& request) const; + CreateRenderingDeviceOutcome createRenderingDevice(const Model::CreateRenderingDeviceRequest &request)const; + void createRenderingDeviceAsync(const Model::CreateRenderingDeviceRequest& request, const CreateRenderingDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateRenderingDeviceOutcomeCallable createRenderingDeviceCallable(const Model::CreateRenderingDeviceRequest& request) const; CreateStreamSnapshotOutcome createStreamSnapshot(const Model::CreateStreamSnapshotRequest &request)const; void createStreamSnapshotAsync(const Model::CreateStreamSnapshotRequest& request, const CreateStreamSnapshotAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateStreamSnapshotOutcomeCallable createStreamSnapshotCallable(const Model::CreateStreamSnapshotRequest& request) const; CreateTemplateOutcome createTemplate(const Model::CreateTemplateRequest &request)const; void createTemplateAsync(const Model::CreateTemplateRequest& request, const CreateTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateTemplateOutcomeCallable createTemplateCallable(const Model::CreateTemplateRequest& request) const; + DeleteBucketOutcome deleteBucket(const Model::DeleteBucketRequest &request)const; + void deleteBucketAsync(const Model::DeleteBucketRequest& request, const DeleteBucketAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteBucketOutcomeCallable deleteBucketCallable(const Model::DeleteBucketRequest& request) const; + DeleteClusterOutcome deleteCluster(const Model::DeleteClusterRequest &request)const; + void deleteClusterAsync(const Model::DeleteClusterRequest& request, const DeleteClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteClusterOutcomeCallable deleteClusterCallable(const Model::DeleteClusterRequest& request) const; DeleteDeviceOutcome deleteDevice(const Model::DeleteDeviceRequest &request)const; void deleteDeviceAsync(const Model::DeleteDeviceRequest& request, const DeleteDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteDeviceOutcomeCallable deleteDeviceCallable(const Model::DeleteDeviceRequest& request) const; @@ -745,6 +921,12 @@ namespace AlibabaCloud DeletePresetOutcome deletePreset(const Model::DeletePresetRequest &request)const; void deletePresetAsync(const Model::DeletePresetRequest& request, const DeletePresetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeletePresetOutcomeCallable deletePresetCallable(const Model::DeletePresetRequest& request) const; + DeleteRenderingDeviceInternetPortsOutcome deleteRenderingDeviceInternetPorts(const Model::DeleteRenderingDeviceInternetPortsRequest &request)const; + void deleteRenderingDeviceInternetPortsAsync(const Model::DeleteRenderingDeviceInternetPortsRequest& request, const DeleteRenderingDeviceInternetPortsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteRenderingDeviceInternetPortsOutcomeCallable deleteRenderingDeviceInternetPortsCallable(const Model::DeleteRenderingDeviceInternetPortsRequest& request) const; + DeleteRenderingDevicesOutcome deleteRenderingDevices(const Model::DeleteRenderingDevicesRequest &request)const; + void deleteRenderingDevicesAsync(const Model::DeleteRenderingDevicesRequest& request, const DeleteRenderingDevicesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteRenderingDevicesOutcomeCallable deleteRenderingDevicesCallable(const Model::DeleteRenderingDevicesRequest& request) const; DeleteTemplateOutcome deleteTemplate(const Model::DeleteTemplateRequest &request)const; void deleteTemplateAsync(const Model::DeleteTemplateRequest& request, const DeleteTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteTemplateOutcomeCallable deleteTemplateCallable(const Model::DeleteTemplateRequest& request) const; @@ -757,6 +939,15 @@ namespace AlibabaCloud DescribeAccountStatOutcome describeAccountStat(const Model::DescribeAccountStatRequest &request)const; void describeAccountStatAsync(const Model::DescribeAccountStatRequest& request, const DescribeAccountStatAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAccountStatOutcomeCallable describeAccountStatCallable(const Model::DescribeAccountStatRequest& request) const; + DescribeClusterOutcome describeCluster(const Model::DescribeClusterRequest &request)const; + void describeClusterAsync(const Model::DescribeClusterRequest& request, const DescribeClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeClusterOutcomeCallable describeClusterCallable(const Model::DescribeClusterRequest& request) const; + DescribeClusterDevicesOutcome describeClusterDevices(const Model::DescribeClusterDevicesRequest &request)const; + void describeClusterDevicesAsync(const Model::DescribeClusterDevicesRequest& request, const DescribeClusterDevicesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeClusterDevicesOutcomeCallable describeClusterDevicesCallable(const Model::DescribeClusterDevicesRequest& request) const; + DescribeClustersOutcome describeClusters(const Model::DescribeClustersRequest &request)const; + void describeClustersAsync(const Model::DescribeClustersRequest& request, const DescribeClustersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeClustersOutcomeCallable describeClustersCallable(const Model::DescribeClustersRequest& request) const; DescribeDeviceOutcome describeDevice(const Model::DescribeDeviceRequest &request)const; void describeDeviceAsync(const Model::DescribeDeviceRequest& request, const DescribeDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDeviceOutcomeCallable describeDeviceCallable(const Model::DescribeDeviceRequest& request) const; @@ -784,6 +975,9 @@ namespace AlibabaCloud DescribeGroupsOutcome describeGroups(const Model::DescribeGroupsRequest &request)const; void describeGroupsAsync(const Model::DescribeGroupsRequest& request, const DescribeGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeGroupsOutcomeCallable describeGroupsCallable(const Model::DescribeGroupsRequest& request) const; + DescribeNodeDevicesInfoOutcome describeNodeDevicesInfo(const Model::DescribeNodeDevicesInfoRequest &request)const; + void describeNodeDevicesInfoAsync(const Model::DescribeNodeDevicesInfoRequest& request, const DescribeNodeDevicesInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeNodeDevicesInfoOutcomeCallable describeNodeDevicesInfoCallable(const Model::DescribeNodeDevicesInfoRequest& request) const; DescribeParentPlatformOutcome describeParentPlatform(const Model::DescribeParentPlatformRequest &request)const; void describeParentPlatformAsync(const Model::DescribeParentPlatformRequest& request, const DescribeParentPlatformAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeParentPlatformOutcomeCallable describeParentPlatformCallable(const Model::DescribeParentPlatformRequest& request) const; @@ -805,6 +999,9 @@ namespace AlibabaCloud DescribeRecordsOutcome describeRecords(const Model::DescribeRecordsRequest &request)const; void describeRecordsAsync(const Model::DescribeRecordsRequest& request, const DescribeRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRecordsOutcomeCallable describeRecordsCallable(const Model::DescribeRecordsRequest& request) const; + DescribeRenderingDevicesOutcome describeRenderingDevices(const Model::DescribeRenderingDevicesRequest &request)const; + void describeRenderingDevicesAsync(const Model::DescribeRenderingDevicesRequest& request, const DescribeRenderingDevicesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRenderingDevicesOutcomeCallable describeRenderingDevicesCallable(const Model::DescribeRenderingDevicesRequest& request) const; DescribeStreamOutcome describeStream(const Model::DescribeStreamRequest &request)const; void describeStreamAsync(const Model::DescribeStreamRequest& request, const DescribeStreamAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeStreamOutcomeCallable describeStreamCallable(const Model::DescribeStreamRequest& request) const; @@ -874,6 +1071,12 @@ namespace AlibabaCloud DescribeVsPullStreamInfoConfigOutcome describeVsPullStreamInfoConfig(const Model::DescribeVsPullStreamInfoConfigRequest &request)const; void describeVsPullStreamInfoConfigAsync(const Model::DescribeVsPullStreamInfoConfigRequest& request, const DescribeVsPullStreamInfoConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeVsPullStreamInfoConfigOutcomeCallable describeVsPullStreamInfoConfigCallable(const Model::DescribeVsPullStreamInfoConfigRequest& request) const; + DescribeVsStorageTrafficUsageDataOutcome describeVsStorageTrafficUsageData(const Model::DescribeVsStorageTrafficUsageDataRequest &request)const; + void describeVsStorageTrafficUsageDataAsync(const Model::DescribeVsStorageTrafficUsageDataRequest& request, const DescribeVsStorageTrafficUsageDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVsStorageTrafficUsageDataOutcomeCallable describeVsStorageTrafficUsageDataCallable(const Model::DescribeVsStorageTrafficUsageDataRequest& request) const; + DescribeVsStorageUsageDataOutcome describeVsStorageUsageData(const Model::DescribeVsStorageUsageDataRequest &request)const; + void describeVsStorageUsageDataAsync(const Model::DescribeVsStorageUsageDataRequest& request, const DescribeVsStorageUsageDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVsStorageUsageDataOutcomeCallable describeVsStorageUsageDataCallable(const Model::DescribeVsStorageUsageDataRequest& request) const; DescribeVsStreamsNotifyUrlConfigOutcome describeVsStreamsNotifyUrlConfig(const Model::DescribeVsStreamsNotifyUrlConfigRequest &request)const; void describeVsStreamsNotifyUrlConfigAsync(const Model::DescribeVsStreamsNotifyUrlConfigRequest& request, const DescribeVsStreamsNotifyUrlConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeVsStreamsNotifyUrlConfigOutcomeCallable describeVsStreamsNotifyUrlConfigCallable(const Model::DescribeVsStreamsNotifyUrlConfigRequest& request) const; @@ -895,9 +1098,24 @@ namespace AlibabaCloud ForbidVsStreamOutcome forbidVsStream(const Model::ForbidVsStreamRequest &request)const; void forbidVsStreamAsync(const Model::ForbidVsStreamRequest& request, const ForbidVsStreamAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ForbidVsStreamOutcomeCallable forbidVsStreamCallable(const Model::ForbidVsStreamRequest& request) const; + GetBucketInfoOutcome getBucketInfo(const Model::GetBucketInfoRequest &request)const; + void getBucketInfoAsync(const Model::GetBucketInfoRequest& request, const GetBucketInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetBucketInfoOutcomeCallable getBucketInfoCallable(const Model::GetBucketInfoRequest& request) const; GotoPresetOutcome gotoPreset(const Model::GotoPresetRequest &request)const; void gotoPresetAsync(const Model::GotoPresetRequest& request, const GotoPresetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GotoPresetOutcomeCallable gotoPresetCallable(const Model::GotoPresetRequest& request) const; + ListBucketsOutcome listBuckets(const Model::ListBucketsRequest &request)const; + void listBucketsAsync(const Model::ListBucketsRequest& request, const ListBucketsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListBucketsOutcomeCallable listBucketsCallable(const Model::ListBucketsRequest& request) const; + ListDeviceChannelsOutcome listDeviceChannels(const Model::ListDeviceChannelsRequest &request)const; + void listDeviceChannelsAsync(const Model::ListDeviceChannelsRequest& request, const ListDeviceChannelsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDeviceChannelsOutcomeCallable listDeviceChannelsCallable(const Model::ListDeviceChannelsRequest& request) const; + ListDeviceRecordsOutcome listDeviceRecords(const Model::ListDeviceRecordsRequest &request)const; + void listDeviceRecordsAsync(const Model::ListDeviceRecordsRequest& request, const ListDeviceRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDeviceRecordsOutcomeCallable listDeviceRecordsCallable(const Model::ListDeviceRecordsRequest& request) const; + ListObjectsOutcome listObjects(const Model::ListObjectsRequest &request)const; + void listObjectsAsync(const Model::ListObjectsRequest& request, const ListObjectsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListObjectsOutcomeCallable listObjectsCallable(const Model::ListObjectsRequest& request) const; ModifyDeviceOutcome modifyDevice(const Model::ModifyDeviceRequest &request)const; void modifyDeviceAsync(const Model::ModifyDeviceRequest& request, const ModifyDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDeviceOutcomeCallable modifyDeviceCallable(const Model::ModifyDeviceRequest& request) const; @@ -922,6 +1140,21 @@ namespace AlibabaCloud ModifyTemplateOutcome modifyTemplate(const Model::ModifyTemplateRequest &request)const; void modifyTemplateAsync(const Model::ModifyTemplateRequest& request, const ModifyTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyTemplateOutcomeCallable modifyTemplateCallable(const Model::ModifyTemplateRequest& request) const; + OpenVsServiceOutcome openVsService(const Model::OpenVsServiceRequest &request)const; + void openVsServiceAsync(const Model::OpenVsServiceRequest& request, const OpenVsServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OpenVsServiceOutcomeCallable openVsServiceCallable(const Model::OpenVsServiceRequest& request) const; + OperateRenderingDevicesOutcome operateRenderingDevices(const Model::OperateRenderingDevicesRequest &request)const; + void operateRenderingDevicesAsync(const Model::OperateRenderingDevicesRequest& request, const OperateRenderingDevicesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OperateRenderingDevicesOutcomeCallable operateRenderingDevicesCallable(const Model::OperateRenderingDevicesRequest& request) const; + PrepareUploadOutcome prepareUpload(const Model::PrepareUploadRequest &request)const; + void prepareUploadAsync(const Model::PrepareUploadRequest& request, const PrepareUploadAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PrepareUploadOutcomeCallable prepareUploadCallable(const Model::PrepareUploadRequest& request) const; + PutBucketOutcome putBucket(const Model::PutBucketRequest &request)const; + void putBucketAsync(const Model::PutBucketRequest& request, const PutBucketAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PutBucketOutcomeCallable putBucketCallable(const Model::PutBucketRequest& request) const; + ResetRenderingDevicesOutcome resetRenderingDevices(const Model::ResetRenderingDevicesRequest &request)const; + void resetRenderingDevicesAsync(const Model::ResetRenderingDevicesRequest& request, const ResetRenderingDevicesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResetRenderingDevicesOutcomeCallable resetRenderingDevicesCallable(const Model::ResetRenderingDevicesRequest& request) const; ResumeVsStreamOutcome resumeVsStream(const Model::ResumeVsStreamRequest &request)const; void resumeVsStreamAsync(const Model::ResumeVsStreamRequest& request, const ResumeVsStreamAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ResumeVsStreamOutcomeCallable resumeVsStreamCallable(const Model::ResumeVsStreamRequest& request) const; @@ -970,6 +1203,9 @@ namespace AlibabaCloud SyncCatalogsOutcome syncCatalogs(const Model::SyncCatalogsRequest &request)const; void syncCatalogsAsync(const Model::SyncCatalogsRequest& request, const SyncCatalogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SyncCatalogsOutcomeCallable syncCatalogsCallable(const Model::SyncCatalogsRequest& request) const; + SyncDeviceChannelsOutcome syncDeviceChannels(const Model::SyncDeviceChannelsRequest &request)const; + void syncDeviceChannelsAsync(const Model::SyncDeviceChannelsRequest& request, const SyncDeviceChannelsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SyncDeviceChannelsOutcomeCallable syncDeviceChannelsCallable(const Model::SyncDeviceChannelsRequest& request) const; UnbindDirectoryOutcome unbindDirectory(const Model::UnbindDirectoryRequest &request)const; void unbindDirectoryAsync(const Model::UnbindDirectoryRequest& request, const UnbindDirectoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UnbindDirectoryOutcomeCallable unbindDirectoryCallable(const Model::UnbindDirectoryRequest& request) const; @@ -985,9 +1221,21 @@ namespace AlibabaCloud UnlockDeviceOutcome unlockDevice(const Model::UnlockDeviceRequest &request)const; void unlockDeviceAsync(const Model::UnlockDeviceRequest& request, const UnlockDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UnlockDeviceOutcomeCallable unlockDeviceCallable(const Model::UnlockDeviceRequest& request) const; + UpdateBucketInfoOutcome updateBucketInfo(const Model::UpdateBucketInfoRequest &request)const; + void updateBucketInfoAsync(const Model::UpdateBucketInfoRequest& request, const UpdateBucketInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateBucketInfoOutcomeCallable updateBucketInfoCallable(const Model::UpdateBucketInfoRequest& request) const; + UpdateClusterOutcome updateCluster(const Model::UpdateClusterRequest &request)const; + void updateClusterAsync(const Model::UpdateClusterRequest& request, const UpdateClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateClusterOutcomeCallable updateClusterCallable(const Model::UpdateClusterRequest& request) const; + UpdateRenderingDeviceSpecOutcome updateRenderingDeviceSpec(const Model::UpdateRenderingDeviceSpecRequest &request)const; + void updateRenderingDeviceSpecAsync(const Model::UpdateRenderingDeviceSpecRequest& request, const UpdateRenderingDeviceSpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateRenderingDeviceSpecOutcomeCallable updateRenderingDeviceSpecCallable(const Model::UpdateRenderingDeviceSpecRequest& request) const; UpdateVsPullStreamInfoConfigOutcome updateVsPullStreamInfoConfig(const Model::UpdateVsPullStreamInfoConfigRequest &request)const; void updateVsPullStreamInfoConfigAsync(const Model::UpdateVsPullStreamInfoConfigRequest& request, const UpdateVsPullStreamInfoConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateVsPullStreamInfoConfigOutcomeCallable updateVsPullStreamInfoConfigCallable(const Model::UpdateVsPullStreamInfoConfigRequest& request) const; + UploadDeviceRecordOutcome uploadDeviceRecord(const Model::UploadDeviceRecordRequest &request)const; + void uploadDeviceRecordAsync(const Model::UploadDeviceRecordRequest& request, const UploadDeviceRecordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UploadDeviceRecordOutcomeCallable uploadDeviceRecordCallable(const Model::UploadDeviceRecordRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/vs/include/alibabacloud/vs/model/AddDeviceRequest.h b/vs/include/alibabacloud/vs/model/AddDeviceRequest.h new file mode 100644 index 000000000..3d2170ec8 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/AddDeviceRequest.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_VS_MODEL_ADDDEVICEREQUEST_H_ +#define ALIBABACLOUD_VS_MODEL_ADDDEVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT AddDeviceRequest : public RpcServiceRequest + { + + public: + AddDeviceRequest(); + ~AddDeviceRequest(); + + std::string getProtocol()const; + void setProtocol(const std::string& protocol); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getConfig()const; + void setConfig(const std::string& config); + + private: + std::string protocol_; + std::string showLog_; + std::string groupId_; + long ownerId_; + std::string config_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_ADDDEVICEREQUEST_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/AddDeviceResult.h b/vs/include/alibabacloud/vs/model/AddDeviceResult.h new file mode 100644 index 000000000..f28c7f2be --- /dev/null +++ b/vs/include/alibabacloud/vs/model/AddDeviceResult.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_VS_MODEL_ADDDEVICERESULT_H_ +#define ALIBABACLOUD_VS_MODEL_ADDDEVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT AddDeviceResult : public ServiceResult + { + public: + + + AddDeviceResult(); + explicit AddDeviceResult(const std::string &payload); + ~AddDeviceResult(); + std::string getId()const; + + protected: + void parse(const std::string &payload); + private: + std::string id_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_ADDDEVICERESULT_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/AddRenderingDeviceInternetPortsRequest.h b/vs/include/alibabacloud/vs/model/AddRenderingDeviceInternetPortsRequest.h new file mode 100644 index 000000000..7ba1b0b70 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/AddRenderingDeviceInternetPortsRequest.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_VS_MODEL_ADDRENDERINGDEVICEINTERNETPORTSREQUEST_H_ +#define ALIBABACLOUD_VS_MODEL_ADDRENDERINGDEVICEINTERNETPORTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT AddRenderingDeviceInternetPortsRequest : public RpcServiceRequest + { + + public: + AddRenderingDeviceInternetPortsRequest(); + ~AddRenderingDeviceInternetPortsRequest(); + + std::string getISP()const; + void setISP(const std::string& iSP); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getIpProtocol()const; + void setIpProtocol(const std::string& ipProtocol); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getInstanceIds()const; + void setInstanceIds(const std::string& instanceIds); + std::string getInternalPort()const; + void setInternalPort(const std::string& internalPort); + + private: + std::string iSP_; + std::string showLog_; + std::string ipProtocol_; + long ownerId_; + std::string instanceIds_; + std::string internalPort_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_ADDRENDERINGDEVICEINTERNETPORTSREQUEST_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/AddRenderingDeviceInternetPortsResult.h b/vs/include/alibabacloud/vs/model/AddRenderingDeviceInternetPortsResult.h new file mode 100644 index 000000000..dab6f3e59 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/AddRenderingDeviceInternetPortsResult.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_VS_MODEL_ADDRENDERINGDEVICEINTERNETPORTSRESULT_H_ +#define ALIBABACLOUD_VS_MODEL_ADDRENDERINGDEVICEINTERNETPORTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT AddRenderingDeviceInternetPortsResult : public ServiceResult + { + public: + + + AddRenderingDeviceInternetPortsResult(); + explicit AddRenderingDeviceInternetPortsResult(const std::string &payload); + ~AddRenderingDeviceInternetPortsResult(); + std::vector getInstanceIds()const; + + protected: + void parse(const std::string &payload); + private: + std::vector instanceIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_ADDRENDERINGDEVICEINTERNETPORTSRESULT_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/ContinuousAdjustRequest.h b/vs/include/alibabacloud/vs/model/ContinuousAdjustRequest.h index 5aee16ec7..22220cc70 100644 --- a/vs/include/alibabacloud/vs/model/ContinuousAdjustRequest.h +++ b/vs/include/alibabacloud/vs/model/ContinuousAdjustRequest.h @@ -37,6 +37,8 @@ namespace AlibabaCloud std::string getFocus()const; void setFocus(const std::string& focus); + std::string getSubProtocol()const; + void setSubProtocol(const std::string& subProtocol); std::string getId()const; void setId(const std::string& id); std::string getShowLog()const; @@ -48,6 +50,7 @@ namespace AlibabaCloud private: std::string focus_; + std::string subProtocol_; std::string id_; std::string showLog_; std::string iris_; diff --git a/vs/include/alibabacloud/vs/model/ContinuousMoveRequest.h b/vs/include/alibabacloud/vs/model/ContinuousMoveRequest.h index 2bdbae51c..19d118015 100644 --- a/vs/include/alibabacloud/vs/model/ContinuousMoveRequest.h +++ b/vs/include/alibabacloud/vs/model/ContinuousMoveRequest.h @@ -37,6 +37,8 @@ namespace AlibabaCloud std::string getTilt()const; void setTilt(const std::string& tilt); + std::string getSubProtocol()const; + void setSubProtocol(const std::string& subProtocol); std::string getId()const; void setId(const std::string& id); std::string getPan()const; @@ -50,6 +52,7 @@ namespace AlibabaCloud private: std::string tilt_; + std::string subProtocol_; std::string id_; std::string pan_; std::string showLog_; diff --git a/vs/include/alibabacloud/vs/model/CreateClusterRequest.h b/vs/include/alibabacloud/vs/model/CreateClusterRequest.h new file mode 100644 index 000000000..89b517658 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/CreateClusterRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VS_MODEL_CREATECLUSTERREQUEST_H_ +#define ALIBABACLOUD_VS_MODEL_CREATECLUSTERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT CreateClusterRequest : public RpcServiceRequest + { + + public: + CreateClusterRequest(); + ~CreateClusterRequest(); + + std::string getSecurityGroupId()const; + void setSecurityGroupId(const std::string& securityGroupId); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getMaintainTime()const; + void setMaintainTime(const std::string& maintainTime); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getName()const; + void setName(const std::string& name); + std::string getInternalPorts()const; + void setInternalPorts(const std::string& internalPorts); + + private: + std::string securityGroupId_; + std::string description_; + std::string maintainTime_; + std::string showLog_; + long ownerId_; + std::string name_; + std::string internalPorts_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_CREATECLUSTERREQUEST_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/CreateClusterResult.h b/vs/include/alibabacloud/vs/model/CreateClusterResult.h new file mode 100644 index 000000000..3f0777ce7 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/CreateClusterResult.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_VS_MODEL_CREATECLUSTERRESULT_H_ +#define ALIBABACLOUD_VS_MODEL_CREATECLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT CreateClusterResult : public ServiceResult + { + public: + + + CreateClusterResult(); + explicit CreateClusterResult(const std::string &payload); + ~CreateClusterResult(); + std::string getClusterId()const; + + protected: + void parse(const std::string &payload); + private: + std::string clusterId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_CREATECLUSTERRESULT_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/CreateDeviceSnapshotRequest.h b/vs/include/alibabacloud/vs/model/CreateDeviceSnapshotRequest.h new file mode 100644 index 000000000..f9141b778 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/CreateDeviceSnapshotRequest.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_VS_MODEL_CREATEDEVICESNAPSHOTREQUEST_H_ +#define ALIBABACLOUD_VS_MODEL_CREATEDEVICESNAPSHOTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT CreateDeviceSnapshotRequest : public RpcServiceRequest + { + + public: + CreateDeviceSnapshotRequest(); + ~CreateDeviceSnapshotRequest(); + + std::string getSnapshotConfig()const; + void setSnapshotConfig(const std::string& snapshotConfig); + std::string getMode()const; + void setMode(const std::string& mode); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getStreamId()const; + void setStreamId(const std::string& streamId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getDeviceId()const; + void setDeviceId(const std::string& deviceId); + + private: + std::string snapshotConfig_; + std::string mode_; + std::string showLog_; + std::string streamId_; + long ownerId_; + std::string deviceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_CREATEDEVICESNAPSHOTREQUEST_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/CreateDeviceSnapshotResult.h b/vs/include/alibabacloud/vs/model/CreateDeviceSnapshotResult.h new file mode 100644 index 000000000..d761c983a --- /dev/null +++ b/vs/include/alibabacloud/vs/model/CreateDeviceSnapshotResult.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_VS_MODEL_CREATEDEVICESNAPSHOTRESULT_H_ +#define ALIBABACLOUD_VS_MODEL_CREATEDEVICESNAPSHOTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT CreateDeviceSnapshotResult : public ServiceResult + { + public: + + + CreateDeviceSnapshotResult(); + explicit CreateDeviceSnapshotResult(const std::string &payload); + ~CreateDeviceSnapshotResult(); + std::string getId()const; + + protected: + void parse(const std::string &payload); + private: + std::string id_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_CREATEDEVICESNAPSHOTRESULT_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/CreateRenderingDeviceRequest.h b/vs/include/alibabacloud/vs/model/CreateRenderingDeviceRequest.h new file mode 100644 index 000000000..a58af4107 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/CreateRenderingDeviceRequest.h @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VS_MODEL_CREATERENDERINGDEVICEREQUEST_H_ +#define ALIBABACLOUD_VS_MODEL_CREATERENDERINGDEVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT CreateRenderingDeviceRequest : public RpcServiceRequest + { + + public: + CreateRenderingDeviceRequest(); + ~CreateRenderingDeviceRequest(); + + std::string getImageId()const; + void setImageId(const std::string& imageId); + std::string getSecurityGroupId()const; + void setSecurityGroupId(const std::string& securityGroupId); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getInstanceChargeType()const; + void setInstanceChargeType(const std::string& instanceChargeType); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + int getAutoRenewPeriod()const; + void setAutoRenewPeriod(int autoRenewPeriod); + int getPeriod()const; + void setPeriod(int period); + int getCount()const; + void setCount(int count); + std::string getSpecification()const; + void setSpecification(const std::string& specification); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getPeriodUnit()const; + void setPeriodUnit(const std::string& periodUnit); + bool getAutoRenew()const; + void setAutoRenew(bool autoRenew); + std::string getEdgeNodeName()const; + void setEdgeNodeName(const std::string& edgeNodeName); + + private: + std::string imageId_; + std::string securityGroupId_; + std::string description_; + std::string instanceChargeType_; + std::string showLog_; + int autoRenewPeriod_; + int period_; + int count_; + std::string specification_; + std::string clusterId_; + long ownerId_; + std::string periodUnit_; + bool autoRenew_; + std::string edgeNodeName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_CREATERENDERINGDEVICEREQUEST_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/CreateRenderingDeviceResult.h b/vs/include/alibabacloud/vs/model/CreateRenderingDeviceResult.h new file mode 100644 index 000000000..709364129 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/CreateRenderingDeviceResult.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_VS_MODEL_CREATERENDERINGDEVICERESULT_H_ +#define ALIBABACLOUD_VS_MODEL_CREATERENDERINGDEVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT CreateRenderingDeviceResult : public ServiceResult + { + public: + + + CreateRenderingDeviceResult(); + explicit CreateRenderingDeviceResult(const std::string &payload); + ~CreateRenderingDeviceResult(); + std::vector getInstanceIds()const; + + protected: + void parse(const std::string &payload); + private: + std::vector instanceIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_CREATERENDERINGDEVICERESULT_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/DeleteBucketRequest.h b/vs/include/alibabacloud/vs/model/DeleteBucketRequest.h new file mode 100644 index 000000000..397ffb1aa --- /dev/null +++ b/vs/include/alibabacloud/vs/model/DeleteBucketRequest.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_VS_MODEL_DELETEBUCKETREQUEST_H_ +#define ALIBABACLOUD_VS_MODEL_DELETEBUCKETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT DeleteBucketRequest : public RpcServiceRequest + { + + public: + DeleteBucketRequest(); + ~DeleteBucketRequest(); + + std::string getBucketName()const; + void setBucketName(const std::string& bucketName); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string bucketName_; + std::string showLog_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_DELETEBUCKETREQUEST_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/DeleteBucketResult.h b/vs/include/alibabacloud/vs/model/DeleteBucketResult.h new file mode 100644 index 000000000..aa328dbc4 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/DeleteBucketResult.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_VS_MODEL_DELETEBUCKETRESULT_H_ +#define ALIBABACLOUD_VS_MODEL_DELETEBUCKETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT DeleteBucketResult : public ServiceResult + { + public: + + + DeleteBucketResult(); + explicit DeleteBucketResult(const std::string &payload); + ~DeleteBucketResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_DELETEBUCKETRESULT_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/DeleteClusterRequest.h b/vs/include/alibabacloud/vs/model/DeleteClusterRequest.h new file mode 100644 index 000000000..de97994d5 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/DeleteClusterRequest.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_VS_MODEL_DELETECLUSTERREQUEST_H_ +#define ALIBABACLOUD_VS_MODEL_DELETECLUSTERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT DeleteClusterRequest : public RpcServiceRequest + { + + public: + DeleteClusterRequest(); + ~DeleteClusterRequest(); + + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string showLog_; + std::string clusterId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_DELETECLUSTERREQUEST_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/DeleteClusterResult.h b/vs/include/alibabacloud/vs/model/DeleteClusterResult.h new file mode 100644 index 000000000..04c79acba --- /dev/null +++ b/vs/include/alibabacloud/vs/model/DeleteClusterResult.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_VS_MODEL_DELETECLUSTERRESULT_H_ +#define ALIBABACLOUD_VS_MODEL_DELETECLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT DeleteClusterResult : public ServiceResult + { + public: + + + DeleteClusterResult(); + explicit DeleteClusterResult(const std::string &payload); + ~DeleteClusterResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_DELETECLUSTERRESULT_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/DeletePresetRequest.h b/vs/include/alibabacloud/vs/model/DeletePresetRequest.h index 87bf47112..bcc26ebe4 100644 --- a/vs/include/alibabacloud/vs/model/DeletePresetRequest.h +++ b/vs/include/alibabacloud/vs/model/DeletePresetRequest.h @@ -35,6 +35,8 @@ namespace AlibabaCloud DeletePresetRequest(); ~DeletePresetRequest(); + std::string getSubProtocol()const; + void setSubProtocol(const std::string& subProtocol); std::string getId()const; void setId(const std::string& id); std::string getPresetId()const; @@ -45,6 +47,7 @@ namespace AlibabaCloud void setOwnerId(long ownerId); private: + std::string subProtocol_; std::string id_; std::string presetId_; std::string showLog_; diff --git a/vs/include/alibabacloud/vs/model/DeleteRenderingDeviceInternetPortsRequest.h b/vs/include/alibabacloud/vs/model/DeleteRenderingDeviceInternetPortsRequest.h new file mode 100644 index 000000000..a399e346a --- /dev/null +++ b/vs/include/alibabacloud/vs/model/DeleteRenderingDeviceInternetPortsRequest.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_VS_MODEL_DELETERENDERINGDEVICEINTERNETPORTSREQUEST_H_ +#define ALIBABACLOUD_VS_MODEL_DELETERENDERINGDEVICEINTERNETPORTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT DeleteRenderingDeviceInternetPortsRequest : public RpcServiceRequest + { + + public: + DeleteRenderingDeviceInternetPortsRequest(); + ~DeleteRenderingDeviceInternetPortsRequest(); + + std::string getISP()const; + void setISP(const std::string& iSP); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getIpProtocol()const; + void setIpProtocol(const std::string& ipProtocol); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getInstanceIds()const; + void setInstanceIds(const std::string& instanceIds); + std::string getInternalPort()const; + void setInternalPort(const std::string& internalPort); + + private: + std::string iSP_; + std::string showLog_; + std::string ipProtocol_; + long ownerId_; + std::string instanceIds_; + std::string internalPort_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_DELETERENDERINGDEVICEINTERNETPORTSREQUEST_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/DeleteRenderingDeviceInternetPortsResult.h b/vs/include/alibabacloud/vs/model/DeleteRenderingDeviceInternetPortsResult.h new file mode 100644 index 000000000..d4ccaf87b --- /dev/null +++ b/vs/include/alibabacloud/vs/model/DeleteRenderingDeviceInternetPortsResult.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_VS_MODEL_DELETERENDERINGDEVICEINTERNETPORTSRESULT_H_ +#define ALIBABACLOUD_VS_MODEL_DELETERENDERINGDEVICEINTERNETPORTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT DeleteRenderingDeviceInternetPortsResult : public ServiceResult + { + public: + + + DeleteRenderingDeviceInternetPortsResult(); + explicit DeleteRenderingDeviceInternetPortsResult(const std::string &payload); + ~DeleteRenderingDeviceInternetPortsResult(); + std::vector getInstanceIds()const; + + protected: + void parse(const std::string &payload); + private: + std::vector instanceIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_DELETERENDERINGDEVICEINTERNETPORTSRESULT_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/DeleteRenderingDevicesRequest.h b/vs/include/alibabacloud/vs/model/DeleteRenderingDevicesRequest.h new file mode 100644 index 000000000..2a8ee8b32 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/DeleteRenderingDevicesRequest.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_VS_MODEL_DELETERENDERINGDEVICESREQUEST_H_ +#define ALIBABACLOUD_VS_MODEL_DELETERENDERINGDEVICESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT DeleteRenderingDevicesRequest : public RpcServiceRequest + { + + public: + DeleteRenderingDevicesRequest(); + ~DeleteRenderingDevicesRequest(); + + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getInstanceIds()const; + void setInstanceIds(const std::string& instanceIds); + + private: + std::string showLog_; + long ownerId_; + std::string instanceIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_DELETERENDERINGDEVICESREQUEST_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/DeleteRenderingDevicesResult.h b/vs/include/alibabacloud/vs/model/DeleteRenderingDevicesResult.h new file mode 100644 index 000000000..a4ba1926c --- /dev/null +++ b/vs/include/alibabacloud/vs/model/DeleteRenderingDevicesResult.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_VS_MODEL_DELETERENDERINGDEVICESRESULT_H_ +#define ALIBABACLOUD_VS_MODEL_DELETERENDERINGDEVICESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT DeleteRenderingDevicesResult : public ServiceResult + { + public: + + + DeleteRenderingDevicesResult(); + explicit DeleteRenderingDevicesResult(const std::string &payload); + ~DeleteRenderingDevicesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_DELETERENDERINGDEVICESRESULT_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/DescribeClusterDevicesRequest.h b/vs/include/alibabacloud/vs/model/DescribeClusterDevicesRequest.h new file mode 100644 index 000000000..9ea9680f5 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/DescribeClusterDevicesRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VS_MODEL_DESCRIBECLUSTERDEVICESREQUEST_H_ +#define ALIBABACLOUD_VS_MODEL_DESCRIBECLUSTERDEVICESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT DescribeClusterDevicesRequest : public RpcServiceRequest + { + + public: + DescribeClusterDevicesRequest(); + ~DescribeClusterDevicesRequest(); + + std::string getDescription()const; + void setDescription(const std::string& description); + long getPageSize()const; + void setPageSize(long pageSize); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getSpecification()const; + void setSpecification(const std::string& specification); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + long getOwnerId()const; + void setOwnerId(long ownerId); + long getPageNo()const; + void setPageNo(long pageNo); + + private: + std::string description_; + long pageSize_; + std::string showLog_; + std::string specification_; + std::string clusterId_; + long ownerId_; + long pageNo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_DESCRIBECLUSTERDEVICESREQUEST_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/DescribeClusterDevicesResult.h b/vs/include/alibabacloud/vs/model/DescribeClusterDevicesResult.h new file mode 100644 index 000000000..a1ed10086 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/DescribeClusterDevicesResult.h @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VS_MODEL_DESCRIBECLUSTERDEVICESRESULT_H_ +#define ALIBABACLOUD_VS_MODEL_DESCRIBECLUSTERDEVICESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT DescribeClusterDevicesResult : public ServiceResult + { + public: + struct Device + { + struct IpInfo + { + std::string externalPort; + std::string externalIp; + std::string iSP; + std::string ipProtocol; + std::string internalPort; + std::string natType; + std::string internalIp; + }; + std::string status; + int autoRenewPeriod; + std::string edgeNodeName; + std::vector ipInfos; + std::string server; + std::string instanceId; + std::string instanceChargeType; + bool autoRenew; + int period; + std::string platformType; + std::string macAddress; + std::string periodUnit; + }; + + + DescribeClusterDevicesResult(); + explicit DescribeClusterDevicesResult(const std::string &payload); + ~DescribeClusterDevicesResult(); + long getTotal()const; + std::vector getDevices()const; + + protected: + void parse(const std::string &payload); + private: + long total_; + std::vector devices_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_DESCRIBECLUSTERDEVICESRESULT_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/DescribeClusterRequest.h b/vs/include/alibabacloud/vs/model/DescribeClusterRequest.h new file mode 100644 index 000000000..4e09cd5bc --- /dev/null +++ b/vs/include/alibabacloud/vs/model/DescribeClusterRequest.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_VS_MODEL_DESCRIBECLUSTERREQUEST_H_ +#define ALIBABACLOUD_VS_MODEL_DESCRIBECLUSTERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT DescribeClusterRequest : public RpcServiceRequest + { + + public: + DescribeClusterRequest(); + ~DescribeClusterRequest(); + + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string showLog_; + std::string clusterId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_DESCRIBECLUSTERREQUEST_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/DescribeClusterResult.h b/vs/include/alibabacloud/vs/model/DescribeClusterResult.h new file mode 100644 index 000000000..c46e69ddd --- /dev/null +++ b/vs/include/alibabacloud/vs/model/DescribeClusterResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VS_MODEL_DESCRIBECLUSTERRESULT_H_ +#define ALIBABACLOUD_VS_MODEL_DESCRIBECLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT DescribeClusterResult : public ServiceResult + { + public: + struct InternalPort + { + std::string platform; + std::vector port; + std::string ipProtocol; + }; + + + DescribeClusterResult(); + explicit DescribeClusterResult(const std::string &payload); + ~DescribeClusterResult(); + std::string getStatus()const; + std::string getDescription()const; + std::string getClusterId()const; + std::string getMaintainTime()const; + std::vector getInternalPorts()const; + std::string getName()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string description_; + std::string clusterId_; + std::string maintainTime_; + std::vector internalPorts_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_DESCRIBECLUSTERRESULT_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/DescribeClustersRequest.h b/vs/include/alibabacloud/vs/model/DescribeClustersRequest.h new file mode 100644 index 000000000..9670495ee --- /dev/null +++ b/vs/include/alibabacloud/vs/model/DescribeClustersRequest.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_VS_MODEL_DESCRIBECLUSTERSREQUEST_H_ +#define ALIBABACLOUD_VS_MODEL_DESCRIBECLUSTERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT DescribeClustersRequest : public RpcServiceRequest + { + + public: + DescribeClustersRequest(); + ~DescribeClustersRequest(); + + long getPageSize()const; + void setPageSize(long pageSize); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + long getOwnerId()const; + void setOwnerId(long ownerId); + long getPageNo()const; + void setPageNo(long pageNo); + + private: + long pageSize_; + std::string showLog_; + long ownerId_; + long pageNo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_DESCRIBECLUSTERSREQUEST_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/DescribeClustersResult.h b/vs/include/alibabacloud/vs/model/DescribeClustersResult.h new file mode 100644 index 000000000..5242e5271 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/DescribeClustersResult.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_VS_MODEL_DESCRIBECLUSTERSRESULT_H_ +#define ALIBABACLOUD_VS_MODEL_DESCRIBECLUSTERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT DescribeClustersResult : public ServiceResult + { + public: + struct Cluster + { + struct InternalPort + { + std::string platform; + std::vector port; + std::string ipProtocol; + }; + std::string status; + std::string description; + std::string clusterId; + std::string maintainTime; + std::vector internalPorts; + std::string name; + }; + + + DescribeClustersResult(); + explicit DescribeClustersResult(const std::string &payload); + ~DescribeClustersResult(); + long getTotal()const; + std::vector getClusters()const; + + protected: + void parse(const std::string &payload); + private: + long total_; + std::vector clusters_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_DESCRIBECLUSTERSRESULT_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/DescribeNodeDevicesInfoRequest.h b/vs/include/alibabacloud/vs/model/DescribeNodeDevicesInfoRequest.h new file mode 100644 index 000000000..084c5e289 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/DescribeNodeDevicesInfoRequest.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_VS_MODEL_DESCRIBENODEDEVICESINFOREQUEST_H_ +#define ALIBABACLOUD_VS_MODEL_DESCRIBENODEDEVICESINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT DescribeNodeDevicesInfoRequest : public RpcServiceRequest + { + + public: + DescribeNodeDevicesInfoRequest(); + ~DescribeNodeDevicesInfoRequest(); + + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getNodeName()const; + void setNodeName(const std::string& nodeName); + + private: + std::string showLog_; + long ownerId_; + std::string nodeName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_DESCRIBENODEDEVICESINFOREQUEST_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/DescribeNodeDevicesInfoResult.h b/vs/include/alibabacloud/vs/model/DescribeNodeDevicesInfoResult.h new file mode 100644 index 000000000..292ee62a8 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/DescribeNodeDevicesInfoResult.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_VS_MODEL_DESCRIBENODEDEVICESINFORESULT_H_ +#define ALIBABACLOUD_VS_MODEL_DESCRIBENODEDEVICESINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT DescribeNodeDevicesInfoResult : public ServiceResult + { + public: + struct NodeDevice + { + struct DeviceInfo + { + std::string server; + std::string instanceId; + std::string iP; + std::string name; + }; + std::vector deviceInfos; + std::string nodeName; + }; + + + DescribeNodeDevicesInfoResult(); + explicit DescribeNodeDevicesInfoResult(const std::string &payload); + ~DescribeNodeDevicesInfoResult(); + std::vector getNodeDevices()const; + + protected: + void parse(const std::string &payload); + private: + std::vector nodeDevices_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_DESCRIBENODEDEVICESINFORESULT_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/DescribePresetsRequest.h b/vs/include/alibabacloud/vs/model/DescribePresetsRequest.h index 12534bf16..34267ce02 100644 --- a/vs/include/alibabacloud/vs/model/DescribePresetsRequest.h +++ b/vs/include/alibabacloud/vs/model/DescribePresetsRequest.h @@ -35,6 +35,8 @@ namespace AlibabaCloud DescribePresetsRequest(); ~DescribePresetsRequest(); + std::string getSubProtocol()const; + void setSubProtocol(const std::string& subProtocol); std::string getId()const; void setId(const std::string& id); std::string getShowLog()const; @@ -43,6 +45,7 @@ namespace AlibabaCloud void setOwnerId(long ownerId); private: + std::string subProtocol_; std::string id_; std::string showLog_; long ownerId_; diff --git a/vs/include/alibabacloud/vs/model/DescribeRenderingDevicesRequest.h b/vs/include/alibabacloud/vs/model/DescribeRenderingDevicesRequest.h new file mode 100644 index 000000000..080ba3ea3 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/DescribeRenderingDevicesRequest.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_VS_MODEL_DESCRIBERENDERINGDEVICESREQUEST_H_ +#define ALIBABACLOUD_VS_MODEL_DESCRIBERENDERINGDEVICESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT DescribeRenderingDevicesRequest : public RpcServiceRequest + { + + public: + DescribeRenderingDevicesRequest(); + ~DescribeRenderingDevicesRequest(); + + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getInstanceIds()const; + void setInstanceIds(const std::string& instanceIds); + + private: + std::string showLog_; + long ownerId_; + std::string instanceIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_DESCRIBERENDERINGDEVICESREQUEST_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/DescribeRenderingDevicesResult.h b/vs/include/alibabacloud/vs/model/DescribeRenderingDevicesResult.h new file mode 100644 index 000000000..9e8120b7c --- /dev/null +++ b/vs/include/alibabacloud/vs/model/DescribeRenderingDevicesResult.h @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VS_MODEL_DESCRIBERENDERINGDEVICESRESULT_H_ +#define ALIBABACLOUD_VS_MODEL_DESCRIBERENDERINGDEVICESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT DescribeRenderingDevicesResult : public ServiceResult + { + public: + struct Device + { + struct IpInfo + { + std::string externalPort; + std::string externalIp; + std::string iSP; + std::string ipProtocol; + std::string internalPort; + std::string natType; + std::string internalIp; + }; + std::string status; + int autoRenewPeriod; + std::string edgeNodeName; + std::vector ipInfos; + std::string instanceId; + std::string clusterId; + std::string instanceChargeType; + bool autoRenew; + int period; + std::string specification; + std::string macAddress; + std::string serverName; + std::string platformType; + std::string periodUnit; + }; + + + DescribeRenderingDevicesResult(); + explicit DescribeRenderingDevicesResult(const std::string &payload); + ~DescribeRenderingDevicesResult(); + long getTotal()const; + std::vector getDevices()const; + + protected: + void parse(const std::string &payload); + private: + long total_; + std::vector devices_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_DESCRIBERENDERINGDEVICESRESULT_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/DescribeVsDomainPvDataResult.h b/vs/include/alibabacloud/vs/model/DescribeVsDomainPvDataResult.h index 45a5f9211..f724207d6 100644 --- a/vs/include/alibabacloud/vs/model/DescribeVsDomainPvDataResult.h +++ b/vs/include/alibabacloud/vs/model/DescribeVsDomainPvDataResult.h @@ -42,15 +42,19 @@ namespace AlibabaCloud DescribeVsDomainPvDataResult(); explicit DescribeVsDomainPvDataResult(const std::string &payload); ~DescribeVsDomainPvDataResult(); + std::string getEndTime()const; std::string getDomainName()const; std::string getStartTime()const; + std::string getDataInterval()const; std::vector getPvDataInterval()const; protected: void parse(const std::string &payload); private: + std::string endTime_; std::string domainName_; std::string startTime_; + std::string dataInterval_; std::vector pvDataInterval_; }; diff --git a/vs/include/alibabacloud/vs/model/DescribeVsDomainPvUvDataResult.h b/vs/include/alibabacloud/vs/model/DescribeVsDomainPvUvDataResult.h index d3994eee0..23ccb774c 100644 --- a/vs/include/alibabacloud/vs/model/DescribeVsDomainPvUvDataResult.h +++ b/vs/include/alibabacloud/vs/model/DescribeVsDomainPvUvDataResult.h @@ -43,15 +43,19 @@ namespace AlibabaCloud DescribeVsDomainPvUvDataResult(); explicit DescribeVsDomainPvUvDataResult(const std::string &payload); ~DescribeVsDomainPvUvDataResult(); + std::string getEndTime()const; std::string getDomainName()const; std::string getStartTime()const; + std::string getDataInterval()const; std::vector getPvUvDataInfos()const; protected: void parse(const std::string &payload); private: + std::string endTime_; std::string domainName_; std::string startTime_; + std::string dataInterval_; std::vector pvUvDataInfos_; }; diff --git a/vs/include/alibabacloud/vs/model/DescribeVsDomainUvDataResult.h b/vs/include/alibabacloud/vs/model/DescribeVsDomainUvDataResult.h index 8b008e925..b7a5c7eb1 100644 --- a/vs/include/alibabacloud/vs/model/DescribeVsDomainUvDataResult.h +++ b/vs/include/alibabacloud/vs/model/DescribeVsDomainUvDataResult.h @@ -43,15 +43,19 @@ namespace AlibabaCloud explicit DescribeVsDomainUvDataResult(const std::string &payload); ~DescribeVsDomainUvDataResult(); std::vector getUvDataInterval()const; + std::string getEndTime()const; std::string getDomainName()const; std::string getStartTime()const; + std::string getDataInterval()const; protected: void parse(const std::string &payload); private: std::vector uvDataInterval_; + std::string endTime_; std::string domainName_; std::string startTime_; + std::string dataInterval_; }; } diff --git a/vs/include/alibabacloud/vs/model/DescribeVsStorageTrafficUsageDataRequest.h b/vs/include/alibabacloud/vs/model/DescribeVsStorageTrafficUsageDataRequest.h new file mode 100644 index 000000000..2dbf45143 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/DescribeVsStorageTrafficUsageDataRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VS_MODEL_DESCRIBEVSSTORAGETRAFFICUSAGEDATAREQUEST_H_ +#define ALIBABACLOUD_VS_MODEL_DESCRIBEVSSTORAGETRAFFICUSAGEDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT DescribeVsStorageTrafficUsageDataRequest : public RpcServiceRequest + { + + public: + DescribeVsStorageTrafficUsageDataRequest(); + ~DescribeVsStorageTrafficUsageDataRequest(); + + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getSplitBy()const; + void setSplitBy(const std::string& splitBy); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getBucket()const; + void setBucket(const std::string& bucket); + std::string getInterval()const; + void setInterval(const std::string& interval); + + private: + std::string startTime_; + std::string showLog_; + std::string splitBy_; + std::string endTime_; + long ownerId_; + std::string bucket_; + std::string interval_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_DESCRIBEVSSTORAGETRAFFICUSAGEDATAREQUEST_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/DescribeVsStorageTrafficUsageDataResult.h b/vs/include/alibabacloud/vs/model/DescribeVsStorageTrafficUsageDataResult.h new file mode 100644 index 000000000..f9c0f9053 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/DescribeVsStorageTrafficUsageDataResult.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_VS_MODEL_DESCRIBEVSSTORAGETRAFFICUSAGEDATARESULT_H_ +#define ALIBABACLOUD_VS_MODEL_DESCRIBEVSSTORAGETRAFFICUSAGEDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT DescribeVsStorageTrafficUsageDataResult : public ServiceResult + { + public: + struct TrafficUsageDataModule + { + long lanTrafficOutDataValue; + float wanBandwidthOutDataValue; + long lanTrafficInDataValue; + std::string bucket; + float wanBandwidthInDataValue; + long wanTrafficInDataValue; + float lanBandwidthOutDataValue; + float lanBandwidthInDataValue; + std::string timeStamp; + long wanTrafficOutDataValue; + }; + + + DescribeVsStorageTrafficUsageDataResult(); + explicit DescribeVsStorageTrafficUsageDataResult(const std::string &payload); + ~DescribeVsStorageTrafficUsageDataResult(); + std::vector getTrafficUsage()const; + + protected: + void parse(const std::string &payload); + private: + std::vector trafficUsage_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_DESCRIBEVSSTORAGETRAFFICUSAGEDATARESULT_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/DescribeVsStorageUsageDataRequest.h b/vs/include/alibabacloud/vs/model/DescribeVsStorageUsageDataRequest.h new file mode 100644 index 000000000..bd7692f85 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/DescribeVsStorageUsageDataRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VS_MODEL_DESCRIBEVSSTORAGEUSAGEDATAREQUEST_H_ +#define ALIBABACLOUD_VS_MODEL_DESCRIBEVSSTORAGEUSAGEDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT DescribeVsStorageUsageDataRequest : public RpcServiceRequest + { + + public: + DescribeVsStorageUsageDataRequest(); + ~DescribeVsStorageUsageDataRequest(); + + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getSplitBy()const; + void setSplitBy(const std::string& splitBy); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getBucket()const; + void setBucket(const std::string& bucket); + std::string getInterval()const; + void setInterval(const std::string& interval); + + private: + std::string startTime_; + std::string showLog_; + std::string splitBy_; + std::string endTime_; + long ownerId_; + std::string bucket_; + std::string interval_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_DESCRIBEVSSTORAGEUSAGEDATAREQUEST_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/DescribeVsStorageUsageDataResult.h b/vs/include/alibabacloud/vs/model/DescribeVsStorageUsageDataResult.h new file mode 100644 index 000000000..7edf44584 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/DescribeVsStorageUsageDataResult.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_VS_MODEL_DESCRIBEVSSTORAGEUSAGEDATARESULT_H_ +#define ALIBABACLOUD_VS_MODEL_DESCRIBEVSSTORAGEUSAGEDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT DescribeVsStorageUsageDataResult : public ServiceResult + { + public: + struct StorageUsageDataModule + { + std::string bucket; + int storageDataValue; + std::string timeStamp; + }; + + + DescribeVsStorageUsageDataResult(); + explicit DescribeVsStorageUsageDataResult(const std::string &payload); + ~DescribeVsStorageUsageDataResult(); + std::vector getStorageUsage()const; + + protected: + void parse(const std::string &payload); + private: + std::vector storageUsage_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_DESCRIBEVSSTORAGEUSAGEDATARESULT_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/GetBucketInfoRequest.h b/vs/include/alibabacloud/vs/model/GetBucketInfoRequest.h new file mode 100644 index 000000000..8357040b6 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/GetBucketInfoRequest.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_VS_MODEL_GETBUCKETINFOREQUEST_H_ +#define ALIBABACLOUD_VS_MODEL_GETBUCKETINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT GetBucketInfoRequest : public RpcServiceRequest + { + + public: + GetBucketInfoRequest(); + ~GetBucketInfoRequest(); + + std::string getBucketName()const; + void setBucketName(const std::string& bucketName); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string bucketName_; + std::string showLog_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_GETBUCKETINFOREQUEST_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/GetBucketInfoResult.h b/vs/include/alibabacloud/vs/model/GetBucketInfoResult.h new file mode 100644 index 000000000..86f8323c6 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/GetBucketInfoResult.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_VS_MODEL_GETBUCKETINFORESULT_H_ +#define ALIBABACLOUD_VS_MODEL_GETBUCKETINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT GetBucketInfoResult : public ServiceResult + { + public: + struct BucketInfo + { + std::string comment; + std::string modifyTime; + std::string bucketAcl; + std::string bucketName; + std::string endpoint; + std::string storageClass; + std::string createTime; + std::string dataRedundancyType; + std::string resourceType; + std::string dispatcherType; + }; + + + GetBucketInfoResult(); + explicit GetBucketInfoResult(const std::string &payload); + ~GetBucketInfoResult(); + BucketInfo getBucketInfo()const; + + protected: + void parse(const std::string &payload); + private: + BucketInfo bucketInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_GETBUCKETINFORESULT_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/GotoPresetRequest.h b/vs/include/alibabacloud/vs/model/GotoPresetRequest.h index f2cfc8bde..b61f7ee7d 100644 --- a/vs/include/alibabacloud/vs/model/GotoPresetRequest.h +++ b/vs/include/alibabacloud/vs/model/GotoPresetRequest.h @@ -35,6 +35,8 @@ namespace AlibabaCloud GotoPresetRequest(); ~GotoPresetRequest(); + std::string getSubProtocol()const; + void setSubProtocol(const std::string& subProtocol); std::string getId()const; void setId(const std::string& id); std::string getPresetId()const; @@ -45,6 +47,7 @@ namespace AlibabaCloud void setOwnerId(long ownerId); private: + std::string subProtocol_; std::string id_; std::string presetId_; std::string showLog_; diff --git a/vs/include/alibabacloud/vs/model/ListBucketsRequest.h b/vs/include/alibabacloud/vs/model/ListBucketsRequest.h new file mode 100644 index 000000000..70e588bf6 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/ListBucketsRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VS_MODEL_LISTBUCKETSREQUEST_H_ +#define ALIBABACLOUD_VS_MODEL_LISTBUCKETSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT ListBucketsRequest : public RpcServiceRequest + { + + public: + ListBucketsRequest(); + ~ListBucketsRequest(); + + std::string getPrefix()const; + void setPrefix(const std::string& prefix); + int getPageNumber()const; + void setPageNumber(int pageNumber); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getKeyword()const; + void setKeyword(const std::string& keyword); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getMarker()const; + void setMarker(const std::string& marker); + + private: + std::string prefix_; + int pageNumber_; + int pageSize_; + std::string keyword_; + std::string showLog_; + long ownerId_; + std::string marker_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_LISTBUCKETSREQUEST_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/ListBucketsResult.h b/vs/include/alibabacloud/vs/model/ListBucketsResult.h new file mode 100644 index 000000000..3c6b64578 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/ListBucketsResult.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VS_MODEL_LISTBUCKETSRESULT_H_ +#define ALIBABACLOUD_VS_MODEL_LISTBUCKETSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT ListBucketsResult : public ServiceResult + { + public: + struct BucketInfo + { + std::string comment; + std::string modifyTime; + std::string bucketAcl; + std::string bucketName; + std::string endpoint; + std::string storageClass; + std::string createTime; + std::string dataRedundancyType; + std::string resourceType; + std::string dispatcherType; + }; + + + ListBucketsResult(); + explicit ListBucketsResult(const std::string &payload); + ~ListBucketsResult(); + std::vector getBucketInfos()const; + long getTotalCount()const; + + protected: + void parse(const std::string &payload); + private: + std::vector bucketInfos_; + long totalCount_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_LISTBUCKETSRESULT_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/ListDeviceChannelsRequest.h b/vs/include/alibabacloud/vs/model/ListDeviceChannelsRequest.h new file mode 100644 index 000000000..686053821 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/ListDeviceChannelsRequest.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_VS_MODEL_LISTDEVICECHANNELSREQUEST_H_ +#define ALIBABACLOUD_VS_MODEL_LISTDEVICECHANNELSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT ListDeviceChannelsRequest : public RpcServiceRequest + { + + public: + ListDeviceChannelsRequest(); + ~ListDeviceChannelsRequest(); + + long getPageNum()const; + void setPageNum(long pageNum); + long getPageSize()const; + void setPageSize(long pageSize); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getDeviceId()const; + void setDeviceId(const std::string& deviceId); + + private: + long pageNum_; + long pageSize_; + std::string showLog_; + long ownerId_; + std::string deviceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_LISTDEVICECHANNELSREQUEST_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/ListDeviceChannelsResult.h b/vs/include/alibabacloud/vs/model/ListDeviceChannelsResult.h new file mode 100644 index 000000000..8bd053fce --- /dev/null +++ b/vs/include/alibabacloud/vs/model/ListDeviceChannelsResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VS_MODEL_LISTDEVICECHANNELSRESULT_H_ +#define ALIBABACLOUD_VS_MODEL_LISTDEVICECHANNELSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT ListDeviceChannelsResult : public ServiceResult + { + public: + struct Channel + { + std::string deviceId; + std::string params; + std::string deviceStatus; + long channelId; + std::string name; + }; + + + ListDeviceChannelsResult(); + explicit ListDeviceChannelsResult(const std::string &payload); + ~ListDeviceChannelsResult(); + long getTotalCount()const; + long getPageSize()const; + long getPageNum()const; + long getPageCount()const; + std::vector getChannels()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + long pageSize_; + long pageNum_; + long pageCount_; + std::vector channels_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_LISTDEVICECHANNELSRESULT_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/ListDeviceRecordsRequest.h b/vs/include/alibabacloud/vs/model/ListDeviceRecordsRequest.h new file mode 100644 index 000000000..f79d0b70c --- /dev/null +++ b/vs/include/alibabacloud/vs/model/ListDeviceRecordsRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VS_MODEL_LISTDEVICERECORDSREQUEST_H_ +#define ALIBABACLOUD_VS_MODEL_LISTDEVICERECORDSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT ListDeviceRecordsRequest : public RpcServiceRequest + { + + public: + ListDeviceRecordsRequest(); + ~ListDeviceRecordsRequest(); + + long getPageNum()const; + void setPageNum(long pageNum); + std::string getSearchCriteria()const; + void setSearchCriteria(const std::string& searchCriteria); + long getPageSize()const; + void setPageSize(long pageSize); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getStreamId()const; + void setStreamId(const std::string& streamId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getDeviceId()const; + void setDeviceId(const std::string& deviceId); + + private: + long pageNum_; + std::string searchCriteria_; + long pageSize_; + std::string showLog_; + std::string streamId_; + long ownerId_; + std::string deviceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_LISTDEVICERECORDSREQUEST_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/ListDeviceRecordsResult.h b/vs/include/alibabacloud/vs/model/ListDeviceRecordsResult.h new file mode 100644 index 000000000..d60a9f271 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/ListDeviceRecordsResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VS_MODEL_LISTDEVICERECORDSRESULT_H_ +#define ALIBABACLOUD_VS_MODEL_LISTDEVICERECORDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT ListDeviceRecordsResult : public ServiceResult + { + public: + struct Record + { + std::string endTime; + std::string recordType; + std::string startTime; + std::string filename; + long fileSize; + }; + + + ListDeviceRecordsResult(); + explicit ListDeviceRecordsResult(const std::string &payload); + ~ListDeviceRecordsResult(); + long getTotalCount()const; + long getPageSize()const; + long getPageNum()const; + long getPageCount()const; + std::vector getRecords()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + long pageSize_; + long pageNum_; + long pageCount_; + std::vector records_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_LISTDEVICERECORDSRESULT_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/ListObjectsRequest.h b/vs/include/alibabacloud/vs/model/ListObjectsRequest.h new file mode 100644 index 000000000..a48e81313 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/ListObjectsRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VS_MODEL_LISTOBJECTSREQUEST_H_ +#define ALIBABACLOUD_VS_MODEL_LISTOBJECTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT ListObjectsRequest : public RpcServiceRequest + { + + public: + ListObjectsRequest(); + ~ListObjectsRequest(); + + int getMaxKeys()const; + void setMaxKeys(int maxKeys); + std::string getContinuationToken()const; + void setContinuationToken(const std::string& continuationToken); + std::string getPrefix()const; + void setPrefix(const std::string& prefix); + std::string getDelimiter()const; + void setDelimiter(const std::string& delimiter); + std::string getBucketName()const; + void setBucketName(const std::string& bucketName); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getEncodingType()const; + void setEncodingType(const std::string& encodingType); + std::string getStartAfter()const; + void setStartAfter(const std::string& startAfter); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getMarker()const; + void setMarker(const std::string& marker); + + private: + int maxKeys_; + std::string continuationToken_; + std::string prefix_; + std::string delimiter_; + std::string bucketName_; + std::string showLog_; + std::string encodingType_; + std::string startAfter_; + long ownerId_; + std::string marker_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_LISTOBJECTSREQUEST_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/ListObjectsResult.h b/vs/include/alibabacloud/vs/model/ListObjectsResult.h new file mode 100644 index 000000000..65d215a2b --- /dev/null +++ b/vs/include/alibabacloud/vs/model/ListObjectsResult.h @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VS_MODEL_LISTOBJECTSRESULT_H_ +#define ALIBABACLOUD_VS_MODEL_LISTOBJECTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT ListObjectsResult : public ServiceResult + { + public: + struct Content + { + std::string lastModified; + std::string eTag; + long size; + std::string storageClass; + std::string key; + }; + + + ListObjectsResult(); + explicit ListObjectsResult(const std::string &payload); + ~ListObjectsResult(); + std::vector getCommonPrefixes()const; + std::string getNextContinuationToken()const; + std::string getContinuationToken()const; + std::string getDelimiter()const; + std::string getEncodingType()const; + bool getIsTruncated()const; + std::string getPrefix()const; + std::string getMarker()const; + std::vector getContents()const; + std::string getBucketName()const; + int getMaxKeys()const; + int getKeyCount()const; + std::string getNextMarker()const; + + protected: + void parse(const std::string &payload); + private: + std::vector commonPrefixes_; + std::string nextContinuationToken_; + std::string continuationToken_; + std::string delimiter_; + std::string encodingType_; + bool isTruncated_; + std::string prefix_; + std::string marker_; + std::vector contents_; + std::string bucketName_; + int maxKeys_; + int keyCount_; + std::string nextMarker_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_LISTOBJECTSRESULT_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/OpenVsServiceRequest.h b/vs/include/alibabacloud/vs/model/OpenVsServiceRequest.h new file mode 100644 index 000000000..d57d2c599 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/OpenVsServiceRequest.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_VS_MODEL_OPENVSSERVICEREQUEST_H_ +#define ALIBABACLOUD_VS_MODEL_OPENVSSERVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT OpenVsServiceRequest : public RpcServiceRequest + { + + public: + OpenVsServiceRequest(); + ~OpenVsServiceRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_OPENVSSERVICEREQUEST_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/OpenVsServiceResult.h b/vs/include/alibabacloud/vs/model/OpenVsServiceResult.h new file mode 100644 index 000000000..96be0d8a8 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/OpenVsServiceResult.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_VS_MODEL_OPENVSSERVICERESULT_H_ +#define ALIBABACLOUD_VS_MODEL_OPENVSSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT OpenVsServiceResult : public ServiceResult + { + public: + + + OpenVsServiceResult(); + explicit OpenVsServiceResult(const std::string &payload); + ~OpenVsServiceResult(); + std::string getOrderId()const; + + protected: + void parse(const std::string &payload); + private: + std::string orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_OPENVSSERVICERESULT_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/OperateRenderingDevicesRequest.h b/vs/include/alibabacloud/vs/model/OperateRenderingDevicesRequest.h new file mode 100644 index 000000000..3fb62f984 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/OperateRenderingDevicesRequest.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_VS_MODEL_OPERATERENDERINGDEVICESREQUEST_H_ +#define ALIBABACLOUD_VS_MODEL_OPERATERENDERINGDEVICESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT OperateRenderingDevicesRequest : public RpcServiceRequest + { + + public: + OperateRenderingDevicesRequest(); + ~OperateRenderingDevicesRequest(); + + bool getForceStop()const; + void setForceStop(bool forceStop); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getInstanceIds()const; + void setInstanceIds(const std::string& instanceIds); + std::string getOperation()const; + void setOperation(const std::string& operation); + + private: + bool forceStop_; + std::string showLog_; + long ownerId_; + std::string instanceIds_; + std::string operation_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_OPERATERENDERINGDEVICESREQUEST_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/OperateRenderingDevicesResult.h b/vs/include/alibabacloud/vs/model/OperateRenderingDevicesResult.h new file mode 100644 index 000000000..35a7c4e5e --- /dev/null +++ b/vs/include/alibabacloud/vs/model/OperateRenderingDevicesResult.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_VS_MODEL_OPERATERENDERINGDEVICESRESULT_H_ +#define ALIBABACLOUD_VS_MODEL_OPERATERENDERINGDEVICESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT OperateRenderingDevicesResult : public ServiceResult + { + public: + + + OperateRenderingDevicesResult(); + explicit OperateRenderingDevicesResult(const std::string &payload); + ~OperateRenderingDevicesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_OPERATERENDERINGDEVICESRESULT_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/PrepareUploadRequest.h b/vs/include/alibabacloud/vs/model/PrepareUploadRequest.h new file mode 100644 index 000000000..5982cbdca --- /dev/null +++ b/vs/include/alibabacloud/vs/model/PrepareUploadRequest.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_VS_MODEL_PREPAREUPLOADREQUEST_H_ +#define ALIBABACLOUD_VS_MODEL_PREPAREUPLOADREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT PrepareUploadRequest : public RpcServiceRequest + { + + public: + PrepareUploadRequest(); + ~PrepareUploadRequest(); + + std::string getBucketName()const; + void setBucketName(const std::string& bucketName); + std::string getClientIp()const; + void setClientIp(const std::string& clientIp); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAdditionType()const; + void setAdditionType(const std::string& additionType); + + private: + std::string bucketName_; + std::string clientIp_; + std::string showLog_; + long ownerId_; + std::string additionType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_PREPAREUPLOADREQUEST_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/PrepareUploadResult.h b/vs/include/alibabacloud/vs/model/PrepareUploadResult.h new file mode 100644 index 000000000..b0a97e9f7 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/PrepareUploadResult.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_VS_MODEL_PREPAREUPLOADRESULT_H_ +#define ALIBABACLOUD_VS_MODEL_PREPAREUPLOADRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT PrepareUploadResult : public ServiceResult + { + public: + + + PrepareUploadResult(); + explicit PrepareUploadResult(const std::string &payload); + ~PrepareUploadResult(); + std::string getBucketName()const; + std::string getEndpoint()const; + std::string getAdditionInfo()const; + + protected: + void parse(const std::string &payload); + private: + std::string bucketName_; + std::string endpoint_; + std::string additionInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_PREPAREUPLOADRESULT_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/PutBucketRequest.h b/vs/include/alibabacloud/vs/model/PutBucketRequest.h new file mode 100644 index 000000000..50d2dd305 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/PutBucketRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VS_MODEL_PUTBUCKETREQUEST_H_ +#define ALIBABACLOUD_VS_MODEL_PUTBUCKETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT PutBucketRequest : public RpcServiceRequest + { + + public: + PutBucketRequest(); + ~PutBucketRequest(); + + std::string getDataRedundancyType()const; + void setDataRedundancyType(const std::string& dataRedundancyType); + std::string getEndpoint()const; + void setEndpoint(const std::string& endpoint); + std::string getBucketName()const; + void setBucketName(const std::string& bucketName); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getBucketAcl()const; + void setBucketAcl(const std::string& bucketAcl); + std::string getDispatcherType()const; + void setDispatcherType(const std::string& dispatcherType); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + std::string getStorageClass()const; + void setStorageClass(const std::string& storageClass); + std::string getComment()const; + void setComment(const std::string& comment); + + private: + std::string dataRedundancyType_; + std::string endpoint_; + std::string bucketName_; + std::string showLog_; + std::string bucketAcl_; + std::string dispatcherType_; + long ownerId_; + std::string resourceType_; + std::string storageClass_; + std::string comment_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_PUTBUCKETREQUEST_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/PutBucketResult.h b/vs/include/alibabacloud/vs/model/PutBucketResult.h new file mode 100644 index 000000000..710d0028d --- /dev/null +++ b/vs/include/alibabacloud/vs/model/PutBucketResult.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_VS_MODEL_PUTBUCKETRESULT_H_ +#define ALIBABACLOUD_VS_MODEL_PUTBUCKETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT PutBucketResult : public ServiceResult + { + public: + + + PutBucketResult(); + explicit PutBucketResult(const std::string &payload); + ~PutBucketResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_PUTBUCKETRESULT_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/ResetRenderingDevicesRequest.h b/vs/include/alibabacloud/vs/model/ResetRenderingDevicesRequest.h new file mode 100644 index 000000000..ebe2113ee --- /dev/null +++ b/vs/include/alibabacloud/vs/model/ResetRenderingDevicesRequest.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_VS_MODEL_RESETRENDERINGDEVICESREQUEST_H_ +#define ALIBABACLOUD_VS_MODEL_RESETRENDERINGDEVICESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT ResetRenderingDevicesRequest : public RpcServiceRequest + { + + public: + ResetRenderingDevicesRequest(); + ~ResetRenderingDevicesRequest(); + + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getInstanceIds()const; + void setInstanceIds(const std::string& instanceIds); + + private: + std::string showLog_; + long ownerId_; + std::string instanceIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_RESETRENDERINGDEVICESREQUEST_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/ResetRenderingDevicesResult.h b/vs/include/alibabacloud/vs/model/ResetRenderingDevicesResult.h new file mode 100644 index 000000000..321a1fd97 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/ResetRenderingDevicesResult.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_VS_MODEL_RESETRENDERINGDEVICESRESULT_H_ +#define ALIBABACLOUD_VS_MODEL_RESETRENDERINGDEVICESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT ResetRenderingDevicesResult : public ServiceResult + { + public: + + + ResetRenderingDevicesResult(); + explicit ResetRenderingDevicesResult(const std::string &payload); + ~ResetRenderingDevicesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_RESETRENDERINGDEVICESRESULT_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/SetPresetRequest.h b/vs/include/alibabacloud/vs/model/SetPresetRequest.h index 1ff22d397..9e3fc44a6 100644 --- a/vs/include/alibabacloud/vs/model/SetPresetRequest.h +++ b/vs/include/alibabacloud/vs/model/SetPresetRequest.h @@ -35,6 +35,8 @@ namespace AlibabaCloud SetPresetRequest(); ~SetPresetRequest(); + std::string getSubProtocol()const; + void setSubProtocol(const std::string& subProtocol); std::string getId()const; void setId(const std::string& id); std::string getPresetId()const; @@ -45,6 +47,7 @@ namespace AlibabaCloud void setOwnerId(long ownerId); private: + std::string subProtocol_; std::string id_; std::string presetId_; std::string showLog_; diff --git a/vs/include/alibabacloud/vs/model/StopAdjustRequest.h b/vs/include/alibabacloud/vs/model/StopAdjustRequest.h index 16fdec885..9d8b91170 100644 --- a/vs/include/alibabacloud/vs/model/StopAdjustRequest.h +++ b/vs/include/alibabacloud/vs/model/StopAdjustRequest.h @@ -37,6 +37,8 @@ namespace AlibabaCloud bool getFocus()const; void setFocus(bool focus); + std::string getSubProtocol()const; + void setSubProtocol(const std::string& subProtocol); std::string getId()const; void setId(const std::string& id); std::string getShowLog()const; @@ -48,6 +50,7 @@ namespace AlibabaCloud private: bool focus_; + std::string subProtocol_; std::string id_; std::string showLog_; bool iris_; diff --git a/vs/include/alibabacloud/vs/model/StopMoveRequest.h b/vs/include/alibabacloud/vs/model/StopMoveRequest.h index 0ea371589..dd08db03d 100644 --- a/vs/include/alibabacloud/vs/model/StopMoveRequest.h +++ b/vs/include/alibabacloud/vs/model/StopMoveRequest.h @@ -37,6 +37,8 @@ namespace AlibabaCloud bool getTilt()const; void setTilt(bool tilt); + std::string getSubProtocol()const; + void setSubProtocol(const std::string& subProtocol); std::string getId()const; void setId(const std::string& id); bool getPan()const; @@ -50,6 +52,7 @@ namespace AlibabaCloud private: bool tilt_; + std::string subProtocol_; std::string id_; bool pan_; std::string showLog_; diff --git a/vs/include/alibabacloud/vs/model/SyncDeviceChannelsRequest.h b/vs/include/alibabacloud/vs/model/SyncDeviceChannelsRequest.h new file mode 100644 index 000000000..48d52a961 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/SyncDeviceChannelsRequest.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_VS_MODEL_SYNCDEVICECHANNELSREQUEST_H_ +#define ALIBABACLOUD_VS_MODEL_SYNCDEVICECHANNELSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT SyncDeviceChannelsRequest : public RpcServiceRequest + { + + public: + SyncDeviceChannelsRequest(); + ~SyncDeviceChannelsRequest(); + + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getDeviceId()const; + void setDeviceId(const std::string& deviceId); + + private: + std::string showLog_; + long ownerId_; + std::string deviceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_SYNCDEVICECHANNELSREQUEST_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/SyncDeviceChannelsResult.h b/vs/include/alibabacloud/vs/model/SyncDeviceChannelsResult.h new file mode 100644 index 000000000..7ee69d800 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/SyncDeviceChannelsResult.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_VS_MODEL_SYNCDEVICECHANNELSRESULT_H_ +#define ALIBABACLOUD_VS_MODEL_SYNCDEVICECHANNELSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT SyncDeviceChannelsResult : public ServiceResult + { + public: + + + SyncDeviceChannelsResult(); + explicit SyncDeviceChannelsResult(const std::string &payload); + ~SyncDeviceChannelsResult(); + std::string getId()const; + + protected: + void parse(const std::string &payload); + private: + std::string id_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_SYNCDEVICECHANNELSRESULT_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/UpdateBucketInfoRequest.h b/vs/include/alibabacloud/vs/model/UpdateBucketInfoRequest.h new file mode 100644 index 000000000..8e5fc93ba --- /dev/null +++ b/vs/include/alibabacloud/vs/model/UpdateBucketInfoRequest.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_VS_MODEL_UPDATEBUCKETINFOREQUEST_H_ +#define ALIBABACLOUD_VS_MODEL_UPDATEBUCKETINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT UpdateBucketInfoRequest : public RpcServiceRequest + { + + public: + UpdateBucketInfoRequest(); + ~UpdateBucketInfoRequest(); + + std::string getBucketName()const; + void setBucketName(const std::string& bucketName); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getComment()const; + void setComment(const std::string& comment); + + private: + std::string bucketName_; + std::string showLog_; + long ownerId_; + std::string comment_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_UPDATEBUCKETINFOREQUEST_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/UpdateBucketInfoResult.h b/vs/include/alibabacloud/vs/model/UpdateBucketInfoResult.h new file mode 100644 index 000000000..c3bfc432d --- /dev/null +++ b/vs/include/alibabacloud/vs/model/UpdateBucketInfoResult.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_VS_MODEL_UPDATEBUCKETINFORESULT_H_ +#define ALIBABACLOUD_VS_MODEL_UPDATEBUCKETINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT UpdateBucketInfoResult : public ServiceResult + { + public: + + + UpdateBucketInfoResult(); + explicit UpdateBucketInfoResult(const std::string &payload); + ~UpdateBucketInfoResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_UPDATEBUCKETINFORESULT_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/UpdateClusterRequest.h b/vs/include/alibabacloud/vs/model/UpdateClusterRequest.h new file mode 100644 index 000000000..de3550337 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/UpdateClusterRequest.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_VS_MODEL_UPDATECLUSTERREQUEST_H_ +#define ALIBABACLOUD_VS_MODEL_UPDATECLUSTERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT UpdateClusterRequest : public RpcServiceRequest + { + + public: + UpdateClusterRequest(); + ~UpdateClusterRequest(); + + std::string getSecurityGroupId()const; + void setSecurityGroupId(const std::string& securityGroupId); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getMaintainTime()const; + void setMaintainTime(const std::string& maintainTime); + std::string getEffectiveTime()const; + void setEffectiveTime(const std::string& effectiveTime); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getName()const; + void setName(const std::string& name); + std::string getInternalPorts()const; + void setInternalPorts(const std::string& internalPorts); + + private: + std::string securityGroupId_; + std::string description_; + std::string maintainTime_; + std::string effectiveTime_; + std::string showLog_; + std::string clusterId_; + long ownerId_; + std::string name_; + std::string internalPorts_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_UPDATECLUSTERREQUEST_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/UpdateClusterResult.h b/vs/include/alibabacloud/vs/model/UpdateClusterResult.h new file mode 100644 index 000000000..685d20e2d --- /dev/null +++ b/vs/include/alibabacloud/vs/model/UpdateClusterResult.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_VS_MODEL_UPDATECLUSTERRESULT_H_ +#define ALIBABACLOUD_VS_MODEL_UPDATECLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT UpdateClusterResult : public ServiceResult + { + public: + + + UpdateClusterResult(); + explicit UpdateClusterResult(const std::string &payload); + ~UpdateClusterResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_UPDATECLUSTERRESULT_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/UpdateRenderingDeviceSpecRequest.h b/vs/include/alibabacloud/vs/model/UpdateRenderingDeviceSpecRequest.h new file mode 100644 index 000000000..9ad3daf1f --- /dev/null +++ b/vs/include/alibabacloud/vs/model/UpdateRenderingDeviceSpecRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VS_MODEL_UPDATERENDERINGDEVICESPECREQUEST_H_ +#define ALIBABACLOUD_VS_MODEL_UPDATERENDERINGDEVICESPECREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT UpdateRenderingDeviceSpecRequest : public RpcServiceRequest + { + + public: + UpdateRenderingDeviceSpecRequest(); + ~UpdateRenderingDeviceSpecRequest(); + + std::string getDescription()const; + void setDescription(const std::string& description); + bool getEffectiveTime()const; + void setEffectiveTime(bool effectiveTime); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + long getAutoRenewPeriod()const; + void setAutoRenewPeriod(long autoRenewPeriod); + int getPeriod()const; + void setPeriod(int period); + std::string getSpecification()const; + void setSpecification(const std::string& specification); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getPeriodUnit()const; + void setPeriodUnit(const std::string& periodUnit); + bool getAutoRenew()const; + void setAutoRenew(bool autoRenew); + std::string getInstanceIds()const; + void setInstanceIds(const std::string& instanceIds); + + private: + std::string description_; + bool effectiveTime_; + std::string showLog_; + long autoRenewPeriod_; + int period_; + std::string specification_; + long ownerId_; + std::string periodUnit_; + bool autoRenew_; + std::string instanceIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_UPDATERENDERINGDEVICESPECREQUEST_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/UpdateRenderingDeviceSpecResult.h b/vs/include/alibabacloud/vs/model/UpdateRenderingDeviceSpecResult.h new file mode 100644 index 000000000..e9be47238 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/UpdateRenderingDeviceSpecResult.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_VS_MODEL_UPDATERENDERINGDEVICESPECRESULT_H_ +#define ALIBABACLOUD_VS_MODEL_UPDATERENDERINGDEVICESPECRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT UpdateRenderingDeviceSpecResult : public ServiceResult + { + public: + + + UpdateRenderingDeviceSpecResult(); + explicit UpdateRenderingDeviceSpecResult(const std::string &payload); + ~UpdateRenderingDeviceSpecResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_UPDATERENDERINGDEVICESPECRESULT_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/UploadDeviceRecordRequest.h b/vs/include/alibabacloud/vs/model/UploadDeviceRecordRequest.h new file mode 100644 index 000000000..0a59cf14e --- /dev/null +++ b/vs/include/alibabacloud/vs/model/UploadDeviceRecordRequest.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_VS_MODEL_UPLOADDEVICERECORDREQUEST_H_ +#define ALIBABACLOUD_VS_MODEL_UPLOADDEVICERECORDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT UploadDeviceRecordRequest : public RpcServiceRequest + { + + public: + UploadDeviceRecordRequest(); + ~UploadDeviceRecordRequest(); + + std::string getSearchCriteria()const; + void setSearchCriteria(const std::string& searchCriteria); + std::string getUploadParams()const; + void setUploadParams(const std::string& uploadParams); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getStreamId()const; + void setStreamId(const std::string& streamId); + std::string getUploadId()const; + void setUploadId(const std::string& uploadId); + std::string getUploadType()const; + void setUploadType(const std::string& uploadType); + std::string getUploadMode()const; + void setUploadMode(const std::string& uploadMode); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getDeviceId()const; + void setDeviceId(const std::string& deviceId); + + private: + std::string searchCriteria_; + std::string uploadParams_; + std::string showLog_; + std::string streamId_; + std::string uploadId_; + std::string uploadType_; + std::string uploadMode_; + long ownerId_; + std::string deviceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_UPLOADDEVICERECORDREQUEST_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/UploadDeviceRecordResult.h b/vs/include/alibabacloud/vs/model/UploadDeviceRecordResult.h new file mode 100644 index 000000000..ae39d183d --- /dev/null +++ b/vs/include/alibabacloud/vs/model/UploadDeviceRecordResult.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_VS_MODEL_UPLOADDEVICERECORDRESULT_H_ +#define ALIBABACLOUD_VS_MODEL_UPLOADDEVICERECORDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT UploadDeviceRecordResult : public ServiceResult + { + public: + + + UploadDeviceRecordResult(); + explicit UploadDeviceRecordResult(const std::string &payload); + ~UploadDeviceRecordResult(); + std::string getId()const; + + protected: + void parse(const std::string &payload); + private: + std::string id_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_UPLOADDEVICERECORDRESULT_H_ \ No newline at end of file diff --git a/vs/src/VsClient.cc b/vs/src/VsClient.cc index 58c51bd3e..0c26e6fb6 100644 --- a/vs/src/VsClient.cc +++ b/vs/src/VsClient.cc @@ -51,6 +51,78 @@ VsClient::VsClient(const std::string & accessKeyId, const std::string & accessKe VsClient::~VsClient() {} +VsClient::AddDeviceOutcome VsClient::addDevice(const AddDeviceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddDeviceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddDeviceOutcome(AddDeviceResult(outcome.result())); + else + return AddDeviceOutcome(outcome.error()); +} + +void VsClient::addDeviceAsync(const AddDeviceRequest& request, const AddDeviceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addDevice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VsClient::AddDeviceOutcomeCallable VsClient::addDeviceCallable(const AddDeviceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addDevice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VsClient::AddRenderingDeviceInternetPortsOutcome VsClient::addRenderingDeviceInternetPorts(const AddRenderingDeviceInternetPortsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddRenderingDeviceInternetPortsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddRenderingDeviceInternetPortsOutcome(AddRenderingDeviceInternetPortsResult(outcome.result())); + else + return AddRenderingDeviceInternetPortsOutcome(outcome.error()); +} + +void VsClient::addRenderingDeviceInternetPortsAsync(const AddRenderingDeviceInternetPortsRequest& request, const AddRenderingDeviceInternetPortsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addRenderingDeviceInternetPorts(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VsClient::AddRenderingDeviceInternetPortsOutcomeCallable VsClient::addRenderingDeviceInternetPortsCallable(const AddRenderingDeviceInternetPortsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addRenderingDeviceInternetPorts(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VsClient::AddVsPullStreamInfoConfigOutcome VsClient::addVsPullStreamInfoConfig(const AddVsPullStreamInfoConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -987,6 +1059,42 @@ VsClient::ContinuousMoveOutcomeCallable VsClient::continuousMoveCallable(const C return task->get_future(); } +VsClient::CreateClusterOutcome VsClient::createCluster(const CreateClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateClusterOutcome(CreateClusterResult(outcome.result())); + else + return CreateClusterOutcome(outcome.error()); +} + +void VsClient::createClusterAsync(const CreateClusterRequest& request, const CreateClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VsClient::CreateClusterOutcomeCallable VsClient::createClusterCallable(const CreateClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VsClient::CreateDeviceOutcome VsClient::createDevice(const CreateDeviceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1059,6 +1167,42 @@ VsClient::CreateDeviceAlarmOutcomeCallable VsClient::createDeviceAlarmCallable(c return task->get_future(); } +VsClient::CreateDeviceSnapshotOutcome VsClient::createDeviceSnapshot(const CreateDeviceSnapshotRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDeviceSnapshotOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDeviceSnapshotOutcome(CreateDeviceSnapshotResult(outcome.result())); + else + return CreateDeviceSnapshotOutcome(outcome.error()); +} + +void VsClient::createDeviceSnapshotAsync(const CreateDeviceSnapshotRequest& request, const CreateDeviceSnapshotAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDeviceSnapshot(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VsClient::CreateDeviceSnapshotOutcomeCallable VsClient::createDeviceSnapshotCallable(const CreateDeviceSnapshotRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDeviceSnapshot(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VsClient::CreateDirectoryOutcome VsClient::createDirectory(const CreateDirectoryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1167,6 +1311,42 @@ VsClient::CreateParentPlatformOutcomeCallable VsClient::createParentPlatformCall return task->get_future(); } +VsClient::CreateRenderingDeviceOutcome VsClient::createRenderingDevice(const CreateRenderingDeviceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateRenderingDeviceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateRenderingDeviceOutcome(CreateRenderingDeviceResult(outcome.result())); + else + return CreateRenderingDeviceOutcome(outcome.error()); +} + +void VsClient::createRenderingDeviceAsync(const CreateRenderingDeviceRequest& request, const CreateRenderingDeviceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createRenderingDevice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VsClient::CreateRenderingDeviceOutcomeCallable VsClient::createRenderingDeviceCallable(const CreateRenderingDeviceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createRenderingDevice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VsClient::CreateStreamSnapshotOutcome VsClient::createStreamSnapshot(const CreateStreamSnapshotRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1239,6 +1419,78 @@ VsClient::CreateTemplateOutcomeCallable VsClient::createTemplateCallable(const C return task->get_future(); } +VsClient::DeleteBucketOutcome VsClient::deleteBucket(const DeleteBucketRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteBucketOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteBucketOutcome(DeleteBucketResult(outcome.result())); + else + return DeleteBucketOutcome(outcome.error()); +} + +void VsClient::deleteBucketAsync(const DeleteBucketRequest& request, const DeleteBucketAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteBucket(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VsClient::DeleteBucketOutcomeCallable VsClient::deleteBucketCallable(const DeleteBucketRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteBucket(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VsClient::DeleteClusterOutcome VsClient::deleteCluster(const DeleteClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteClusterOutcome(DeleteClusterResult(outcome.result())); + else + return DeleteClusterOutcome(outcome.error()); +} + +void VsClient::deleteClusterAsync(const DeleteClusterRequest& request, const DeleteClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VsClient::DeleteClusterOutcomeCallable VsClient::deleteClusterCallable(const DeleteClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VsClient::DeleteDeviceOutcome VsClient::deleteDevice(const DeleteDeviceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1419,6 +1671,78 @@ VsClient::DeletePresetOutcomeCallable VsClient::deletePresetCallable(const Delet return task->get_future(); } +VsClient::DeleteRenderingDeviceInternetPortsOutcome VsClient::deleteRenderingDeviceInternetPorts(const DeleteRenderingDeviceInternetPortsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteRenderingDeviceInternetPortsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteRenderingDeviceInternetPortsOutcome(DeleteRenderingDeviceInternetPortsResult(outcome.result())); + else + return DeleteRenderingDeviceInternetPortsOutcome(outcome.error()); +} + +void VsClient::deleteRenderingDeviceInternetPortsAsync(const DeleteRenderingDeviceInternetPortsRequest& request, const DeleteRenderingDeviceInternetPortsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteRenderingDeviceInternetPorts(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VsClient::DeleteRenderingDeviceInternetPortsOutcomeCallable VsClient::deleteRenderingDeviceInternetPortsCallable(const DeleteRenderingDeviceInternetPortsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteRenderingDeviceInternetPorts(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VsClient::DeleteRenderingDevicesOutcome VsClient::deleteRenderingDevices(const DeleteRenderingDevicesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteRenderingDevicesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteRenderingDevicesOutcome(DeleteRenderingDevicesResult(outcome.result())); + else + return DeleteRenderingDevicesOutcome(outcome.error()); +} + +void VsClient::deleteRenderingDevicesAsync(const DeleteRenderingDevicesRequest& request, const DeleteRenderingDevicesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteRenderingDevices(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VsClient::DeleteRenderingDevicesOutcomeCallable VsClient::deleteRenderingDevicesCallable(const DeleteRenderingDevicesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteRenderingDevices(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VsClient::DeleteTemplateOutcome VsClient::deleteTemplate(const DeleteTemplateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1563,6 +1887,114 @@ VsClient::DescribeAccountStatOutcomeCallable VsClient::describeAccountStatCallab return task->get_future(); } +VsClient::DescribeClusterOutcome VsClient::describeCluster(const DescribeClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeClusterOutcome(DescribeClusterResult(outcome.result())); + else + return DescribeClusterOutcome(outcome.error()); +} + +void VsClient::describeClusterAsync(const DescribeClusterRequest& request, const DescribeClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VsClient::DescribeClusterOutcomeCallable VsClient::describeClusterCallable(const DescribeClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VsClient::DescribeClusterDevicesOutcome VsClient::describeClusterDevices(const DescribeClusterDevicesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeClusterDevicesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeClusterDevicesOutcome(DescribeClusterDevicesResult(outcome.result())); + else + return DescribeClusterDevicesOutcome(outcome.error()); +} + +void VsClient::describeClusterDevicesAsync(const DescribeClusterDevicesRequest& request, const DescribeClusterDevicesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeClusterDevices(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VsClient::DescribeClusterDevicesOutcomeCallable VsClient::describeClusterDevicesCallable(const DescribeClusterDevicesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeClusterDevices(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VsClient::DescribeClustersOutcome VsClient::describeClusters(const DescribeClustersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeClustersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeClustersOutcome(DescribeClustersResult(outcome.result())); + else + return DescribeClustersOutcome(outcome.error()); +} + +void VsClient::describeClustersAsync(const DescribeClustersRequest& request, const DescribeClustersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeClusters(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VsClient::DescribeClustersOutcomeCallable VsClient::describeClustersCallable(const DescribeClustersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeClusters(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VsClient::DescribeDeviceOutcome VsClient::describeDevice(const DescribeDeviceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1887,6 +2319,42 @@ VsClient::DescribeGroupsOutcomeCallable VsClient::describeGroupsCallable(const D return task->get_future(); } +VsClient::DescribeNodeDevicesInfoOutcome VsClient::describeNodeDevicesInfo(const DescribeNodeDevicesInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeNodeDevicesInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeNodeDevicesInfoOutcome(DescribeNodeDevicesInfoResult(outcome.result())); + else + return DescribeNodeDevicesInfoOutcome(outcome.error()); +} + +void VsClient::describeNodeDevicesInfoAsync(const DescribeNodeDevicesInfoRequest& request, const DescribeNodeDevicesInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeNodeDevicesInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VsClient::DescribeNodeDevicesInfoOutcomeCallable VsClient::describeNodeDevicesInfoCallable(const DescribeNodeDevicesInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeNodeDevicesInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VsClient::DescribeParentPlatformOutcome VsClient::describeParentPlatform(const DescribeParentPlatformRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2139,6 +2607,42 @@ VsClient::DescribeRecordsOutcomeCallable VsClient::describeRecordsCallable(const return task->get_future(); } +VsClient::DescribeRenderingDevicesOutcome VsClient::describeRenderingDevices(const DescribeRenderingDevicesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRenderingDevicesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRenderingDevicesOutcome(DescribeRenderingDevicesResult(outcome.result())); + else + return DescribeRenderingDevicesOutcome(outcome.error()); +} + +void VsClient::describeRenderingDevicesAsync(const DescribeRenderingDevicesRequest& request, const DescribeRenderingDevicesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRenderingDevices(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VsClient::DescribeRenderingDevicesOutcomeCallable VsClient::describeRenderingDevicesCallable(const DescribeRenderingDevicesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRenderingDevices(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VsClient::DescribeStreamOutcome VsClient::describeStream(const DescribeStreamRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2967,6 +3471,78 @@ VsClient::DescribeVsPullStreamInfoConfigOutcomeCallable VsClient::describeVsPull return task->get_future(); } +VsClient::DescribeVsStorageTrafficUsageDataOutcome VsClient::describeVsStorageTrafficUsageData(const DescribeVsStorageTrafficUsageDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVsStorageTrafficUsageDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVsStorageTrafficUsageDataOutcome(DescribeVsStorageTrafficUsageDataResult(outcome.result())); + else + return DescribeVsStorageTrafficUsageDataOutcome(outcome.error()); +} + +void VsClient::describeVsStorageTrafficUsageDataAsync(const DescribeVsStorageTrafficUsageDataRequest& request, const DescribeVsStorageTrafficUsageDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVsStorageTrafficUsageData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VsClient::DescribeVsStorageTrafficUsageDataOutcomeCallable VsClient::describeVsStorageTrafficUsageDataCallable(const DescribeVsStorageTrafficUsageDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVsStorageTrafficUsageData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VsClient::DescribeVsStorageUsageDataOutcome VsClient::describeVsStorageUsageData(const DescribeVsStorageUsageDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVsStorageUsageDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVsStorageUsageDataOutcome(DescribeVsStorageUsageDataResult(outcome.result())); + else + return DescribeVsStorageUsageDataOutcome(outcome.error()); +} + +void VsClient::describeVsStorageUsageDataAsync(const DescribeVsStorageUsageDataRequest& request, const DescribeVsStorageUsageDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVsStorageUsageData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VsClient::DescribeVsStorageUsageDataOutcomeCallable VsClient::describeVsStorageUsageDataCallable(const DescribeVsStorageUsageDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVsStorageUsageData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VsClient::DescribeVsStreamsNotifyUrlConfigOutcome VsClient::describeVsStreamsNotifyUrlConfig(const DescribeVsStreamsNotifyUrlConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3219,6 +3795,42 @@ VsClient::ForbidVsStreamOutcomeCallable VsClient::forbidVsStreamCallable(const F return task->get_future(); } +VsClient::GetBucketInfoOutcome VsClient::getBucketInfo(const GetBucketInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetBucketInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetBucketInfoOutcome(GetBucketInfoResult(outcome.result())); + else + return GetBucketInfoOutcome(outcome.error()); +} + +void VsClient::getBucketInfoAsync(const GetBucketInfoRequest& request, const GetBucketInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getBucketInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VsClient::GetBucketInfoOutcomeCallable VsClient::getBucketInfoCallable(const GetBucketInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getBucketInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VsClient::GotoPresetOutcome VsClient::gotoPreset(const GotoPresetRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3255,6 +3867,150 @@ VsClient::GotoPresetOutcomeCallable VsClient::gotoPresetCallable(const GotoPrese return task->get_future(); } +VsClient::ListBucketsOutcome VsClient::listBuckets(const ListBucketsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListBucketsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListBucketsOutcome(ListBucketsResult(outcome.result())); + else + return ListBucketsOutcome(outcome.error()); +} + +void VsClient::listBucketsAsync(const ListBucketsRequest& request, const ListBucketsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listBuckets(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VsClient::ListBucketsOutcomeCallable VsClient::listBucketsCallable(const ListBucketsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listBuckets(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VsClient::ListDeviceChannelsOutcome VsClient::listDeviceChannels(const ListDeviceChannelsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDeviceChannelsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDeviceChannelsOutcome(ListDeviceChannelsResult(outcome.result())); + else + return ListDeviceChannelsOutcome(outcome.error()); +} + +void VsClient::listDeviceChannelsAsync(const ListDeviceChannelsRequest& request, const ListDeviceChannelsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDeviceChannels(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VsClient::ListDeviceChannelsOutcomeCallable VsClient::listDeviceChannelsCallable(const ListDeviceChannelsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDeviceChannels(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VsClient::ListDeviceRecordsOutcome VsClient::listDeviceRecords(const ListDeviceRecordsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDeviceRecordsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDeviceRecordsOutcome(ListDeviceRecordsResult(outcome.result())); + else + return ListDeviceRecordsOutcome(outcome.error()); +} + +void VsClient::listDeviceRecordsAsync(const ListDeviceRecordsRequest& request, const ListDeviceRecordsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDeviceRecords(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VsClient::ListDeviceRecordsOutcomeCallable VsClient::listDeviceRecordsCallable(const ListDeviceRecordsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDeviceRecords(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VsClient::ListObjectsOutcome VsClient::listObjects(const ListObjectsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListObjectsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListObjectsOutcome(ListObjectsResult(outcome.result())); + else + return ListObjectsOutcome(outcome.error()); +} + +void VsClient::listObjectsAsync(const ListObjectsRequest& request, const ListObjectsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listObjects(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VsClient::ListObjectsOutcomeCallable VsClient::listObjectsCallable(const ListObjectsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listObjects(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VsClient::ModifyDeviceOutcome VsClient::modifyDevice(const ModifyDeviceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3543,6 +4299,186 @@ VsClient::ModifyTemplateOutcomeCallable VsClient::modifyTemplateCallable(const M return task->get_future(); } +VsClient::OpenVsServiceOutcome VsClient::openVsService(const OpenVsServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OpenVsServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OpenVsServiceOutcome(OpenVsServiceResult(outcome.result())); + else + return OpenVsServiceOutcome(outcome.error()); +} + +void VsClient::openVsServiceAsync(const OpenVsServiceRequest& request, const OpenVsServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, openVsService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VsClient::OpenVsServiceOutcomeCallable VsClient::openVsServiceCallable(const OpenVsServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->openVsService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VsClient::OperateRenderingDevicesOutcome VsClient::operateRenderingDevices(const OperateRenderingDevicesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OperateRenderingDevicesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OperateRenderingDevicesOutcome(OperateRenderingDevicesResult(outcome.result())); + else + return OperateRenderingDevicesOutcome(outcome.error()); +} + +void VsClient::operateRenderingDevicesAsync(const OperateRenderingDevicesRequest& request, const OperateRenderingDevicesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, operateRenderingDevices(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VsClient::OperateRenderingDevicesOutcomeCallable VsClient::operateRenderingDevicesCallable(const OperateRenderingDevicesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->operateRenderingDevices(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VsClient::PrepareUploadOutcome VsClient::prepareUpload(const PrepareUploadRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PrepareUploadOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PrepareUploadOutcome(PrepareUploadResult(outcome.result())); + else + return PrepareUploadOutcome(outcome.error()); +} + +void VsClient::prepareUploadAsync(const PrepareUploadRequest& request, const PrepareUploadAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, prepareUpload(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VsClient::PrepareUploadOutcomeCallable VsClient::prepareUploadCallable(const PrepareUploadRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->prepareUpload(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VsClient::PutBucketOutcome VsClient::putBucket(const PutBucketRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PutBucketOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PutBucketOutcome(PutBucketResult(outcome.result())); + else + return PutBucketOutcome(outcome.error()); +} + +void VsClient::putBucketAsync(const PutBucketRequest& request, const PutBucketAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, putBucket(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VsClient::PutBucketOutcomeCallable VsClient::putBucketCallable(const PutBucketRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->putBucket(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VsClient::ResetRenderingDevicesOutcome VsClient::resetRenderingDevices(const ResetRenderingDevicesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ResetRenderingDevicesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResetRenderingDevicesOutcome(ResetRenderingDevicesResult(outcome.result())); + else + return ResetRenderingDevicesOutcome(outcome.error()); +} + +void VsClient::resetRenderingDevicesAsync(const ResetRenderingDevicesRequest& request, const ResetRenderingDevicesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resetRenderingDevices(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VsClient::ResetRenderingDevicesOutcomeCallable VsClient::resetRenderingDevicesCallable(const ResetRenderingDevicesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resetRenderingDevices(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VsClient::ResumeVsStreamOutcome VsClient::resumeVsStream(const ResumeVsStreamRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4119,6 +5055,42 @@ VsClient::SyncCatalogsOutcomeCallable VsClient::syncCatalogsCallable(const SyncC return task->get_future(); } +VsClient::SyncDeviceChannelsOutcome VsClient::syncDeviceChannels(const SyncDeviceChannelsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SyncDeviceChannelsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SyncDeviceChannelsOutcome(SyncDeviceChannelsResult(outcome.result())); + else + return SyncDeviceChannelsOutcome(outcome.error()); +} + +void VsClient::syncDeviceChannelsAsync(const SyncDeviceChannelsRequest& request, const SyncDeviceChannelsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, syncDeviceChannels(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VsClient::SyncDeviceChannelsOutcomeCallable VsClient::syncDeviceChannelsCallable(const SyncDeviceChannelsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->syncDeviceChannels(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VsClient::UnbindDirectoryOutcome VsClient::unbindDirectory(const UnbindDirectoryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4299,6 +5271,114 @@ VsClient::UnlockDeviceOutcomeCallable VsClient::unlockDeviceCallable(const Unloc return task->get_future(); } +VsClient::UpdateBucketInfoOutcome VsClient::updateBucketInfo(const UpdateBucketInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateBucketInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateBucketInfoOutcome(UpdateBucketInfoResult(outcome.result())); + else + return UpdateBucketInfoOutcome(outcome.error()); +} + +void VsClient::updateBucketInfoAsync(const UpdateBucketInfoRequest& request, const UpdateBucketInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateBucketInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VsClient::UpdateBucketInfoOutcomeCallable VsClient::updateBucketInfoCallable(const UpdateBucketInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateBucketInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VsClient::UpdateClusterOutcome VsClient::updateCluster(const UpdateClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateClusterOutcome(UpdateClusterResult(outcome.result())); + else + return UpdateClusterOutcome(outcome.error()); +} + +void VsClient::updateClusterAsync(const UpdateClusterRequest& request, const UpdateClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VsClient::UpdateClusterOutcomeCallable VsClient::updateClusterCallable(const UpdateClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VsClient::UpdateRenderingDeviceSpecOutcome VsClient::updateRenderingDeviceSpec(const UpdateRenderingDeviceSpecRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateRenderingDeviceSpecOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateRenderingDeviceSpecOutcome(UpdateRenderingDeviceSpecResult(outcome.result())); + else + return UpdateRenderingDeviceSpecOutcome(outcome.error()); +} + +void VsClient::updateRenderingDeviceSpecAsync(const UpdateRenderingDeviceSpecRequest& request, const UpdateRenderingDeviceSpecAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateRenderingDeviceSpec(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VsClient::UpdateRenderingDeviceSpecOutcomeCallable VsClient::updateRenderingDeviceSpecCallable(const UpdateRenderingDeviceSpecRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateRenderingDeviceSpec(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VsClient::UpdateVsPullStreamInfoConfigOutcome VsClient::updateVsPullStreamInfoConfig(const UpdateVsPullStreamInfoConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4335,3 +5415,39 @@ VsClient::UpdateVsPullStreamInfoConfigOutcomeCallable VsClient::updateVsPullStre return task->get_future(); } +VsClient::UploadDeviceRecordOutcome VsClient::uploadDeviceRecord(const UploadDeviceRecordRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UploadDeviceRecordOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UploadDeviceRecordOutcome(UploadDeviceRecordResult(outcome.result())); + else + return UploadDeviceRecordOutcome(outcome.error()); +} + +void VsClient::uploadDeviceRecordAsync(const UploadDeviceRecordRequest& request, const UploadDeviceRecordAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, uploadDeviceRecord(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VsClient::UploadDeviceRecordOutcomeCallable VsClient::uploadDeviceRecordCallable(const UploadDeviceRecordRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->uploadDeviceRecord(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/vs/src/model/AddDeviceRequest.cc b/vs/src/model/AddDeviceRequest.cc new file mode 100644 index 000000000..a528a3cc3 --- /dev/null +++ b/vs/src/model/AddDeviceRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vs::Model::AddDeviceRequest; + +AddDeviceRequest::AddDeviceRequest() : + RpcServiceRequest("vs", "2018-12-12", "AddDevice") +{ + setMethod(HttpRequest::Method::Post); +} + +AddDeviceRequest::~AddDeviceRequest() +{} + +std::string AddDeviceRequest::getProtocol()const +{ + return protocol_; +} + +void AddDeviceRequest::setProtocol(const std::string& protocol) +{ + protocol_ = protocol; + setParameter("Protocol", protocol); +} + +std::string AddDeviceRequest::getShowLog()const +{ + return showLog_; +} + +void AddDeviceRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string AddDeviceRequest::getGroupId()const +{ + return groupId_; +} + +void AddDeviceRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + +long AddDeviceRequest::getOwnerId()const +{ + return ownerId_; +} + +void AddDeviceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AddDeviceRequest::getConfig()const +{ + return config_; +} + +void AddDeviceRequest::setConfig(const std::string& config) +{ + config_ = config; + setParameter("Config", config); +} + diff --git a/vs/src/model/AddDeviceResult.cc b/vs/src/model/AddDeviceResult.cc new file mode 100644 index 000000000..38794f7fa --- /dev/null +++ b/vs/src/model/AddDeviceResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vs; +using namespace AlibabaCloud::Vs::Model; + +AddDeviceResult::AddDeviceResult() : + ServiceResult() +{} + +AddDeviceResult::AddDeviceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddDeviceResult::~AddDeviceResult() +{} + +void AddDeviceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Id"].isNull()) + id_ = value["Id"].asString(); + +} + +std::string AddDeviceResult::getId()const +{ + return id_; +} + diff --git a/vs/src/model/AddRenderingDeviceInternetPortsRequest.cc b/vs/src/model/AddRenderingDeviceInternetPortsRequest.cc new file mode 100644 index 000000000..ae255f9e7 --- /dev/null +++ b/vs/src/model/AddRenderingDeviceInternetPortsRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vs::Model::AddRenderingDeviceInternetPortsRequest; + +AddRenderingDeviceInternetPortsRequest::AddRenderingDeviceInternetPortsRequest() : + RpcServiceRequest("vs", "2018-12-12", "AddRenderingDeviceInternetPorts") +{ + setMethod(HttpRequest::Method::Post); +} + +AddRenderingDeviceInternetPortsRequest::~AddRenderingDeviceInternetPortsRequest() +{} + +std::string AddRenderingDeviceInternetPortsRequest::getISP()const +{ + return iSP_; +} + +void AddRenderingDeviceInternetPortsRequest::setISP(const std::string& iSP) +{ + iSP_ = iSP; + setParameter("ISP", iSP); +} + +std::string AddRenderingDeviceInternetPortsRequest::getShowLog()const +{ + return showLog_; +} + +void AddRenderingDeviceInternetPortsRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string AddRenderingDeviceInternetPortsRequest::getIpProtocol()const +{ + return ipProtocol_; +} + +void AddRenderingDeviceInternetPortsRequest::setIpProtocol(const std::string& ipProtocol) +{ + ipProtocol_ = ipProtocol; + setParameter("IpProtocol", ipProtocol); +} + +long AddRenderingDeviceInternetPortsRequest::getOwnerId()const +{ + return ownerId_; +} + +void AddRenderingDeviceInternetPortsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AddRenderingDeviceInternetPortsRequest::getInstanceIds()const +{ + return instanceIds_; +} + +void AddRenderingDeviceInternetPortsRequest::setInstanceIds(const std::string& instanceIds) +{ + instanceIds_ = instanceIds; + setParameter("InstanceIds", instanceIds); +} + +std::string AddRenderingDeviceInternetPortsRequest::getInternalPort()const +{ + return internalPort_; +} + +void AddRenderingDeviceInternetPortsRequest::setInternalPort(const std::string& internalPort) +{ + internalPort_ = internalPort; + setParameter("InternalPort", internalPort); +} + diff --git a/vs/src/model/AddRenderingDeviceInternetPortsResult.cc b/vs/src/model/AddRenderingDeviceInternetPortsResult.cc new file mode 100644 index 000000000..624f885be --- /dev/null +++ b/vs/src/model/AddRenderingDeviceInternetPortsResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vs; +using namespace AlibabaCloud::Vs::Model; + +AddRenderingDeviceInternetPortsResult::AddRenderingDeviceInternetPortsResult() : + ServiceResult() +{} + +AddRenderingDeviceInternetPortsResult::AddRenderingDeviceInternetPortsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddRenderingDeviceInternetPortsResult::~AddRenderingDeviceInternetPortsResult() +{} + +void AddRenderingDeviceInternetPortsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allInstanceIds = value["InstanceIds"]["instanceId"]; + for (const auto &item : allInstanceIds) + instanceIds_.push_back(item.asString()); + +} + +std::vector AddRenderingDeviceInternetPortsResult::getInstanceIds()const +{ + return instanceIds_; +} + diff --git a/vs/src/model/BatchStartDevicesResult.cc b/vs/src/model/BatchStartDevicesResult.cc index e088ec6d2..46255b2cc 100644 --- a/vs/src/model/BatchStartDevicesResult.cc +++ b/vs/src/model/BatchStartDevicesResult.cc @@ -45,16 +45,16 @@ void BatchStartDevicesResult::parse(const std::string &payload) Result resultsObject; if(!valueResultsResult["Id"].isNull()) resultsObject.id = valueResultsResult["Id"].asString(); - auto allStreamsNode = allResultsNode["Streams"]["Stream"]; - for (auto allResultsNodeStreamsStream : allStreamsNode) + auto allStreamsNode = valueResultsResult["Streams"]["Stream"]; + for (auto valueResultsResultStreamsStream : allStreamsNode) { Result::Stream streamsObject; - if(!allResultsNodeStreamsStream["Id"].isNull()) - streamsObject.id = allResultsNodeStreamsStream["Id"].asString(); - if(!allResultsNodeStreamsStream["Name"].isNull()) - streamsObject.name = allResultsNodeStreamsStream["Name"].asString(); - if(!allResultsNodeStreamsStream["Error"].isNull()) - streamsObject.error = allResultsNodeStreamsStream["Error"].asString(); + if(!valueResultsResultStreamsStream["Id"].isNull()) + streamsObject.id = valueResultsResultStreamsStream["Id"].asString(); + if(!valueResultsResultStreamsStream["Name"].isNull()) + streamsObject.name = valueResultsResultStreamsStream["Name"].asString(); + if(!valueResultsResultStreamsStream["Error"].isNull()) + streamsObject.error = valueResultsResultStreamsStream["Error"].asString(); resultsObject.streams.push_back(streamsObject); } results_.push_back(resultsObject); diff --git a/vs/src/model/BatchStopDevicesResult.cc b/vs/src/model/BatchStopDevicesResult.cc index 23d90a7e5..ea2bed21e 100644 --- a/vs/src/model/BatchStopDevicesResult.cc +++ b/vs/src/model/BatchStopDevicesResult.cc @@ -45,16 +45,16 @@ void BatchStopDevicesResult::parse(const std::string &payload) Result resultsObject; if(!valueResultsResult["Id"].isNull()) resultsObject.id = valueResultsResult["Id"].asString(); - auto allStreamsNode = allResultsNode["Streams"]["Stream"]; - for (auto allResultsNodeStreamsStream : allStreamsNode) + auto allStreamsNode = valueResultsResult["Streams"]["Stream"]; + for (auto valueResultsResultStreamsStream : allStreamsNode) { Result::Stream streamsObject; - if(!allResultsNodeStreamsStream["Id"].isNull()) - streamsObject.id = allResultsNodeStreamsStream["Id"].asString(); - if(!allResultsNodeStreamsStream["Name"].isNull()) - streamsObject.name = allResultsNodeStreamsStream["Name"].asString(); - if(!allResultsNodeStreamsStream["Error"].isNull()) - streamsObject.error = allResultsNodeStreamsStream["Error"].asString(); + if(!valueResultsResultStreamsStream["Id"].isNull()) + streamsObject.id = valueResultsResultStreamsStream["Id"].asString(); + if(!valueResultsResultStreamsStream["Name"].isNull()) + streamsObject.name = valueResultsResultStreamsStream["Name"].asString(); + if(!valueResultsResultStreamsStream["Error"].isNull()) + streamsObject.error = valueResultsResultStreamsStream["Error"].asString(); resultsObject.streams.push_back(streamsObject); } results_.push_back(resultsObject); diff --git a/vs/src/model/ContinuousAdjustRequest.cc b/vs/src/model/ContinuousAdjustRequest.cc index 70ef96505..8327c9fe0 100644 --- a/vs/src/model/ContinuousAdjustRequest.cc +++ b/vs/src/model/ContinuousAdjustRequest.cc @@ -38,6 +38,17 @@ void ContinuousAdjustRequest::setFocus(const std::string& focus) setParameter("Focus", focus); } +std::string ContinuousAdjustRequest::getSubProtocol()const +{ + return subProtocol_; +} + +void ContinuousAdjustRequest::setSubProtocol(const std::string& subProtocol) +{ + subProtocol_ = subProtocol; + setParameter("SubProtocol", subProtocol); +} + std::string ContinuousAdjustRequest::getId()const { return id_; diff --git a/vs/src/model/ContinuousMoveRequest.cc b/vs/src/model/ContinuousMoveRequest.cc index f8c283798..fa182f29c 100644 --- a/vs/src/model/ContinuousMoveRequest.cc +++ b/vs/src/model/ContinuousMoveRequest.cc @@ -38,6 +38,17 @@ void ContinuousMoveRequest::setTilt(const std::string& tilt) setParameter("Tilt", tilt); } +std::string ContinuousMoveRequest::getSubProtocol()const +{ + return subProtocol_; +} + +void ContinuousMoveRequest::setSubProtocol(const std::string& subProtocol) +{ + subProtocol_ = subProtocol; + setParameter("SubProtocol", subProtocol); +} + std::string ContinuousMoveRequest::getId()const { return id_; diff --git a/vs/src/model/CreateClusterRequest.cc b/vs/src/model/CreateClusterRequest.cc new file mode 100644 index 000000000..ad8b99317 --- /dev/null +++ b/vs/src/model/CreateClusterRequest.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vs::Model::CreateClusterRequest; + +CreateClusterRequest::CreateClusterRequest() : + RpcServiceRequest("vs", "2018-12-12", "CreateCluster") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateClusterRequest::~CreateClusterRequest() +{} + +std::string CreateClusterRequest::getSecurityGroupId()const +{ + return securityGroupId_; +} + +void CreateClusterRequest::setSecurityGroupId(const std::string& securityGroupId) +{ + securityGroupId_ = securityGroupId; + setParameter("SecurityGroupId", securityGroupId); +} + +std::string CreateClusterRequest::getDescription()const +{ + return description_; +} + +void CreateClusterRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreateClusterRequest::getMaintainTime()const +{ + return maintainTime_; +} + +void CreateClusterRequest::setMaintainTime(const std::string& maintainTime) +{ + maintainTime_ = maintainTime; + setParameter("MaintainTime", maintainTime); +} + +std::string CreateClusterRequest::getShowLog()const +{ + return showLog_; +} + +void CreateClusterRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +long CreateClusterRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateClusterRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateClusterRequest::getName()const +{ + return name_; +} + +void CreateClusterRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string CreateClusterRequest::getInternalPorts()const +{ + return internalPorts_; +} + +void CreateClusterRequest::setInternalPorts(const std::string& internalPorts) +{ + internalPorts_ = internalPorts; + setParameter("InternalPorts", internalPorts); +} + diff --git a/vs/src/model/CreateClusterResult.cc b/vs/src/model/CreateClusterResult.cc new file mode 100644 index 000000000..d54b30c6f --- /dev/null +++ b/vs/src/model/CreateClusterResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vs; +using namespace AlibabaCloud::Vs::Model; + +CreateClusterResult::CreateClusterResult() : + ServiceResult() +{} + +CreateClusterResult::CreateClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateClusterResult::~CreateClusterResult() +{} + +void CreateClusterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ClusterId"].isNull()) + clusterId_ = value["ClusterId"].asString(); + +} + +std::string CreateClusterResult::getClusterId()const +{ + return clusterId_; +} + diff --git a/vs/src/model/CreateDeviceSnapshotRequest.cc b/vs/src/model/CreateDeviceSnapshotRequest.cc new file mode 100644 index 000000000..09a0087f1 --- /dev/null +++ b/vs/src/model/CreateDeviceSnapshotRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vs::Model::CreateDeviceSnapshotRequest; + +CreateDeviceSnapshotRequest::CreateDeviceSnapshotRequest() : + RpcServiceRequest("vs", "2018-12-12", "CreateDeviceSnapshot") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateDeviceSnapshotRequest::~CreateDeviceSnapshotRequest() +{} + +std::string CreateDeviceSnapshotRequest::getSnapshotConfig()const +{ + return snapshotConfig_; +} + +void CreateDeviceSnapshotRequest::setSnapshotConfig(const std::string& snapshotConfig) +{ + snapshotConfig_ = snapshotConfig; + setParameter("SnapshotConfig", snapshotConfig); +} + +std::string CreateDeviceSnapshotRequest::getMode()const +{ + return mode_; +} + +void CreateDeviceSnapshotRequest::setMode(const std::string& mode) +{ + mode_ = mode; + setParameter("Mode", mode); +} + +std::string CreateDeviceSnapshotRequest::getShowLog()const +{ + return showLog_; +} + +void CreateDeviceSnapshotRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string CreateDeviceSnapshotRequest::getStreamId()const +{ + return streamId_; +} + +void CreateDeviceSnapshotRequest::setStreamId(const std::string& streamId) +{ + streamId_ = streamId; + setParameter("StreamId", streamId); +} + +long CreateDeviceSnapshotRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateDeviceSnapshotRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateDeviceSnapshotRequest::getDeviceId()const +{ + return deviceId_; +} + +void CreateDeviceSnapshotRequest::setDeviceId(const std::string& deviceId) +{ + deviceId_ = deviceId; + setParameter("DeviceId", deviceId); +} + diff --git a/vs/src/model/CreateDeviceSnapshotResult.cc b/vs/src/model/CreateDeviceSnapshotResult.cc new file mode 100644 index 000000000..312574439 --- /dev/null +++ b/vs/src/model/CreateDeviceSnapshotResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vs; +using namespace AlibabaCloud::Vs::Model; + +CreateDeviceSnapshotResult::CreateDeviceSnapshotResult() : + ServiceResult() +{} + +CreateDeviceSnapshotResult::CreateDeviceSnapshotResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDeviceSnapshotResult::~CreateDeviceSnapshotResult() +{} + +void CreateDeviceSnapshotResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Id"].isNull()) + id_ = value["Id"].asString(); + +} + +std::string CreateDeviceSnapshotResult::getId()const +{ + return id_; +} + diff --git a/vs/src/model/CreateRenderingDeviceRequest.cc b/vs/src/model/CreateRenderingDeviceRequest.cc new file mode 100644 index 000000000..e46713c5e --- /dev/null +++ b/vs/src/model/CreateRenderingDeviceRequest.cc @@ -0,0 +1,183 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vs::Model::CreateRenderingDeviceRequest; + +CreateRenderingDeviceRequest::CreateRenderingDeviceRequest() : + RpcServiceRequest("vs", "2018-12-12", "CreateRenderingDevice") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateRenderingDeviceRequest::~CreateRenderingDeviceRequest() +{} + +std::string CreateRenderingDeviceRequest::getImageId()const +{ + return imageId_; +} + +void CreateRenderingDeviceRequest::setImageId(const std::string& imageId) +{ + imageId_ = imageId; + setParameter("ImageId", imageId); +} + +std::string CreateRenderingDeviceRequest::getSecurityGroupId()const +{ + return securityGroupId_; +} + +void CreateRenderingDeviceRequest::setSecurityGroupId(const std::string& securityGroupId) +{ + securityGroupId_ = securityGroupId; + setParameter("SecurityGroupId", securityGroupId); +} + +std::string CreateRenderingDeviceRequest::getDescription()const +{ + return description_; +} + +void CreateRenderingDeviceRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreateRenderingDeviceRequest::getInstanceChargeType()const +{ + return instanceChargeType_; +} + +void CreateRenderingDeviceRequest::setInstanceChargeType(const std::string& instanceChargeType) +{ + instanceChargeType_ = instanceChargeType; + setParameter("InstanceChargeType", instanceChargeType); +} + +std::string CreateRenderingDeviceRequest::getShowLog()const +{ + return showLog_; +} + +void CreateRenderingDeviceRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +int CreateRenderingDeviceRequest::getAutoRenewPeriod()const +{ + return autoRenewPeriod_; +} + +void CreateRenderingDeviceRequest::setAutoRenewPeriod(int autoRenewPeriod) +{ + autoRenewPeriod_ = autoRenewPeriod; + setParameter("AutoRenewPeriod", std::to_string(autoRenewPeriod)); +} + +int CreateRenderingDeviceRequest::getPeriod()const +{ + return period_; +} + +void CreateRenderingDeviceRequest::setPeriod(int period) +{ + period_ = period; + setParameter("Period", std::to_string(period)); +} + +int CreateRenderingDeviceRequest::getCount()const +{ + return count_; +} + +void CreateRenderingDeviceRequest::setCount(int count) +{ + count_ = count; + setParameter("Count", std::to_string(count)); +} + +std::string CreateRenderingDeviceRequest::getSpecification()const +{ + return specification_; +} + +void CreateRenderingDeviceRequest::setSpecification(const std::string& specification) +{ + specification_ = specification; + setParameter("Specification", specification); +} + +std::string CreateRenderingDeviceRequest::getClusterId()const +{ + return clusterId_; +} + +void CreateRenderingDeviceRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setParameter("ClusterId", clusterId); +} + +long CreateRenderingDeviceRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateRenderingDeviceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateRenderingDeviceRequest::getPeriodUnit()const +{ + return periodUnit_; +} + +void CreateRenderingDeviceRequest::setPeriodUnit(const std::string& periodUnit) +{ + periodUnit_ = periodUnit; + setParameter("PeriodUnit", periodUnit); +} + +bool CreateRenderingDeviceRequest::getAutoRenew()const +{ + return autoRenew_; +} + +void CreateRenderingDeviceRequest::setAutoRenew(bool autoRenew) +{ + autoRenew_ = autoRenew; + setParameter("AutoRenew", autoRenew ? "true" : "false"); +} + +std::string CreateRenderingDeviceRequest::getEdgeNodeName()const +{ + return edgeNodeName_; +} + +void CreateRenderingDeviceRequest::setEdgeNodeName(const std::string& edgeNodeName) +{ + edgeNodeName_ = edgeNodeName; + setParameter("EdgeNodeName", edgeNodeName); +} + diff --git a/vs/src/model/CreateRenderingDeviceResult.cc b/vs/src/model/CreateRenderingDeviceResult.cc new file mode 100644 index 000000000..9e5a54b6d --- /dev/null +++ b/vs/src/model/CreateRenderingDeviceResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vs; +using namespace AlibabaCloud::Vs::Model; + +CreateRenderingDeviceResult::CreateRenderingDeviceResult() : + ServiceResult() +{} + +CreateRenderingDeviceResult::CreateRenderingDeviceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateRenderingDeviceResult::~CreateRenderingDeviceResult() +{} + +void CreateRenderingDeviceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allInstanceIds = value["InstanceIds"]["InstanceId"]; + for (const auto &item : allInstanceIds) + instanceIds_.push_back(item.asString()); + +} + +std::vector CreateRenderingDeviceResult::getInstanceIds()const +{ + return instanceIds_; +} + diff --git a/vs/src/model/DeleteBucketRequest.cc b/vs/src/model/DeleteBucketRequest.cc new file mode 100644 index 000000000..bc7a955b3 --- /dev/null +++ b/vs/src/model/DeleteBucketRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vs::Model::DeleteBucketRequest; + +DeleteBucketRequest::DeleteBucketRequest() : + RpcServiceRequest("vs", "2018-12-12", "DeleteBucket") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteBucketRequest::~DeleteBucketRequest() +{} + +std::string DeleteBucketRequest::getBucketName()const +{ + return bucketName_; +} + +void DeleteBucketRequest::setBucketName(const std::string& bucketName) +{ + bucketName_ = bucketName; + setParameter("BucketName", bucketName); +} + +std::string DeleteBucketRequest::getShowLog()const +{ + return showLog_; +} + +void DeleteBucketRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +long DeleteBucketRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteBucketRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vs/src/model/DeleteBucketResult.cc b/vs/src/model/DeleteBucketResult.cc new file mode 100644 index 000000000..13a2dd38e --- /dev/null +++ b/vs/src/model/DeleteBucketResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vs; +using namespace AlibabaCloud::Vs::Model; + +DeleteBucketResult::DeleteBucketResult() : + ServiceResult() +{} + +DeleteBucketResult::DeleteBucketResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteBucketResult::~DeleteBucketResult() +{} + +void DeleteBucketResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vs/src/model/DeleteClusterRequest.cc b/vs/src/model/DeleteClusterRequest.cc new file mode 100644 index 000000000..b664070a5 --- /dev/null +++ b/vs/src/model/DeleteClusterRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vs::Model::DeleteClusterRequest; + +DeleteClusterRequest::DeleteClusterRequest() : + RpcServiceRequest("vs", "2018-12-12", "DeleteCluster") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteClusterRequest::~DeleteClusterRequest() +{} + +std::string DeleteClusterRequest::getShowLog()const +{ + return showLog_; +} + +void DeleteClusterRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string DeleteClusterRequest::getClusterId()const +{ + return clusterId_; +} + +void DeleteClusterRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setParameter("ClusterId", clusterId); +} + +long DeleteClusterRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteClusterRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vs/src/model/DeleteClusterResult.cc b/vs/src/model/DeleteClusterResult.cc new file mode 100644 index 000000000..d82b2ba73 --- /dev/null +++ b/vs/src/model/DeleteClusterResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vs; +using namespace AlibabaCloud::Vs::Model; + +DeleteClusterResult::DeleteClusterResult() : + ServiceResult() +{} + +DeleteClusterResult::DeleteClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteClusterResult::~DeleteClusterResult() +{} + +void DeleteClusterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vs/src/model/DeletePresetRequest.cc b/vs/src/model/DeletePresetRequest.cc index f4d4c7812..016c43eb3 100644 --- a/vs/src/model/DeletePresetRequest.cc +++ b/vs/src/model/DeletePresetRequest.cc @@ -27,6 +27,17 @@ DeletePresetRequest::DeletePresetRequest() : DeletePresetRequest::~DeletePresetRequest() {} +std::string DeletePresetRequest::getSubProtocol()const +{ + return subProtocol_; +} + +void DeletePresetRequest::setSubProtocol(const std::string& subProtocol) +{ + subProtocol_ = subProtocol; + setParameter("SubProtocol", subProtocol); +} + std::string DeletePresetRequest::getId()const { return id_; diff --git a/vs/src/model/DeleteRenderingDeviceInternetPortsRequest.cc b/vs/src/model/DeleteRenderingDeviceInternetPortsRequest.cc new file mode 100644 index 000000000..b08bda582 --- /dev/null +++ b/vs/src/model/DeleteRenderingDeviceInternetPortsRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vs::Model::DeleteRenderingDeviceInternetPortsRequest; + +DeleteRenderingDeviceInternetPortsRequest::DeleteRenderingDeviceInternetPortsRequest() : + RpcServiceRequest("vs", "2018-12-12", "DeleteRenderingDeviceInternetPorts") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteRenderingDeviceInternetPortsRequest::~DeleteRenderingDeviceInternetPortsRequest() +{} + +std::string DeleteRenderingDeviceInternetPortsRequest::getISP()const +{ + return iSP_; +} + +void DeleteRenderingDeviceInternetPortsRequest::setISP(const std::string& iSP) +{ + iSP_ = iSP; + setParameter("ISP", iSP); +} + +std::string DeleteRenderingDeviceInternetPortsRequest::getShowLog()const +{ + return showLog_; +} + +void DeleteRenderingDeviceInternetPortsRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string DeleteRenderingDeviceInternetPortsRequest::getIpProtocol()const +{ + return ipProtocol_; +} + +void DeleteRenderingDeviceInternetPortsRequest::setIpProtocol(const std::string& ipProtocol) +{ + ipProtocol_ = ipProtocol; + setParameter("IpProtocol", ipProtocol); +} + +long DeleteRenderingDeviceInternetPortsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteRenderingDeviceInternetPortsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteRenderingDeviceInternetPortsRequest::getInstanceIds()const +{ + return instanceIds_; +} + +void DeleteRenderingDeviceInternetPortsRequest::setInstanceIds(const std::string& instanceIds) +{ + instanceIds_ = instanceIds; + setParameter("InstanceIds", instanceIds); +} + +std::string DeleteRenderingDeviceInternetPortsRequest::getInternalPort()const +{ + return internalPort_; +} + +void DeleteRenderingDeviceInternetPortsRequest::setInternalPort(const std::string& internalPort) +{ + internalPort_ = internalPort; + setParameter("InternalPort", internalPort); +} + diff --git a/vs/src/model/DeleteRenderingDeviceInternetPortsResult.cc b/vs/src/model/DeleteRenderingDeviceInternetPortsResult.cc new file mode 100644 index 000000000..ae2366fdf --- /dev/null +++ b/vs/src/model/DeleteRenderingDeviceInternetPortsResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vs; +using namespace AlibabaCloud::Vs::Model; + +DeleteRenderingDeviceInternetPortsResult::DeleteRenderingDeviceInternetPortsResult() : + ServiceResult() +{} + +DeleteRenderingDeviceInternetPortsResult::DeleteRenderingDeviceInternetPortsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteRenderingDeviceInternetPortsResult::~DeleteRenderingDeviceInternetPortsResult() +{} + +void DeleteRenderingDeviceInternetPortsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allInstanceIds = value["InstanceIds"]["instanceIds"]; + for (const auto &item : allInstanceIds) + instanceIds_.push_back(item.asString()); + +} + +std::vector DeleteRenderingDeviceInternetPortsResult::getInstanceIds()const +{ + return instanceIds_; +} + diff --git a/vs/src/model/DeleteRenderingDevicesRequest.cc b/vs/src/model/DeleteRenderingDevicesRequest.cc new file mode 100644 index 000000000..fd6bcebfa --- /dev/null +++ b/vs/src/model/DeleteRenderingDevicesRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vs::Model::DeleteRenderingDevicesRequest; + +DeleteRenderingDevicesRequest::DeleteRenderingDevicesRequest() : + RpcServiceRequest("vs", "2018-12-12", "DeleteRenderingDevices") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteRenderingDevicesRequest::~DeleteRenderingDevicesRequest() +{} + +std::string DeleteRenderingDevicesRequest::getShowLog()const +{ + return showLog_; +} + +void DeleteRenderingDevicesRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +long DeleteRenderingDevicesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteRenderingDevicesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteRenderingDevicesRequest::getInstanceIds()const +{ + return instanceIds_; +} + +void DeleteRenderingDevicesRequest::setInstanceIds(const std::string& instanceIds) +{ + instanceIds_ = instanceIds; + setParameter("InstanceIds", instanceIds); +} + diff --git a/vs/src/model/DeleteRenderingDevicesResult.cc b/vs/src/model/DeleteRenderingDevicesResult.cc new file mode 100644 index 000000000..08b9c83ba --- /dev/null +++ b/vs/src/model/DeleteRenderingDevicesResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vs; +using namespace AlibabaCloud::Vs::Model; + +DeleteRenderingDevicesResult::DeleteRenderingDevicesResult() : + ServiceResult() +{} + +DeleteRenderingDevicesResult::DeleteRenderingDevicesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteRenderingDevicesResult::~DeleteRenderingDevicesResult() +{} + +void DeleteRenderingDevicesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vs/src/model/DescribeClusterDevicesRequest.cc b/vs/src/model/DescribeClusterDevicesRequest.cc new file mode 100644 index 000000000..02d0fcdaf --- /dev/null +++ b/vs/src/model/DescribeClusterDevicesRequest.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vs::Model::DescribeClusterDevicesRequest; + +DescribeClusterDevicesRequest::DescribeClusterDevicesRequest() : + RpcServiceRequest("vs", "2018-12-12", "DescribeClusterDevices") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeClusterDevicesRequest::~DescribeClusterDevicesRequest() +{} + +std::string DescribeClusterDevicesRequest::getDescription()const +{ + return description_; +} + +void DescribeClusterDevicesRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +long DescribeClusterDevicesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeClusterDevicesRequest::setPageSize(long pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeClusterDevicesRequest::getShowLog()const +{ + return showLog_; +} + +void DescribeClusterDevicesRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string DescribeClusterDevicesRequest::getSpecification()const +{ + return specification_; +} + +void DescribeClusterDevicesRequest::setSpecification(const std::string& specification) +{ + specification_ = specification; + setParameter("Specification", specification); +} + +std::string DescribeClusterDevicesRequest::getClusterId()const +{ + return clusterId_; +} + +void DescribeClusterDevicesRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setParameter("ClusterId", clusterId); +} + +long DescribeClusterDevicesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeClusterDevicesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +long DescribeClusterDevicesRequest::getPageNo()const +{ + return pageNo_; +} + +void DescribeClusterDevicesRequest::setPageNo(long pageNo) +{ + pageNo_ = pageNo; + setParameter("PageNo", std::to_string(pageNo)); +} + diff --git a/vs/src/model/DescribeClusterDevicesResult.cc b/vs/src/model/DescribeClusterDevicesResult.cc new file mode 100644 index 000000000..bf732c5c0 --- /dev/null +++ b/vs/src/model/DescribeClusterDevicesResult.cc @@ -0,0 +1,104 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vs; +using namespace AlibabaCloud::Vs::Model; + +DescribeClusterDevicesResult::DescribeClusterDevicesResult() : + ServiceResult() +{} + +DescribeClusterDevicesResult::DescribeClusterDevicesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeClusterDevicesResult::~DescribeClusterDevicesResult() +{} + +void DescribeClusterDevicesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDevicesNode = value["Devices"]["Device"]; + for (auto valueDevicesDevice : allDevicesNode) + { + Device devicesObject; + if(!valueDevicesDevice["InstanceId"].isNull()) + devicesObject.instanceId = valueDevicesDevice["InstanceId"].asString(); + if(!valueDevicesDevice["EdgeNodeName"].isNull()) + devicesObject.edgeNodeName = valueDevicesDevice["EdgeNodeName"].asString(); + if(!valueDevicesDevice["PlatformType"].isNull()) + devicesObject.platformType = valueDevicesDevice["PlatformType"].asString(); + if(!valueDevicesDevice["Status"].isNull()) + devicesObject.status = valueDevicesDevice["Status"].asString(); + if(!valueDevicesDevice["MacAddress"].isNull()) + devicesObject.macAddress = valueDevicesDevice["MacAddress"].asString(); + if(!valueDevicesDevice["Server"].isNull()) + devicesObject.server = valueDevicesDevice["Server"].asString(); + if(!valueDevicesDevice["InstanceChargeType"].isNull()) + devicesObject.instanceChargeType = valueDevicesDevice["InstanceChargeType"].asString(); + if(!valueDevicesDevice["AutoRenew"].isNull()) + devicesObject.autoRenew = valueDevicesDevice["AutoRenew"].asString() == "true"; + if(!valueDevicesDevice["AutoRenewPeriod"].isNull()) + devicesObject.autoRenewPeriod = std::stoi(valueDevicesDevice["AutoRenewPeriod"].asString()); + if(!valueDevicesDevice["Period"].isNull()) + devicesObject.period = std::stoi(valueDevicesDevice["Period"].asString()); + if(!valueDevicesDevice["PeriodUnit"].isNull()) + devicesObject.periodUnit = valueDevicesDevice["PeriodUnit"].asString(); + auto allIpInfosNode = valueDevicesDevice["IpInfos"]["IpInfo"]; + for (auto valueDevicesDeviceIpInfosIpInfo : allIpInfosNode) + { + Device::IpInfo ipInfosObject; + if(!valueDevicesDeviceIpInfosIpInfo["NatType"].isNull()) + ipInfosObject.natType = valueDevicesDeviceIpInfosIpInfo["NatType"].asString(); + if(!valueDevicesDeviceIpInfosIpInfo["ExternalIp"].isNull()) + ipInfosObject.externalIp = valueDevicesDeviceIpInfosIpInfo["ExternalIp"].asString(); + if(!valueDevicesDeviceIpInfosIpInfo["ExternalPort"].isNull()) + ipInfosObject.externalPort = valueDevicesDeviceIpInfosIpInfo["ExternalPort"].asString(); + if(!valueDevicesDeviceIpInfosIpInfo["InternalIp"].isNull()) + ipInfosObject.internalIp = valueDevicesDeviceIpInfosIpInfo["InternalIp"].asString(); + if(!valueDevicesDeviceIpInfosIpInfo["InternalPort"].isNull()) + ipInfosObject.internalPort = valueDevicesDeviceIpInfosIpInfo["InternalPort"].asString(); + if(!valueDevicesDeviceIpInfosIpInfo["IpProtocol"].isNull()) + ipInfosObject.ipProtocol = valueDevicesDeviceIpInfosIpInfo["IpProtocol"].asString(); + if(!valueDevicesDeviceIpInfosIpInfo["ISP"].isNull()) + ipInfosObject.iSP = valueDevicesDeviceIpInfosIpInfo["ISP"].asString(); + devicesObject.ipInfos.push_back(ipInfosObject); + } + devices_.push_back(devicesObject); + } + if(!value["Total"].isNull()) + total_ = std::stol(value["Total"].asString()); + +} + +long DescribeClusterDevicesResult::getTotal()const +{ + return total_; +} + +std::vector DescribeClusterDevicesResult::getDevices()const +{ + return devices_; +} + diff --git a/vs/src/model/DescribeClusterRequest.cc b/vs/src/model/DescribeClusterRequest.cc new file mode 100644 index 000000000..5c1974422 --- /dev/null +++ b/vs/src/model/DescribeClusterRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vs::Model::DescribeClusterRequest; + +DescribeClusterRequest::DescribeClusterRequest() : + RpcServiceRequest("vs", "2018-12-12", "DescribeCluster") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeClusterRequest::~DescribeClusterRequest() +{} + +std::string DescribeClusterRequest::getShowLog()const +{ + return showLog_; +} + +void DescribeClusterRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string DescribeClusterRequest::getClusterId()const +{ + return clusterId_; +} + +void DescribeClusterRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setParameter("ClusterId", clusterId); +} + +long DescribeClusterRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeClusterRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vs/src/model/DescribeClusterResult.cc b/vs/src/model/DescribeClusterResult.cc new file mode 100644 index 000000000..a266b594d --- /dev/null +++ b/vs/src/model/DescribeClusterResult.cc @@ -0,0 +1,97 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vs; +using namespace AlibabaCloud::Vs::Model; + +DescribeClusterResult::DescribeClusterResult() : + ServiceResult() +{} + +DescribeClusterResult::DescribeClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeClusterResult::~DescribeClusterResult() +{} + +void DescribeClusterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allInternalPortsNode = value["InternalPorts"]["InternalPort"]; + for (auto valueInternalPortsInternalPort : allInternalPortsNode) + { + InternalPort internalPortsObject; + if(!valueInternalPortsInternalPort["Platform"].isNull()) + internalPortsObject.platform = valueInternalPortsInternalPort["Platform"].asString(); + if(!valueInternalPortsInternalPort["IpProtocol"].isNull()) + internalPortsObject.ipProtocol = valueInternalPortsInternalPort["IpProtocol"].asString(); + auto allPort = value["Port"]["Port"]; + for (auto value : allPort) + internalPortsObject.port.push_back(value.asString()); + internalPorts_.push_back(internalPortsObject); + } + if(!value["ClusterId"].isNull()) + clusterId_ = value["ClusterId"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["MaintainTime"].isNull()) + maintainTime_ = value["MaintainTime"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + +} + +std::string DescribeClusterResult::getStatus()const +{ + return status_; +} + +std::string DescribeClusterResult::getDescription()const +{ + return description_; +} + +std::string DescribeClusterResult::getClusterId()const +{ + return clusterId_; +} + +std::string DescribeClusterResult::getMaintainTime()const +{ + return maintainTime_; +} + +std::vector DescribeClusterResult::getInternalPorts()const +{ + return internalPorts_; +} + +std::string DescribeClusterResult::getName()const +{ + return name_; +} + diff --git a/vs/src/model/DescribeClustersRequest.cc b/vs/src/model/DescribeClustersRequest.cc new file mode 100644 index 000000000..4efe4a737 --- /dev/null +++ b/vs/src/model/DescribeClustersRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vs::Model::DescribeClustersRequest; + +DescribeClustersRequest::DescribeClustersRequest() : + RpcServiceRequest("vs", "2018-12-12", "DescribeClusters") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeClustersRequest::~DescribeClustersRequest() +{} + +long DescribeClustersRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeClustersRequest::setPageSize(long pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeClustersRequest::getShowLog()const +{ + return showLog_; +} + +void DescribeClustersRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +long DescribeClustersRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeClustersRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +long DescribeClustersRequest::getPageNo()const +{ + return pageNo_; +} + +void DescribeClustersRequest::setPageNo(long pageNo) +{ + pageNo_ = pageNo; + setParameter("PageNo", std::to_string(pageNo)); +} + diff --git a/vs/src/model/DescribeClustersResult.cc b/vs/src/model/DescribeClustersResult.cc new file mode 100644 index 000000000..acad95be5 --- /dev/null +++ b/vs/src/model/DescribeClustersResult.cc @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vs; +using namespace AlibabaCloud::Vs::Model; + +DescribeClustersResult::DescribeClustersResult() : + ServiceResult() +{} + +DescribeClustersResult::DescribeClustersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeClustersResult::~DescribeClustersResult() +{} + +void DescribeClustersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allClustersNode = value["Clusters"]["Cluster"]; + for (auto valueClustersCluster : allClustersNode) + { + Cluster clustersObject; + if(!valueClustersCluster["ClusterId"].isNull()) + clustersObject.clusterId = valueClustersCluster["ClusterId"].asString(); + if(!valueClustersCluster["Name"].isNull()) + clustersObject.name = valueClustersCluster["Name"].asString(); + if(!valueClustersCluster["Description"].isNull()) + clustersObject.description = valueClustersCluster["Description"].asString(); + if(!valueClustersCluster["MaintainTime"].isNull()) + clustersObject.maintainTime = valueClustersCluster["MaintainTime"].asString(); + if(!valueClustersCluster["Status"].isNull()) + clustersObject.status = valueClustersCluster["Status"].asString(); + auto allInternalPortsNode = valueClustersCluster["InternalPorts"]["InternalPort"]; + for (auto valueClustersClusterInternalPortsInternalPort : allInternalPortsNode) + { + Cluster::InternalPort internalPortsObject; + if(!valueClustersClusterInternalPortsInternalPort["Platform"].isNull()) + internalPortsObject.platform = valueClustersClusterInternalPortsInternalPort["Platform"].asString(); + if(!valueClustersClusterInternalPortsInternalPort["IpProtocol"].isNull()) + internalPortsObject.ipProtocol = valueClustersClusterInternalPortsInternalPort["IpProtocol"].asString(); + auto allPort = value["Port"]["Port"]; + for (auto value : allPort) + internalPortsObject.port.push_back(value.asString()); + clustersObject.internalPorts.push_back(internalPortsObject); + } + clusters_.push_back(clustersObject); + } + if(!value["Total"].isNull()) + total_ = std::stol(value["Total"].asString()); + +} + +long DescribeClustersResult::getTotal()const +{ + return total_; +} + +std::vector DescribeClustersResult::getClusters()const +{ + return clusters_; +} + diff --git a/vs/src/model/DescribeNodeDevicesInfoRequest.cc b/vs/src/model/DescribeNodeDevicesInfoRequest.cc new file mode 100644 index 000000000..5ebc747cd --- /dev/null +++ b/vs/src/model/DescribeNodeDevicesInfoRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vs::Model::DescribeNodeDevicesInfoRequest; + +DescribeNodeDevicesInfoRequest::DescribeNodeDevicesInfoRequest() : + RpcServiceRequest("vs", "2018-12-12", "DescribeNodeDevicesInfo") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeNodeDevicesInfoRequest::~DescribeNodeDevicesInfoRequest() +{} + +std::string DescribeNodeDevicesInfoRequest::getShowLog()const +{ + return showLog_; +} + +void DescribeNodeDevicesInfoRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +long DescribeNodeDevicesInfoRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeNodeDevicesInfoRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeNodeDevicesInfoRequest::getNodeName()const +{ + return nodeName_; +} + +void DescribeNodeDevicesInfoRequest::setNodeName(const std::string& nodeName) +{ + nodeName_ = nodeName; + setParameter("NodeName", nodeName); +} + diff --git a/vs/src/model/DescribeNodeDevicesInfoResult.cc b/vs/src/model/DescribeNodeDevicesInfoResult.cc new file mode 100644 index 000000000..44bcf1c6b --- /dev/null +++ b/vs/src/model/DescribeNodeDevicesInfoResult.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vs; +using namespace AlibabaCloud::Vs::Model; + +DescribeNodeDevicesInfoResult::DescribeNodeDevicesInfoResult() : + ServiceResult() +{} + +DescribeNodeDevicesInfoResult::DescribeNodeDevicesInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeNodeDevicesInfoResult::~DescribeNodeDevicesInfoResult() +{} + +void DescribeNodeDevicesInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allNodeDevicesNode = value["NodeDevices"]["NodeDevice"]; + for (auto valueNodeDevicesNodeDevice : allNodeDevicesNode) + { + NodeDevice nodeDevicesObject; + if(!valueNodeDevicesNodeDevice["NodeName"].isNull()) + nodeDevicesObject.nodeName = valueNodeDevicesNodeDevice["NodeName"].asString(); + auto allDeviceInfosNode = valueNodeDevicesNodeDevice["DeviceInfos"]["DeviceInfo"]; + for (auto valueNodeDevicesNodeDeviceDeviceInfosDeviceInfo : allDeviceInfosNode) + { + NodeDevice::DeviceInfo deviceInfosObject; + if(!valueNodeDevicesNodeDeviceDeviceInfosDeviceInfo["InstanceId"].isNull()) + deviceInfosObject.instanceId = valueNodeDevicesNodeDeviceDeviceInfosDeviceInfo["InstanceId"].asString(); + if(!valueNodeDevicesNodeDeviceDeviceInfosDeviceInfo["Name"].isNull()) + deviceInfosObject.name = valueNodeDevicesNodeDeviceDeviceInfosDeviceInfo["Name"].asString(); + if(!valueNodeDevicesNodeDeviceDeviceInfosDeviceInfo["IP"].isNull()) + deviceInfosObject.iP = valueNodeDevicesNodeDeviceDeviceInfosDeviceInfo["IP"].asString(); + if(!valueNodeDevicesNodeDeviceDeviceInfosDeviceInfo["Server"].isNull()) + deviceInfosObject.server = valueNodeDevicesNodeDeviceDeviceInfosDeviceInfo["Server"].asString(); + nodeDevicesObject.deviceInfos.push_back(deviceInfosObject); + } + nodeDevices_.push_back(nodeDevicesObject); + } + +} + +std::vector DescribeNodeDevicesInfoResult::getNodeDevices()const +{ + return nodeDevices_; +} + diff --git a/vs/src/model/DescribePresetsRequest.cc b/vs/src/model/DescribePresetsRequest.cc index 6429cc19f..1a7645322 100644 --- a/vs/src/model/DescribePresetsRequest.cc +++ b/vs/src/model/DescribePresetsRequest.cc @@ -27,6 +27,17 @@ DescribePresetsRequest::DescribePresetsRequest() : DescribePresetsRequest::~DescribePresetsRequest() {} +std::string DescribePresetsRequest::getSubProtocol()const +{ + return subProtocol_; +} + +void DescribePresetsRequest::setSubProtocol(const std::string& subProtocol) +{ + subProtocol_ = subProtocol; + setParameter("SubProtocol", subProtocol); +} + std::string DescribePresetsRequest::getId()const { return id_; diff --git a/vs/src/model/DescribeRenderingDevicesRequest.cc b/vs/src/model/DescribeRenderingDevicesRequest.cc new file mode 100644 index 000000000..860d39047 --- /dev/null +++ b/vs/src/model/DescribeRenderingDevicesRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vs::Model::DescribeRenderingDevicesRequest; + +DescribeRenderingDevicesRequest::DescribeRenderingDevicesRequest() : + RpcServiceRequest("vs", "2018-12-12", "DescribeRenderingDevices") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeRenderingDevicesRequest::~DescribeRenderingDevicesRequest() +{} + +std::string DescribeRenderingDevicesRequest::getShowLog()const +{ + return showLog_; +} + +void DescribeRenderingDevicesRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +long DescribeRenderingDevicesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRenderingDevicesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeRenderingDevicesRequest::getInstanceIds()const +{ + return instanceIds_; +} + +void DescribeRenderingDevicesRequest::setInstanceIds(const std::string& instanceIds) +{ + instanceIds_ = instanceIds; + setParameter("InstanceIds", instanceIds); +} + diff --git a/vs/src/model/DescribeRenderingDevicesResult.cc b/vs/src/model/DescribeRenderingDevicesResult.cc new file mode 100644 index 000000000..0eb636ed7 --- /dev/null +++ b/vs/src/model/DescribeRenderingDevicesResult.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vs; +using namespace AlibabaCloud::Vs::Model; + +DescribeRenderingDevicesResult::DescribeRenderingDevicesResult() : + ServiceResult() +{} + +DescribeRenderingDevicesResult::DescribeRenderingDevicesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRenderingDevicesResult::~DescribeRenderingDevicesResult() +{} + +void DescribeRenderingDevicesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDevicesNode = value["Devices"]["Device"]; + for (auto valueDevicesDevice : allDevicesNode) + { + Device devicesObject; + if(!valueDevicesDevice["InstanceId"].isNull()) + devicesObject.instanceId = valueDevicesDevice["InstanceId"].asString(); + if(!valueDevicesDevice["ClusterId"].isNull()) + devicesObject.clusterId = valueDevicesDevice["ClusterId"].asString(); + if(!valueDevicesDevice["EdgeNodeName"].isNull()) + devicesObject.edgeNodeName = valueDevicesDevice["EdgeNodeName"].asString(); + if(!valueDevicesDevice["PlatformType"].isNull()) + devicesObject.platformType = valueDevicesDevice["PlatformType"].asString(); + if(!valueDevicesDevice["Specification"].isNull()) + devicesObject.specification = valueDevicesDevice["Specification"].asString(); + if(!valueDevicesDevice["Status"].isNull()) + devicesObject.status = valueDevicesDevice["Status"].asString(); + if(!valueDevicesDevice["MacAddress"].isNull()) + devicesObject.macAddress = valueDevicesDevice["MacAddress"].asString(); + if(!valueDevicesDevice["ServerName"].isNull()) + devicesObject.serverName = valueDevicesDevice["ServerName"].asString(); + if(!valueDevicesDevice["InstanceChargeType"].isNull()) + devicesObject.instanceChargeType = valueDevicesDevice["InstanceChargeType"].asString(); + if(!valueDevicesDevice["AutoRenew"].isNull()) + devicesObject.autoRenew = valueDevicesDevice["AutoRenew"].asString() == "true"; + if(!valueDevicesDevice["AutoRenewPeriod"].isNull()) + devicesObject.autoRenewPeriod = std::stoi(valueDevicesDevice["AutoRenewPeriod"].asString()); + if(!valueDevicesDevice["Period"].isNull()) + devicesObject.period = std::stoi(valueDevicesDevice["Period"].asString()); + if(!valueDevicesDevice["PeriodUnit"].isNull()) + devicesObject.periodUnit = valueDevicesDevice["PeriodUnit"].asString(); + auto allIpInfosNode = valueDevicesDevice["IpInfos"]["IpInfo"]; + for (auto valueDevicesDeviceIpInfosIpInfo : allIpInfosNode) + { + Device::IpInfo ipInfosObject; + if(!valueDevicesDeviceIpInfosIpInfo["NatType"].isNull()) + ipInfosObject.natType = valueDevicesDeviceIpInfosIpInfo["NatType"].asString(); + if(!valueDevicesDeviceIpInfosIpInfo["ExternalIp"].isNull()) + ipInfosObject.externalIp = valueDevicesDeviceIpInfosIpInfo["ExternalIp"].asString(); + if(!valueDevicesDeviceIpInfosIpInfo["ExternalPort"].isNull()) + ipInfosObject.externalPort = valueDevicesDeviceIpInfosIpInfo["ExternalPort"].asString(); + if(!valueDevicesDeviceIpInfosIpInfo["InternalIp"].isNull()) + ipInfosObject.internalIp = valueDevicesDeviceIpInfosIpInfo["InternalIp"].asString(); + if(!valueDevicesDeviceIpInfosIpInfo["InternalPort"].isNull()) + ipInfosObject.internalPort = valueDevicesDeviceIpInfosIpInfo["InternalPort"].asString(); + if(!valueDevicesDeviceIpInfosIpInfo["IpProtocol"].isNull()) + ipInfosObject.ipProtocol = valueDevicesDeviceIpInfosIpInfo["IpProtocol"].asString(); + if(!valueDevicesDeviceIpInfosIpInfo["ISP"].isNull()) + ipInfosObject.iSP = valueDevicesDeviceIpInfosIpInfo["ISP"].asString(); + devicesObject.ipInfos.push_back(ipInfosObject); + } + devices_.push_back(devicesObject); + } + if(!value["Total"].isNull()) + total_ = std::stol(value["Total"].asString()); + +} + +long DescribeRenderingDevicesResult::getTotal()const +{ + return total_; +} + +std::vector DescribeRenderingDevicesResult::getDevices()const +{ + return devices_; +} + diff --git a/vs/src/model/DescribeTemplatesResult.cc b/vs/src/model/DescribeTemplatesResult.cc index 6abf4aad5..0067af1c5 100644 --- a/vs/src/model/DescribeTemplatesResult.cc +++ b/vs/src/model/DescribeTemplatesResult.cc @@ -89,26 +89,26 @@ void DescribeTemplatesResult::parse(const std::string &payload) templatesObject.callback = valueTemplatesTemplate["Callback"].asString(); if(!valueTemplatesTemplate["CreatedTime"].isNull()) templatesObject.createdTime = valueTemplatesTemplate["CreatedTime"].asString(); - auto allTransConfigsNode = allTemplatesNode["TransConfigs"]["TransConfig"]; - for (auto allTemplatesNodeTransConfigsTransConfig : allTransConfigsNode) + auto allTransConfigsNode = valueTemplatesTemplate["TransConfigs"]["TransConfig"]; + for (auto valueTemplatesTemplateTransConfigsTransConfig : allTransConfigsNode) { _Template::TransConfig transConfigsObject; - if(!allTemplatesNodeTransConfigsTransConfig["id"].isNull()) - transConfigsObject.id = allTemplatesNodeTransConfigsTransConfig["id"].asString(); - if(!allTemplatesNodeTransConfigsTransConfig["Name"].isNull()) - transConfigsObject.name = allTemplatesNodeTransConfigsTransConfig["Name"].asString(); - if(!allTemplatesNodeTransConfigsTransConfig["VideoCodec"].isNull()) - transConfigsObject.videoCodec = allTemplatesNodeTransConfigsTransConfig["VideoCodec"].asString(); - if(!allTemplatesNodeTransConfigsTransConfig["VideoBitrate"].isNull()) - transConfigsObject.videoBitrate = std::stol(allTemplatesNodeTransConfigsTransConfig["VideoBitrate"].asString()); - if(!allTemplatesNodeTransConfigsTransConfig["Fps"].isNull()) - transConfigsObject.fps = std::stol(allTemplatesNodeTransConfigsTransConfig["Fps"].asString()); - if(!allTemplatesNodeTransConfigsTransConfig["Gop"].isNull()) - transConfigsObject.gop = std::stol(allTemplatesNodeTransConfigsTransConfig["Gop"].asString()); - if(!allTemplatesNodeTransConfigsTransConfig["Height"].isNull()) - transConfigsObject.height = std::stol(allTemplatesNodeTransConfigsTransConfig["Height"].asString()); - if(!allTemplatesNodeTransConfigsTransConfig["Width"].isNull()) - transConfigsObject.width = std::stol(allTemplatesNodeTransConfigsTransConfig["Width"].asString()); + if(!valueTemplatesTemplateTransConfigsTransConfig["id"].isNull()) + transConfigsObject.id = valueTemplatesTemplateTransConfigsTransConfig["id"].asString(); + if(!valueTemplatesTemplateTransConfigsTransConfig["Name"].isNull()) + transConfigsObject.name = valueTemplatesTemplateTransConfigsTransConfig["Name"].asString(); + if(!valueTemplatesTemplateTransConfigsTransConfig["VideoCodec"].isNull()) + transConfigsObject.videoCodec = valueTemplatesTemplateTransConfigsTransConfig["VideoCodec"].asString(); + if(!valueTemplatesTemplateTransConfigsTransConfig["VideoBitrate"].isNull()) + transConfigsObject.videoBitrate = std::stol(valueTemplatesTemplateTransConfigsTransConfig["VideoBitrate"].asString()); + if(!valueTemplatesTemplateTransConfigsTransConfig["Fps"].isNull()) + transConfigsObject.fps = std::stol(valueTemplatesTemplateTransConfigsTransConfig["Fps"].asString()); + if(!valueTemplatesTemplateTransConfigsTransConfig["Gop"].isNull()) + transConfigsObject.gop = std::stol(valueTemplatesTemplateTransConfigsTransConfig["Gop"].asString()); + if(!valueTemplatesTemplateTransConfigsTransConfig["Height"].isNull()) + transConfigsObject.height = std::stol(valueTemplatesTemplateTransConfigsTransConfig["Height"].asString()); + if(!valueTemplatesTemplateTransConfigsTransConfig["Width"].isNull()) + transConfigsObject.width = std::stol(valueTemplatesTemplateTransConfigsTransConfig["Width"].asString()); templatesObject.transConfigs.push_back(transConfigsObject); } templates_.push_back(templatesObject); diff --git a/vs/src/model/DescribeVsDomainConfigsResult.cc b/vs/src/model/DescribeVsDomainConfigsResult.cc index 7f8d9a9db..26185b38a 100644 --- a/vs/src/model/DescribeVsDomainConfigsResult.cc +++ b/vs/src/model/DescribeVsDomainConfigsResult.cc @@ -49,14 +49,14 @@ void DescribeVsDomainConfigsResult::parse(const std::string &payload) domainConfigsObject.configId = valueDomainConfigsDomainConfig["ConfigId"].asString(); if(!valueDomainConfigsDomainConfig["Status"].isNull()) domainConfigsObject.status = valueDomainConfigsDomainConfig["Status"].asString(); - auto allFunctionArgsNode = allDomainConfigsNode["FunctionArgs"]["FunctionArg"]; - for (auto allDomainConfigsNodeFunctionArgsFunctionArg : allFunctionArgsNode) + auto allFunctionArgsNode = valueDomainConfigsDomainConfig["FunctionArgs"]["FunctionArg"]; + for (auto valueDomainConfigsDomainConfigFunctionArgsFunctionArg : allFunctionArgsNode) { DomainConfig::FunctionArg functionArgsObject; - if(!allDomainConfigsNodeFunctionArgsFunctionArg["ArgName"].isNull()) - functionArgsObject.argName = allDomainConfigsNodeFunctionArgsFunctionArg["ArgName"].asString(); - if(!allDomainConfigsNodeFunctionArgsFunctionArg["ArgValue"].isNull()) - functionArgsObject.argValue = allDomainConfigsNodeFunctionArgsFunctionArg["ArgValue"].asString(); + if(!valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgName"].isNull()) + functionArgsObject.argName = valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgName"].asString(); + if(!valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgValue"].isNull()) + functionArgsObject.argValue = valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgValue"].asString(); domainConfigsObject.functionArgs.push_back(functionArgsObject); } domainConfigs_.push_back(domainConfigsObject); diff --git a/vs/src/model/DescribeVsDomainPvDataResult.cc b/vs/src/model/DescribeVsDomainPvDataResult.cc index 9fbd64b83..1dfd8211d 100644 --- a/vs/src/model/DescribeVsDomainPvDataResult.cc +++ b/vs/src/model/DescribeVsDomainPvDataResult.cc @@ -53,9 +53,18 @@ void DescribeVsDomainPvDataResult::parse(const std::string &payload) domainName_ = value["DomainName"].asString(); if(!value["StartTime"].isNull()) startTime_ = value["StartTime"].asString(); + if(!value["EndTime"].isNull()) + endTime_ = value["EndTime"].asString(); + if(!value["DataInterval"].isNull()) + dataInterval_ = value["DataInterval"].asString(); } +std::string DescribeVsDomainPvDataResult::getEndTime()const +{ + return endTime_; +} + std::string DescribeVsDomainPvDataResult::getDomainName()const { return domainName_; @@ -66,6 +75,11 @@ std::string DescribeVsDomainPvDataResult::getStartTime()const return startTime_; } +std::string DescribeVsDomainPvDataResult::getDataInterval()const +{ + return dataInterval_; +} + std::vector DescribeVsDomainPvDataResult::getPvDataInterval()const { return pvDataInterval_; diff --git a/vs/src/model/DescribeVsDomainPvUvDataResult.cc b/vs/src/model/DescribeVsDomainPvUvDataResult.cc index 65df73231..e3fdf6ce9 100644 --- a/vs/src/model/DescribeVsDomainPvUvDataResult.cc +++ b/vs/src/model/DescribeVsDomainPvUvDataResult.cc @@ -55,9 +55,18 @@ void DescribeVsDomainPvUvDataResult::parse(const std::string &payload) domainName_ = value["DomainName"].asString(); if(!value["StartTime"].isNull()) startTime_ = value["StartTime"].asString(); + if(!value["EndTime"].isNull()) + endTime_ = value["EndTime"].asString(); + if(!value["DataInterval"].isNull()) + dataInterval_ = value["DataInterval"].asString(); } +std::string DescribeVsDomainPvUvDataResult::getEndTime()const +{ + return endTime_; +} + std::string DescribeVsDomainPvUvDataResult::getDomainName()const { return domainName_; @@ -68,6 +77,11 @@ std::string DescribeVsDomainPvUvDataResult::getStartTime()const return startTime_; } +std::string DescribeVsDomainPvUvDataResult::getDataInterval()const +{ + return dataInterval_; +} + std::vector DescribeVsDomainPvUvDataResult::getPvUvDataInfos()const { return pvUvDataInfos_; diff --git a/vs/src/model/DescribeVsDomainUvDataResult.cc b/vs/src/model/DescribeVsDomainUvDataResult.cc index 54ce85011..39ee299fd 100644 --- a/vs/src/model/DescribeVsDomainUvDataResult.cc +++ b/vs/src/model/DescribeVsDomainUvDataResult.cc @@ -53,6 +53,10 @@ void DescribeVsDomainUvDataResult::parse(const std::string &payload) domainName_ = value["DomainName"].asString(); if(!value["StartTime"].isNull()) startTime_ = value["StartTime"].asString(); + if(!value["EndTime"].isNull()) + endTime_ = value["EndTime"].asString(); + if(!value["DataInterval"].isNull()) + dataInterval_ = value["DataInterval"].asString(); } @@ -61,6 +65,11 @@ std::vector DescribeVsDomainUvDataResul return uvDataInterval_; } +std::string DescribeVsDomainUvDataResult::getEndTime()const +{ + return endTime_; +} + std::string DescribeVsDomainUvDataResult::getDomainName()const { return domainName_; @@ -71,3 +80,8 @@ std::string DescribeVsDomainUvDataResult::getStartTime()const return startTime_; } +std::string DescribeVsDomainUvDataResult::getDataInterval()const +{ + return dataInterval_; +} + diff --git a/vs/src/model/DescribeVsStorageTrafficUsageDataRequest.cc b/vs/src/model/DescribeVsStorageTrafficUsageDataRequest.cc new file mode 100644 index 000000000..2499f2ae6 --- /dev/null +++ b/vs/src/model/DescribeVsStorageTrafficUsageDataRequest.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vs::Model::DescribeVsStorageTrafficUsageDataRequest; + +DescribeVsStorageTrafficUsageDataRequest::DescribeVsStorageTrafficUsageDataRequest() : + RpcServiceRequest("vs", "2018-12-12", "DescribeVsStorageTrafficUsageData") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeVsStorageTrafficUsageDataRequest::~DescribeVsStorageTrafficUsageDataRequest() +{} + +std::string DescribeVsStorageTrafficUsageDataRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeVsStorageTrafficUsageDataRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +std::string DescribeVsStorageTrafficUsageDataRequest::getShowLog()const +{ + return showLog_; +} + +void DescribeVsStorageTrafficUsageDataRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string DescribeVsStorageTrafficUsageDataRequest::getSplitBy()const +{ + return splitBy_; +} + +void DescribeVsStorageTrafficUsageDataRequest::setSplitBy(const std::string& splitBy) +{ + splitBy_ = splitBy; + setParameter("SplitBy", splitBy); +} + +std::string DescribeVsStorageTrafficUsageDataRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeVsStorageTrafficUsageDataRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +long DescribeVsStorageTrafficUsageDataRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeVsStorageTrafficUsageDataRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeVsStorageTrafficUsageDataRequest::getBucket()const +{ + return bucket_; +} + +void DescribeVsStorageTrafficUsageDataRequest::setBucket(const std::string& bucket) +{ + bucket_ = bucket; + setParameter("Bucket", bucket); +} + +std::string DescribeVsStorageTrafficUsageDataRequest::getInterval()const +{ + return interval_; +} + +void DescribeVsStorageTrafficUsageDataRequest::setInterval(const std::string& interval) +{ + interval_ = interval; + setParameter("Interval", interval); +} + diff --git a/vs/src/model/DescribeVsStorageTrafficUsageDataResult.cc b/vs/src/model/DescribeVsStorageTrafficUsageDataResult.cc new file mode 100644 index 000000000..90c892265 --- /dev/null +++ b/vs/src/model/DescribeVsStorageTrafficUsageDataResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vs; +using namespace AlibabaCloud::Vs::Model; + +DescribeVsStorageTrafficUsageDataResult::DescribeVsStorageTrafficUsageDataResult() : + ServiceResult() +{} + +DescribeVsStorageTrafficUsageDataResult::DescribeVsStorageTrafficUsageDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVsStorageTrafficUsageDataResult::~DescribeVsStorageTrafficUsageDataResult() +{} + +void DescribeVsStorageTrafficUsageDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTrafficUsageNode = value["TrafficUsage"]["TrafficUsageDataModule"]; + for (auto valueTrafficUsageTrafficUsageDataModule : allTrafficUsageNode) + { + TrafficUsageDataModule trafficUsageObject; + if(!valueTrafficUsageTrafficUsageDataModule["TimeStamp"].isNull()) + trafficUsageObject.timeStamp = valueTrafficUsageTrafficUsageDataModule["TimeStamp"].asString(); + if(!valueTrafficUsageTrafficUsageDataModule["Bucket"].isNull()) + trafficUsageObject.bucket = valueTrafficUsageTrafficUsageDataModule["Bucket"].asString(); + if(!valueTrafficUsageTrafficUsageDataModule["LanTrafficInDataValue"].isNull()) + trafficUsageObject.lanTrafficInDataValue = std::stol(valueTrafficUsageTrafficUsageDataModule["LanTrafficInDataValue"].asString()); + if(!valueTrafficUsageTrafficUsageDataModule["LanTrafficOutDataValue"].isNull()) + trafficUsageObject.lanTrafficOutDataValue = std::stol(valueTrafficUsageTrafficUsageDataModule["LanTrafficOutDataValue"].asString()); + if(!valueTrafficUsageTrafficUsageDataModule["WanTrafficInDataValue"].isNull()) + trafficUsageObject.wanTrafficInDataValue = std::stol(valueTrafficUsageTrafficUsageDataModule["WanTrafficInDataValue"].asString()); + if(!valueTrafficUsageTrafficUsageDataModule["WanTrafficOutDataValue"].isNull()) + trafficUsageObject.wanTrafficOutDataValue = std::stol(valueTrafficUsageTrafficUsageDataModule["WanTrafficOutDataValue"].asString()); + if(!valueTrafficUsageTrafficUsageDataModule["LanBandwidthInDataValue"].isNull()) + trafficUsageObject.lanBandwidthInDataValue = std::stof(valueTrafficUsageTrafficUsageDataModule["LanBandwidthInDataValue"].asString()); + if(!valueTrafficUsageTrafficUsageDataModule["LanBandwidthOutDataValue"].isNull()) + trafficUsageObject.lanBandwidthOutDataValue = std::stof(valueTrafficUsageTrafficUsageDataModule["LanBandwidthOutDataValue"].asString()); + if(!valueTrafficUsageTrafficUsageDataModule["WanBandwidthInDataValue"].isNull()) + trafficUsageObject.wanBandwidthInDataValue = std::stof(valueTrafficUsageTrafficUsageDataModule["WanBandwidthInDataValue"].asString()); + if(!valueTrafficUsageTrafficUsageDataModule["WanBandwidthOutDataValue"].isNull()) + trafficUsageObject.wanBandwidthOutDataValue = std::stof(valueTrafficUsageTrafficUsageDataModule["WanBandwidthOutDataValue"].asString()); + trafficUsage_.push_back(trafficUsageObject); + } + +} + +std::vector DescribeVsStorageTrafficUsageDataResult::getTrafficUsage()const +{ + return trafficUsage_; +} + diff --git a/vs/src/model/DescribeVsStorageUsageDataRequest.cc b/vs/src/model/DescribeVsStorageUsageDataRequest.cc new file mode 100644 index 000000000..f7e3db6c5 --- /dev/null +++ b/vs/src/model/DescribeVsStorageUsageDataRequest.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vs::Model::DescribeVsStorageUsageDataRequest; + +DescribeVsStorageUsageDataRequest::DescribeVsStorageUsageDataRequest() : + RpcServiceRequest("vs", "2018-12-12", "DescribeVsStorageUsageData") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeVsStorageUsageDataRequest::~DescribeVsStorageUsageDataRequest() +{} + +std::string DescribeVsStorageUsageDataRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeVsStorageUsageDataRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +std::string DescribeVsStorageUsageDataRequest::getShowLog()const +{ + return showLog_; +} + +void DescribeVsStorageUsageDataRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string DescribeVsStorageUsageDataRequest::getSplitBy()const +{ + return splitBy_; +} + +void DescribeVsStorageUsageDataRequest::setSplitBy(const std::string& splitBy) +{ + splitBy_ = splitBy; + setParameter("SplitBy", splitBy); +} + +std::string DescribeVsStorageUsageDataRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeVsStorageUsageDataRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +long DescribeVsStorageUsageDataRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeVsStorageUsageDataRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeVsStorageUsageDataRequest::getBucket()const +{ + return bucket_; +} + +void DescribeVsStorageUsageDataRequest::setBucket(const std::string& bucket) +{ + bucket_ = bucket; + setParameter("Bucket", bucket); +} + +std::string DescribeVsStorageUsageDataRequest::getInterval()const +{ + return interval_; +} + +void DescribeVsStorageUsageDataRequest::setInterval(const std::string& interval) +{ + interval_ = interval; + setParameter("Interval", interval); +} + diff --git a/vs/src/model/DescribeVsStorageUsageDataResult.cc b/vs/src/model/DescribeVsStorageUsageDataResult.cc new file mode 100644 index 000000000..6b64d43f6 --- /dev/null +++ b/vs/src/model/DescribeVsStorageUsageDataResult.cc @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vs; +using namespace AlibabaCloud::Vs::Model; + +DescribeVsStorageUsageDataResult::DescribeVsStorageUsageDataResult() : + ServiceResult() +{} + +DescribeVsStorageUsageDataResult::DescribeVsStorageUsageDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVsStorageUsageDataResult::~DescribeVsStorageUsageDataResult() +{} + +void DescribeVsStorageUsageDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allStorageUsageNode = value["StorageUsage"]["StorageUsageDataModule"]; + for (auto valueStorageUsageStorageUsageDataModule : allStorageUsageNode) + { + StorageUsageDataModule storageUsageObject; + if(!valueStorageUsageStorageUsageDataModule["TimeStamp"].isNull()) + storageUsageObject.timeStamp = valueStorageUsageStorageUsageDataModule["TimeStamp"].asString(); + if(!valueStorageUsageStorageUsageDataModule["Bucket"].isNull()) + storageUsageObject.bucket = valueStorageUsageStorageUsageDataModule["Bucket"].asString(); + if(!valueStorageUsageStorageUsageDataModule["StorageDataValue"].isNull()) + storageUsageObject.storageDataValue = std::stoi(valueStorageUsageStorageUsageDataModule["StorageDataValue"].asString()); + storageUsage_.push_back(storageUsageObject); + } + +} + +std::vector DescribeVsStorageUsageDataResult::getStorageUsage()const +{ + return storageUsage_; +} + diff --git a/vs/src/model/GetBucketInfoRequest.cc b/vs/src/model/GetBucketInfoRequest.cc new file mode 100644 index 000000000..8d6ac49ce --- /dev/null +++ b/vs/src/model/GetBucketInfoRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vs::Model::GetBucketInfoRequest; + +GetBucketInfoRequest::GetBucketInfoRequest() : + RpcServiceRequest("vs", "2018-12-12", "GetBucketInfo") +{ + setMethod(HttpRequest::Method::Post); +} + +GetBucketInfoRequest::~GetBucketInfoRequest() +{} + +std::string GetBucketInfoRequest::getBucketName()const +{ + return bucketName_; +} + +void GetBucketInfoRequest::setBucketName(const std::string& bucketName) +{ + bucketName_ = bucketName; + setParameter("BucketName", bucketName); +} + +std::string GetBucketInfoRequest::getShowLog()const +{ + return showLog_; +} + +void GetBucketInfoRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +long GetBucketInfoRequest::getOwnerId()const +{ + return ownerId_; +} + +void GetBucketInfoRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vs/src/model/GetBucketInfoResult.cc b/vs/src/model/GetBucketInfoResult.cc new file mode 100644 index 000000000..e2c8ebc91 --- /dev/null +++ b/vs/src/model/GetBucketInfoResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Vs; +using namespace AlibabaCloud::Vs::Model; + +GetBucketInfoResult::GetBucketInfoResult() : + ServiceResult() +{} + +GetBucketInfoResult::GetBucketInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetBucketInfoResult::~GetBucketInfoResult() +{} + +void GetBucketInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto bucketInfoNode = value["BucketInfo"]; + if(!bucketInfoNode["BucketName"].isNull()) + bucketInfo_.bucketName = bucketInfoNode["BucketName"].asString(); + if(!bucketInfoNode["Comment"].isNull()) + bucketInfo_.comment = bucketInfoNode["Comment"].asString(); + if(!bucketInfoNode["BucketAcl"].isNull()) + bucketInfo_.bucketAcl = bucketInfoNode["BucketAcl"].asString(); + if(!bucketInfoNode["DataRedundancyType"].isNull()) + bucketInfo_.dataRedundancyType = bucketInfoNode["DataRedundancyType"].asString(); + if(!bucketInfoNode["StorageClass"].isNull()) + bucketInfo_.storageClass = bucketInfoNode["StorageClass"].asString(); + if(!bucketInfoNode["DispatcherType"].isNull()) + bucketInfo_.dispatcherType = bucketInfoNode["DispatcherType"].asString(); + if(!bucketInfoNode["ResourceType"].isNull()) + bucketInfo_.resourceType = bucketInfoNode["ResourceType"].asString(); + if(!bucketInfoNode["CreateTime"].isNull()) + bucketInfo_.createTime = bucketInfoNode["CreateTime"].asString(); + if(!bucketInfoNode["ModifyTime"].isNull()) + bucketInfo_.modifyTime = bucketInfoNode["ModifyTime"].asString(); + if(!bucketInfoNode["Endpoint"].isNull()) + bucketInfo_.endpoint = bucketInfoNode["Endpoint"].asString(); + +} + +GetBucketInfoResult::BucketInfo GetBucketInfoResult::getBucketInfo()const +{ + return bucketInfo_; +} + diff --git a/vs/src/model/GotoPresetRequest.cc b/vs/src/model/GotoPresetRequest.cc index 7710b7dc3..e194da799 100644 --- a/vs/src/model/GotoPresetRequest.cc +++ b/vs/src/model/GotoPresetRequest.cc @@ -27,6 +27,17 @@ GotoPresetRequest::GotoPresetRequest() : GotoPresetRequest::~GotoPresetRequest() {} +std::string GotoPresetRequest::getSubProtocol()const +{ + return subProtocol_; +} + +void GotoPresetRequest::setSubProtocol(const std::string& subProtocol) +{ + subProtocol_ = subProtocol; + setParameter("SubProtocol", subProtocol); +} + std::string GotoPresetRequest::getId()const { return id_; diff --git a/vs/src/model/ListBucketsRequest.cc b/vs/src/model/ListBucketsRequest.cc new file mode 100644 index 000000000..959ce6b94 --- /dev/null +++ b/vs/src/model/ListBucketsRequest.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vs::Model::ListBucketsRequest; + +ListBucketsRequest::ListBucketsRequest() : + RpcServiceRequest("vs", "2018-12-12", "ListBuckets") +{ + setMethod(HttpRequest::Method::Post); +} + +ListBucketsRequest::~ListBucketsRequest() +{} + +std::string ListBucketsRequest::getPrefix()const +{ + return prefix_; +} + +void ListBucketsRequest::setPrefix(const std::string& prefix) +{ + prefix_ = prefix; + setParameter("Prefix", prefix); +} + +int ListBucketsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListBucketsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +int ListBucketsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListBucketsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListBucketsRequest::getKeyword()const +{ + return keyword_; +} + +void ListBucketsRequest::setKeyword(const std::string& keyword) +{ + keyword_ = keyword; + setParameter("Keyword", keyword); +} + +std::string ListBucketsRequest::getShowLog()const +{ + return showLog_; +} + +void ListBucketsRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +long ListBucketsRequest::getOwnerId()const +{ + return ownerId_; +} + +void ListBucketsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ListBucketsRequest::getMarker()const +{ + return marker_; +} + +void ListBucketsRequest::setMarker(const std::string& marker) +{ + marker_ = marker; + setParameter("Marker", marker); +} + diff --git a/vs/src/model/ListBucketsResult.cc b/vs/src/model/ListBucketsResult.cc new file mode 100644 index 000000000..493e9a247 --- /dev/null +++ b/vs/src/model/ListBucketsResult.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vs; +using namespace AlibabaCloud::Vs::Model; + +ListBucketsResult::ListBucketsResult() : + ServiceResult() +{} + +ListBucketsResult::ListBucketsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListBucketsResult::~ListBucketsResult() +{} + +void ListBucketsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allBucketInfosNode = value["BucketInfos"]["BucketInfo"]; + for (auto valueBucketInfosBucketInfo : allBucketInfosNode) + { + BucketInfo bucketInfosObject; + if(!valueBucketInfosBucketInfo["BucketName"].isNull()) + bucketInfosObject.bucketName = valueBucketInfosBucketInfo["BucketName"].asString(); + if(!valueBucketInfosBucketInfo["Comment"].isNull()) + bucketInfosObject.comment = valueBucketInfosBucketInfo["Comment"].asString(); + if(!valueBucketInfosBucketInfo["BucketAcl"].isNull()) + bucketInfosObject.bucketAcl = valueBucketInfosBucketInfo["BucketAcl"].asString(); + if(!valueBucketInfosBucketInfo["DataRedundancyType"].isNull()) + bucketInfosObject.dataRedundancyType = valueBucketInfosBucketInfo["DataRedundancyType"].asString(); + if(!valueBucketInfosBucketInfo["StorageClass"].isNull()) + bucketInfosObject.storageClass = valueBucketInfosBucketInfo["StorageClass"].asString(); + if(!valueBucketInfosBucketInfo["DispatcherType"].isNull()) + bucketInfosObject.dispatcherType = valueBucketInfosBucketInfo["DispatcherType"].asString(); + if(!valueBucketInfosBucketInfo["ResourceType"].isNull()) + bucketInfosObject.resourceType = valueBucketInfosBucketInfo["ResourceType"].asString(); + if(!valueBucketInfosBucketInfo["CreateTime"].isNull()) + bucketInfosObject.createTime = valueBucketInfosBucketInfo["CreateTime"].asString(); + if(!valueBucketInfosBucketInfo["ModifyTime"].isNull()) + bucketInfosObject.modifyTime = valueBucketInfosBucketInfo["ModifyTime"].asString(); + if(!valueBucketInfosBucketInfo["Endpoint"].isNull()) + bucketInfosObject.endpoint = valueBucketInfosBucketInfo["Endpoint"].asString(); + bucketInfos_.push_back(bucketInfosObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +std::vector ListBucketsResult::getBucketInfos()const +{ + return bucketInfos_; +} + +long ListBucketsResult::getTotalCount()const +{ + return totalCount_; +} + diff --git a/vs/src/model/ListDeviceChannelsRequest.cc b/vs/src/model/ListDeviceChannelsRequest.cc new file mode 100644 index 000000000..9d9eafee5 --- /dev/null +++ b/vs/src/model/ListDeviceChannelsRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vs::Model::ListDeviceChannelsRequest; + +ListDeviceChannelsRequest::ListDeviceChannelsRequest() : + RpcServiceRequest("vs", "2018-12-12", "ListDeviceChannels") +{ + setMethod(HttpRequest::Method::Post); +} + +ListDeviceChannelsRequest::~ListDeviceChannelsRequest() +{} + +long ListDeviceChannelsRequest::getPageNum()const +{ + return pageNum_; +} + +void ListDeviceChannelsRequest::setPageNum(long pageNum) +{ + pageNum_ = pageNum; + setParameter("PageNum", std::to_string(pageNum)); +} + +long ListDeviceChannelsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListDeviceChannelsRequest::setPageSize(long pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListDeviceChannelsRequest::getShowLog()const +{ + return showLog_; +} + +void ListDeviceChannelsRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +long ListDeviceChannelsRequest::getOwnerId()const +{ + return ownerId_; +} + +void ListDeviceChannelsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ListDeviceChannelsRequest::getDeviceId()const +{ + return deviceId_; +} + +void ListDeviceChannelsRequest::setDeviceId(const std::string& deviceId) +{ + deviceId_ = deviceId; + setParameter("DeviceId", deviceId); +} + diff --git a/vs/src/model/ListDeviceChannelsResult.cc b/vs/src/model/ListDeviceChannelsResult.cc new file mode 100644 index 000000000..c9679a741 --- /dev/null +++ b/vs/src/model/ListDeviceChannelsResult.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vs; +using namespace AlibabaCloud::Vs::Model; + +ListDeviceChannelsResult::ListDeviceChannelsResult() : + ServiceResult() +{} + +ListDeviceChannelsResult::ListDeviceChannelsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDeviceChannelsResult::~ListDeviceChannelsResult() +{} + +void ListDeviceChannelsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allChannelsNode = value["Channels"]["Channel"]; + for (auto valueChannelsChannel : allChannelsNode) + { + Channel channelsObject; + if(!valueChannelsChannel["Name"].isNull()) + channelsObject.name = valueChannelsChannel["Name"].asString(); + if(!valueChannelsChannel["DeviceId"].isNull()) + channelsObject.deviceId = valueChannelsChannel["DeviceId"].asString(); + if(!valueChannelsChannel["DeviceStatus"].isNull()) + channelsObject.deviceStatus = valueChannelsChannel["DeviceStatus"].asString(); + if(!valueChannelsChannel["ChannelId"].isNull()) + channelsObject.channelId = std::stol(valueChannelsChannel["ChannelId"].asString()); + if(!valueChannelsChannel["Params"].isNull()) + channelsObject.params = valueChannelsChannel["Params"].asString(); + channels_.push_back(channelsObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["PageNum"].isNull()) + pageNum_ = std::stol(value["PageNum"].asString()); + if(!value["PageCount"].isNull()) + pageCount_ = std::stol(value["PageCount"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +long ListDeviceChannelsResult::getTotalCount()const +{ + return totalCount_; +} + +long ListDeviceChannelsResult::getPageSize()const +{ + return pageSize_; +} + +long ListDeviceChannelsResult::getPageNum()const +{ + return pageNum_; +} + +long ListDeviceChannelsResult::getPageCount()const +{ + return pageCount_; +} + +std::vector ListDeviceChannelsResult::getChannels()const +{ + return channels_; +} + diff --git a/vs/src/model/ListDeviceRecordsRequest.cc b/vs/src/model/ListDeviceRecordsRequest.cc new file mode 100644 index 000000000..c71876276 --- /dev/null +++ b/vs/src/model/ListDeviceRecordsRequest.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vs::Model::ListDeviceRecordsRequest; + +ListDeviceRecordsRequest::ListDeviceRecordsRequest() : + RpcServiceRequest("vs", "2018-12-12", "ListDeviceRecords") +{ + setMethod(HttpRequest::Method::Post); +} + +ListDeviceRecordsRequest::~ListDeviceRecordsRequest() +{} + +long ListDeviceRecordsRequest::getPageNum()const +{ + return pageNum_; +} + +void ListDeviceRecordsRequest::setPageNum(long pageNum) +{ + pageNum_ = pageNum; + setParameter("PageNum", std::to_string(pageNum)); +} + +std::string ListDeviceRecordsRequest::getSearchCriteria()const +{ + return searchCriteria_; +} + +void ListDeviceRecordsRequest::setSearchCriteria(const std::string& searchCriteria) +{ + searchCriteria_ = searchCriteria; + setParameter("SearchCriteria", searchCriteria); +} + +long ListDeviceRecordsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListDeviceRecordsRequest::setPageSize(long pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListDeviceRecordsRequest::getShowLog()const +{ + return showLog_; +} + +void ListDeviceRecordsRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string ListDeviceRecordsRequest::getStreamId()const +{ + return streamId_; +} + +void ListDeviceRecordsRequest::setStreamId(const std::string& streamId) +{ + streamId_ = streamId; + setParameter("StreamId", streamId); +} + +long ListDeviceRecordsRequest::getOwnerId()const +{ + return ownerId_; +} + +void ListDeviceRecordsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ListDeviceRecordsRequest::getDeviceId()const +{ + return deviceId_; +} + +void ListDeviceRecordsRequest::setDeviceId(const std::string& deviceId) +{ + deviceId_ = deviceId; + setParameter("DeviceId", deviceId); +} + diff --git a/vs/src/model/ListDeviceRecordsResult.cc b/vs/src/model/ListDeviceRecordsResult.cc new file mode 100644 index 000000000..485296c86 --- /dev/null +++ b/vs/src/model/ListDeviceRecordsResult.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vs; +using namespace AlibabaCloud::Vs::Model; + +ListDeviceRecordsResult::ListDeviceRecordsResult() : + ServiceResult() +{} + +ListDeviceRecordsResult::ListDeviceRecordsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDeviceRecordsResult::~ListDeviceRecordsResult() +{} + +void ListDeviceRecordsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRecordsNode = value["Records"]["Record"]; + for (auto valueRecordsRecord : allRecordsNode) + { + Record recordsObject; + if(!valueRecordsRecord["Filename"].isNull()) + recordsObject.filename = valueRecordsRecord["Filename"].asString(); + if(!valueRecordsRecord["StartTime"].isNull()) + recordsObject.startTime = valueRecordsRecord["StartTime"].asString(); + if(!valueRecordsRecord["EndTime"].isNull()) + recordsObject.endTime = valueRecordsRecord["EndTime"].asString(); + if(!valueRecordsRecord["RecordType"].isNull()) + recordsObject.recordType = valueRecordsRecord["RecordType"].asString(); + if(!valueRecordsRecord["FileSize"].isNull()) + recordsObject.fileSize = std::stol(valueRecordsRecord["FileSize"].asString()); + records_.push_back(recordsObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["PageNum"].isNull()) + pageNum_ = std::stol(value["PageNum"].asString()); + if(!value["PageCount"].isNull()) + pageCount_ = std::stol(value["PageCount"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +long ListDeviceRecordsResult::getTotalCount()const +{ + return totalCount_; +} + +long ListDeviceRecordsResult::getPageSize()const +{ + return pageSize_; +} + +long ListDeviceRecordsResult::getPageNum()const +{ + return pageNum_; +} + +long ListDeviceRecordsResult::getPageCount()const +{ + return pageCount_; +} + +std::vector ListDeviceRecordsResult::getRecords()const +{ + return records_; +} + diff --git a/vs/src/model/ListObjectsRequest.cc b/vs/src/model/ListObjectsRequest.cc new file mode 100644 index 000000000..9d6a0fc5d --- /dev/null +++ b/vs/src/model/ListObjectsRequest.cc @@ -0,0 +1,139 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vs::Model::ListObjectsRequest; + +ListObjectsRequest::ListObjectsRequest() : + RpcServiceRequest("vs", "2018-12-12", "ListObjects") +{ + setMethod(HttpRequest::Method::Post); +} + +ListObjectsRequest::~ListObjectsRequest() +{} + +int ListObjectsRequest::getMaxKeys()const +{ + return maxKeys_; +} + +void ListObjectsRequest::setMaxKeys(int maxKeys) +{ + maxKeys_ = maxKeys; + setParameter("MaxKeys", std::to_string(maxKeys)); +} + +std::string ListObjectsRequest::getContinuationToken()const +{ + return continuationToken_; +} + +void ListObjectsRequest::setContinuationToken(const std::string& continuationToken) +{ + continuationToken_ = continuationToken; + setParameter("ContinuationToken", continuationToken); +} + +std::string ListObjectsRequest::getPrefix()const +{ + return prefix_; +} + +void ListObjectsRequest::setPrefix(const std::string& prefix) +{ + prefix_ = prefix; + setParameter("Prefix", prefix); +} + +std::string ListObjectsRequest::getDelimiter()const +{ + return delimiter_; +} + +void ListObjectsRequest::setDelimiter(const std::string& delimiter) +{ + delimiter_ = delimiter; + setParameter("Delimiter", delimiter); +} + +std::string ListObjectsRequest::getBucketName()const +{ + return bucketName_; +} + +void ListObjectsRequest::setBucketName(const std::string& bucketName) +{ + bucketName_ = bucketName; + setParameter("BucketName", bucketName); +} + +std::string ListObjectsRequest::getShowLog()const +{ + return showLog_; +} + +void ListObjectsRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string ListObjectsRequest::getEncodingType()const +{ + return encodingType_; +} + +void ListObjectsRequest::setEncodingType(const std::string& encodingType) +{ + encodingType_ = encodingType; + setParameter("EncodingType", encodingType); +} + +std::string ListObjectsRequest::getStartAfter()const +{ + return startAfter_; +} + +void ListObjectsRequest::setStartAfter(const std::string& startAfter) +{ + startAfter_ = startAfter; + setParameter("StartAfter", startAfter); +} + +long ListObjectsRequest::getOwnerId()const +{ + return ownerId_; +} + +void ListObjectsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ListObjectsRequest::getMarker()const +{ + return marker_; +} + +void ListObjectsRequest::setMarker(const std::string& marker) +{ + marker_ = marker; + setParameter("Marker", marker); +} + diff --git a/vs/src/model/ListObjectsResult.cc b/vs/src/model/ListObjectsResult.cc new file mode 100644 index 000000000..e8cd15ea6 --- /dev/null +++ b/vs/src/model/ListObjectsResult.cc @@ -0,0 +1,150 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vs; +using namespace AlibabaCloud::Vs::Model; + +ListObjectsResult::ListObjectsResult() : + ServiceResult() +{} + +ListObjectsResult::ListObjectsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListObjectsResult::~ListObjectsResult() +{} + +void ListObjectsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allContentsNode = value["Contents"]["Content"]; + for (auto valueContentsContent : allContentsNode) + { + Content contentsObject; + if(!valueContentsContent["Key"].isNull()) + contentsObject.key = valueContentsContent["Key"].asString(); + if(!valueContentsContent["LastModified"].isNull()) + contentsObject.lastModified = valueContentsContent["LastModified"].asString(); + if(!valueContentsContent["ETag"].isNull()) + contentsObject.eTag = valueContentsContent["ETag"].asString(); + if(!valueContentsContent["Size"].isNull()) + contentsObject.size = std::stol(valueContentsContent["Size"].asString()); + if(!valueContentsContent["StorageClass"].isNull()) + contentsObject.storageClass = valueContentsContent["StorageClass"].asString(); + contents_.push_back(contentsObject); + } + auto allCommonPrefixes = value["CommonPrefixes"]["Prefix"]; + for (const auto &item : allCommonPrefixes) + commonPrefixes_.push_back(item.asString()); + if(!value["BucketName"].isNull()) + bucketName_ = value["BucketName"].asString(); + if(!value["Prefix"].isNull()) + prefix_ = value["Prefix"].asString(); + if(!value["MaxKeys"].isNull()) + maxKeys_ = std::stoi(value["MaxKeys"].asString()); + if(!value["KeyCount"].isNull()) + keyCount_ = std::stoi(value["KeyCount"].asString()); + if(!value["Delimiter"].isNull()) + delimiter_ = value["Delimiter"].asString(); + if(!value["EncodingType"].isNull()) + encodingType_ = value["EncodingType"].asString(); + if(!value["IsTruncated"].isNull()) + isTruncated_ = value["IsTruncated"].asString() == "true"; + if(!value["ContinuationToken"].isNull()) + continuationToken_ = value["ContinuationToken"].asString(); + if(!value["NextContinuationToken"].isNull()) + nextContinuationToken_ = value["NextContinuationToken"].asString(); + if(!value["Marker"].isNull()) + marker_ = value["Marker"].asString(); + if(!value["NextMarker"].isNull()) + nextMarker_ = value["NextMarker"].asString(); + +} + +std::vector ListObjectsResult::getCommonPrefixes()const +{ + return commonPrefixes_; +} + +std::string ListObjectsResult::getNextContinuationToken()const +{ + return nextContinuationToken_; +} + +std::string ListObjectsResult::getContinuationToken()const +{ + return continuationToken_; +} + +std::string ListObjectsResult::getDelimiter()const +{ + return delimiter_; +} + +std::string ListObjectsResult::getEncodingType()const +{ + return encodingType_; +} + +bool ListObjectsResult::getIsTruncated()const +{ + return isTruncated_; +} + +std::string ListObjectsResult::getPrefix()const +{ + return prefix_; +} + +std::string ListObjectsResult::getMarker()const +{ + return marker_; +} + +std::vector ListObjectsResult::getContents()const +{ + return contents_; +} + +std::string ListObjectsResult::getBucketName()const +{ + return bucketName_; +} + +int ListObjectsResult::getMaxKeys()const +{ + return maxKeys_; +} + +int ListObjectsResult::getKeyCount()const +{ + return keyCount_; +} + +std::string ListObjectsResult::getNextMarker()const +{ + return nextMarker_; +} + diff --git a/vs/src/model/OpenVsServiceRequest.cc b/vs/src/model/OpenVsServiceRequest.cc new file mode 100644 index 000000000..9704ab203 --- /dev/null +++ b/vs/src/model/OpenVsServiceRequest.cc @@ -0,0 +1,29 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vs::Model::OpenVsServiceRequest; + +OpenVsServiceRequest::OpenVsServiceRequest() : + RpcServiceRequest("vs", "2018-12-12", "OpenVsService") +{ + setMethod(HttpRequest::Method::Post); +} + +OpenVsServiceRequest::~OpenVsServiceRequest() +{} + diff --git a/vs/src/model/OpenVsServiceResult.cc b/vs/src/model/OpenVsServiceResult.cc new file mode 100644 index 000000000..72946efe0 --- /dev/null +++ b/vs/src/model/OpenVsServiceResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vs; +using namespace AlibabaCloud::Vs::Model; + +OpenVsServiceResult::OpenVsServiceResult() : + ServiceResult() +{} + +OpenVsServiceResult::OpenVsServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OpenVsServiceResult::~OpenVsServiceResult() +{} + +void OpenVsServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); + +} + +std::string OpenVsServiceResult::getOrderId()const +{ + return orderId_; +} + diff --git a/vs/src/model/OperateRenderingDevicesRequest.cc b/vs/src/model/OperateRenderingDevicesRequest.cc new file mode 100644 index 000000000..fc142a77e --- /dev/null +++ b/vs/src/model/OperateRenderingDevicesRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vs::Model::OperateRenderingDevicesRequest; + +OperateRenderingDevicesRequest::OperateRenderingDevicesRequest() : + RpcServiceRequest("vs", "2018-12-12", "OperateRenderingDevices") +{ + setMethod(HttpRequest::Method::Post); +} + +OperateRenderingDevicesRequest::~OperateRenderingDevicesRequest() +{} + +bool OperateRenderingDevicesRequest::getForceStop()const +{ + return forceStop_; +} + +void OperateRenderingDevicesRequest::setForceStop(bool forceStop) +{ + forceStop_ = forceStop; + setParameter("ForceStop", forceStop ? "true" : "false"); +} + +std::string OperateRenderingDevicesRequest::getShowLog()const +{ + return showLog_; +} + +void OperateRenderingDevicesRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +long OperateRenderingDevicesRequest::getOwnerId()const +{ + return ownerId_; +} + +void OperateRenderingDevicesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string OperateRenderingDevicesRequest::getInstanceIds()const +{ + return instanceIds_; +} + +void OperateRenderingDevicesRequest::setInstanceIds(const std::string& instanceIds) +{ + instanceIds_ = instanceIds; + setParameter("InstanceIds", instanceIds); +} + +std::string OperateRenderingDevicesRequest::getOperation()const +{ + return operation_; +} + +void OperateRenderingDevicesRequest::setOperation(const std::string& operation) +{ + operation_ = operation; + setParameter("Operation", operation); +} + diff --git a/vs/src/model/OperateRenderingDevicesResult.cc b/vs/src/model/OperateRenderingDevicesResult.cc new file mode 100644 index 000000000..78787ada3 --- /dev/null +++ b/vs/src/model/OperateRenderingDevicesResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vs; +using namespace AlibabaCloud::Vs::Model; + +OperateRenderingDevicesResult::OperateRenderingDevicesResult() : + ServiceResult() +{} + +OperateRenderingDevicesResult::OperateRenderingDevicesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OperateRenderingDevicesResult::~OperateRenderingDevicesResult() +{} + +void OperateRenderingDevicesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vs/src/model/PrepareUploadRequest.cc b/vs/src/model/PrepareUploadRequest.cc new file mode 100644 index 000000000..5b942c98d --- /dev/null +++ b/vs/src/model/PrepareUploadRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vs::Model::PrepareUploadRequest; + +PrepareUploadRequest::PrepareUploadRequest() : + RpcServiceRequest("vs", "2018-12-12", "PrepareUpload") +{ + setMethod(HttpRequest::Method::Post); +} + +PrepareUploadRequest::~PrepareUploadRequest() +{} + +std::string PrepareUploadRequest::getBucketName()const +{ + return bucketName_; +} + +void PrepareUploadRequest::setBucketName(const std::string& bucketName) +{ + bucketName_ = bucketName; + setParameter("BucketName", bucketName); +} + +std::string PrepareUploadRequest::getClientIp()const +{ + return clientIp_; +} + +void PrepareUploadRequest::setClientIp(const std::string& clientIp) +{ + clientIp_ = clientIp; + setParameter("ClientIp", clientIp); +} + +std::string PrepareUploadRequest::getShowLog()const +{ + return showLog_; +} + +void PrepareUploadRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +long PrepareUploadRequest::getOwnerId()const +{ + return ownerId_; +} + +void PrepareUploadRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string PrepareUploadRequest::getAdditionType()const +{ + return additionType_; +} + +void PrepareUploadRequest::setAdditionType(const std::string& additionType) +{ + additionType_ = additionType; + setParameter("AdditionType", additionType); +} + diff --git a/vs/src/model/PrepareUploadResult.cc b/vs/src/model/PrepareUploadResult.cc new file mode 100644 index 000000000..39236cd5f --- /dev/null +++ b/vs/src/model/PrepareUploadResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vs; +using namespace AlibabaCloud::Vs::Model; + +PrepareUploadResult::PrepareUploadResult() : + ServiceResult() +{} + +PrepareUploadResult::PrepareUploadResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PrepareUploadResult::~PrepareUploadResult() +{} + +void PrepareUploadResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["BucketName"].isNull()) + bucketName_ = value["BucketName"].asString(); + if(!value["Endpoint"].isNull()) + endpoint_ = value["Endpoint"].asString(); + if(!value["AdditionInfo"].isNull()) + additionInfo_ = value["AdditionInfo"].asString(); + +} + +std::string PrepareUploadResult::getBucketName()const +{ + return bucketName_; +} + +std::string PrepareUploadResult::getEndpoint()const +{ + return endpoint_; +} + +std::string PrepareUploadResult::getAdditionInfo()const +{ + return additionInfo_; +} + diff --git a/vs/src/model/PutBucketRequest.cc b/vs/src/model/PutBucketRequest.cc new file mode 100644 index 000000000..5e3967a32 --- /dev/null +++ b/vs/src/model/PutBucketRequest.cc @@ -0,0 +1,139 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vs::Model::PutBucketRequest; + +PutBucketRequest::PutBucketRequest() : + RpcServiceRequest("vs", "2018-12-12", "PutBucket") +{ + setMethod(HttpRequest::Method::Post); +} + +PutBucketRequest::~PutBucketRequest() +{} + +std::string PutBucketRequest::getDataRedundancyType()const +{ + return dataRedundancyType_; +} + +void PutBucketRequest::setDataRedundancyType(const std::string& dataRedundancyType) +{ + dataRedundancyType_ = dataRedundancyType; + setParameter("DataRedundancyType", dataRedundancyType); +} + +std::string PutBucketRequest::getEndpoint()const +{ + return endpoint_; +} + +void PutBucketRequest::setEndpoint(const std::string& endpoint) +{ + endpoint_ = endpoint; + setParameter("Endpoint", endpoint); +} + +std::string PutBucketRequest::getBucketName()const +{ + return bucketName_; +} + +void PutBucketRequest::setBucketName(const std::string& bucketName) +{ + bucketName_ = bucketName; + setParameter("BucketName", bucketName); +} + +std::string PutBucketRequest::getShowLog()const +{ + return showLog_; +} + +void PutBucketRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string PutBucketRequest::getBucketAcl()const +{ + return bucketAcl_; +} + +void PutBucketRequest::setBucketAcl(const std::string& bucketAcl) +{ + bucketAcl_ = bucketAcl; + setParameter("BucketAcl", bucketAcl); +} + +std::string PutBucketRequest::getDispatcherType()const +{ + return dispatcherType_; +} + +void PutBucketRequest::setDispatcherType(const std::string& dispatcherType) +{ + dispatcherType_ = dispatcherType; + setParameter("DispatcherType", dispatcherType); +} + +long PutBucketRequest::getOwnerId()const +{ + return ownerId_; +} + +void PutBucketRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string PutBucketRequest::getResourceType()const +{ + return resourceType_; +} + +void PutBucketRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setParameter("ResourceType", resourceType); +} + +std::string PutBucketRequest::getStorageClass()const +{ + return storageClass_; +} + +void PutBucketRequest::setStorageClass(const std::string& storageClass) +{ + storageClass_ = storageClass; + setParameter("StorageClass", storageClass); +} + +std::string PutBucketRequest::getComment()const +{ + return comment_; +} + +void PutBucketRequest::setComment(const std::string& comment) +{ + comment_ = comment; + setParameter("Comment", comment); +} + diff --git a/vs/src/model/PutBucketResult.cc b/vs/src/model/PutBucketResult.cc new file mode 100644 index 000000000..8092f1725 --- /dev/null +++ b/vs/src/model/PutBucketResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vs; +using namespace AlibabaCloud::Vs::Model; + +PutBucketResult::PutBucketResult() : + ServiceResult() +{} + +PutBucketResult::PutBucketResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PutBucketResult::~PutBucketResult() +{} + +void PutBucketResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vs/src/model/ResetRenderingDevicesRequest.cc b/vs/src/model/ResetRenderingDevicesRequest.cc new file mode 100644 index 000000000..3463dfc30 --- /dev/null +++ b/vs/src/model/ResetRenderingDevicesRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vs::Model::ResetRenderingDevicesRequest; + +ResetRenderingDevicesRequest::ResetRenderingDevicesRequest() : + RpcServiceRequest("vs", "2018-12-12", "ResetRenderingDevices") +{ + setMethod(HttpRequest::Method::Post); +} + +ResetRenderingDevicesRequest::~ResetRenderingDevicesRequest() +{} + +std::string ResetRenderingDevicesRequest::getShowLog()const +{ + return showLog_; +} + +void ResetRenderingDevicesRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +long ResetRenderingDevicesRequest::getOwnerId()const +{ + return ownerId_; +} + +void ResetRenderingDevicesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ResetRenderingDevicesRequest::getInstanceIds()const +{ + return instanceIds_; +} + +void ResetRenderingDevicesRequest::setInstanceIds(const std::string& instanceIds) +{ + instanceIds_ = instanceIds; + setParameter("InstanceIds", instanceIds); +} + diff --git a/vs/src/model/ResetRenderingDevicesResult.cc b/vs/src/model/ResetRenderingDevicesResult.cc new file mode 100644 index 000000000..25ee61241 --- /dev/null +++ b/vs/src/model/ResetRenderingDevicesResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vs; +using namespace AlibabaCloud::Vs::Model; + +ResetRenderingDevicesResult::ResetRenderingDevicesResult() : + ServiceResult() +{} + +ResetRenderingDevicesResult::ResetRenderingDevicesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResetRenderingDevicesResult::~ResetRenderingDevicesResult() +{} + +void ResetRenderingDevicesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vs/src/model/SetPresetRequest.cc b/vs/src/model/SetPresetRequest.cc index 992fc56bb..95c69b944 100644 --- a/vs/src/model/SetPresetRequest.cc +++ b/vs/src/model/SetPresetRequest.cc @@ -27,6 +27,17 @@ SetPresetRequest::SetPresetRequest() : SetPresetRequest::~SetPresetRequest() {} +std::string SetPresetRequest::getSubProtocol()const +{ + return subProtocol_; +} + +void SetPresetRequest::setSubProtocol(const std::string& subProtocol) +{ + subProtocol_ = subProtocol; + setParameter("SubProtocol", subProtocol); +} + std::string SetPresetRequest::getId()const { return id_; diff --git a/vs/src/model/StopAdjustRequest.cc b/vs/src/model/StopAdjustRequest.cc index f454da3b7..b472ecc9a 100644 --- a/vs/src/model/StopAdjustRequest.cc +++ b/vs/src/model/StopAdjustRequest.cc @@ -38,6 +38,17 @@ void StopAdjustRequest::setFocus(bool focus) setParameter("Focus", focus ? "true" : "false"); } +std::string StopAdjustRequest::getSubProtocol()const +{ + return subProtocol_; +} + +void StopAdjustRequest::setSubProtocol(const std::string& subProtocol) +{ + subProtocol_ = subProtocol; + setParameter("SubProtocol", subProtocol); +} + std::string StopAdjustRequest::getId()const { return id_; diff --git a/vs/src/model/StopMoveRequest.cc b/vs/src/model/StopMoveRequest.cc index 9f1eb9820..85d139e8f 100644 --- a/vs/src/model/StopMoveRequest.cc +++ b/vs/src/model/StopMoveRequest.cc @@ -38,6 +38,17 @@ void StopMoveRequest::setTilt(bool tilt) setParameter("Tilt", tilt ? "true" : "false"); } +std::string StopMoveRequest::getSubProtocol()const +{ + return subProtocol_; +} + +void StopMoveRequest::setSubProtocol(const std::string& subProtocol) +{ + subProtocol_ = subProtocol; + setParameter("SubProtocol", subProtocol); +} + std::string StopMoveRequest::getId()const { return id_; diff --git a/vs/src/model/SyncDeviceChannelsRequest.cc b/vs/src/model/SyncDeviceChannelsRequest.cc new file mode 100644 index 000000000..6c197d094 --- /dev/null +++ b/vs/src/model/SyncDeviceChannelsRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vs::Model::SyncDeviceChannelsRequest; + +SyncDeviceChannelsRequest::SyncDeviceChannelsRequest() : + RpcServiceRequest("vs", "2018-12-12", "SyncDeviceChannels") +{ + setMethod(HttpRequest::Method::Post); +} + +SyncDeviceChannelsRequest::~SyncDeviceChannelsRequest() +{} + +std::string SyncDeviceChannelsRequest::getShowLog()const +{ + return showLog_; +} + +void SyncDeviceChannelsRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +long SyncDeviceChannelsRequest::getOwnerId()const +{ + return ownerId_; +} + +void SyncDeviceChannelsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string SyncDeviceChannelsRequest::getDeviceId()const +{ + return deviceId_; +} + +void SyncDeviceChannelsRequest::setDeviceId(const std::string& deviceId) +{ + deviceId_ = deviceId; + setParameter("DeviceId", deviceId); +} + diff --git a/vs/src/model/SyncDeviceChannelsResult.cc b/vs/src/model/SyncDeviceChannelsResult.cc new file mode 100644 index 000000000..abc65116d --- /dev/null +++ b/vs/src/model/SyncDeviceChannelsResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vs; +using namespace AlibabaCloud::Vs::Model; + +SyncDeviceChannelsResult::SyncDeviceChannelsResult() : + ServiceResult() +{} + +SyncDeviceChannelsResult::SyncDeviceChannelsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SyncDeviceChannelsResult::~SyncDeviceChannelsResult() +{} + +void SyncDeviceChannelsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Id"].isNull()) + id_ = value["Id"].asString(); + +} + +std::string SyncDeviceChannelsResult::getId()const +{ + return id_; +} + diff --git a/vs/src/model/UpdateBucketInfoRequest.cc b/vs/src/model/UpdateBucketInfoRequest.cc new file mode 100644 index 000000000..0c7d11ccf --- /dev/null +++ b/vs/src/model/UpdateBucketInfoRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vs::Model::UpdateBucketInfoRequest; + +UpdateBucketInfoRequest::UpdateBucketInfoRequest() : + RpcServiceRequest("vs", "2018-12-12", "UpdateBucketInfo") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateBucketInfoRequest::~UpdateBucketInfoRequest() +{} + +std::string UpdateBucketInfoRequest::getBucketName()const +{ + return bucketName_; +} + +void UpdateBucketInfoRequest::setBucketName(const std::string& bucketName) +{ + bucketName_ = bucketName; + setParameter("BucketName", bucketName); +} + +std::string UpdateBucketInfoRequest::getShowLog()const +{ + return showLog_; +} + +void UpdateBucketInfoRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +long UpdateBucketInfoRequest::getOwnerId()const +{ + return ownerId_; +} + +void UpdateBucketInfoRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string UpdateBucketInfoRequest::getComment()const +{ + return comment_; +} + +void UpdateBucketInfoRequest::setComment(const std::string& comment) +{ + comment_ = comment; + setParameter("Comment", comment); +} + diff --git a/vs/src/model/UpdateBucketInfoResult.cc b/vs/src/model/UpdateBucketInfoResult.cc new file mode 100644 index 000000000..8297019bb --- /dev/null +++ b/vs/src/model/UpdateBucketInfoResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vs; +using namespace AlibabaCloud::Vs::Model; + +UpdateBucketInfoResult::UpdateBucketInfoResult() : + ServiceResult() +{} + +UpdateBucketInfoResult::UpdateBucketInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateBucketInfoResult::~UpdateBucketInfoResult() +{} + +void UpdateBucketInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vs/src/model/UpdateClusterRequest.cc b/vs/src/model/UpdateClusterRequest.cc new file mode 100644 index 000000000..7968020eb --- /dev/null +++ b/vs/src/model/UpdateClusterRequest.cc @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vs::Model::UpdateClusterRequest; + +UpdateClusterRequest::UpdateClusterRequest() : + RpcServiceRequest("vs", "2018-12-12", "UpdateCluster") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateClusterRequest::~UpdateClusterRequest() +{} + +std::string UpdateClusterRequest::getSecurityGroupId()const +{ + return securityGroupId_; +} + +void UpdateClusterRequest::setSecurityGroupId(const std::string& securityGroupId) +{ + securityGroupId_ = securityGroupId; + setParameter("SecurityGroupId", securityGroupId); +} + +std::string UpdateClusterRequest::getDescription()const +{ + return description_; +} + +void UpdateClusterRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string UpdateClusterRequest::getMaintainTime()const +{ + return maintainTime_; +} + +void UpdateClusterRequest::setMaintainTime(const std::string& maintainTime) +{ + maintainTime_ = maintainTime; + setParameter("MaintainTime", maintainTime); +} + +std::string UpdateClusterRequest::getEffectiveTime()const +{ + return effectiveTime_; +} + +void UpdateClusterRequest::setEffectiveTime(const std::string& effectiveTime) +{ + effectiveTime_ = effectiveTime; + setParameter("EffectiveTime", effectiveTime); +} + +std::string UpdateClusterRequest::getShowLog()const +{ + return showLog_; +} + +void UpdateClusterRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string UpdateClusterRequest::getClusterId()const +{ + return clusterId_; +} + +void UpdateClusterRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setParameter("ClusterId", clusterId); +} + +long UpdateClusterRequest::getOwnerId()const +{ + return ownerId_; +} + +void UpdateClusterRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string UpdateClusterRequest::getName()const +{ + return name_; +} + +void UpdateClusterRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string UpdateClusterRequest::getInternalPorts()const +{ + return internalPorts_; +} + +void UpdateClusterRequest::setInternalPorts(const std::string& internalPorts) +{ + internalPorts_ = internalPorts; + setParameter("InternalPorts", internalPorts); +} + diff --git a/vs/src/model/UpdateClusterResult.cc b/vs/src/model/UpdateClusterResult.cc new file mode 100644 index 000000000..b458aa12e --- /dev/null +++ b/vs/src/model/UpdateClusterResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vs; +using namespace AlibabaCloud::Vs::Model; + +UpdateClusterResult::UpdateClusterResult() : + ServiceResult() +{} + +UpdateClusterResult::UpdateClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateClusterResult::~UpdateClusterResult() +{} + +void UpdateClusterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vs/src/model/UpdateRenderingDeviceSpecRequest.cc b/vs/src/model/UpdateRenderingDeviceSpecRequest.cc new file mode 100644 index 000000000..1009e96b1 --- /dev/null +++ b/vs/src/model/UpdateRenderingDeviceSpecRequest.cc @@ -0,0 +1,139 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vs::Model::UpdateRenderingDeviceSpecRequest; + +UpdateRenderingDeviceSpecRequest::UpdateRenderingDeviceSpecRequest() : + RpcServiceRequest("vs", "2018-12-12", "UpdateRenderingDeviceSpec") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateRenderingDeviceSpecRequest::~UpdateRenderingDeviceSpecRequest() +{} + +std::string UpdateRenderingDeviceSpecRequest::getDescription()const +{ + return description_; +} + +void UpdateRenderingDeviceSpecRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +bool UpdateRenderingDeviceSpecRequest::getEffectiveTime()const +{ + return effectiveTime_; +} + +void UpdateRenderingDeviceSpecRequest::setEffectiveTime(bool effectiveTime) +{ + effectiveTime_ = effectiveTime; + setParameter("EffectiveTime", effectiveTime ? "true" : "false"); +} + +std::string UpdateRenderingDeviceSpecRequest::getShowLog()const +{ + return showLog_; +} + +void UpdateRenderingDeviceSpecRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +long UpdateRenderingDeviceSpecRequest::getAutoRenewPeriod()const +{ + return autoRenewPeriod_; +} + +void UpdateRenderingDeviceSpecRequest::setAutoRenewPeriod(long autoRenewPeriod) +{ + autoRenewPeriod_ = autoRenewPeriod; + setParameter("AutoRenewPeriod", std::to_string(autoRenewPeriod)); +} + +int UpdateRenderingDeviceSpecRequest::getPeriod()const +{ + return period_; +} + +void UpdateRenderingDeviceSpecRequest::setPeriod(int period) +{ + period_ = period; + setParameter("Period", std::to_string(period)); +} + +std::string UpdateRenderingDeviceSpecRequest::getSpecification()const +{ + return specification_; +} + +void UpdateRenderingDeviceSpecRequest::setSpecification(const std::string& specification) +{ + specification_ = specification; + setParameter("Specification", specification); +} + +long UpdateRenderingDeviceSpecRequest::getOwnerId()const +{ + return ownerId_; +} + +void UpdateRenderingDeviceSpecRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string UpdateRenderingDeviceSpecRequest::getPeriodUnit()const +{ + return periodUnit_; +} + +void UpdateRenderingDeviceSpecRequest::setPeriodUnit(const std::string& periodUnit) +{ + periodUnit_ = periodUnit; + setParameter("PeriodUnit", periodUnit); +} + +bool UpdateRenderingDeviceSpecRequest::getAutoRenew()const +{ + return autoRenew_; +} + +void UpdateRenderingDeviceSpecRequest::setAutoRenew(bool autoRenew) +{ + autoRenew_ = autoRenew; + setParameter("AutoRenew", autoRenew ? "true" : "false"); +} + +std::string UpdateRenderingDeviceSpecRequest::getInstanceIds()const +{ + return instanceIds_; +} + +void UpdateRenderingDeviceSpecRequest::setInstanceIds(const std::string& instanceIds) +{ + instanceIds_ = instanceIds; + setParameter("InstanceIds", instanceIds); +} + diff --git a/vs/src/model/UpdateRenderingDeviceSpecResult.cc b/vs/src/model/UpdateRenderingDeviceSpecResult.cc new file mode 100644 index 000000000..12fd47628 --- /dev/null +++ b/vs/src/model/UpdateRenderingDeviceSpecResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vs; +using namespace AlibabaCloud::Vs::Model; + +UpdateRenderingDeviceSpecResult::UpdateRenderingDeviceSpecResult() : + ServiceResult() +{} + +UpdateRenderingDeviceSpecResult::UpdateRenderingDeviceSpecResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateRenderingDeviceSpecResult::~UpdateRenderingDeviceSpecResult() +{} + +void UpdateRenderingDeviceSpecResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vs/src/model/UploadDeviceRecordRequest.cc b/vs/src/model/UploadDeviceRecordRequest.cc new file mode 100644 index 000000000..12eccb6fb --- /dev/null +++ b/vs/src/model/UploadDeviceRecordRequest.cc @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vs::Model::UploadDeviceRecordRequest; + +UploadDeviceRecordRequest::UploadDeviceRecordRequest() : + RpcServiceRequest("vs", "2018-12-12", "UploadDeviceRecord") +{ + setMethod(HttpRequest::Method::Post); +} + +UploadDeviceRecordRequest::~UploadDeviceRecordRequest() +{} + +std::string UploadDeviceRecordRequest::getSearchCriteria()const +{ + return searchCriteria_; +} + +void UploadDeviceRecordRequest::setSearchCriteria(const std::string& searchCriteria) +{ + searchCriteria_ = searchCriteria; + setParameter("SearchCriteria", searchCriteria); +} + +std::string UploadDeviceRecordRequest::getUploadParams()const +{ + return uploadParams_; +} + +void UploadDeviceRecordRequest::setUploadParams(const std::string& uploadParams) +{ + uploadParams_ = uploadParams; + setParameter("UploadParams", uploadParams); +} + +std::string UploadDeviceRecordRequest::getShowLog()const +{ + return showLog_; +} + +void UploadDeviceRecordRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string UploadDeviceRecordRequest::getStreamId()const +{ + return streamId_; +} + +void UploadDeviceRecordRequest::setStreamId(const std::string& streamId) +{ + streamId_ = streamId; + setParameter("StreamId", streamId); +} + +std::string UploadDeviceRecordRequest::getUploadId()const +{ + return uploadId_; +} + +void UploadDeviceRecordRequest::setUploadId(const std::string& uploadId) +{ + uploadId_ = uploadId; + setParameter("UploadId", uploadId); +} + +std::string UploadDeviceRecordRequest::getUploadType()const +{ + return uploadType_; +} + +void UploadDeviceRecordRequest::setUploadType(const std::string& uploadType) +{ + uploadType_ = uploadType; + setParameter("UploadType", uploadType); +} + +std::string UploadDeviceRecordRequest::getUploadMode()const +{ + return uploadMode_; +} + +void UploadDeviceRecordRequest::setUploadMode(const std::string& uploadMode) +{ + uploadMode_ = uploadMode; + setParameter("UploadMode", uploadMode); +} + +long UploadDeviceRecordRequest::getOwnerId()const +{ + return ownerId_; +} + +void UploadDeviceRecordRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string UploadDeviceRecordRequest::getDeviceId()const +{ + return deviceId_; +} + +void UploadDeviceRecordRequest::setDeviceId(const std::string& deviceId) +{ + deviceId_ = deviceId; + setParameter("DeviceId", deviceId); +} + diff --git a/vs/src/model/UploadDeviceRecordResult.cc b/vs/src/model/UploadDeviceRecordResult.cc new file mode 100644 index 000000000..24c0b0005 --- /dev/null +++ b/vs/src/model/UploadDeviceRecordResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vs; +using namespace AlibabaCloud::Vs::Model; + +UploadDeviceRecordResult::UploadDeviceRecordResult() : + ServiceResult() +{} + +UploadDeviceRecordResult::UploadDeviceRecordResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UploadDeviceRecordResult::~UploadDeviceRecordResult() +{} + +void UploadDeviceRecordResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Id"].isNull()) + id_ = value["Id"].asString(); + +} + +std::string UploadDeviceRecordResult::getId()const +{ + return id_; +} +