From 0cf373bc605f73ad85fa85b9e33b272aff2796bd Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 21 Oct 2020 08:58:16 +0000 Subject: [PATCH] Cloud Storage Gateway openapi sdk is released. --- CHANGELOG | 3 + sgw/CMakeLists.txt | 542 +++ sgw/include/alibabacloud/sgw/SgwClient.h | 966 ++++ sgw/include/alibabacloud/sgw/SgwExport.h | 32 + .../model/ActivateAllInOneGatewayRequest.h | 66 + .../sgw/model/ActivateAllInOneGatewayResult.h | 61 + .../sgw/model/ActivateGatewayRequest.h | 69 + .../sgw/model/ActivateGatewayResult.h | 59 + .../sgw/model/AddSharesToExpressSyncRequest.h | 60 + .../sgw/model/AddSharesToExpressSyncResult.h | 67 + .../sgw/model/AddTagsToGatewayRequest.h | 57 + .../sgw/model/AddTagsToGatewayResult.h | 55 + .../sgw/model/CheckActivationKeyRequest.h | 63 + .../sgw/model/CheckActivationKeyResult.h | 55 + .../sgw/model/CheckBlockVolumeNameRequest.h | 60 + .../sgw/model/CheckBlockVolumeNameResult.h | 57 + .../model/CheckGatewayEssdSupportRequest.h | 54 + .../sgw/model/CheckGatewayEssdSupportResult.h | 59 + .../sgw/model/CheckMnsServiceRequest.h | 51 + .../sgw/model/CheckMnsServiceResult.h | 59 + .../alibabacloud/sgw/model/CheckRoleRequest.h | 54 + .../alibabacloud/sgw/model/CheckRoleResult.h | 55 + .../sgw/model/CheckSlrRoleRequest.h | 57 + .../sgw/model/CheckSlrRoleResult.h | 59 + .../sgw/model/CheckUpgradeVersionRequest.h | 60 + .../sgw/model/CheckUpgradeVersionResult.h | 68 + .../sgw/model/CreateCacheRequest.h | 60 + .../sgw/model/CreateCacheResult.h | 59 + .../sgw/model/CreateExpressSyncRequest.h | 66 + .../sgw/model/CreateExpressSyncResult.h | 57 + .../model/CreateGatewayBlockVolumeRequest.h | 93 + .../model/CreateGatewayBlockVolumeResult.h | 57 + .../sgw/model/CreateGatewayCacheDiskRequest.h | 60 + .../sgw/model/CreateGatewayCacheDiskResult.h | 59 + .../sgw/model/CreateGatewayFileShareRequest.h | 165 + .../sgw/model/CreateGatewayFileShareResult.h | 57 + .../sgw/model/CreateGatewayLoggingRequest.h | 60 + .../sgw/model/CreateGatewayLoggingResult.h | 55 + .../sgw/model/CreateGatewayRequest.h | 96 + .../sgw/model/CreateGatewayResult.h | 59 + .../sgw/model/CreateGatewaySMBUserRequest.h | 60 + .../sgw/model/CreateGatewaySMBUserResult.h | 57 + .../sgw/model/CreateStorageBundleRequest.h | 66 + .../sgw/model/CreateStorageBundleResult.h | 57 + .../sgw/model/DeleteExpressSyncRequest.h | 54 + .../sgw/model/DeleteExpressSyncResult.h | 57 + .../model/DeleteGatewayBlockVolumesRequest.h | 60 + .../model/DeleteGatewayBlockVolumesResult.h | 57 + .../sgw/model/DeleteGatewayCacheDiskRequest.h | 60 + .../sgw/model/DeleteGatewayCacheDiskResult.h | 57 + .../model/DeleteGatewayFileSharesRequest.h | 60 + .../sgw/model/DeleteGatewayFileSharesResult.h | 57 + .../sgw/model/DeleteGatewayLoggingRequest.h | 54 + .../sgw/model/DeleteGatewayLoggingResult.h | 55 + .../sgw/model/DeleteGatewayRequest.h | 54 + .../sgw/model/DeleteGatewayResult.h | 57 + .../sgw/model/DeleteGatewaySMBUserRequest.h | 57 + .../sgw/model/DeleteGatewaySMBUserResult.h | 57 + .../sgw/model/DeleteStorageBundleRequest.h | 54 + .../sgw/model/DeleteStorageBundleResult.h | 55 + .../sgw/model/DeployCacheDiskRequest.h | 63 + .../sgw/model/DeployCacheDiskResult.h | 57 + .../sgw/model/DeployGatewayRequest.h | 73 + .../sgw/model/DeployGatewayResult.h | 57 + .../sgw/model/DescribeAccountConfigRequest.h | 54 + .../sgw/model/DescribeAccountConfigResult.h | 63 + .../DescribeBlockVolumeSnapshotsRequest.h | 63 + .../DescribeBlockVolumeSnapshotsResult.h | 69 + .../sgw/model/DescribeDashboardRequest.h | 57 + .../sgw/model/DescribeDashboardResult.h | 57 + .../sgw/model/DescribeExpireCachesRequest.h | 54 + .../sgw/model/DescribeExpireCachesResult.h | 57 + .../model/DescribeExpressSyncSharesRequest.h | 60 + .../model/DescribeExpressSyncSharesResult.h | 69 + .../sgw/model/DescribeExpressSyncsRequest.h | 57 + .../sgw/model/DescribeExpressSyncsResult.h | 67 + .../sgw/model/DescribeGatewayADInfoRequest.h | 54 + .../sgw/model/DescribeGatewayADInfoResult.h | 63 + .../sgw/model/DescribeGatewayActionsRequest.h | 54 + .../sgw/model/DescribeGatewayActionsResult.h | 68 + .../model/DescribeGatewayAuthInfoRequest.h | 54 + .../sgw/model/DescribeGatewayAuthInfoResult.h | 61 + .../DescribeGatewayBlockVolumesRequest.h | 60 + .../model/DescribeGatewayBlockVolumesResult.h | 86 + .../DescribeGatewayBucketCachesRequest.h | 60 + .../model/DescribeGatewayBucketCachesResult.h | 80 + .../sgw/model/DescribeGatewayCachesRequest.h | 54 + .../sgw/model/DescribeGatewayCachesResult.h | 71 + .../DescribeGatewayCapacityLimitRequest.h | 57 + .../DescribeGatewayCapacityLimitResult.h | 61 + .../model/DescribeGatewayCategoriesRequest.h | 54 + .../model/DescribeGatewayCategoriesResult.h | 57 + .../sgw/model/DescribeGatewayClassesRequest.h | 51 + .../sgw/model/DescribeGatewayClassesResult.h | 57 + .../model/DescribeGatewayCredentialRequest.h | 54 + .../model/DescribeGatewayCredentialResult.h | 67 + .../sgw/model/DescribeGatewayDNSRequest.h | 54 + .../sgw/model/DescribeGatewayDNSResult.h | 57 + .../model/DescribeGatewayFileSharesRequest.h | 60 + .../model/DescribeGatewayFileSharesResult.h | 125 + .../model/DescribeGatewayFileStatusRequest.h | 60 + .../model/DescribeGatewayFileStatusResult.h | 57 + .../sgw/model/DescribeGatewayImagesRequest.h | 57 + .../sgw/model/DescribeGatewayImagesResult.h | 69 + .../sgw/model/DescribeGatewayInfoRequest.h | 54 + .../sgw/model/DescribeGatewayInfoResult.h | 62 + .../model/DescribeGatewayLDAPInfoRequest.h | 54 + .../sgw/model/DescribeGatewayLDAPInfoResult.h | 65 + .../model/DescribeGatewayLocationsRequest.h | 51 + .../model/DescribeGatewayLocationsResult.h | 57 + .../sgw/model/DescribeGatewayLoggingRequest.h | 54 + .../sgw/model/DescribeGatewayLoggingResult.h | 61 + .../sgw/model/DescribeGatewayLogsRequest.h | 57 + .../sgw/model/DescribeGatewayLogsResult.h | 57 + ...escribeGatewayModificationClassesRequest.h | 54 + ...DescribeGatewayModificationClassesResult.h | 62 + .../sgw/model/DescribeGatewayRequest.h | 54 + .../sgw/model/DescribeGatewayResult.h | 127 + .../model/DescribeGatewaySMBUsersRequest.h | 63 + .../sgw/model/DescribeGatewaySMBUsersResult.h | 67 + .../model/DescribeGatewayStatisticsRequest.h | 66 + .../model/DescribeGatewayStatisticsResult.h | 57 + .../sgw/model/DescribeGatewayStockRequest.h | 54 + .../sgw/model/DescribeGatewayStockResult.h | 62 + .../sgw/model/DescribeGatewayTypesRequest.h | 57 + .../sgw/model/DescribeGatewayTypesResult.h | 57 + .../sgw/model/DescribeGatewaysForCmsRequest.h | 60 + .../sgw/model/DescribeGatewaysForCmsResult.h | 69 + .../sgw/model/DescribeGatewaysRequest.h | 63 + .../sgw/model/DescribeGatewaysResult.h | 102 + .../sgw/model/DescribeGatewaysTagsRequest.h | 60 + .../sgw/model/DescribeGatewaysTagsResult.h | 67 + .../sgw/model/DescribeKmsKeyRequest.h | 57 + .../sgw/model/DescribeKmsKeyResult.h | 57 + .../sgw/model/DescribeMqttConfigRequest.h | 54 + .../sgw/model/DescribeMqttConfigResult.h | 75 + .../sgw/model/DescribeOssBucketInfoRequest.h | 63 + .../sgw/model/DescribeOssBucketInfoResult.h | 67 + .../sgw/model/DescribeOssBucketsRequest.h | 54 + .../sgw/model/DescribeOssBucketsResult.h | 61 + .../model/DescribePayAsYouGoPriceRequest.h | 57 + .../sgw/model/DescribePayAsYouGoPriceResult.h | 63 + .../sgw/model/DescribeRegionsRequest.h | 51 + .../sgw/model/DescribeRegionsResult.h | 61 + ...ibeSharesBucketInfoForExpressSyncRequest.h | 57 + ...ribeSharesBucketInfoForExpressSyncResult.h | 63 + .../sgw/model/DescribeStorageBundleRequest.h | 54 + .../sgw/model/DescribeStorageBundleResult.h | 69 + .../sgw/model/DescribeStorageBundlesRequest.h | 63 + .../sgw/model/DescribeStorageBundlesResult.h | 73 + .../model/DescribeSubscriptionPriceRequest.h | 69 + .../model/DescribeSubscriptionPriceResult.h | 59 + .../sgw/model/DescribeTasksRequest.h | 63 + .../sgw/model/DescribeTasksResult.h | 75 + .../model/DescribeUserBusinessStatusRequest.h | 51 + .../model/DescribeUserBusinessStatusResult.h | 63 + .../sgw/model/DescribeVSwitchesRequest.h | 66 + .../sgw/model/DescribeVSwitchesResult.h | 71 + .../sgw/model/DescribeVpcsRequest.h | 63 + .../sgw/model/DescribeVpcsResult.h | 70 + .../sgw/model/DescribeZonesRequest.h | 54 + .../sgw/model/DescribeZonesResult.h | 61 + .../sgw/model/DisableGatewayLoggingRequest.h | 54 + .../sgw/model/DisableGatewayLoggingResult.h | 55 + .../sgw/model/EnableGatewayLoggingRequest.h | 54 + .../sgw/model/EnableGatewayLoggingResult.h | 55 + .../sgw/model/ExpandCacheDiskRequest.h | 60 + .../sgw/model/ExpandCacheDiskResult.h | 59 + .../ExpandGatewayNetworkBandwidthRequest.h | 57 + .../ExpandGatewayNetworkBandwidthResult.h | 59 + .../sgw/model/GenerateGatewayTokenRequest.h | 54 + .../sgw/model/GenerateGatewayTokenResult.h | 57 + .../sgw/model/GenerateMqttTokenRequest.h | 57 + .../sgw/model/GenerateMqttTokenResult.h | 57 + .../sgw/model/GenerateStsTokenRequest.h | 60 + .../sgw/model/GenerateStsTokenResult.h | 67 + .../sgw/model/ListTagResourcesRequest.h | 72 + .../sgw/model/ListTagResourcesResult.h | 60 + .../model/ModifyGatewayBlockVolumeRequest.h | 60 + .../model/ModifyGatewayBlockVolumeResult.h | 57 + .../sgw/model/ModifyGatewayClassRequest.h | 57 + .../sgw/model/ModifyGatewayClassResult.h | 59 + .../sgw/model/ModifyGatewayFileShareRequest.h | 60 + .../sgw/model/ModifyGatewayFileShareResult.h | 57 + .../sgw/model/ModifyGatewayRequest.h | 60 + .../sgw/model/ModifyGatewayResult.h | 57 + .../sgw/model/ModifyStorageBundleRequest.h | 60 + .../sgw/model/ModifyStorageBundleResult.h | 57 + .../sgw/model/OperateGatewayRequest.h | 60 + .../sgw/model/OperateGatewayResult.h | 59 + .../sgw/model/ReleaseServiceRequest.h | 51 + .../sgw/model/ReleaseServiceResult.h | 55 + .../RemoveSharesFromExpressSyncRequest.h | 57 + .../model/RemoveSharesFromExpressSyncResult.h | 57 + .../sgw/model/RemoveTagsFromGatewayRequest.h | 57 + .../sgw/model/RemoveTagsFromGatewayResult.h | 55 + .../sgw/model/ReportBlockVolumesRequest.h | 60 + .../sgw/model/ReportBlockVolumesResult.h | 55 + .../sgw/model/ReportFileSharesRequest.h | 60 + .../sgw/model/ReportFileSharesResult.h | 55 + .../sgw/model/ReportGatewayInfoRequest.h | 66 + .../sgw/model/ReportGatewayInfoResult.h | 55 + .../sgw/model/ReportGatewayUsageRequest.h | 60 + .../sgw/model/ReportGatewayUsageResult.h | 55 + .../sgw/model/ResetGatewayPasswordRequest.h | 60 + .../sgw/model/ResetGatewayPasswordResult.h | 57 + .../sgw/model/RestartFileSharesRequest.h | 57 + .../sgw/model/RestartFileSharesResult.h | 57 + .../sgw/model/SetGatewayADInfoRequest.h | 69 + .../sgw/model/SetGatewayADInfoResult.h | 57 + .../sgw/model/SetGatewayDNSRequest.h | 57 + .../sgw/model/SetGatewayDNSResult.h | 57 + .../sgw/model/SetGatewayLDAPInfoRequest.h | 72 + .../sgw/model/SetGatewayLDAPInfoResult.h | 57 + .../SwitchGatewayExpirationPolicyRequest.h | 54 + .../SwitchGatewayExpirationPolicyResult.h | 55 + .../sgw/model/SwitchToSubscriptionRequest.h | 54 + .../sgw/model/SwitchToSubscriptionResult.h | 57 + .../sgw/model/TagResourcesRequest.h | 69 + .../sgw/model/TagResourcesResult.h | 49 + .../sgw/model/UntagResourcesRequest.h | 66 + .../sgw/model/UntagResourcesResult.h | 49 + .../model/UpdateGatewayBlockVolumeRequest.h | 69 + .../model/UpdateGatewayBlockVolumeResult.h | 57 + .../sgw/model/UpdateGatewayFileShareRequest.h | 141 + .../sgw/model/UpdateGatewayFileShareResult.h | 57 + .../sgw/model/UpgradeGatewayRequest.h | 48 + .../sgw/model/UpgradeGatewayResult.h | 57 + .../sgw/model/UploadGatewayLogRequest.h | 48 + .../sgw/model/UploadGatewayLogResult.h | 57 + .../model/ValidateExpressSyncConfigRequest.h | 63 + .../model/ValidateExpressSyncConfigResult.h | 59 + .../sgw/model/ValidateGatewayNameRequest.h | 51 + .../sgw/model/ValidateGatewayNameResult.h | 57 + sgw/src/SgwClient.cc | 4193 +++++++++++++++++ .../model/ActivateAllInOneGatewayRequest.cc | 106 + .../model/ActivateAllInOneGatewayResult.cc | 86 + sgw/src/model/ActivateGatewayRequest.cc | 117 + sgw/src/model/ActivateGatewayResult.cc | 79 + .../model/AddSharesToExpressSyncRequest.cc | 84 + sgw/src/model/AddSharesToExpressSyncResult.cc | 107 + sgw/src/model/AddTagsToGatewayRequest.cc | 73 + sgw/src/model/AddTagsToGatewayResult.cc | 65 + sgw/src/model/CheckActivationKeyRequest.cc | 95 + sgw/src/model/CheckActivationKeyResult.cc | 65 + sgw/src/model/CheckBlockVolumeNameRequest.cc | 84 + sgw/src/model/CheckBlockVolumeNameResult.cc | 72 + .../model/CheckGatewayEssdSupportRequest.cc | 62 + .../model/CheckGatewayEssdSupportResult.cc | 79 + sgw/src/model/CheckMnsServiceRequest.cc | 51 + sgw/src/model/CheckMnsServiceResult.cc | 79 + sgw/src/model/CheckRoleRequest.cc | 62 + sgw/src/model/CheckRoleResult.cc | 65 + sgw/src/model/CheckSlrRoleRequest.cc | 73 + sgw/src/model/CheckSlrRoleResult.cc | 79 + sgw/src/model/CheckUpgradeVersionRequest.cc | 84 + sgw/src/model/CheckUpgradeVersionResult.cc | 98 + sgw/src/model/CreateCacheRequest.cc | 84 + sgw/src/model/CreateCacheResult.cc | 79 + sgw/src/model/CreateExpressSyncRequest.cc | 106 + sgw/src/model/CreateExpressSyncResult.cc | 72 + .../model/CreateGatewayBlockVolumeRequest.cc | 205 + .../model/CreateGatewayBlockVolumeResult.cc | 72 + .../model/CreateGatewayCacheDiskRequest.cc | 84 + sgw/src/model/CreateGatewayCacheDiskResult.cc | 79 + .../model/CreateGatewayFileShareRequest.cc | 469 ++ sgw/src/model/CreateGatewayFileShareResult.cc | 72 + sgw/src/model/CreateGatewayLoggingRequest.cc | 84 + sgw/src/model/CreateGatewayLoggingResult.cc | 65 + sgw/src/model/CreateGatewayRequest.cc | 216 + sgw/src/model/CreateGatewayResult.cc | 79 + sgw/src/model/CreateGatewaySMBUserRequest.cc | 84 + sgw/src/model/CreateGatewaySMBUserResult.cc | 72 + sgw/src/model/CreateStorageBundleRequest.cc | 106 + sgw/src/model/CreateStorageBundleResult.cc | 72 + sgw/src/model/DeleteExpressSyncRequest.cc | 62 + sgw/src/model/DeleteExpressSyncResult.cc | 72 + .../model/DeleteGatewayBlockVolumesRequest.cc | 84 + .../model/DeleteGatewayBlockVolumesResult.cc | 72 + .../model/DeleteGatewayCacheDiskRequest.cc | 84 + sgw/src/model/DeleteGatewayCacheDiskResult.cc | 72 + .../model/DeleteGatewayFileSharesRequest.cc | 84 + .../model/DeleteGatewayFileSharesResult.cc | 72 + sgw/src/model/DeleteGatewayLoggingRequest.cc | 62 + sgw/src/model/DeleteGatewayLoggingResult.cc | 65 + sgw/src/model/DeleteGatewayRequest.cc | 62 + sgw/src/model/DeleteGatewayResult.cc | 72 + sgw/src/model/DeleteGatewaySMBUserRequest.cc | 73 + sgw/src/model/DeleteGatewaySMBUserResult.cc | 72 + sgw/src/model/DeleteStorageBundleRequest.cc | 62 + sgw/src/model/DeleteStorageBundleResult.cc | 65 + sgw/src/model/DeployCacheDiskRequest.cc | 95 + sgw/src/model/DeployCacheDiskResult.cc | 72 + sgw/src/model/DeployGatewayRequest.cc | 112 + sgw/src/model/DeployGatewayResult.cc | 72 + sgw/src/model/DescribeAccountConfigRequest.cc | 62 + sgw/src/model/DescribeAccountConfigResult.cc | 93 + .../DescribeBlockVolumeSnapshotsRequest.cc | 95 + .../DescribeBlockVolumeSnapshotsResult.cc | 103 + sgw/src/model/DescribeDashboardRequest.cc | 73 + sgw/src/model/DescribeDashboardResult.cc | 72 + sgw/src/model/DescribeExpireCachesRequest.cc | 62 + sgw/src/model/DescribeExpireCachesResult.cc | 72 + .../model/DescribeExpressSyncSharesRequest.cc | 84 + .../model/DescribeExpressSyncSharesResult.cc | 94 + sgw/src/model/DescribeExpressSyncsRequest.cc | 73 + sgw/src/model/DescribeExpressSyncsResult.cc | 90 + sgw/src/model/DescribeGatewayADInfoRequest.cc | 62 + sgw/src/model/DescribeGatewayADInfoResult.cc | 93 + .../model/DescribeGatewayActionsRequest.cc | 62 + sgw/src/model/DescribeGatewayActionsResult.cc | 92 + .../model/DescribeGatewayAuthInfoRequest.cc | 62 + .../model/DescribeGatewayAuthInfoResult.cc | 86 + .../DescribeGatewayBlockVolumesRequest.cc | 84 + .../DescribeGatewayBlockVolumesResult.cc | 128 + .../DescribeGatewayBucketCachesRequest.cc | 84 + .../DescribeGatewayBucketCachesResult.cc | 125 + sgw/src/model/DescribeGatewayCachesRequest.cc | 62 + sgw/src/model/DescribeGatewayCachesResult.cc | 98 + .../DescribeGatewayCapacityLimitRequest.cc | 73 + .../DescribeGatewayCapacityLimitResult.cc | 86 + .../model/DescribeGatewayCategoriesRequest.cc | 62 + .../model/DescribeGatewayCategoriesResult.cc | 72 + .../model/DescribeGatewayClassesRequest.cc | 51 + sgw/src/model/DescribeGatewayClassesResult.cc | 72 + .../model/DescribeGatewayCredentialRequest.cc | 62 + .../model/DescribeGatewayCredentialResult.cc | 107 + sgw/src/model/DescribeGatewayDNSRequest.cc | 62 + sgw/src/model/DescribeGatewayDNSResult.cc | 72 + .../model/DescribeGatewayFileSharesRequest.cc | 84 + .../model/DescribeGatewayFileSharesResult.cc | 206 + .../model/DescribeGatewayFileStatusRequest.cc | 84 + .../model/DescribeGatewayFileStatusResult.cc | 72 + sgw/src/model/DescribeGatewayImagesRequest.cc | 73 + sgw/src/model/DescribeGatewayImagesResult.cc | 94 + sgw/src/model/DescribeGatewayInfoRequest.cc | 62 + sgw/src/model/DescribeGatewayInfoResult.cc | 80 + .../model/DescribeGatewayLDAPInfoRequest.cc | 62 + .../model/DescribeGatewayLDAPInfoResult.cc | 100 + .../model/DescribeGatewayLocationsRequest.cc | 51 + .../model/DescribeGatewayLocationsResult.cc | 72 + .../model/DescribeGatewayLoggingRequest.cc | 62 + sgw/src/model/DescribeGatewayLoggingResult.cc | 86 + sgw/src/model/DescribeGatewayLogsRequest.cc | 73 + sgw/src/model/DescribeGatewayLogsResult.cc | 72 + ...scribeGatewayModificationClassesRequest.cc | 62 + ...escribeGatewayModificationClassesResult.cc | 80 + sgw/src/model/DescribeGatewayRequest.cc | 62 + sgw/src/model/DescribeGatewayResult.cc | 318 ++ .../model/DescribeGatewaySMBUsersRequest.cc | 95 + .../model/DescribeGatewaySMBUsersResult.cc | 99 + .../model/DescribeGatewayStatisticsRequest.cc | 106 + .../model/DescribeGatewayStatisticsResult.cc | 72 + sgw/src/model/DescribeGatewayStockRequest.cc | 62 + sgw/src/model/DescribeGatewayStockResult.cc | 80 + sgw/src/model/DescribeGatewayTypesRequest.cc | 73 + sgw/src/model/DescribeGatewayTypesResult.cc | 72 + .../model/DescribeGatewaysForCmsRequest.cc | 84 + sgw/src/model/DescribeGatewaysForCmsResult.cc | 103 + sgw/src/model/DescribeGatewaysRequest.cc | 95 + sgw/src/model/DescribeGatewaysResult.cc | 170 + sgw/src/model/DescribeGatewaysTagsRequest.cc | 84 + sgw/src/model/DescribeGatewaysTagsResult.cc | 88 + sgw/src/model/DescribeKmsKeyRequest.cc | 73 + sgw/src/model/DescribeKmsKeyResult.cc | 72 + sgw/src/model/DescribeMqttConfigRequest.cc | 62 + sgw/src/model/DescribeMqttConfigResult.cc | 135 + sgw/src/model/DescribeOssBucketInfoRequest.cc | 95 + sgw/src/model/DescribeOssBucketInfoResult.cc | 107 + sgw/src/model/DescribeOssBucketsRequest.cc | 62 + sgw/src/model/DescribeOssBucketsResult.cc | 78 + .../model/DescribePayAsYouGoPriceRequest.cc | 73 + .../model/DescribePayAsYouGoPriceResult.cc | 93 + sgw/src/model/DescribeRegionsRequest.cc | 51 + sgw/src/model/DescribeRegionsResult.cc | 78 + ...beSharesBucketInfoForExpressSyncRequest.cc | 73 + ...ibeSharesBucketInfoForExpressSyncResult.cc | 82 + sgw/src/model/DescribeStorageBundleRequest.cc | 62 + sgw/src/model/DescribeStorageBundleResult.cc | 114 + .../model/DescribeStorageBundlesRequest.cc | 95 + sgw/src/model/DescribeStorageBundlesResult.cc | 111 + .../model/DescribeSubscriptionPriceRequest.cc | 117 + .../model/DescribeSubscriptionPriceResult.cc | 79 + sgw/src/model/DescribeTasksRequest.cc | 95 + sgw/src/model/DescribeTasksResult.cc | 115 + .../DescribeUserBusinessStatusRequest.cc | 51 + .../model/DescribeUserBusinessStatusResult.cc | 93 + sgw/src/model/DescribeVSwitchesRequest.cc | 106 + sgw/src/model/DescribeVSwitchesResult.cc | 107 + sgw/src/model/DescribeVpcsRequest.cc | 95 + sgw/src/model/DescribeVpcsResult.cc | 105 + sgw/src/model/DescribeZonesRequest.cc | 62 + sgw/src/model/DescribeZonesResult.cc | 78 + sgw/src/model/DisableGatewayLoggingRequest.cc | 62 + sgw/src/model/DisableGatewayLoggingResult.cc | 65 + sgw/src/model/EnableGatewayLoggingRequest.cc | 62 + sgw/src/model/EnableGatewayLoggingResult.cc | 65 + sgw/src/model/ExpandCacheDiskRequest.cc | 84 + sgw/src/model/ExpandCacheDiskResult.cc | 79 + .../ExpandGatewayNetworkBandwidthRequest.cc | 73 + .../ExpandGatewayNetworkBandwidthResult.cc | 79 + sgw/src/model/GenerateGatewayTokenRequest.cc | 62 + sgw/src/model/GenerateGatewayTokenResult.cc | 72 + sgw/src/model/GenerateMqttTokenRequest.cc | 73 + sgw/src/model/GenerateMqttTokenResult.cc | 72 + sgw/src/model/GenerateStsTokenRequest.cc | 84 + sgw/src/model/GenerateStsTokenResult.cc | 107 + sgw/src/model/ListTagResourcesRequest.cc | 113 + sgw/src/model/ListTagResourcesResult.cc | 70 + .../model/ModifyGatewayBlockVolumeRequest.cc | 84 + .../model/ModifyGatewayBlockVolumeResult.cc | 72 + sgw/src/model/ModifyGatewayClassRequest.cc | 73 + sgw/src/model/ModifyGatewayClassResult.cc | 79 + .../model/ModifyGatewayFileShareRequest.cc | 84 + sgw/src/model/ModifyGatewayFileShareResult.cc | 72 + sgw/src/model/ModifyGatewayRequest.cc | 84 + sgw/src/model/ModifyGatewayResult.cc | 72 + sgw/src/model/ModifyStorageBundleRequest.cc | 84 + sgw/src/model/ModifyStorageBundleResult.cc | 72 + sgw/src/model/OperateGatewayRequest.cc | 84 + sgw/src/model/OperateGatewayResult.cc | 79 + sgw/src/model/ReleaseServiceRequest.cc | 51 + sgw/src/model/ReleaseServiceResult.cc | 65 + .../RemoveSharesFromExpressSyncRequest.cc | 73 + .../RemoveSharesFromExpressSyncResult.cc | 72 + sgw/src/model/RemoveTagsFromGatewayRequest.cc | 73 + sgw/src/model/RemoveTagsFromGatewayResult.cc | 65 + sgw/src/model/ReportBlockVolumesRequest.cc | 84 + sgw/src/model/ReportBlockVolumesResult.cc | 65 + sgw/src/model/ReportFileSharesRequest.cc | 84 + sgw/src/model/ReportFileSharesResult.cc | 65 + sgw/src/model/ReportGatewayInfoRequest.cc | 106 + sgw/src/model/ReportGatewayInfoResult.cc | 65 + sgw/src/model/ReportGatewayUsageRequest.cc | 84 + sgw/src/model/ReportGatewayUsageResult.cc | 65 + sgw/src/model/ResetGatewayPasswordRequest.cc | 84 + sgw/src/model/ResetGatewayPasswordResult.cc | 72 + sgw/src/model/RestartFileSharesRequest.cc | 73 + sgw/src/model/RestartFileSharesResult.cc | 72 + sgw/src/model/SetGatewayADInfoRequest.cc | 117 + sgw/src/model/SetGatewayADInfoResult.cc | 72 + sgw/src/model/SetGatewayDNSRequest.cc | 73 + sgw/src/model/SetGatewayDNSResult.cc | 72 + sgw/src/model/SetGatewayLDAPInfoRequest.cc | 128 + sgw/src/model/SetGatewayLDAPInfoResult.cc | 72 + .../SwitchGatewayExpirationPolicyRequest.cc | 62 + .../SwitchGatewayExpirationPolicyResult.cc | 65 + sgw/src/model/SwitchToSubscriptionRequest.cc | 62 + sgw/src/model/SwitchToSubscriptionResult.cc | 72 + sgw/src/model/TagResourcesRequest.cc | 102 + sgw/src/model/TagResourcesResult.cc | 44 + sgw/src/model/UntagResourcesRequest.cc | 110 + sgw/src/model/UntagResourcesResult.cc | 44 + .../model/UpdateGatewayBlockVolumeRequest.cc | 117 + .../model/UpdateGatewayBlockVolumeResult.cc | 72 + .../model/UpdateGatewayFileShareRequest.cc | 381 ++ sgw/src/model/UpdateGatewayFileShareResult.cc | 72 + sgw/src/model/UpgradeGatewayRequest.cc | 40 + sgw/src/model/UpgradeGatewayResult.cc | 72 + sgw/src/model/UploadGatewayLogRequest.cc | 40 + sgw/src/model/UploadGatewayLogResult.cc | 72 + .../model/ValidateExpressSyncConfigRequest.cc | 95 + .../model/ValidateExpressSyncConfigResult.cc | 79 + sgw/src/model/ValidateGatewayNameRequest.cc | 51 + sgw/src/model/ValidateGatewayNameResult.cc | 72 + 465 files changed, 39395 insertions(+) create mode 100644 sgw/CMakeLists.txt create mode 100644 sgw/include/alibabacloud/sgw/SgwClient.h create mode 100644 sgw/include/alibabacloud/sgw/SgwExport.h create mode 100644 sgw/include/alibabacloud/sgw/model/ActivateAllInOneGatewayRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/ActivateAllInOneGatewayResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/ActivateGatewayRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/ActivateGatewayResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/AddSharesToExpressSyncRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/AddSharesToExpressSyncResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/AddTagsToGatewayRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/AddTagsToGatewayResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/CheckActivationKeyRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/CheckActivationKeyResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/CheckBlockVolumeNameRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/CheckBlockVolumeNameResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/CheckGatewayEssdSupportRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/CheckGatewayEssdSupportResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/CheckMnsServiceRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/CheckMnsServiceResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/CheckRoleRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/CheckRoleResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/CheckSlrRoleRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/CheckSlrRoleResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/CheckUpgradeVersionRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/CheckUpgradeVersionResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/CreateCacheRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/CreateCacheResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/CreateExpressSyncRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/CreateExpressSyncResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/CreateGatewayBlockVolumeRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/CreateGatewayBlockVolumeResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/CreateGatewayCacheDiskRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/CreateGatewayCacheDiskResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/CreateGatewayFileShareRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/CreateGatewayFileShareResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/CreateGatewayLoggingRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/CreateGatewayLoggingResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/CreateGatewayRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/CreateGatewayResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/CreateGatewaySMBUserRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/CreateGatewaySMBUserResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/CreateStorageBundleRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/CreateStorageBundleResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DeleteExpressSyncRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DeleteExpressSyncResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DeleteGatewayBlockVolumesRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DeleteGatewayBlockVolumesResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DeleteGatewayCacheDiskRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DeleteGatewayCacheDiskResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DeleteGatewayFileSharesRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DeleteGatewayFileSharesResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DeleteGatewayLoggingRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DeleteGatewayLoggingResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DeleteGatewayRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DeleteGatewayResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DeleteGatewaySMBUserRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DeleteGatewaySMBUserResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DeleteStorageBundleRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DeleteStorageBundleResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DeployCacheDiskRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DeployCacheDiskResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DeployGatewayRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DeployGatewayResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeAccountConfigRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeAccountConfigResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeBlockVolumeSnapshotsRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeBlockVolumeSnapshotsResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeDashboardRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeDashboardResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeExpireCachesRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeExpireCachesResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeExpressSyncSharesRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeExpressSyncSharesResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeExpressSyncsRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeExpressSyncsResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayADInfoRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayADInfoResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayActionsRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayActionsResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayAuthInfoRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayAuthInfoResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayBlockVolumesRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayBlockVolumesResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayBucketCachesRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayBucketCachesResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayCachesRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayCachesResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayCapacityLimitRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayCapacityLimitResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayCategoriesRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayCategoriesResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayClassesRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayClassesResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayCredentialRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayCredentialResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayDNSRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayDNSResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayFileSharesRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayFileSharesResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayFileStatusRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayFileStatusResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayImagesRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayImagesResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayInfoRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayInfoResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayLDAPInfoRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayLDAPInfoResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayLocationsRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayLocationsResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayLoggingRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayLoggingResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayLogsRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayLogsResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayModificationClassesRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayModificationClassesResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewaySMBUsersRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewaySMBUsersResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayStatisticsRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayStatisticsResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayStockRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayStockResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayTypesRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewayTypesResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewaysForCmsRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewaysForCmsResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewaysRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewaysResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewaysTagsRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeGatewaysTagsResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeKmsKeyRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeKmsKeyResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeMqttConfigRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeMqttConfigResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeOssBucketInfoRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeOssBucketInfoResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeOssBucketsRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeOssBucketsResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribePayAsYouGoPriceRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribePayAsYouGoPriceResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeRegionsRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeRegionsResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeSharesBucketInfoForExpressSyncRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeSharesBucketInfoForExpressSyncResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeStorageBundleRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeStorageBundleResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeStorageBundlesRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeStorageBundlesResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeSubscriptionPriceRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeSubscriptionPriceResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeTasksRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeTasksResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeUserBusinessStatusRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeUserBusinessStatusResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeVSwitchesRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeVSwitchesResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeVpcsRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeVpcsResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeZonesRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DescribeZonesResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/DisableGatewayLoggingRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/DisableGatewayLoggingResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/EnableGatewayLoggingRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/EnableGatewayLoggingResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/ExpandCacheDiskRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/ExpandCacheDiskResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/ExpandGatewayNetworkBandwidthRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/ExpandGatewayNetworkBandwidthResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/GenerateGatewayTokenRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/GenerateGatewayTokenResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/GenerateMqttTokenRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/GenerateMqttTokenResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/GenerateStsTokenRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/GenerateStsTokenResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/ListTagResourcesRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/ListTagResourcesResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/ModifyGatewayBlockVolumeRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/ModifyGatewayBlockVolumeResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/ModifyGatewayClassRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/ModifyGatewayClassResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/ModifyGatewayFileShareRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/ModifyGatewayFileShareResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/ModifyGatewayRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/ModifyGatewayResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/ModifyStorageBundleRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/ModifyStorageBundleResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/OperateGatewayRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/OperateGatewayResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/ReleaseServiceRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/ReleaseServiceResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/RemoveSharesFromExpressSyncRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/RemoveSharesFromExpressSyncResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/RemoveTagsFromGatewayRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/RemoveTagsFromGatewayResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/ReportBlockVolumesRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/ReportBlockVolumesResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/ReportFileSharesRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/ReportFileSharesResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/ReportGatewayInfoRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/ReportGatewayInfoResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/ReportGatewayUsageRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/ReportGatewayUsageResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/ResetGatewayPasswordRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/ResetGatewayPasswordResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/RestartFileSharesRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/RestartFileSharesResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/SetGatewayADInfoRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/SetGatewayADInfoResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/SetGatewayDNSRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/SetGatewayDNSResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/SetGatewayLDAPInfoRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/SetGatewayLDAPInfoResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/SwitchGatewayExpirationPolicyRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/SwitchGatewayExpirationPolicyResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/SwitchToSubscriptionRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/SwitchToSubscriptionResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/TagResourcesRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/TagResourcesResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/UntagResourcesRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/UntagResourcesResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/UpdateGatewayBlockVolumeRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/UpdateGatewayBlockVolumeResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/UpdateGatewayFileShareRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/UpdateGatewayFileShareResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/UpgradeGatewayRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/UpgradeGatewayResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/UploadGatewayLogRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/UploadGatewayLogResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/ValidateExpressSyncConfigRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/ValidateExpressSyncConfigResult.h create mode 100644 sgw/include/alibabacloud/sgw/model/ValidateGatewayNameRequest.h create mode 100644 sgw/include/alibabacloud/sgw/model/ValidateGatewayNameResult.h create mode 100644 sgw/src/SgwClient.cc create mode 100644 sgw/src/model/ActivateAllInOneGatewayRequest.cc create mode 100644 sgw/src/model/ActivateAllInOneGatewayResult.cc create mode 100644 sgw/src/model/ActivateGatewayRequest.cc create mode 100644 sgw/src/model/ActivateGatewayResult.cc create mode 100644 sgw/src/model/AddSharesToExpressSyncRequest.cc create mode 100644 sgw/src/model/AddSharesToExpressSyncResult.cc create mode 100644 sgw/src/model/AddTagsToGatewayRequest.cc create mode 100644 sgw/src/model/AddTagsToGatewayResult.cc create mode 100644 sgw/src/model/CheckActivationKeyRequest.cc create mode 100644 sgw/src/model/CheckActivationKeyResult.cc create mode 100644 sgw/src/model/CheckBlockVolumeNameRequest.cc create mode 100644 sgw/src/model/CheckBlockVolumeNameResult.cc create mode 100644 sgw/src/model/CheckGatewayEssdSupportRequest.cc create mode 100644 sgw/src/model/CheckGatewayEssdSupportResult.cc create mode 100644 sgw/src/model/CheckMnsServiceRequest.cc create mode 100644 sgw/src/model/CheckMnsServiceResult.cc create mode 100644 sgw/src/model/CheckRoleRequest.cc create mode 100644 sgw/src/model/CheckRoleResult.cc create mode 100644 sgw/src/model/CheckSlrRoleRequest.cc create mode 100644 sgw/src/model/CheckSlrRoleResult.cc create mode 100644 sgw/src/model/CheckUpgradeVersionRequest.cc create mode 100644 sgw/src/model/CheckUpgradeVersionResult.cc create mode 100644 sgw/src/model/CreateCacheRequest.cc create mode 100644 sgw/src/model/CreateCacheResult.cc create mode 100644 sgw/src/model/CreateExpressSyncRequest.cc create mode 100644 sgw/src/model/CreateExpressSyncResult.cc create mode 100644 sgw/src/model/CreateGatewayBlockVolumeRequest.cc create mode 100644 sgw/src/model/CreateGatewayBlockVolumeResult.cc create mode 100644 sgw/src/model/CreateGatewayCacheDiskRequest.cc create mode 100644 sgw/src/model/CreateGatewayCacheDiskResult.cc create mode 100644 sgw/src/model/CreateGatewayFileShareRequest.cc create mode 100644 sgw/src/model/CreateGatewayFileShareResult.cc create mode 100644 sgw/src/model/CreateGatewayLoggingRequest.cc create mode 100644 sgw/src/model/CreateGatewayLoggingResult.cc create mode 100644 sgw/src/model/CreateGatewayRequest.cc create mode 100644 sgw/src/model/CreateGatewayResult.cc create mode 100644 sgw/src/model/CreateGatewaySMBUserRequest.cc create mode 100644 sgw/src/model/CreateGatewaySMBUserResult.cc create mode 100644 sgw/src/model/CreateStorageBundleRequest.cc create mode 100644 sgw/src/model/CreateStorageBundleResult.cc create mode 100644 sgw/src/model/DeleteExpressSyncRequest.cc create mode 100644 sgw/src/model/DeleteExpressSyncResult.cc create mode 100644 sgw/src/model/DeleteGatewayBlockVolumesRequest.cc create mode 100644 sgw/src/model/DeleteGatewayBlockVolumesResult.cc create mode 100644 sgw/src/model/DeleteGatewayCacheDiskRequest.cc create mode 100644 sgw/src/model/DeleteGatewayCacheDiskResult.cc create mode 100644 sgw/src/model/DeleteGatewayFileSharesRequest.cc create mode 100644 sgw/src/model/DeleteGatewayFileSharesResult.cc create mode 100644 sgw/src/model/DeleteGatewayLoggingRequest.cc create mode 100644 sgw/src/model/DeleteGatewayLoggingResult.cc create mode 100644 sgw/src/model/DeleteGatewayRequest.cc create mode 100644 sgw/src/model/DeleteGatewayResult.cc create mode 100644 sgw/src/model/DeleteGatewaySMBUserRequest.cc create mode 100644 sgw/src/model/DeleteGatewaySMBUserResult.cc create mode 100644 sgw/src/model/DeleteStorageBundleRequest.cc create mode 100644 sgw/src/model/DeleteStorageBundleResult.cc create mode 100644 sgw/src/model/DeployCacheDiskRequest.cc create mode 100644 sgw/src/model/DeployCacheDiskResult.cc create mode 100644 sgw/src/model/DeployGatewayRequest.cc create mode 100644 sgw/src/model/DeployGatewayResult.cc create mode 100644 sgw/src/model/DescribeAccountConfigRequest.cc create mode 100644 sgw/src/model/DescribeAccountConfigResult.cc create mode 100644 sgw/src/model/DescribeBlockVolumeSnapshotsRequest.cc create mode 100644 sgw/src/model/DescribeBlockVolumeSnapshotsResult.cc create mode 100644 sgw/src/model/DescribeDashboardRequest.cc create mode 100644 sgw/src/model/DescribeDashboardResult.cc create mode 100644 sgw/src/model/DescribeExpireCachesRequest.cc create mode 100644 sgw/src/model/DescribeExpireCachesResult.cc create mode 100644 sgw/src/model/DescribeExpressSyncSharesRequest.cc create mode 100644 sgw/src/model/DescribeExpressSyncSharesResult.cc create mode 100644 sgw/src/model/DescribeExpressSyncsRequest.cc create mode 100644 sgw/src/model/DescribeExpressSyncsResult.cc create mode 100644 sgw/src/model/DescribeGatewayADInfoRequest.cc create mode 100644 sgw/src/model/DescribeGatewayADInfoResult.cc create mode 100644 sgw/src/model/DescribeGatewayActionsRequest.cc create mode 100644 sgw/src/model/DescribeGatewayActionsResult.cc create mode 100644 sgw/src/model/DescribeGatewayAuthInfoRequest.cc create mode 100644 sgw/src/model/DescribeGatewayAuthInfoResult.cc create mode 100644 sgw/src/model/DescribeGatewayBlockVolumesRequest.cc create mode 100644 sgw/src/model/DescribeGatewayBlockVolumesResult.cc create mode 100644 sgw/src/model/DescribeGatewayBucketCachesRequest.cc create mode 100644 sgw/src/model/DescribeGatewayBucketCachesResult.cc create mode 100644 sgw/src/model/DescribeGatewayCachesRequest.cc create mode 100644 sgw/src/model/DescribeGatewayCachesResult.cc create mode 100644 sgw/src/model/DescribeGatewayCapacityLimitRequest.cc create mode 100644 sgw/src/model/DescribeGatewayCapacityLimitResult.cc create mode 100644 sgw/src/model/DescribeGatewayCategoriesRequest.cc create mode 100644 sgw/src/model/DescribeGatewayCategoriesResult.cc create mode 100644 sgw/src/model/DescribeGatewayClassesRequest.cc create mode 100644 sgw/src/model/DescribeGatewayClassesResult.cc create mode 100644 sgw/src/model/DescribeGatewayCredentialRequest.cc create mode 100644 sgw/src/model/DescribeGatewayCredentialResult.cc create mode 100644 sgw/src/model/DescribeGatewayDNSRequest.cc create mode 100644 sgw/src/model/DescribeGatewayDNSResult.cc create mode 100644 sgw/src/model/DescribeGatewayFileSharesRequest.cc create mode 100644 sgw/src/model/DescribeGatewayFileSharesResult.cc create mode 100644 sgw/src/model/DescribeGatewayFileStatusRequest.cc create mode 100644 sgw/src/model/DescribeGatewayFileStatusResult.cc create mode 100644 sgw/src/model/DescribeGatewayImagesRequest.cc create mode 100644 sgw/src/model/DescribeGatewayImagesResult.cc create mode 100644 sgw/src/model/DescribeGatewayInfoRequest.cc create mode 100644 sgw/src/model/DescribeGatewayInfoResult.cc create mode 100644 sgw/src/model/DescribeGatewayLDAPInfoRequest.cc create mode 100644 sgw/src/model/DescribeGatewayLDAPInfoResult.cc create mode 100644 sgw/src/model/DescribeGatewayLocationsRequest.cc create mode 100644 sgw/src/model/DescribeGatewayLocationsResult.cc create mode 100644 sgw/src/model/DescribeGatewayLoggingRequest.cc create mode 100644 sgw/src/model/DescribeGatewayLoggingResult.cc create mode 100644 sgw/src/model/DescribeGatewayLogsRequest.cc create mode 100644 sgw/src/model/DescribeGatewayLogsResult.cc create mode 100644 sgw/src/model/DescribeGatewayModificationClassesRequest.cc create mode 100644 sgw/src/model/DescribeGatewayModificationClassesResult.cc create mode 100644 sgw/src/model/DescribeGatewayRequest.cc create mode 100644 sgw/src/model/DescribeGatewayResult.cc create mode 100644 sgw/src/model/DescribeGatewaySMBUsersRequest.cc create mode 100644 sgw/src/model/DescribeGatewaySMBUsersResult.cc create mode 100644 sgw/src/model/DescribeGatewayStatisticsRequest.cc create mode 100644 sgw/src/model/DescribeGatewayStatisticsResult.cc create mode 100644 sgw/src/model/DescribeGatewayStockRequest.cc create mode 100644 sgw/src/model/DescribeGatewayStockResult.cc create mode 100644 sgw/src/model/DescribeGatewayTypesRequest.cc create mode 100644 sgw/src/model/DescribeGatewayTypesResult.cc create mode 100644 sgw/src/model/DescribeGatewaysForCmsRequest.cc create mode 100644 sgw/src/model/DescribeGatewaysForCmsResult.cc create mode 100644 sgw/src/model/DescribeGatewaysRequest.cc create mode 100644 sgw/src/model/DescribeGatewaysResult.cc create mode 100644 sgw/src/model/DescribeGatewaysTagsRequest.cc create mode 100644 sgw/src/model/DescribeGatewaysTagsResult.cc create mode 100644 sgw/src/model/DescribeKmsKeyRequest.cc create mode 100644 sgw/src/model/DescribeKmsKeyResult.cc create mode 100644 sgw/src/model/DescribeMqttConfigRequest.cc create mode 100644 sgw/src/model/DescribeMqttConfigResult.cc create mode 100644 sgw/src/model/DescribeOssBucketInfoRequest.cc create mode 100644 sgw/src/model/DescribeOssBucketInfoResult.cc create mode 100644 sgw/src/model/DescribeOssBucketsRequest.cc create mode 100644 sgw/src/model/DescribeOssBucketsResult.cc create mode 100644 sgw/src/model/DescribePayAsYouGoPriceRequest.cc create mode 100644 sgw/src/model/DescribePayAsYouGoPriceResult.cc create mode 100644 sgw/src/model/DescribeRegionsRequest.cc create mode 100644 sgw/src/model/DescribeRegionsResult.cc create mode 100644 sgw/src/model/DescribeSharesBucketInfoForExpressSyncRequest.cc create mode 100644 sgw/src/model/DescribeSharesBucketInfoForExpressSyncResult.cc create mode 100644 sgw/src/model/DescribeStorageBundleRequest.cc create mode 100644 sgw/src/model/DescribeStorageBundleResult.cc create mode 100644 sgw/src/model/DescribeStorageBundlesRequest.cc create mode 100644 sgw/src/model/DescribeStorageBundlesResult.cc create mode 100644 sgw/src/model/DescribeSubscriptionPriceRequest.cc create mode 100644 sgw/src/model/DescribeSubscriptionPriceResult.cc create mode 100644 sgw/src/model/DescribeTasksRequest.cc create mode 100644 sgw/src/model/DescribeTasksResult.cc create mode 100644 sgw/src/model/DescribeUserBusinessStatusRequest.cc create mode 100644 sgw/src/model/DescribeUserBusinessStatusResult.cc create mode 100644 sgw/src/model/DescribeVSwitchesRequest.cc create mode 100644 sgw/src/model/DescribeVSwitchesResult.cc create mode 100644 sgw/src/model/DescribeVpcsRequest.cc create mode 100644 sgw/src/model/DescribeVpcsResult.cc create mode 100644 sgw/src/model/DescribeZonesRequest.cc create mode 100644 sgw/src/model/DescribeZonesResult.cc create mode 100644 sgw/src/model/DisableGatewayLoggingRequest.cc create mode 100644 sgw/src/model/DisableGatewayLoggingResult.cc create mode 100644 sgw/src/model/EnableGatewayLoggingRequest.cc create mode 100644 sgw/src/model/EnableGatewayLoggingResult.cc create mode 100644 sgw/src/model/ExpandCacheDiskRequest.cc create mode 100644 sgw/src/model/ExpandCacheDiskResult.cc create mode 100644 sgw/src/model/ExpandGatewayNetworkBandwidthRequest.cc create mode 100644 sgw/src/model/ExpandGatewayNetworkBandwidthResult.cc create mode 100644 sgw/src/model/GenerateGatewayTokenRequest.cc create mode 100644 sgw/src/model/GenerateGatewayTokenResult.cc create mode 100644 sgw/src/model/GenerateMqttTokenRequest.cc create mode 100644 sgw/src/model/GenerateMqttTokenResult.cc create mode 100644 sgw/src/model/GenerateStsTokenRequest.cc create mode 100644 sgw/src/model/GenerateStsTokenResult.cc create mode 100644 sgw/src/model/ListTagResourcesRequest.cc create mode 100644 sgw/src/model/ListTagResourcesResult.cc create mode 100644 sgw/src/model/ModifyGatewayBlockVolumeRequest.cc create mode 100644 sgw/src/model/ModifyGatewayBlockVolumeResult.cc create mode 100644 sgw/src/model/ModifyGatewayClassRequest.cc create mode 100644 sgw/src/model/ModifyGatewayClassResult.cc create mode 100644 sgw/src/model/ModifyGatewayFileShareRequest.cc create mode 100644 sgw/src/model/ModifyGatewayFileShareResult.cc create mode 100644 sgw/src/model/ModifyGatewayRequest.cc create mode 100644 sgw/src/model/ModifyGatewayResult.cc create mode 100644 sgw/src/model/ModifyStorageBundleRequest.cc create mode 100644 sgw/src/model/ModifyStorageBundleResult.cc create mode 100644 sgw/src/model/OperateGatewayRequest.cc create mode 100644 sgw/src/model/OperateGatewayResult.cc create mode 100644 sgw/src/model/ReleaseServiceRequest.cc create mode 100644 sgw/src/model/ReleaseServiceResult.cc create mode 100644 sgw/src/model/RemoveSharesFromExpressSyncRequest.cc create mode 100644 sgw/src/model/RemoveSharesFromExpressSyncResult.cc create mode 100644 sgw/src/model/RemoveTagsFromGatewayRequest.cc create mode 100644 sgw/src/model/RemoveTagsFromGatewayResult.cc create mode 100644 sgw/src/model/ReportBlockVolumesRequest.cc create mode 100644 sgw/src/model/ReportBlockVolumesResult.cc create mode 100644 sgw/src/model/ReportFileSharesRequest.cc create mode 100644 sgw/src/model/ReportFileSharesResult.cc create mode 100644 sgw/src/model/ReportGatewayInfoRequest.cc create mode 100644 sgw/src/model/ReportGatewayInfoResult.cc create mode 100644 sgw/src/model/ReportGatewayUsageRequest.cc create mode 100644 sgw/src/model/ReportGatewayUsageResult.cc create mode 100644 sgw/src/model/ResetGatewayPasswordRequest.cc create mode 100644 sgw/src/model/ResetGatewayPasswordResult.cc create mode 100644 sgw/src/model/RestartFileSharesRequest.cc create mode 100644 sgw/src/model/RestartFileSharesResult.cc create mode 100644 sgw/src/model/SetGatewayADInfoRequest.cc create mode 100644 sgw/src/model/SetGatewayADInfoResult.cc create mode 100644 sgw/src/model/SetGatewayDNSRequest.cc create mode 100644 sgw/src/model/SetGatewayDNSResult.cc create mode 100644 sgw/src/model/SetGatewayLDAPInfoRequest.cc create mode 100644 sgw/src/model/SetGatewayLDAPInfoResult.cc create mode 100644 sgw/src/model/SwitchGatewayExpirationPolicyRequest.cc create mode 100644 sgw/src/model/SwitchGatewayExpirationPolicyResult.cc create mode 100644 sgw/src/model/SwitchToSubscriptionRequest.cc create mode 100644 sgw/src/model/SwitchToSubscriptionResult.cc create mode 100644 sgw/src/model/TagResourcesRequest.cc create mode 100644 sgw/src/model/TagResourcesResult.cc create mode 100644 sgw/src/model/UntagResourcesRequest.cc create mode 100644 sgw/src/model/UntagResourcesResult.cc create mode 100644 sgw/src/model/UpdateGatewayBlockVolumeRequest.cc create mode 100644 sgw/src/model/UpdateGatewayBlockVolumeResult.cc create mode 100644 sgw/src/model/UpdateGatewayFileShareRequest.cc create mode 100644 sgw/src/model/UpdateGatewayFileShareResult.cc create mode 100644 sgw/src/model/UpgradeGatewayRequest.cc create mode 100644 sgw/src/model/UpgradeGatewayResult.cc create mode 100644 sgw/src/model/UploadGatewayLogRequest.cc create mode 100644 sgw/src/model/UploadGatewayLogResult.cc create mode 100644 sgw/src/model/ValidateExpressSyncConfigRequest.cc create mode 100644 sgw/src/model/ValidateExpressSyncConfigResult.cc create mode 100644 sgw/src/model/ValidateGatewayNameRequest.cc create mode 100644 sgw/src/model/ValidateGatewayNameResult.cc diff --git a/CHANGELOG b/CHANGELOG index 965f56413..cb9159d07 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2020-10-21 Version: patch +- Cloud Storage Gateway openapi sdk is released. + 2020-10-21 Version: patch - Release latest features. diff --git a/sgw/CMakeLists.txt b/sgw/CMakeLists.txt new file mode 100644 index 000000000..292e18620 --- /dev/null +++ b/sgw/CMakeLists.txt @@ -0,0 +1,542 @@ +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include) + +set(sgw_public_header + include/alibabacloud/sgw/SgwClient.h + include/alibabacloud/sgw/SgwExport.h ) + +set(sgw_public_header_model + include/alibabacloud/sgw/model/ActivateAllInOneGatewayRequest.h + include/alibabacloud/sgw/model/ActivateAllInOneGatewayResult.h + include/alibabacloud/sgw/model/ActivateGatewayRequest.h + include/alibabacloud/sgw/model/ActivateGatewayResult.h + include/alibabacloud/sgw/model/AddSharesToExpressSyncRequest.h + include/alibabacloud/sgw/model/AddSharesToExpressSyncResult.h + include/alibabacloud/sgw/model/AddTagsToGatewayRequest.h + include/alibabacloud/sgw/model/AddTagsToGatewayResult.h + include/alibabacloud/sgw/model/CheckActivationKeyRequest.h + include/alibabacloud/sgw/model/CheckActivationKeyResult.h + include/alibabacloud/sgw/model/CheckBlockVolumeNameRequest.h + include/alibabacloud/sgw/model/CheckBlockVolumeNameResult.h + include/alibabacloud/sgw/model/CheckGatewayEssdSupportRequest.h + include/alibabacloud/sgw/model/CheckGatewayEssdSupportResult.h + include/alibabacloud/sgw/model/CheckMnsServiceRequest.h + include/alibabacloud/sgw/model/CheckMnsServiceResult.h + include/alibabacloud/sgw/model/CheckRoleRequest.h + include/alibabacloud/sgw/model/CheckRoleResult.h + include/alibabacloud/sgw/model/CheckSlrRoleRequest.h + include/alibabacloud/sgw/model/CheckSlrRoleResult.h + include/alibabacloud/sgw/model/CheckUpgradeVersionRequest.h + include/alibabacloud/sgw/model/CheckUpgradeVersionResult.h + include/alibabacloud/sgw/model/CreateCacheRequest.h + include/alibabacloud/sgw/model/CreateCacheResult.h + include/alibabacloud/sgw/model/CreateExpressSyncRequest.h + include/alibabacloud/sgw/model/CreateExpressSyncResult.h + include/alibabacloud/sgw/model/CreateGatewayRequest.h + include/alibabacloud/sgw/model/CreateGatewayResult.h + include/alibabacloud/sgw/model/CreateGatewayBlockVolumeRequest.h + include/alibabacloud/sgw/model/CreateGatewayBlockVolumeResult.h + include/alibabacloud/sgw/model/CreateGatewayCacheDiskRequest.h + include/alibabacloud/sgw/model/CreateGatewayCacheDiskResult.h + include/alibabacloud/sgw/model/CreateGatewayFileShareRequest.h + include/alibabacloud/sgw/model/CreateGatewayFileShareResult.h + include/alibabacloud/sgw/model/CreateGatewayLoggingRequest.h + include/alibabacloud/sgw/model/CreateGatewayLoggingResult.h + include/alibabacloud/sgw/model/CreateGatewaySMBUserRequest.h + include/alibabacloud/sgw/model/CreateGatewaySMBUserResult.h + include/alibabacloud/sgw/model/CreateStorageBundleRequest.h + include/alibabacloud/sgw/model/CreateStorageBundleResult.h + include/alibabacloud/sgw/model/DeleteExpressSyncRequest.h + include/alibabacloud/sgw/model/DeleteExpressSyncResult.h + include/alibabacloud/sgw/model/DeleteGatewayRequest.h + include/alibabacloud/sgw/model/DeleteGatewayResult.h + include/alibabacloud/sgw/model/DeleteGatewayBlockVolumesRequest.h + include/alibabacloud/sgw/model/DeleteGatewayBlockVolumesResult.h + include/alibabacloud/sgw/model/DeleteGatewayCacheDiskRequest.h + include/alibabacloud/sgw/model/DeleteGatewayCacheDiskResult.h + include/alibabacloud/sgw/model/DeleteGatewayFileSharesRequest.h + include/alibabacloud/sgw/model/DeleteGatewayFileSharesResult.h + include/alibabacloud/sgw/model/DeleteGatewayLoggingRequest.h + include/alibabacloud/sgw/model/DeleteGatewayLoggingResult.h + include/alibabacloud/sgw/model/DeleteGatewaySMBUserRequest.h + include/alibabacloud/sgw/model/DeleteGatewaySMBUserResult.h + include/alibabacloud/sgw/model/DeleteStorageBundleRequest.h + include/alibabacloud/sgw/model/DeleteStorageBundleResult.h + include/alibabacloud/sgw/model/DeployCacheDiskRequest.h + include/alibabacloud/sgw/model/DeployCacheDiskResult.h + include/alibabacloud/sgw/model/DeployGatewayRequest.h + include/alibabacloud/sgw/model/DeployGatewayResult.h + include/alibabacloud/sgw/model/DescribeAccountConfigRequest.h + include/alibabacloud/sgw/model/DescribeAccountConfigResult.h + include/alibabacloud/sgw/model/DescribeBlockVolumeSnapshotsRequest.h + include/alibabacloud/sgw/model/DescribeBlockVolumeSnapshotsResult.h + include/alibabacloud/sgw/model/DescribeDashboardRequest.h + include/alibabacloud/sgw/model/DescribeDashboardResult.h + include/alibabacloud/sgw/model/DescribeExpireCachesRequest.h + include/alibabacloud/sgw/model/DescribeExpireCachesResult.h + include/alibabacloud/sgw/model/DescribeExpressSyncSharesRequest.h + include/alibabacloud/sgw/model/DescribeExpressSyncSharesResult.h + include/alibabacloud/sgw/model/DescribeExpressSyncsRequest.h + include/alibabacloud/sgw/model/DescribeExpressSyncsResult.h + include/alibabacloud/sgw/model/DescribeGatewayRequest.h + include/alibabacloud/sgw/model/DescribeGatewayResult.h + include/alibabacloud/sgw/model/DescribeGatewayADInfoRequest.h + include/alibabacloud/sgw/model/DescribeGatewayADInfoResult.h + include/alibabacloud/sgw/model/DescribeGatewayActionsRequest.h + include/alibabacloud/sgw/model/DescribeGatewayActionsResult.h + include/alibabacloud/sgw/model/DescribeGatewayAuthInfoRequest.h + include/alibabacloud/sgw/model/DescribeGatewayAuthInfoResult.h + include/alibabacloud/sgw/model/DescribeGatewayBlockVolumesRequest.h + include/alibabacloud/sgw/model/DescribeGatewayBlockVolumesResult.h + include/alibabacloud/sgw/model/DescribeGatewayBucketCachesRequest.h + include/alibabacloud/sgw/model/DescribeGatewayBucketCachesResult.h + include/alibabacloud/sgw/model/DescribeGatewayCachesRequest.h + include/alibabacloud/sgw/model/DescribeGatewayCachesResult.h + include/alibabacloud/sgw/model/DescribeGatewayCapacityLimitRequest.h + include/alibabacloud/sgw/model/DescribeGatewayCapacityLimitResult.h + include/alibabacloud/sgw/model/DescribeGatewayCategoriesRequest.h + include/alibabacloud/sgw/model/DescribeGatewayCategoriesResult.h + include/alibabacloud/sgw/model/DescribeGatewayClassesRequest.h + include/alibabacloud/sgw/model/DescribeGatewayClassesResult.h + include/alibabacloud/sgw/model/DescribeGatewayCredentialRequest.h + include/alibabacloud/sgw/model/DescribeGatewayCredentialResult.h + include/alibabacloud/sgw/model/DescribeGatewayDNSRequest.h + include/alibabacloud/sgw/model/DescribeGatewayDNSResult.h + include/alibabacloud/sgw/model/DescribeGatewayFileSharesRequest.h + include/alibabacloud/sgw/model/DescribeGatewayFileSharesResult.h + include/alibabacloud/sgw/model/DescribeGatewayFileStatusRequest.h + include/alibabacloud/sgw/model/DescribeGatewayFileStatusResult.h + include/alibabacloud/sgw/model/DescribeGatewayImagesRequest.h + include/alibabacloud/sgw/model/DescribeGatewayImagesResult.h + include/alibabacloud/sgw/model/DescribeGatewayInfoRequest.h + include/alibabacloud/sgw/model/DescribeGatewayInfoResult.h + include/alibabacloud/sgw/model/DescribeGatewayLDAPInfoRequest.h + include/alibabacloud/sgw/model/DescribeGatewayLDAPInfoResult.h + include/alibabacloud/sgw/model/DescribeGatewayLocationsRequest.h + include/alibabacloud/sgw/model/DescribeGatewayLocationsResult.h + include/alibabacloud/sgw/model/DescribeGatewayLoggingRequest.h + include/alibabacloud/sgw/model/DescribeGatewayLoggingResult.h + include/alibabacloud/sgw/model/DescribeGatewayLogsRequest.h + include/alibabacloud/sgw/model/DescribeGatewayLogsResult.h + include/alibabacloud/sgw/model/DescribeGatewayModificationClassesRequest.h + include/alibabacloud/sgw/model/DescribeGatewayModificationClassesResult.h + include/alibabacloud/sgw/model/DescribeGatewaySMBUsersRequest.h + include/alibabacloud/sgw/model/DescribeGatewaySMBUsersResult.h + include/alibabacloud/sgw/model/DescribeGatewayStatisticsRequest.h + include/alibabacloud/sgw/model/DescribeGatewayStatisticsResult.h + include/alibabacloud/sgw/model/DescribeGatewayStockRequest.h + include/alibabacloud/sgw/model/DescribeGatewayStockResult.h + include/alibabacloud/sgw/model/DescribeGatewayTypesRequest.h + include/alibabacloud/sgw/model/DescribeGatewayTypesResult.h + include/alibabacloud/sgw/model/DescribeGatewaysRequest.h + include/alibabacloud/sgw/model/DescribeGatewaysResult.h + include/alibabacloud/sgw/model/DescribeGatewaysForCmsRequest.h + include/alibabacloud/sgw/model/DescribeGatewaysForCmsResult.h + include/alibabacloud/sgw/model/DescribeGatewaysTagsRequest.h + include/alibabacloud/sgw/model/DescribeGatewaysTagsResult.h + include/alibabacloud/sgw/model/DescribeKmsKeyRequest.h + include/alibabacloud/sgw/model/DescribeKmsKeyResult.h + include/alibabacloud/sgw/model/DescribeMqttConfigRequest.h + include/alibabacloud/sgw/model/DescribeMqttConfigResult.h + include/alibabacloud/sgw/model/DescribeOssBucketInfoRequest.h + include/alibabacloud/sgw/model/DescribeOssBucketInfoResult.h + include/alibabacloud/sgw/model/DescribeOssBucketsRequest.h + include/alibabacloud/sgw/model/DescribeOssBucketsResult.h + include/alibabacloud/sgw/model/DescribePayAsYouGoPriceRequest.h + include/alibabacloud/sgw/model/DescribePayAsYouGoPriceResult.h + include/alibabacloud/sgw/model/DescribeRegionsRequest.h + include/alibabacloud/sgw/model/DescribeRegionsResult.h + include/alibabacloud/sgw/model/DescribeSharesBucketInfoForExpressSyncRequest.h + include/alibabacloud/sgw/model/DescribeSharesBucketInfoForExpressSyncResult.h + include/alibabacloud/sgw/model/DescribeStorageBundleRequest.h + include/alibabacloud/sgw/model/DescribeStorageBundleResult.h + include/alibabacloud/sgw/model/DescribeStorageBundlesRequest.h + include/alibabacloud/sgw/model/DescribeStorageBundlesResult.h + include/alibabacloud/sgw/model/DescribeSubscriptionPriceRequest.h + include/alibabacloud/sgw/model/DescribeSubscriptionPriceResult.h + include/alibabacloud/sgw/model/DescribeTasksRequest.h + include/alibabacloud/sgw/model/DescribeTasksResult.h + include/alibabacloud/sgw/model/DescribeUserBusinessStatusRequest.h + include/alibabacloud/sgw/model/DescribeUserBusinessStatusResult.h + include/alibabacloud/sgw/model/DescribeVSwitchesRequest.h + include/alibabacloud/sgw/model/DescribeVSwitchesResult.h + include/alibabacloud/sgw/model/DescribeVpcsRequest.h + include/alibabacloud/sgw/model/DescribeVpcsResult.h + include/alibabacloud/sgw/model/DescribeZonesRequest.h + include/alibabacloud/sgw/model/DescribeZonesResult.h + include/alibabacloud/sgw/model/DisableGatewayLoggingRequest.h + include/alibabacloud/sgw/model/DisableGatewayLoggingResult.h + include/alibabacloud/sgw/model/EnableGatewayLoggingRequest.h + include/alibabacloud/sgw/model/EnableGatewayLoggingResult.h + include/alibabacloud/sgw/model/ExpandCacheDiskRequest.h + include/alibabacloud/sgw/model/ExpandCacheDiskResult.h + include/alibabacloud/sgw/model/ExpandGatewayNetworkBandwidthRequest.h + include/alibabacloud/sgw/model/ExpandGatewayNetworkBandwidthResult.h + include/alibabacloud/sgw/model/GenerateGatewayTokenRequest.h + include/alibabacloud/sgw/model/GenerateGatewayTokenResult.h + include/alibabacloud/sgw/model/GenerateMqttTokenRequest.h + include/alibabacloud/sgw/model/GenerateMqttTokenResult.h + include/alibabacloud/sgw/model/GenerateStsTokenRequest.h + include/alibabacloud/sgw/model/GenerateStsTokenResult.h + include/alibabacloud/sgw/model/ListTagResourcesRequest.h + include/alibabacloud/sgw/model/ListTagResourcesResult.h + include/alibabacloud/sgw/model/ModifyGatewayRequest.h + include/alibabacloud/sgw/model/ModifyGatewayResult.h + include/alibabacloud/sgw/model/ModifyGatewayBlockVolumeRequest.h + include/alibabacloud/sgw/model/ModifyGatewayBlockVolumeResult.h + include/alibabacloud/sgw/model/ModifyGatewayClassRequest.h + include/alibabacloud/sgw/model/ModifyGatewayClassResult.h + include/alibabacloud/sgw/model/ModifyGatewayFileShareRequest.h + include/alibabacloud/sgw/model/ModifyGatewayFileShareResult.h + include/alibabacloud/sgw/model/ModifyStorageBundleRequest.h + include/alibabacloud/sgw/model/ModifyStorageBundleResult.h + include/alibabacloud/sgw/model/OperateGatewayRequest.h + include/alibabacloud/sgw/model/OperateGatewayResult.h + include/alibabacloud/sgw/model/ReleaseServiceRequest.h + include/alibabacloud/sgw/model/ReleaseServiceResult.h + include/alibabacloud/sgw/model/RemoveSharesFromExpressSyncRequest.h + include/alibabacloud/sgw/model/RemoveSharesFromExpressSyncResult.h + include/alibabacloud/sgw/model/RemoveTagsFromGatewayRequest.h + include/alibabacloud/sgw/model/RemoveTagsFromGatewayResult.h + include/alibabacloud/sgw/model/ReportBlockVolumesRequest.h + include/alibabacloud/sgw/model/ReportBlockVolumesResult.h + include/alibabacloud/sgw/model/ReportFileSharesRequest.h + include/alibabacloud/sgw/model/ReportFileSharesResult.h + include/alibabacloud/sgw/model/ReportGatewayInfoRequest.h + include/alibabacloud/sgw/model/ReportGatewayInfoResult.h + include/alibabacloud/sgw/model/ReportGatewayUsageRequest.h + include/alibabacloud/sgw/model/ReportGatewayUsageResult.h + include/alibabacloud/sgw/model/ResetGatewayPasswordRequest.h + include/alibabacloud/sgw/model/ResetGatewayPasswordResult.h + include/alibabacloud/sgw/model/RestartFileSharesRequest.h + include/alibabacloud/sgw/model/RestartFileSharesResult.h + include/alibabacloud/sgw/model/SetGatewayADInfoRequest.h + include/alibabacloud/sgw/model/SetGatewayADInfoResult.h + include/alibabacloud/sgw/model/SetGatewayDNSRequest.h + include/alibabacloud/sgw/model/SetGatewayDNSResult.h + include/alibabacloud/sgw/model/SetGatewayLDAPInfoRequest.h + include/alibabacloud/sgw/model/SetGatewayLDAPInfoResult.h + include/alibabacloud/sgw/model/SwitchGatewayExpirationPolicyRequest.h + include/alibabacloud/sgw/model/SwitchGatewayExpirationPolicyResult.h + include/alibabacloud/sgw/model/SwitchToSubscriptionRequest.h + include/alibabacloud/sgw/model/SwitchToSubscriptionResult.h + include/alibabacloud/sgw/model/TagResourcesRequest.h + include/alibabacloud/sgw/model/TagResourcesResult.h + include/alibabacloud/sgw/model/UntagResourcesRequest.h + include/alibabacloud/sgw/model/UntagResourcesResult.h + include/alibabacloud/sgw/model/UpdateGatewayBlockVolumeRequest.h + include/alibabacloud/sgw/model/UpdateGatewayBlockVolumeResult.h + include/alibabacloud/sgw/model/UpdateGatewayFileShareRequest.h + include/alibabacloud/sgw/model/UpdateGatewayFileShareResult.h + include/alibabacloud/sgw/model/UpgradeGatewayRequest.h + include/alibabacloud/sgw/model/UpgradeGatewayResult.h + include/alibabacloud/sgw/model/UploadGatewayLogRequest.h + include/alibabacloud/sgw/model/UploadGatewayLogResult.h + include/alibabacloud/sgw/model/ValidateExpressSyncConfigRequest.h + include/alibabacloud/sgw/model/ValidateExpressSyncConfigResult.h + include/alibabacloud/sgw/model/ValidateGatewayNameRequest.h + include/alibabacloud/sgw/model/ValidateGatewayNameResult.h ) + +set(sgw_src + src/SgwClient.cc + src/model/ActivateAllInOneGatewayRequest.cc + src/model/ActivateAllInOneGatewayResult.cc + src/model/ActivateGatewayRequest.cc + src/model/ActivateGatewayResult.cc + src/model/AddSharesToExpressSyncRequest.cc + src/model/AddSharesToExpressSyncResult.cc + src/model/AddTagsToGatewayRequest.cc + src/model/AddTagsToGatewayResult.cc + src/model/CheckActivationKeyRequest.cc + src/model/CheckActivationKeyResult.cc + src/model/CheckBlockVolumeNameRequest.cc + src/model/CheckBlockVolumeNameResult.cc + src/model/CheckGatewayEssdSupportRequest.cc + src/model/CheckGatewayEssdSupportResult.cc + src/model/CheckMnsServiceRequest.cc + src/model/CheckMnsServiceResult.cc + src/model/CheckRoleRequest.cc + src/model/CheckRoleResult.cc + src/model/CheckSlrRoleRequest.cc + src/model/CheckSlrRoleResult.cc + src/model/CheckUpgradeVersionRequest.cc + src/model/CheckUpgradeVersionResult.cc + src/model/CreateCacheRequest.cc + src/model/CreateCacheResult.cc + src/model/CreateExpressSyncRequest.cc + src/model/CreateExpressSyncResult.cc + src/model/CreateGatewayRequest.cc + src/model/CreateGatewayResult.cc + src/model/CreateGatewayBlockVolumeRequest.cc + src/model/CreateGatewayBlockVolumeResult.cc + src/model/CreateGatewayCacheDiskRequest.cc + src/model/CreateGatewayCacheDiskResult.cc + src/model/CreateGatewayFileShareRequest.cc + src/model/CreateGatewayFileShareResult.cc + src/model/CreateGatewayLoggingRequest.cc + src/model/CreateGatewayLoggingResult.cc + src/model/CreateGatewaySMBUserRequest.cc + src/model/CreateGatewaySMBUserResult.cc + src/model/CreateStorageBundleRequest.cc + src/model/CreateStorageBundleResult.cc + src/model/DeleteExpressSyncRequest.cc + src/model/DeleteExpressSyncResult.cc + src/model/DeleteGatewayRequest.cc + src/model/DeleteGatewayResult.cc + src/model/DeleteGatewayBlockVolumesRequest.cc + src/model/DeleteGatewayBlockVolumesResult.cc + src/model/DeleteGatewayCacheDiskRequest.cc + src/model/DeleteGatewayCacheDiskResult.cc + src/model/DeleteGatewayFileSharesRequest.cc + src/model/DeleteGatewayFileSharesResult.cc + src/model/DeleteGatewayLoggingRequest.cc + src/model/DeleteGatewayLoggingResult.cc + src/model/DeleteGatewaySMBUserRequest.cc + src/model/DeleteGatewaySMBUserResult.cc + src/model/DeleteStorageBundleRequest.cc + src/model/DeleteStorageBundleResult.cc + src/model/DeployCacheDiskRequest.cc + src/model/DeployCacheDiskResult.cc + src/model/DeployGatewayRequest.cc + src/model/DeployGatewayResult.cc + src/model/DescribeAccountConfigRequest.cc + src/model/DescribeAccountConfigResult.cc + src/model/DescribeBlockVolumeSnapshotsRequest.cc + src/model/DescribeBlockVolumeSnapshotsResult.cc + src/model/DescribeDashboardRequest.cc + src/model/DescribeDashboardResult.cc + src/model/DescribeExpireCachesRequest.cc + src/model/DescribeExpireCachesResult.cc + src/model/DescribeExpressSyncSharesRequest.cc + src/model/DescribeExpressSyncSharesResult.cc + src/model/DescribeExpressSyncsRequest.cc + src/model/DescribeExpressSyncsResult.cc + src/model/DescribeGatewayRequest.cc + src/model/DescribeGatewayResult.cc + src/model/DescribeGatewayADInfoRequest.cc + src/model/DescribeGatewayADInfoResult.cc + src/model/DescribeGatewayActionsRequest.cc + src/model/DescribeGatewayActionsResult.cc + src/model/DescribeGatewayAuthInfoRequest.cc + src/model/DescribeGatewayAuthInfoResult.cc + src/model/DescribeGatewayBlockVolumesRequest.cc + src/model/DescribeGatewayBlockVolumesResult.cc + src/model/DescribeGatewayBucketCachesRequest.cc + src/model/DescribeGatewayBucketCachesResult.cc + src/model/DescribeGatewayCachesRequest.cc + src/model/DescribeGatewayCachesResult.cc + src/model/DescribeGatewayCapacityLimitRequest.cc + src/model/DescribeGatewayCapacityLimitResult.cc + src/model/DescribeGatewayCategoriesRequest.cc + src/model/DescribeGatewayCategoriesResult.cc + src/model/DescribeGatewayClassesRequest.cc + src/model/DescribeGatewayClassesResult.cc + src/model/DescribeGatewayCredentialRequest.cc + src/model/DescribeGatewayCredentialResult.cc + src/model/DescribeGatewayDNSRequest.cc + src/model/DescribeGatewayDNSResult.cc + src/model/DescribeGatewayFileSharesRequest.cc + src/model/DescribeGatewayFileSharesResult.cc + src/model/DescribeGatewayFileStatusRequest.cc + src/model/DescribeGatewayFileStatusResult.cc + src/model/DescribeGatewayImagesRequest.cc + src/model/DescribeGatewayImagesResult.cc + src/model/DescribeGatewayInfoRequest.cc + src/model/DescribeGatewayInfoResult.cc + src/model/DescribeGatewayLDAPInfoRequest.cc + src/model/DescribeGatewayLDAPInfoResult.cc + src/model/DescribeGatewayLocationsRequest.cc + src/model/DescribeGatewayLocationsResult.cc + src/model/DescribeGatewayLoggingRequest.cc + src/model/DescribeGatewayLoggingResult.cc + src/model/DescribeGatewayLogsRequest.cc + src/model/DescribeGatewayLogsResult.cc + src/model/DescribeGatewayModificationClassesRequest.cc + src/model/DescribeGatewayModificationClassesResult.cc + src/model/DescribeGatewaySMBUsersRequest.cc + src/model/DescribeGatewaySMBUsersResult.cc + src/model/DescribeGatewayStatisticsRequest.cc + src/model/DescribeGatewayStatisticsResult.cc + src/model/DescribeGatewayStockRequest.cc + src/model/DescribeGatewayStockResult.cc + src/model/DescribeGatewayTypesRequest.cc + src/model/DescribeGatewayTypesResult.cc + src/model/DescribeGatewaysRequest.cc + src/model/DescribeGatewaysResult.cc + src/model/DescribeGatewaysForCmsRequest.cc + src/model/DescribeGatewaysForCmsResult.cc + src/model/DescribeGatewaysTagsRequest.cc + src/model/DescribeGatewaysTagsResult.cc + src/model/DescribeKmsKeyRequest.cc + src/model/DescribeKmsKeyResult.cc + src/model/DescribeMqttConfigRequest.cc + src/model/DescribeMqttConfigResult.cc + src/model/DescribeOssBucketInfoRequest.cc + src/model/DescribeOssBucketInfoResult.cc + src/model/DescribeOssBucketsRequest.cc + src/model/DescribeOssBucketsResult.cc + src/model/DescribePayAsYouGoPriceRequest.cc + src/model/DescribePayAsYouGoPriceResult.cc + src/model/DescribeRegionsRequest.cc + src/model/DescribeRegionsResult.cc + src/model/DescribeSharesBucketInfoForExpressSyncRequest.cc + src/model/DescribeSharesBucketInfoForExpressSyncResult.cc + src/model/DescribeStorageBundleRequest.cc + src/model/DescribeStorageBundleResult.cc + src/model/DescribeStorageBundlesRequest.cc + src/model/DescribeStorageBundlesResult.cc + src/model/DescribeSubscriptionPriceRequest.cc + src/model/DescribeSubscriptionPriceResult.cc + src/model/DescribeTasksRequest.cc + src/model/DescribeTasksResult.cc + src/model/DescribeUserBusinessStatusRequest.cc + src/model/DescribeUserBusinessStatusResult.cc + src/model/DescribeVSwitchesRequest.cc + src/model/DescribeVSwitchesResult.cc + src/model/DescribeVpcsRequest.cc + src/model/DescribeVpcsResult.cc + src/model/DescribeZonesRequest.cc + src/model/DescribeZonesResult.cc + src/model/DisableGatewayLoggingRequest.cc + src/model/DisableGatewayLoggingResult.cc + src/model/EnableGatewayLoggingRequest.cc + src/model/EnableGatewayLoggingResult.cc + src/model/ExpandCacheDiskRequest.cc + src/model/ExpandCacheDiskResult.cc + src/model/ExpandGatewayNetworkBandwidthRequest.cc + src/model/ExpandGatewayNetworkBandwidthResult.cc + src/model/GenerateGatewayTokenRequest.cc + src/model/GenerateGatewayTokenResult.cc + src/model/GenerateMqttTokenRequest.cc + src/model/GenerateMqttTokenResult.cc + src/model/GenerateStsTokenRequest.cc + src/model/GenerateStsTokenResult.cc + src/model/ListTagResourcesRequest.cc + src/model/ListTagResourcesResult.cc + src/model/ModifyGatewayRequest.cc + src/model/ModifyGatewayResult.cc + src/model/ModifyGatewayBlockVolumeRequest.cc + src/model/ModifyGatewayBlockVolumeResult.cc + src/model/ModifyGatewayClassRequest.cc + src/model/ModifyGatewayClassResult.cc + src/model/ModifyGatewayFileShareRequest.cc + src/model/ModifyGatewayFileShareResult.cc + src/model/ModifyStorageBundleRequest.cc + src/model/ModifyStorageBundleResult.cc + src/model/OperateGatewayRequest.cc + src/model/OperateGatewayResult.cc + src/model/ReleaseServiceRequest.cc + src/model/ReleaseServiceResult.cc + src/model/RemoveSharesFromExpressSyncRequest.cc + src/model/RemoveSharesFromExpressSyncResult.cc + src/model/RemoveTagsFromGatewayRequest.cc + src/model/RemoveTagsFromGatewayResult.cc + src/model/ReportBlockVolumesRequest.cc + src/model/ReportBlockVolumesResult.cc + src/model/ReportFileSharesRequest.cc + src/model/ReportFileSharesResult.cc + src/model/ReportGatewayInfoRequest.cc + src/model/ReportGatewayInfoResult.cc + src/model/ReportGatewayUsageRequest.cc + src/model/ReportGatewayUsageResult.cc + src/model/ResetGatewayPasswordRequest.cc + src/model/ResetGatewayPasswordResult.cc + src/model/RestartFileSharesRequest.cc + src/model/RestartFileSharesResult.cc + src/model/SetGatewayADInfoRequest.cc + src/model/SetGatewayADInfoResult.cc + src/model/SetGatewayDNSRequest.cc + src/model/SetGatewayDNSResult.cc + src/model/SetGatewayLDAPInfoRequest.cc + src/model/SetGatewayLDAPInfoResult.cc + src/model/SwitchGatewayExpirationPolicyRequest.cc + src/model/SwitchGatewayExpirationPolicyResult.cc + src/model/SwitchToSubscriptionRequest.cc + src/model/SwitchToSubscriptionResult.cc + src/model/TagResourcesRequest.cc + src/model/TagResourcesResult.cc + src/model/UntagResourcesRequest.cc + src/model/UntagResourcesResult.cc + src/model/UpdateGatewayBlockVolumeRequest.cc + src/model/UpdateGatewayBlockVolumeResult.cc + src/model/UpdateGatewayFileShareRequest.cc + src/model/UpdateGatewayFileShareResult.cc + src/model/UpgradeGatewayRequest.cc + src/model/UpgradeGatewayResult.cc + src/model/UploadGatewayLogRequest.cc + src/model/UploadGatewayLogResult.cc + src/model/ValidateExpressSyncConfigRequest.cc + src/model/ValidateExpressSyncConfigResult.cc + src/model/ValidateGatewayNameRequest.cc + src/model/ValidateGatewayNameResult.cc ) + +add_library(sgw ${LIB_TYPE} + ${sgw_public_header} + ${sgw_public_header_model} + ${sgw_src}) + +set_target_properties(sgw + PROPERTIES + LINKER_LANGUAGE CXX + ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin + OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}sgw + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(sgw + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_SGW_LIBRARY) +endif() + +target_include_directories(sgw + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(sgw + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(sgw + jsoncpp) + target_include_directories(sgw + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(sgw + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(sgw + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(sgw + PRIVATE /usr/include/jsoncpp) + target_link_libraries(sgw + jsoncpp) +endif() + +install(FILES ${sgw_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/sgw) +install(FILES ${sgw_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/sgw/model) +install(TARGETS sgw + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/SgwClient.h b/sgw/include/alibabacloud/sgw/SgwClient.h new file mode 100644 index 000000000..0b3442a66 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/SgwClient.h @@ -0,0 +1,966 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_SGW_SGWCLIENT_H_ +#define ALIBABACLOUD_SGW_SGWCLIENT_H_ + +#include +#include +#include +#include +#include "SgwExport.h" +#include "model/ActivateAllInOneGatewayRequest.h" +#include "model/ActivateAllInOneGatewayResult.h" +#include "model/ActivateGatewayRequest.h" +#include "model/ActivateGatewayResult.h" +#include "model/AddSharesToExpressSyncRequest.h" +#include "model/AddSharesToExpressSyncResult.h" +#include "model/AddTagsToGatewayRequest.h" +#include "model/AddTagsToGatewayResult.h" +#include "model/CheckActivationKeyRequest.h" +#include "model/CheckActivationKeyResult.h" +#include "model/CheckBlockVolumeNameRequest.h" +#include "model/CheckBlockVolumeNameResult.h" +#include "model/CheckGatewayEssdSupportRequest.h" +#include "model/CheckGatewayEssdSupportResult.h" +#include "model/CheckMnsServiceRequest.h" +#include "model/CheckMnsServiceResult.h" +#include "model/CheckRoleRequest.h" +#include "model/CheckRoleResult.h" +#include "model/CheckSlrRoleRequest.h" +#include "model/CheckSlrRoleResult.h" +#include "model/CheckUpgradeVersionRequest.h" +#include "model/CheckUpgradeVersionResult.h" +#include "model/CreateCacheRequest.h" +#include "model/CreateCacheResult.h" +#include "model/CreateExpressSyncRequest.h" +#include "model/CreateExpressSyncResult.h" +#include "model/CreateGatewayRequest.h" +#include "model/CreateGatewayResult.h" +#include "model/CreateGatewayBlockVolumeRequest.h" +#include "model/CreateGatewayBlockVolumeResult.h" +#include "model/CreateGatewayCacheDiskRequest.h" +#include "model/CreateGatewayCacheDiskResult.h" +#include "model/CreateGatewayFileShareRequest.h" +#include "model/CreateGatewayFileShareResult.h" +#include "model/CreateGatewayLoggingRequest.h" +#include "model/CreateGatewayLoggingResult.h" +#include "model/CreateGatewaySMBUserRequest.h" +#include "model/CreateGatewaySMBUserResult.h" +#include "model/CreateStorageBundleRequest.h" +#include "model/CreateStorageBundleResult.h" +#include "model/DeleteExpressSyncRequest.h" +#include "model/DeleteExpressSyncResult.h" +#include "model/DeleteGatewayRequest.h" +#include "model/DeleteGatewayResult.h" +#include "model/DeleteGatewayBlockVolumesRequest.h" +#include "model/DeleteGatewayBlockVolumesResult.h" +#include "model/DeleteGatewayCacheDiskRequest.h" +#include "model/DeleteGatewayCacheDiskResult.h" +#include "model/DeleteGatewayFileSharesRequest.h" +#include "model/DeleteGatewayFileSharesResult.h" +#include "model/DeleteGatewayLoggingRequest.h" +#include "model/DeleteGatewayLoggingResult.h" +#include "model/DeleteGatewaySMBUserRequest.h" +#include "model/DeleteGatewaySMBUserResult.h" +#include "model/DeleteStorageBundleRequest.h" +#include "model/DeleteStorageBundleResult.h" +#include "model/DeployCacheDiskRequest.h" +#include "model/DeployCacheDiskResult.h" +#include "model/DeployGatewayRequest.h" +#include "model/DeployGatewayResult.h" +#include "model/DescribeAccountConfigRequest.h" +#include "model/DescribeAccountConfigResult.h" +#include "model/DescribeBlockVolumeSnapshotsRequest.h" +#include "model/DescribeBlockVolumeSnapshotsResult.h" +#include "model/DescribeDashboardRequest.h" +#include "model/DescribeDashboardResult.h" +#include "model/DescribeExpireCachesRequest.h" +#include "model/DescribeExpireCachesResult.h" +#include "model/DescribeExpressSyncSharesRequest.h" +#include "model/DescribeExpressSyncSharesResult.h" +#include "model/DescribeExpressSyncsRequest.h" +#include "model/DescribeExpressSyncsResult.h" +#include "model/DescribeGatewayRequest.h" +#include "model/DescribeGatewayResult.h" +#include "model/DescribeGatewayADInfoRequest.h" +#include "model/DescribeGatewayADInfoResult.h" +#include "model/DescribeGatewayActionsRequest.h" +#include "model/DescribeGatewayActionsResult.h" +#include "model/DescribeGatewayAuthInfoRequest.h" +#include "model/DescribeGatewayAuthInfoResult.h" +#include "model/DescribeGatewayBlockVolumesRequest.h" +#include "model/DescribeGatewayBlockVolumesResult.h" +#include "model/DescribeGatewayBucketCachesRequest.h" +#include "model/DescribeGatewayBucketCachesResult.h" +#include "model/DescribeGatewayCachesRequest.h" +#include "model/DescribeGatewayCachesResult.h" +#include "model/DescribeGatewayCapacityLimitRequest.h" +#include "model/DescribeGatewayCapacityLimitResult.h" +#include "model/DescribeGatewayCategoriesRequest.h" +#include "model/DescribeGatewayCategoriesResult.h" +#include "model/DescribeGatewayClassesRequest.h" +#include "model/DescribeGatewayClassesResult.h" +#include "model/DescribeGatewayCredentialRequest.h" +#include "model/DescribeGatewayCredentialResult.h" +#include "model/DescribeGatewayDNSRequest.h" +#include "model/DescribeGatewayDNSResult.h" +#include "model/DescribeGatewayFileSharesRequest.h" +#include "model/DescribeGatewayFileSharesResult.h" +#include "model/DescribeGatewayFileStatusRequest.h" +#include "model/DescribeGatewayFileStatusResult.h" +#include "model/DescribeGatewayImagesRequest.h" +#include "model/DescribeGatewayImagesResult.h" +#include "model/DescribeGatewayInfoRequest.h" +#include "model/DescribeGatewayInfoResult.h" +#include "model/DescribeGatewayLDAPInfoRequest.h" +#include "model/DescribeGatewayLDAPInfoResult.h" +#include "model/DescribeGatewayLocationsRequest.h" +#include "model/DescribeGatewayLocationsResult.h" +#include "model/DescribeGatewayLoggingRequest.h" +#include "model/DescribeGatewayLoggingResult.h" +#include "model/DescribeGatewayLogsRequest.h" +#include "model/DescribeGatewayLogsResult.h" +#include "model/DescribeGatewayModificationClassesRequest.h" +#include "model/DescribeGatewayModificationClassesResult.h" +#include "model/DescribeGatewaySMBUsersRequest.h" +#include "model/DescribeGatewaySMBUsersResult.h" +#include "model/DescribeGatewayStatisticsRequest.h" +#include "model/DescribeGatewayStatisticsResult.h" +#include "model/DescribeGatewayStockRequest.h" +#include "model/DescribeGatewayStockResult.h" +#include "model/DescribeGatewayTypesRequest.h" +#include "model/DescribeGatewayTypesResult.h" +#include "model/DescribeGatewaysRequest.h" +#include "model/DescribeGatewaysResult.h" +#include "model/DescribeGatewaysForCmsRequest.h" +#include "model/DescribeGatewaysForCmsResult.h" +#include "model/DescribeGatewaysTagsRequest.h" +#include "model/DescribeGatewaysTagsResult.h" +#include "model/DescribeKmsKeyRequest.h" +#include "model/DescribeKmsKeyResult.h" +#include "model/DescribeMqttConfigRequest.h" +#include "model/DescribeMqttConfigResult.h" +#include "model/DescribeOssBucketInfoRequest.h" +#include "model/DescribeOssBucketInfoResult.h" +#include "model/DescribeOssBucketsRequest.h" +#include "model/DescribeOssBucketsResult.h" +#include "model/DescribePayAsYouGoPriceRequest.h" +#include "model/DescribePayAsYouGoPriceResult.h" +#include "model/DescribeRegionsRequest.h" +#include "model/DescribeRegionsResult.h" +#include "model/DescribeSharesBucketInfoForExpressSyncRequest.h" +#include "model/DescribeSharesBucketInfoForExpressSyncResult.h" +#include "model/DescribeStorageBundleRequest.h" +#include "model/DescribeStorageBundleResult.h" +#include "model/DescribeStorageBundlesRequest.h" +#include "model/DescribeStorageBundlesResult.h" +#include "model/DescribeSubscriptionPriceRequest.h" +#include "model/DescribeSubscriptionPriceResult.h" +#include "model/DescribeTasksRequest.h" +#include "model/DescribeTasksResult.h" +#include "model/DescribeUserBusinessStatusRequest.h" +#include "model/DescribeUserBusinessStatusResult.h" +#include "model/DescribeVSwitchesRequest.h" +#include "model/DescribeVSwitchesResult.h" +#include "model/DescribeVpcsRequest.h" +#include "model/DescribeVpcsResult.h" +#include "model/DescribeZonesRequest.h" +#include "model/DescribeZonesResult.h" +#include "model/DisableGatewayLoggingRequest.h" +#include "model/DisableGatewayLoggingResult.h" +#include "model/EnableGatewayLoggingRequest.h" +#include "model/EnableGatewayLoggingResult.h" +#include "model/ExpandCacheDiskRequest.h" +#include "model/ExpandCacheDiskResult.h" +#include "model/ExpandGatewayNetworkBandwidthRequest.h" +#include "model/ExpandGatewayNetworkBandwidthResult.h" +#include "model/GenerateGatewayTokenRequest.h" +#include "model/GenerateGatewayTokenResult.h" +#include "model/GenerateMqttTokenRequest.h" +#include "model/GenerateMqttTokenResult.h" +#include "model/GenerateStsTokenRequest.h" +#include "model/GenerateStsTokenResult.h" +#include "model/ListTagResourcesRequest.h" +#include "model/ListTagResourcesResult.h" +#include "model/ModifyGatewayRequest.h" +#include "model/ModifyGatewayResult.h" +#include "model/ModifyGatewayBlockVolumeRequest.h" +#include "model/ModifyGatewayBlockVolumeResult.h" +#include "model/ModifyGatewayClassRequest.h" +#include "model/ModifyGatewayClassResult.h" +#include "model/ModifyGatewayFileShareRequest.h" +#include "model/ModifyGatewayFileShareResult.h" +#include "model/ModifyStorageBundleRequest.h" +#include "model/ModifyStorageBundleResult.h" +#include "model/OperateGatewayRequest.h" +#include "model/OperateGatewayResult.h" +#include "model/ReleaseServiceRequest.h" +#include "model/ReleaseServiceResult.h" +#include "model/RemoveSharesFromExpressSyncRequest.h" +#include "model/RemoveSharesFromExpressSyncResult.h" +#include "model/RemoveTagsFromGatewayRequest.h" +#include "model/RemoveTagsFromGatewayResult.h" +#include "model/ReportBlockVolumesRequest.h" +#include "model/ReportBlockVolumesResult.h" +#include "model/ReportFileSharesRequest.h" +#include "model/ReportFileSharesResult.h" +#include "model/ReportGatewayInfoRequest.h" +#include "model/ReportGatewayInfoResult.h" +#include "model/ReportGatewayUsageRequest.h" +#include "model/ReportGatewayUsageResult.h" +#include "model/ResetGatewayPasswordRequest.h" +#include "model/ResetGatewayPasswordResult.h" +#include "model/RestartFileSharesRequest.h" +#include "model/RestartFileSharesResult.h" +#include "model/SetGatewayADInfoRequest.h" +#include "model/SetGatewayADInfoResult.h" +#include "model/SetGatewayDNSRequest.h" +#include "model/SetGatewayDNSResult.h" +#include "model/SetGatewayLDAPInfoRequest.h" +#include "model/SetGatewayLDAPInfoResult.h" +#include "model/SwitchGatewayExpirationPolicyRequest.h" +#include "model/SwitchGatewayExpirationPolicyResult.h" +#include "model/SwitchToSubscriptionRequest.h" +#include "model/SwitchToSubscriptionResult.h" +#include "model/TagResourcesRequest.h" +#include "model/TagResourcesResult.h" +#include "model/UntagResourcesRequest.h" +#include "model/UntagResourcesResult.h" +#include "model/UpdateGatewayBlockVolumeRequest.h" +#include "model/UpdateGatewayBlockVolumeResult.h" +#include "model/UpdateGatewayFileShareRequest.h" +#include "model/UpdateGatewayFileShareResult.h" +#include "model/UpgradeGatewayRequest.h" +#include "model/UpgradeGatewayResult.h" +#include "model/UploadGatewayLogRequest.h" +#include "model/UploadGatewayLogResult.h" +#include "model/ValidateExpressSyncConfigRequest.h" +#include "model/ValidateExpressSyncConfigResult.h" +#include "model/ValidateGatewayNameRequest.h" +#include "model/ValidateGatewayNameResult.h" + + +namespace AlibabaCloud +{ + namespace Sgw + { + class ALIBABACLOUD_SGW_EXPORT SgwClient : public RpcServiceClient + { + public: + typedef Outcome ActivateAllInOneGatewayOutcome; + typedef std::future ActivateAllInOneGatewayOutcomeCallable; + typedef std::function&)> ActivateAllInOneGatewayAsyncHandler; + typedef Outcome ActivateGatewayOutcome; + typedef std::future ActivateGatewayOutcomeCallable; + typedef std::function&)> ActivateGatewayAsyncHandler; + typedef Outcome AddSharesToExpressSyncOutcome; + typedef std::future AddSharesToExpressSyncOutcomeCallable; + typedef std::function&)> AddSharesToExpressSyncAsyncHandler; + typedef Outcome AddTagsToGatewayOutcome; + typedef std::future AddTagsToGatewayOutcomeCallable; + typedef std::function&)> AddTagsToGatewayAsyncHandler; + typedef Outcome CheckActivationKeyOutcome; + typedef std::future CheckActivationKeyOutcomeCallable; + typedef std::function&)> CheckActivationKeyAsyncHandler; + typedef Outcome CheckBlockVolumeNameOutcome; + typedef std::future CheckBlockVolumeNameOutcomeCallable; + typedef std::function&)> CheckBlockVolumeNameAsyncHandler; + typedef Outcome CheckGatewayEssdSupportOutcome; + typedef std::future CheckGatewayEssdSupportOutcomeCallable; + typedef std::function&)> CheckGatewayEssdSupportAsyncHandler; + typedef Outcome CheckMnsServiceOutcome; + typedef std::future CheckMnsServiceOutcomeCallable; + typedef std::function&)> CheckMnsServiceAsyncHandler; + typedef Outcome CheckRoleOutcome; + typedef std::future CheckRoleOutcomeCallable; + typedef std::function&)> CheckRoleAsyncHandler; + typedef Outcome CheckSlrRoleOutcome; + typedef std::future CheckSlrRoleOutcomeCallable; + typedef std::function&)> CheckSlrRoleAsyncHandler; + typedef Outcome CheckUpgradeVersionOutcome; + typedef std::future CheckUpgradeVersionOutcomeCallable; + typedef std::function&)> CheckUpgradeVersionAsyncHandler; + typedef Outcome CreateCacheOutcome; + typedef std::future CreateCacheOutcomeCallable; + typedef std::function&)> CreateCacheAsyncHandler; + typedef Outcome CreateExpressSyncOutcome; + typedef std::future CreateExpressSyncOutcomeCallable; + typedef std::function&)> CreateExpressSyncAsyncHandler; + typedef Outcome CreateGatewayOutcome; + typedef std::future CreateGatewayOutcomeCallable; + typedef std::function&)> CreateGatewayAsyncHandler; + typedef Outcome CreateGatewayBlockVolumeOutcome; + typedef std::future CreateGatewayBlockVolumeOutcomeCallable; + typedef std::function&)> CreateGatewayBlockVolumeAsyncHandler; + typedef Outcome CreateGatewayCacheDiskOutcome; + typedef std::future CreateGatewayCacheDiskOutcomeCallable; + typedef std::function&)> CreateGatewayCacheDiskAsyncHandler; + typedef Outcome CreateGatewayFileShareOutcome; + typedef std::future CreateGatewayFileShareOutcomeCallable; + typedef std::function&)> CreateGatewayFileShareAsyncHandler; + typedef Outcome CreateGatewayLoggingOutcome; + typedef std::future CreateGatewayLoggingOutcomeCallable; + typedef std::function&)> CreateGatewayLoggingAsyncHandler; + typedef Outcome CreateGatewaySMBUserOutcome; + typedef std::future CreateGatewaySMBUserOutcomeCallable; + typedef std::function&)> CreateGatewaySMBUserAsyncHandler; + typedef Outcome CreateStorageBundleOutcome; + typedef std::future CreateStorageBundleOutcomeCallable; + typedef std::function&)> CreateStorageBundleAsyncHandler; + typedef Outcome DeleteExpressSyncOutcome; + typedef std::future DeleteExpressSyncOutcomeCallable; + typedef std::function&)> DeleteExpressSyncAsyncHandler; + typedef Outcome DeleteGatewayOutcome; + typedef std::future DeleteGatewayOutcomeCallable; + typedef std::function&)> DeleteGatewayAsyncHandler; + typedef Outcome DeleteGatewayBlockVolumesOutcome; + typedef std::future DeleteGatewayBlockVolumesOutcomeCallable; + typedef std::function&)> DeleteGatewayBlockVolumesAsyncHandler; + typedef Outcome DeleteGatewayCacheDiskOutcome; + typedef std::future DeleteGatewayCacheDiskOutcomeCallable; + typedef std::function&)> DeleteGatewayCacheDiskAsyncHandler; + typedef Outcome DeleteGatewayFileSharesOutcome; + typedef std::future DeleteGatewayFileSharesOutcomeCallable; + typedef std::function&)> DeleteGatewayFileSharesAsyncHandler; + typedef Outcome DeleteGatewayLoggingOutcome; + typedef std::future DeleteGatewayLoggingOutcomeCallable; + typedef std::function&)> DeleteGatewayLoggingAsyncHandler; + typedef Outcome DeleteGatewaySMBUserOutcome; + typedef std::future DeleteGatewaySMBUserOutcomeCallable; + typedef std::function&)> DeleteGatewaySMBUserAsyncHandler; + typedef Outcome DeleteStorageBundleOutcome; + typedef std::future DeleteStorageBundleOutcomeCallable; + typedef std::function&)> DeleteStorageBundleAsyncHandler; + typedef Outcome DeployCacheDiskOutcome; + typedef std::future DeployCacheDiskOutcomeCallable; + typedef std::function&)> DeployCacheDiskAsyncHandler; + typedef Outcome DeployGatewayOutcome; + typedef std::future DeployGatewayOutcomeCallable; + typedef std::function&)> DeployGatewayAsyncHandler; + typedef Outcome DescribeAccountConfigOutcome; + typedef std::future DescribeAccountConfigOutcomeCallable; + typedef std::function&)> DescribeAccountConfigAsyncHandler; + typedef Outcome DescribeBlockVolumeSnapshotsOutcome; + typedef std::future DescribeBlockVolumeSnapshotsOutcomeCallable; + typedef std::function&)> DescribeBlockVolumeSnapshotsAsyncHandler; + typedef Outcome DescribeDashboardOutcome; + typedef std::future DescribeDashboardOutcomeCallable; + typedef std::function&)> DescribeDashboardAsyncHandler; + typedef Outcome DescribeExpireCachesOutcome; + typedef std::future DescribeExpireCachesOutcomeCallable; + typedef std::function&)> DescribeExpireCachesAsyncHandler; + typedef Outcome DescribeExpressSyncSharesOutcome; + typedef std::future DescribeExpressSyncSharesOutcomeCallable; + typedef std::function&)> DescribeExpressSyncSharesAsyncHandler; + typedef Outcome DescribeExpressSyncsOutcome; + typedef std::future DescribeExpressSyncsOutcomeCallable; + typedef std::function&)> DescribeExpressSyncsAsyncHandler; + typedef Outcome DescribeGatewayOutcome; + typedef std::future DescribeGatewayOutcomeCallable; + typedef std::function&)> DescribeGatewayAsyncHandler; + typedef Outcome DescribeGatewayADInfoOutcome; + typedef std::future DescribeGatewayADInfoOutcomeCallable; + typedef std::function&)> DescribeGatewayADInfoAsyncHandler; + typedef Outcome DescribeGatewayActionsOutcome; + typedef std::future DescribeGatewayActionsOutcomeCallable; + typedef std::function&)> DescribeGatewayActionsAsyncHandler; + typedef Outcome DescribeGatewayAuthInfoOutcome; + typedef std::future DescribeGatewayAuthInfoOutcomeCallable; + typedef std::function&)> DescribeGatewayAuthInfoAsyncHandler; + typedef Outcome DescribeGatewayBlockVolumesOutcome; + typedef std::future DescribeGatewayBlockVolumesOutcomeCallable; + typedef std::function&)> DescribeGatewayBlockVolumesAsyncHandler; + typedef Outcome DescribeGatewayBucketCachesOutcome; + typedef std::future DescribeGatewayBucketCachesOutcomeCallable; + typedef std::function&)> DescribeGatewayBucketCachesAsyncHandler; + typedef Outcome DescribeGatewayCachesOutcome; + typedef std::future DescribeGatewayCachesOutcomeCallable; + typedef std::function&)> DescribeGatewayCachesAsyncHandler; + typedef Outcome DescribeGatewayCapacityLimitOutcome; + typedef std::future DescribeGatewayCapacityLimitOutcomeCallable; + typedef std::function&)> DescribeGatewayCapacityLimitAsyncHandler; + typedef Outcome DescribeGatewayCategoriesOutcome; + typedef std::future DescribeGatewayCategoriesOutcomeCallable; + typedef std::function&)> DescribeGatewayCategoriesAsyncHandler; + typedef Outcome DescribeGatewayClassesOutcome; + typedef std::future DescribeGatewayClassesOutcomeCallable; + typedef std::function&)> DescribeGatewayClassesAsyncHandler; + typedef Outcome DescribeGatewayCredentialOutcome; + typedef std::future DescribeGatewayCredentialOutcomeCallable; + typedef std::function&)> DescribeGatewayCredentialAsyncHandler; + typedef Outcome DescribeGatewayDNSOutcome; + typedef std::future DescribeGatewayDNSOutcomeCallable; + typedef std::function&)> DescribeGatewayDNSAsyncHandler; + typedef Outcome DescribeGatewayFileSharesOutcome; + typedef std::future DescribeGatewayFileSharesOutcomeCallable; + typedef std::function&)> DescribeGatewayFileSharesAsyncHandler; + typedef Outcome DescribeGatewayFileStatusOutcome; + typedef std::future DescribeGatewayFileStatusOutcomeCallable; + typedef std::function&)> DescribeGatewayFileStatusAsyncHandler; + typedef Outcome DescribeGatewayImagesOutcome; + typedef std::future DescribeGatewayImagesOutcomeCallable; + typedef std::function&)> DescribeGatewayImagesAsyncHandler; + typedef Outcome DescribeGatewayInfoOutcome; + typedef std::future DescribeGatewayInfoOutcomeCallable; + typedef std::function&)> DescribeGatewayInfoAsyncHandler; + typedef Outcome DescribeGatewayLDAPInfoOutcome; + typedef std::future DescribeGatewayLDAPInfoOutcomeCallable; + typedef std::function&)> DescribeGatewayLDAPInfoAsyncHandler; + typedef Outcome DescribeGatewayLocationsOutcome; + typedef std::future DescribeGatewayLocationsOutcomeCallable; + typedef std::function&)> DescribeGatewayLocationsAsyncHandler; + typedef Outcome DescribeGatewayLoggingOutcome; + typedef std::future DescribeGatewayLoggingOutcomeCallable; + typedef std::function&)> DescribeGatewayLoggingAsyncHandler; + typedef Outcome DescribeGatewayLogsOutcome; + typedef std::future DescribeGatewayLogsOutcomeCallable; + typedef std::function&)> DescribeGatewayLogsAsyncHandler; + typedef Outcome DescribeGatewayModificationClassesOutcome; + typedef std::future DescribeGatewayModificationClassesOutcomeCallable; + typedef std::function&)> DescribeGatewayModificationClassesAsyncHandler; + typedef Outcome DescribeGatewaySMBUsersOutcome; + typedef std::future DescribeGatewaySMBUsersOutcomeCallable; + typedef std::function&)> DescribeGatewaySMBUsersAsyncHandler; + typedef Outcome DescribeGatewayStatisticsOutcome; + typedef std::future DescribeGatewayStatisticsOutcomeCallable; + typedef std::function&)> DescribeGatewayStatisticsAsyncHandler; + typedef Outcome DescribeGatewayStockOutcome; + typedef std::future DescribeGatewayStockOutcomeCallable; + typedef std::function&)> DescribeGatewayStockAsyncHandler; + typedef Outcome DescribeGatewayTypesOutcome; + typedef std::future DescribeGatewayTypesOutcomeCallable; + typedef std::function&)> DescribeGatewayTypesAsyncHandler; + typedef Outcome DescribeGatewaysOutcome; + typedef std::future DescribeGatewaysOutcomeCallable; + typedef std::function&)> DescribeGatewaysAsyncHandler; + typedef Outcome DescribeGatewaysForCmsOutcome; + typedef std::future DescribeGatewaysForCmsOutcomeCallable; + typedef std::function&)> DescribeGatewaysForCmsAsyncHandler; + typedef Outcome DescribeGatewaysTagsOutcome; + typedef std::future DescribeGatewaysTagsOutcomeCallable; + typedef std::function&)> DescribeGatewaysTagsAsyncHandler; + typedef Outcome DescribeKmsKeyOutcome; + typedef std::future DescribeKmsKeyOutcomeCallable; + typedef std::function&)> DescribeKmsKeyAsyncHandler; + typedef Outcome DescribeMqttConfigOutcome; + typedef std::future DescribeMqttConfigOutcomeCallable; + typedef std::function&)> DescribeMqttConfigAsyncHandler; + typedef Outcome DescribeOssBucketInfoOutcome; + typedef std::future DescribeOssBucketInfoOutcomeCallable; + typedef std::function&)> DescribeOssBucketInfoAsyncHandler; + typedef Outcome DescribeOssBucketsOutcome; + typedef std::future DescribeOssBucketsOutcomeCallable; + typedef std::function&)> DescribeOssBucketsAsyncHandler; + typedef Outcome DescribePayAsYouGoPriceOutcome; + typedef std::future DescribePayAsYouGoPriceOutcomeCallable; + typedef std::function&)> DescribePayAsYouGoPriceAsyncHandler; + typedef Outcome DescribeRegionsOutcome; + typedef std::future DescribeRegionsOutcomeCallable; + typedef std::function&)> DescribeRegionsAsyncHandler; + typedef Outcome DescribeSharesBucketInfoForExpressSyncOutcome; + typedef std::future DescribeSharesBucketInfoForExpressSyncOutcomeCallable; + typedef std::function&)> DescribeSharesBucketInfoForExpressSyncAsyncHandler; + typedef Outcome DescribeStorageBundleOutcome; + typedef std::future DescribeStorageBundleOutcomeCallable; + typedef std::function&)> DescribeStorageBundleAsyncHandler; + typedef Outcome DescribeStorageBundlesOutcome; + typedef std::future DescribeStorageBundlesOutcomeCallable; + typedef std::function&)> DescribeStorageBundlesAsyncHandler; + typedef Outcome DescribeSubscriptionPriceOutcome; + typedef std::future DescribeSubscriptionPriceOutcomeCallable; + typedef std::function&)> DescribeSubscriptionPriceAsyncHandler; + typedef Outcome DescribeTasksOutcome; + typedef std::future DescribeTasksOutcomeCallable; + typedef std::function&)> DescribeTasksAsyncHandler; + typedef Outcome DescribeUserBusinessStatusOutcome; + typedef std::future DescribeUserBusinessStatusOutcomeCallable; + typedef std::function&)> DescribeUserBusinessStatusAsyncHandler; + typedef Outcome DescribeVSwitchesOutcome; + typedef std::future DescribeVSwitchesOutcomeCallable; + typedef std::function&)> DescribeVSwitchesAsyncHandler; + typedef Outcome DescribeVpcsOutcome; + typedef std::future DescribeVpcsOutcomeCallable; + typedef std::function&)> DescribeVpcsAsyncHandler; + typedef Outcome DescribeZonesOutcome; + typedef std::future DescribeZonesOutcomeCallable; + typedef std::function&)> DescribeZonesAsyncHandler; + typedef Outcome DisableGatewayLoggingOutcome; + typedef std::future DisableGatewayLoggingOutcomeCallable; + typedef std::function&)> DisableGatewayLoggingAsyncHandler; + typedef Outcome EnableGatewayLoggingOutcome; + typedef std::future EnableGatewayLoggingOutcomeCallable; + typedef std::function&)> EnableGatewayLoggingAsyncHandler; + typedef Outcome ExpandCacheDiskOutcome; + typedef std::future ExpandCacheDiskOutcomeCallable; + typedef std::function&)> ExpandCacheDiskAsyncHandler; + typedef Outcome ExpandGatewayNetworkBandwidthOutcome; + typedef std::future ExpandGatewayNetworkBandwidthOutcomeCallable; + typedef std::function&)> ExpandGatewayNetworkBandwidthAsyncHandler; + typedef Outcome GenerateGatewayTokenOutcome; + typedef std::future GenerateGatewayTokenOutcomeCallable; + typedef std::function&)> GenerateGatewayTokenAsyncHandler; + typedef Outcome GenerateMqttTokenOutcome; + typedef std::future GenerateMqttTokenOutcomeCallable; + typedef std::function&)> GenerateMqttTokenAsyncHandler; + typedef Outcome GenerateStsTokenOutcome; + typedef std::future GenerateStsTokenOutcomeCallable; + typedef std::function&)> GenerateStsTokenAsyncHandler; + typedef Outcome ListTagResourcesOutcome; + typedef std::future ListTagResourcesOutcomeCallable; + typedef std::function&)> ListTagResourcesAsyncHandler; + typedef Outcome ModifyGatewayOutcome; + typedef std::future ModifyGatewayOutcomeCallable; + typedef std::function&)> ModifyGatewayAsyncHandler; + typedef Outcome ModifyGatewayBlockVolumeOutcome; + typedef std::future ModifyGatewayBlockVolumeOutcomeCallable; + typedef std::function&)> ModifyGatewayBlockVolumeAsyncHandler; + typedef Outcome ModifyGatewayClassOutcome; + typedef std::future ModifyGatewayClassOutcomeCallable; + typedef std::function&)> ModifyGatewayClassAsyncHandler; + typedef Outcome ModifyGatewayFileShareOutcome; + typedef std::future ModifyGatewayFileShareOutcomeCallable; + typedef std::function&)> ModifyGatewayFileShareAsyncHandler; + typedef Outcome ModifyStorageBundleOutcome; + typedef std::future ModifyStorageBundleOutcomeCallable; + typedef std::function&)> ModifyStorageBundleAsyncHandler; + typedef Outcome OperateGatewayOutcome; + typedef std::future OperateGatewayOutcomeCallable; + typedef std::function&)> OperateGatewayAsyncHandler; + typedef Outcome ReleaseServiceOutcome; + typedef std::future ReleaseServiceOutcomeCallable; + typedef std::function&)> ReleaseServiceAsyncHandler; + typedef Outcome RemoveSharesFromExpressSyncOutcome; + typedef std::future RemoveSharesFromExpressSyncOutcomeCallable; + typedef std::function&)> RemoveSharesFromExpressSyncAsyncHandler; + typedef Outcome RemoveTagsFromGatewayOutcome; + typedef std::future RemoveTagsFromGatewayOutcomeCallable; + typedef std::function&)> RemoveTagsFromGatewayAsyncHandler; + typedef Outcome ReportBlockVolumesOutcome; + typedef std::future ReportBlockVolumesOutcomeCallable; + typedef std::function&)> ReportBlockVolumesAsyncHandler; + typedef Outcome ReportFileSharesOutcome; + typedef std::future ReportFileSharesOutcomeCallable; + typedef std::function&)> ReportFileSharesAsyncHandler; + typedef Outcome ReportGatewayInfoOutcome; + typedef std::future ReportGatewayInfoOutcomeCallable; + typedef std::function&)> ReportGatewayInfoAsyncHandler; + typedef Outcome ReportGatewayUsageOutcome; + typedef std::future ReportGatewayUsageOutcomeCallable; + typedef std::function&)> ReportGatewayUsageAsyncHandler; + typedef Outcome ResetGatewayPasswordOutcome; + typedef std::future ResetGatewayPasswordOutcomeCallable; + typedef std::function&)> ResetGatewayPasswordAsyncHandler; + typedef Outcome RestartFileSharesOutcome; + typedef std::future RestartFileSharesOutcomeCallable; + typedef std::function&)> RestartFileSharesAsyncHandler; + typedef Outcome SetGatewayADInfoOutcome; + typedef std::future SetGatewayADInfoOutcomeCallable; + typedef std::function&)> SetGatewayADInfoAsyncHandler; + typedef Outcome SetGatewayDNSOutcome; + typedef std::future SetGatewayDNSOutcomeCallable; + typedef std::function&)> SetGatewayDNSAsyncHandler; + typedef Outcome SetGatewayLDAPInfoOutcome; + typedef std::future SetGatewayLDAPInfoOutcomeCallable; + typedef std::function&)> SetGatewayLDAPInfoAsyncHandler; + typedef Outcome SwitchGatewayExpirationPolicyOutcome; + typedef std::future SwitchGatewayExpirationPolicyOutcomeCallable; + typedef std::function&)> SwitchGatewayExpirationPolicyAsyncHandler; + typedef Outcome SwitchToSubscriptionOutcome; + typedef std::future SwitchToSubscriptionOutcomeCallable; + typedef std::function&)> SwitchToSubscriptionAsyncHandler; + typedef Outcome TagResourcesOutcome; + typedef std::future TagResourcesOutcomeCallable; + typedef std::function&)> TagResourcesAsyncHandler; + typedef Outcome UntagResourcesOutcome; + typedef std::future UntagResourcesOutcomeCallable; + typedef std::function&)> UntagResourcesAsyncHandler; + typedef Outcome UpdateGatewayBlockVolumeOutcome; + typedef std::future UpdateGatewayBlockVolumeOutcomeCallable; + typedef std::function&)> UpdateGatewayBlockVolumeAsyncHandler; + typedef Outcome UpdateGatewayFileShareOutcome; + typedef std::future UpdateGatewayFileShareOutcomeCallable; + typedef std::function&)> UpdateGatewayFileShareAsyncHandler; + typedef Outcome UpgradeGatewayOutcome; + typedef std::future UpgradeGatewayOutcomeCallable; + typedef std::function&)> UpgradeGatewayAsyncHandler; + typedef Outcome UploadGatewayLogOutcome; + typedef std::future UploadGatewayLogOutcomeCallable; + typedef std::function&)> UploadGatewayLogAsyncHandler; + typedef Outcome ValidateExpressSyncConfigOutcome; + typedef std::future ValidateExpressSyncConfigOutcomeCallable; + typedef std::function&)> ValidateExpressSyncConfigAsyncHandler; + typedef Outcome ValidateGatewayNameOutcome; + typedef std::future ValidateGatewayNameOutcomeCallable; + typedef std::function&)> ValidateGatewayNameAsyncHandler; + + SgwClient(const Credentials &credentials, const ClientConfiguration &configuration); + SgwClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + SgwClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~SgwClient(); + ActivateAllInOneGatewayOutcome activateAllInOneGateway(const Model::ActivateAllInOneGatewayRequest &request)const; + void activateAllInOneGatewayAsync(const Model::ActivateAllInOneGatewayRequest& request, const ActivateAllInOneGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ActivateAllInOneGatewayOutcomeCallable activateAllInOneGatewayCallable(const Model::ActivateAllInOneGatewayRequest& request) const; + ActivateGatewayOutcome activateGateway(const Model::ActivateGatewayRequest &request)const; + void activateGatewayAsync(const Model::ActivateGatewayRequest& request, const ActivateGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ActivateGatewayOutcomeCallable activateGatewayCallable(const Model::ActivateGatewayRequest& request) const; + AddSharesToExpressSyncOutcome addSharesToExpressSync(const Model::AddSharesToExpressSyncRequest &request)const; + void addSharesToExpressSyncAsync(const Model::AddSharesToExpressSyncRequest& request, const AddSharesToExpressSyncAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddSharesToExpressSyncOutcomeCallable addSharesToExpressSyncCallable(const Model::AddSharesToExpressSyncRequest& request) const; + AddTagsToGatewayOutcome addTagsToGateway(const Model::AddTagsToGatewayRequest &request)const; + void addTagsToGatewayAsync(const Model::AddTagsToGatewayRequest& request, const AddTagsToGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddTagsToGatewayOutcomeCallable addTagsToGatewayCallable(const Model::AddTagsToGatewayRequest& request) const; + CheckActivationKeyOutcome checkActivationKey(const Model::CheckActivationKeyRequest &request)const; + void checkActivationKeyAsync(const Model::CheckActivationKeyRequest& request, const CheckActivationKeyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckActivationKeyOutcomeCallable checkActivationKeyCallable(const Model::CheckActivationKeyRequest& request) const; + CheckBlockVolumeNameOutcome checkBlockVolumeName(const Model::CheckBlockVolumeNameRequest &request)const; + void checkBlockVolumeNameAsync(const Model::CheckBlockVolumeNameRequest& request, const CheckBlockVolumeNameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckBlockVolumeNameOutcomeCallable checkBlockVolumeNameCallable(const Model::CheckBlockVolumeNameRequest& request) const; + CheckGatewayEssdSupportOutcome checkGatewayEssdSupport(const Model::CheckGatewayEssdSupportRequest &request)const; + void checkGatewayEssdSupportAsync(const Model::CheckGatewayEssdSupportRequest& request, const CheckGatewayEssdSupportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckGatewayEssdSupportOutcomeCallable checkGatewayEssdSupportCallable(const Model::CheckGatewayEssdSupportRequest& request) const; + CheckMnsServiceOutcome checkMnsService(const Model::CheckMnsServiceRequest &request)const; + void checkMnsServiceAsync(const Model::CheckMnsServiceRequest& request, const CheckMnsServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckMnsServiceOutcomeCallable checkMnsServiceCallable(const Model::CheckMnsServiceRequest& request) const; + CheckRoleOutcome checkRole(const Model::CheckRoleRequest &request)const; + void checkRoleAsync(const Model::CheckRoleRequest& request, const CheckRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckRoleOutcomeCallable checkRoleCallable(const Model::CheckRoleRequest& request) const; + CheckSlrRoleOutcome checkSlrRole(const Model::CheckSlrRoleRequest &request)const; + void checkSlrRoleAsync(const Model::CheckSlrRoleRequest& request, const CheckSlrRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckSlrRoleOutcomeCallable checkSlrRoleCallable(const Model::CheckSlrRoleRequest& request) const; + CheckUpgradeVersionOutcome checkUpgradeVersion(const Model::CheckUpgradeVersionRequest &request)const; + void checkUpgradeVersionAsync(const Model::CheckUpgradeVersionRequest& request, const CheckUpgradeVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckUpgradeVersionOutcomeCallable checkUpgradeVersionCallable(const Model::CheckUpgradeVersionRequest& request) const; + CreateCacheOutcome createCache(const Model::CreateCacheRequest &request)const; + void createCacheAsync(const Model::CreateCacheRequest& request, const CreateCacheAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCacheOutcomeCallable createCacheCallable(const Model::CreateCacheRequest& request) const; + CreateExpressSyncOutcome createExpressSync(const Model::CreateExpressSyncRequest &request)const; + void createExpressSyncAsync(const Model::CreateExpressSyncRequest& request, const CreateExpressSyncAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateExpressSyncOutcomeCallable createExpressSyncCallable(const Model::CreateExpressSyncRequest& request) const; + CreateGatewayOutcome createGateway(const Model::CreateGatewayRequest &request)const; + void createGatewayAsync(const Model::CreateGatewayRequest& request, const CreateGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateGatewayOutcomeCallable createGatewayCallable(const Model::CreateGatewayRequest& request) const; + CreateGatewayBlockVolumeOutcome createGatewayBlockVolume(const Model::CreateGatewayBlockVolumeRequest &request)const; + void createGatewayBlockVolumeAsync(const Model::CreateGatewayBlockVolumeRequest& request, const CreateGatewayBlockVolumeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateGatewayBlockVolumeOutcomeCallable createGatewayBlockVolumeCallable(const Model::CreateGatewayBlockVolumeRequest& request) const; + CreateGatewayCacheDiskOutcome createGatewayCacheDisk(const Model::CreateGatewayCacheDiskRequest &request)const; + void createGatewayCacheDiskAsync(const Model::CreateGatewayCacheDiskRequest& request, const CreateGatewayCacheDiskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateGatewayCacheDiskOutcomeCallable createGatewayCacheDiskCallable(const Model::CreateGatewayCacheDiskRequest& request) const; + CreateGatewayFileShareOutcome createGatewayFileShare(const Model::CreateGatewayFileShareRequest &request)const; + void createGatewayFileShareAsync(const Model::CreateGatewayFileShareRequest& request, const CreateGatewayFileShareAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateGatewayFileShareOutcomeCallable createGatewayFileShareCallable(const Model::CreateGatewayFileShareRequest& request) const; + CreateGatewayLoggingOutcome createGatewayLogging(const Model::CreateGatewayLoggingRequest &request)const; + void createGatewayLoggingAsync(const Model::CreateGatewayLoggingRequest& request, const CreateGatewayLoggingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateGatewayLoggingOutcomeCallable createGatewayLoggingCallable(const Model::CreateGatewayLoggingRequest& request) const; + CreateGatewaySMBUserOutcome createGatewaySMBUser(const Model::CreateGatewaySMBUserRequest &request)const; + void createGatewaySMBUserAsync(const Model::CreateGatewaySMBUserRequest& request, const CreateGatewaySMBUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateGatewaySMBUserOutcomeCallable createGatewaySMBUserCallable(const Model::CreateGatewaySMBUserRequest& request) const; + CreateStorageBundleOutcome createStorageBundle(const Model::CreateStorageBundleRequest &request)const; + void createStorageBundleAsync(const Model::CreateStorageBundleRequest& request, const CreateStorageBundleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateStorageBundleOutcomeCallable createStorageBundleCallable(const Model::CreateStorageBundleRequest& request) const; + DeleteExpressSyncOutcome deleteExpressSync(const Model::DeleteExpressSyncRequest &request)const; + void deleteExpressSyncAsync(const Model::DeleteExpressSyncRequest& request, const DeleteExpressSyncAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteExpressSyncOutcomeCallable deleteExpressSyncCallable(const Model::DeleteExpressSyncRequest& request) const; + DeleteGatewayOutcome deleteGateway(const Model::DeleteGatewayRequest &request)const; + void deleteGatewayAsync(const Model::DeleteGatewayRequest& request, const DeleteGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteGatewayOutcomeCallable deleteGatewayCallable(const Model::DeleteGatewayRequest& request) const; + DeleteGatewayBlockVolumesOutcome deleteGatewayBlockVolumes(const Model::DeleteGatewayBlockVolumesRequest &request)const; + void deleteGatewayBlockVolumesAsync(const Model::DeleteGatewayBlockVolumesRequest& request, const DeleteGatewayBlockVolumesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteGatewayBlockVolumesOutcomeCallable deleteGatewayBlockVolumesCallable(const Model::DeleteGatewayBlockVolumesRequest& request) const; + DeleteGatewayCacheDiskOutcome deleteGatewayCacheDisk(const Model::DeleteGatewayCacheDiskRequest &request)const; + void deleteGatewayCacheDiskAsync(const Model::DeleteGatewayCacheDiskRequest& request, const DeleteGatewayCacheDiskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteGatewayCacheDiskOutcomeCallable deleteGatewayCacheDiskCallable(const Model::DeleteGatewayCacheDiskRequest& request) const; + DeleteGatewayFileSharesOutcome deleteGatewayFileShares(const Model::DeleteGatewayFileSharesRequest &request)const; + void deleteGatewayFileSharesAsync(const Model::DeleteGatewayFileSharesRequest& request, const DeleteGatewayFileSharesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteGatewayFileSharesOutcomeCallable deleteGatewayFileSharesCallable(const Model::DeleteGatewayFileSharesRequest& request) const; + DeleteGatewayLoggingOutcome deleteGatewayLogging(const Model::DeleteGatewayLoggingRequest &request)const; + void deleteGatewayLoggingAsync(const Model::DeleteGatewayLoggingRequest& request, const DeleteGatewayLoggingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteGatewayLoggingOutcomeCallable deleteGatewayLoggingCallable(const Model::DeleteGatewayLoggingRequest& request) const; + DeleteGatewaySMBUserOutcome deleteGatewaySMBUser(const Model::DeleteGatewaySMBUserRequest &request)const; + void deleteGatewaySMBUserAsync(const Model::DeleteGatewaySMBUserRequest& request, const DeleteGatewaySMBUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteGatewaySMBUserOutcomeCallable deleteGatewaySMBUserCallable(const Model::DeleteGatewaySMBUserRequest& request) const; + DeleteStorageBundleOutcome deleteStorageBundle(const Model::DeleteStorageBundleRequest &request)const; + void deleteStorageBundleAsync(const Model::DeleteStorageBundleRequest& request, const DeleteStorageBundleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteStorageBundleOutcomeCallable deleteStorageBundleCallable(const Model::DeleteStorageBundleRequest& request) const; + DeployCacheDiskOutcome deployCacheDisk(const Model::DeployCacheDiskRequest &request)const; + void deployCacheDiskAsync(const Model::DeployCacheDiskRequest& request, const DeployCacheDiskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeployCacheDiskOutcomeCallable deployCacheDiskCallable(const Model::DeployCacheDiskRequest& request) const; + DeployGatewayOutcome deployGateway(const Model::DeployGatewayRequest &request)const; + void deployGatewayAsync(const Model::DeployGatewayRequest& request, const DeployGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeployGatewayOutcomeCallable deployGatewayCallable(const Model::DeployGatewayRequest& request) const; + DescribeAccountConfigOutcome describeAccountConfig(const Model::DescribeAccountConfigRequest &request)const; + void describeAccountConfigAsync(const Model::DescribeAccountConfigRequest& request, const DescribeAccountConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAccountConfigOutcomeCallable describeAccountConfigCallable(const Model::DescribeAccountConfigRequest& request) const; + DescribeBlockVolumeSnapshotsOutcome describeBlockVolumeSnapshots(const Model::DescribeBlockVolumeSnapshotsRequest &request)const; + void describeBlockVolumeSnapshotsAsync(const Model::DescribeBlockVolumeSnapshotsRequest& request, const DescribeBlockVolumeSnapshotsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeBlockVolumeSnapshotsOutcomeCallable describeBlockVolumeSnapshotsCallable(const Model::DescribeBlockVolumeSnapshotsRequest& request) const; + DescribeDashboardOutcome describeDashboard(const Model::DescribeDashboardRequest &request)const; + void describeDashboardAsync(const Model::DescribeDashboardRequest& request, const DescribeDashboardAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDashboardOutcomeCallable describeDashboardCallable(const Model::DescribeDashboardRequest& request) const; + DescribeExpireCachesOutcome describeExpireCaches(const Model::DescribeExpireCachesRequest &request)const; + void describeExpireCachesAsync(const Model::DescribeExpireCachesRequest& request, const DescribeExpireCachesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeExpireCachesOutcomeCallable describeExpireCachesCallable(const Model::DescribeExpireCachesRequest& request) const; + DescribeExpressSyncSharesOutcome describeExpressSyncShares(const Model::DescribeExpressSyncSharesRequest &request)const; + void describeExpressSyncSharesAsync(const Model::DescribeExpressSyncSharesRequest& request, const DescribeExpressSyncSharesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeExpressSyncSharesOutcomeCallable describeExpressSyncSharesCallable(const Model::DescribeExpressSyncSharesRequest& request) const; + DescribeExpressSyncsOutcome describeExpressSyncs(const Model::DescribeExpressSyncsRequest &request)const; + void describeExpressSyncsAsync(const Model::DescribeExpressSyncsRequest& request, const DescribeExpressSyncsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeExpressSyncsOutcomeCallable describeExpressSyncsCallable(const Model::DescribeExpressSyncsRequest& request) const; + DescribeGatewayOutcome describeGateway(const Model::DescribeGatewayRequest &request)const; + void describeGatewayAsync(const Model::DescribeGatewayRequest& request, const DescribeGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGatewayOutcomeCallable describeGatewayCallable(const Model::DescribeGatewayRequest& request) const; + DescribeGatewayADInfoOutcome describeGatewayADInfo(const Model::DescribeGatewayADInfoRequest &request)const; + void describeGatewayADInfoAsync(const Model::DescribeGatewayADInfoRequest& request, const DescribeGatewayADInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGatewayADInfoOutcomeCallable describeGatewayADInfoCallable(const Model::DescribeGatewayADInfoRequest& request) const; + DescribeGatewayActionsOutcome describeGatewayActions(const Model::DescribeGatewayActionsRequest &request)const; + void describeGatewayActionsAsync(const Model::DescribeGatewayActionsRequest& request, const DescribeGatewayActionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGatewayActionsOutcomeCallable describeGatewayActionsCallable(const Model::DescribeGatewayActionsRequest& request) const; + DescribeGatewayAuthInfoOutcome describeGatewayAuthInfo(const Model::DescribeGatewayAuthInfoRequest &request)const; + void describeGatewayAuthInfoAsync(const Model::DescribeGatewayAuthInfoRequest& request, const DescribeGatewayAuthInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGatewayAuthInfoOutcomeCallable describeGatewayAuthInfoCallable(const Model::DescribeGatewayAuthInfoRequest& request) const; + DescribeGatewayBlockVolumesOutcome describeGatewayBlockVolumes(const Model::DescribeGatewayBlockVolumesRequest &request)const; + void describeGatewayBlockVolumesAsync(const Model::DescribeGatewayBlockVolumesRequest& request, const DescribeGatewayBlockVolumesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGatewayBlockVolumesOutcomeCallable describeGatewayBlockVolumesCallable(const Model::DescribeGatewayBlockVolumesRequest& request) const; + DescribeGatewayBucketCachesOutcome describeGatewayBucketCaches(const Model::DescribeGatewayBucketCachesRequest &request)const; + void describeGatewayBucketCachesAsync(const Model::DescribeGatewayBucketCachesRequest& request, const DescribeGatewayBucketCachesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGatewayBucketCachesOutcomeCallable describeGatewayBucketCachesCallable(const Model::DescribeGatewayBucketCachesRequest& request) const; + DescribeGatewayCachesOutcome describeGatewayCaches(const Model::DescribeGatewayCachesRequest &request)const; + void describeGatewayCachesAsync(const Model::DescribeGatewayCachesRequest& request, const DescribeGatewayCachesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGatewayCachesOutcomeCallable describeGatewayCachesCallable(const Model::DescribeGatewayCachesRequest& request) const; + DescribeGatewayCapacityLimitOutcome describeGatewayCapacityLimit(const Model::DescribeGatewayCapacityLimitRequest &request)const; + void describeGatewayCapacityLimitAsync(const Model::DescribeGatewayCapacityLimitRequest& request, const DescribeGatewayCapacityLimitAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGatewayCapacityLimitOutcomeCallable describeGatewayCapacityLimitCallable(const Model::DescribeGatewayCapacityLimitRequest& request) const; + DescribeGatewayCategoriesOutcome describeGatewayCategories(const Model::DescribeGatewayCategoriesRequest &request)const; + void describeGatewayCategoriesAsync(const Model::DescribeGatewayCategoriesRequest& request, const DescribeGatewayCategoriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGatewayCategoriesOutcomeCallable describeGatewayCategoriesCallable(const Model::DescribeGatewayCategoriesRequest& request) const; + DescribeGatewayClassesOutcome describeGatewayClasses(const Model::DescribeGatewayClassesRequest &request)const; + void describeGatewayClassesAsync(const Model::DescribeGatewayClassesRequest& request, const DescribeGatewayClassesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGatewayClassesOutcomeCallable describeGatewayClassesCallable(const Model::DescribeGatewayClassesRequest& request) const; + DescribeGatewayCredentialOutcome describeGatewayCredential(const Model::DescribeGatewayCredentialRequest &request)const; + void describeGatewayCredentialAsync(const Model::DescribeGatewayCredentialRequest& request, const DescribeGatewayCredentialAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGatewayCredentialOutcomeCallable describeGatewayCredentialCallable(const Model::DescribeGatewayCredentialRequest& request) const; + DescribeGatewayDNSOutcome describeGatewayDNS(const Model::DescribeGatewayDNSRequest &request)const; + void describeGatewayDNSAsync(const Model::DescribeGatewayDNSRequest& request, const DescribeGatewayDNSAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGatewayDNSOutcomeCallable describeGatewayDNSCallable(const Model::DescribeGatewayDNSRequest& request) const; + DescribeGatewayFileSharesOutcome describeGatewayFileShares(const Model::DescribeGatewayFileSharesRequest &request)const; + void describeGatewayFileSharesAsync(const Model::DescribeGatewayFileSharesRequest& request, const DescribeGatewayFileSharesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGatewayFileSharesOutcomeCallable describeGatewayFileSharesCallable(const Model::DescribeGatewayFileSharesRequest& request) const; + DescribeGatewayFileStatusOutcome describeGatewayFileStatus(const Model::DescribeGatewayFileStatusRequest &request)const; + void describeGatewayFileStatusAsync(const Model::DescribeGatewayFileStatusRequest& request, const DescribeGatewayFileStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGatewayFileStatusOutcomeCallable describeGatewayFileStatusCallable(const Model::DescribeGatewayFileStatusRequest& request) const; + DescribeGatewayImagesOutcome describeGatewayImages(const Model::DescribeGatewayImagesRequest &request)const; + void describeGatewayImagesAsync(const Model::DescribeGatewayImagesRequest& request, const DescribeGatewayImagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGatewayImagesOutcomeCallable describeGatewayImagesCallable(const Model::DescribeGatewayImagesRequest& request) const; + DescribeGatewayInfoOutcome describeGatewayInfo(const Model::DescribeGatewayInfoRequest &request)const; + void describeGatewayInfoAsync(const Model::DescribeGatewayInfoRequest& request, const DescribeGatewayInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGatewayInfoOutcomeCallable describeGatewayInfoCallable(const Model::DescribeGatewayInfoRequest& request) const; + DescribeGatewayLDAPInfoOutcome describeGatewayLDAPInfo(const Model::DescribeGatewayLDAPInfoRequest &request)const; + void describeGatewayLDAPInfoAsync(const Model::DescribeGatewayLDAPInfoRequest& request, const DescribeGatewayLDAPInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGatewayLDAPInfoOutcomeCallable describeGatewayLDAPInfoCallable(const Model::DescribeGatewayLDAPInfoRequest& request) const; + DescribeGatewayLocationsOutcome describeGatewayLocations(const Model::DescribeGatewayLocationsRequest &request)const; + void describeGatewayLocationsAsync(const Model::DescribeGatewayLocationsRequest& request, const DescribeGatewayLocationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGatewayLocationsOutcomeCallable describeGatewayLocationsCallable(const Model::DescribeGatewayLocationsRequest& request) const; + DescribeGatewayLoggingOutcome describeGatewayLogging(const Model::DescribeGatewayLoggingRequest &request)const; + void describeGatewayLoggingAsync(const Model::DescribeGatewayLoggingRequest& request, const DescribeGatewayLoggingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGatewayLoggingOutcomeCallable describeGatewayLoggingCallable(const Model::DescribeGatewayLoggingRequest& request) const; + DescribeGatewayLogsOutcome describeGatewayLogs(const Model::DescribeGatewayLogsRequest &request)const; + void describeGatewayLogsAsync(const Model::DescribeGatewayLogsRequest& request, const DescribeGatewayLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGatewayLogsOutcomeCallable describeGatewayLogsCallable(const Model::DescribeGatewayLogsRequest& request) const; + DescribeGatewayModificationClassesOutcome describeGatewayModificationClasses(const Model::DescribeGatewayModificationClassesRequest &request)const; + void describeGatewayModificationClassesAsync(const Model::DescribeGatewayModificationClassesRequest& request, const DescribeGatewayModificationClassesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGatewayModificationClassesOutcomeCallable describeGatewayModificationClassesCallable(const Model::DescribeGatewayModificationClassesRequest& request) const; + DescribeGatewaySMBUsersOutcome describeGatewaySMBUsers(const Model::DescribeGatewaySMBUsersRequest &request)const; + void describeGatewaySMBUsersAsync(const Model::DescribeGatewaySMBUsersRequest& request, const DescribeGatewaySMBUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGatewaySMBUsersOutcomeCallable describeGatewaySMBUsersCallable(const Model::DescribeGatewaySMBUsersRequest& request) const; + DescribeGatewayStatisticsOutcome describeGatewayStatistics(const Model::DescribeGatewayStatisticsRequest &request)const; + void describeGatewayStatisticsAsync(const Model::DescribeGatewayStatisticsRequest& request, const DescribeGatewayStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGatewayStatisticsOutcomeCallable describeGatewayStatisticsCallable(const Model::DescribeGatewayStatisticsRequest& request) const; + DescribeGatewayStockOutcome describeGatewayStock(const Model::DescribeGatewayStockRequest &request)const; + void describeGatewayStockAsync(const Model::DescribeGatewayStockRequest& request, const DescribeGatewayStockAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGatewayStockOutcomeCallable describeGatewayStockCallable(const Model::DescribeGatewayStockRequest& request) const; + DescribeGatewayTypesOutcome describeGatewayTypes(const Model::DescribeGatewayTypesRequest &request)const; + void describeGatewayTypesAsync(const Model::DescribeGatewayTypesRequest& request, const DescribeGatewayTypesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGatewayTypesOutcomeCallable describeGatewayTypesCallable(const Model::DescribeGatewayTypesRequest& request) const; + DescribeGatewaysOutcome describeGateways(const Model::DescribeGatewaysRequest &request)const; + void describeGatewaysAsync(const Model::DescribeGatewaysRequest& request, const DescribeGatewaysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGatewaysOutcomeCallable describeGatewaysCallable(const Model::DescribeGatewaysRequest& request) const; + DescribeGatewaysForCmsOutcome describeGatewaysForCms(const Model::DescribeGatewaysForCmsRequest &request)const; + void describeGatewaysForCmsAsync(const Model::DescribeGatewaysForCmsRequest& request, const DescribeGatewaysForCmsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGatewaysForCmsOutcomeCallable describeGatewaysForCmsCallable(const Model::DescribeGatewaysForCmsRequest& request) const; + DescribeGatewaysTagsOutcome describeGatewaysTags(const Model::DescribeGatewaysTagsRequest &request)const; + void describeGatewaysTagsAsync(const Model::DescribeGatewaysTagsRequest& request, const DescribeGatewaysTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGatewaysTagsOutcomeCallable describeGatewaysTagsCallable(const Model::DescribeGatewaysTagsRequest& request) const; + DescribeKmsKeyOutcome describeKmsKey(const Model::DescribeKmsKeyRequest &request)const; + void describeKmsKeyAsync(const Model::DescribeKmsKeyRequest& request, const DescribeKmsKeyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeKmsKeyOutcomeCallable describeKmsKeyCallable(const Model::DescribeKmsKeyRequest& request) const; + DescribeMqttConfigOutcome describeMqttConfig(const Model::DescribeMqttConfigRequest &request)const; + void describeMqttConfigAsync(const Model::DescribeMqttConfigRequest& request, const DescribeMqttConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeMqttConfigOutcomeCallable describeMqttConfigCallable(const Model::DescribeMqttConfigRequest& request) const; + DescribeOssBucketInfoOutcome describeOssBucketInfo(const Model::DescribeOssBucketInfoRequest &request)const; + void describeOssBucketInfoAsync(const Model::DescribeOssBucketInfoRequest& request, const DescribeOssBucketInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeOssBucketInfoOutcomeCallable describeOssBucketInfoCallable(const Model::DescribeOssBucketInfoRequest& request) const; + DescribeOssBucketsOutcome describeOssBuckets(const Model::DescribeOssBucketsRequest &request)const; + void describeOssBucketsAsync(const Model::DescribeOssBucketsRequest& request, const DescribeOssBucketsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeOssBucketsOutcomeCallable describeOssBucketsCallable(const Model::DescribeOssBucketsRequest& request) const; + DescribePayAsYouGoPriceOutcome describePayAsYouGoPrice(const Model::DescribePayAsYouGoPriceRequest &request)const; + void describePayAsYouGoPriceAsync(const Model::DescribePayAsYouGoPriceRequest& request, const DescribePayAsYouGoPriceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePayAsYouGoPriceOutcomeCallable describePayAsYouGoPriceCallable(const Model::DescribePayAsYouGoPriceRequest& request) const; + DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const; + void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const; + DescribeSharesBucketInfoForExpressSyncOutcome describeSharesBucketInfoForExpressSync(const Model::DescribeSharesBucketInfoForExpressSyncRequest &request)const; + void describeSharesBucketInfoForExpressSyncAsync(const Model::DescribeSharesBucketInfoForExpressSyncRequest& request, const DescribeSharesBucketInfoForExpressSyncAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSharesBucketInfoForExpressSyncOutcomeCallable describeSharesBucketInfoForExpressSyncCallable(const Model::DescribeSharesBucketInfoForExpressSyncRequest& request) const; + DescribeStorageBundleOutcome describeStorageBundle(const Model::DescribeStorageBundleRequest &request)const; + void describeStorageBundleAsync(const Model::DescribeStorageBundleRequest& request, const DescribeStorageBundleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeStorageBundleOutcomeCallable describeStorageBundleCallable(const Model::DescribeStorageBundleRequest& request) const; + DescribeStorageBundlesOutcome describeStorageBundles(const Model::DescribeStorageBundlesRequest &request)const; + void describeStorageBundlesAsync(const Model::DescribeStorageBundlesRequest& request, const DescribeStorageBundlesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeStorageBundlesOutcomeCallable describeStorageBundlesCallable(const Model::DescribeStorageBundlesRequest& request) const; + DescribeSubscriptionPriceOutcome describeSubscriptionPrice(const Model::DescribeSubscriptionPriceRequest &request)const; + void describeSubscriptionPriceAsync(const Model::DescribeSubscriptionPriceRequest& request, const DescribeSubscriptionPriceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSubscriptionPriceOutcomeCallable describeSubscriptionPriceCallable(const Model::DescribeSubscriptionPriceRequest& request) const; + DescribeTasksOutcome describeTasks(const Model::DescribeTasksRequest &request)const; + void describeTasksAsync(const Model::DescribeTasksRequest& request, const DescribeTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeTasksOutcomeCallable describeTasksCallable(const Model::DescribeTasksRequest& request) const; + DescribeUserBusinessStatusOutcome describeUserBusinessStatus(const Model::DescribeUserBusinessStatusRequest &request)const; + void describeUserBusinessStatusAsync(const Model::DescribeUserBusinessStatusRequest& request, const DescribeUserBusinessStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeUserBusinessStatusOutcomeCallable describeUserBusinessStatusCallable(const Model::DescribeUserBusinessStatusRequest& request) const; + DescribeVSwitchesOutcome describeVSwitches(const Model::DescribeVSwitchesRequest &request)const; + void describeVSwitchesAsync(const Model::DescribeVSwitchesRequest& request, const DescribeVSwitchesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVSwitchesOutcomeCallable describeVSwitchesCallable(const Model::DescribeVSwitchesRequest& request) const; + DescribeVpcsOutcome describeVpcs(const Model::DescribeVpcsRequest &request)const; + void describeVpcsAsync(const Model::DescribeVpcsRequest& request, const DescribeVpcsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVpcsOutcomeCallable describeVpcsCallable(const Model::DescribeVpcsRequest& request) const; + DescribeZonesOutcome describeZones(const Model::DescribeZonesRequest &request)const; + void describeZonesAsync(const Model::DescribeZonesRequest& request, const DescribeZonesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeZonesOutcomeCallable describeZonesCallable(const Model::DescribeZonesRequest& request) const; + DisableGatewayLoggingOutcome disableGatewayLogging(const Model::DisableGatewayLoggingRequest &request)const; + void disableGatewayLoggingAsync(const Model::DisableGatewayLoggingRequest& request, const DisableGatewayLoggingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DisableGatewayLoggingOutcomeCallable disableGatewayLoggingCallable(const Model::DisableGatewayLoggingRequest& request) const; + EnableGatewayLoggingOutcome enableGatewayLogging(const Model::EnableGatewayLoggingRequest &request)const; + void enableGatewayLoggingAsync(const Model::EnableGatewayLoggingRequest& request, const EnableGatewayLoggingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EnableGatewayLoggingOutcomeCallable enableGatewayLoggingCallable(const Model::EnableGatewayLoggingRequest& request) const; + ExpandCacheDiskOutcome expandCacheDisk(const Model::ExpandCacheDiskRequest &request)const; + void expandCacheDiskAsync(const Model::ExpandCacheDiskRequest& request, const ExpandCacheDiskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ExpandCacheDiskOutcomeCallable expandCacheDiskCallable(const Model::ExpandCacheDiskRequest& request) const; + ExpandGatewayNetworkBandwidthOutcome expandGatewayNetworkBandwidth(const Model::ExpandGatewayNetworkBandwidthRequest &request)const; + void expandGatewayNetworkBandwidthAsync(const Model::ExpandGatewayNetworkBandwidthRequest& request, const ExpandGatewayNetworkBandwidthAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ExpandGatewayNetworkBandwidthOutcomeCallable expandGatewayNetworkBandwidthCallable(const Model::ExpandGatewayNetworkBandwidthRequest& request) const; + GenerateGatewayTokenOutcome generateGatewayToken(const Model::GenerateGatewayTokenRequest &request)const; + void generateGatewayTokenAsync(const Model::GenerateGatewayTokenRequest& request, const GenerateGatewayTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GenerateGatewayTokenOutcomeCallable generateGatewayTokenCallable(const Model::GenerateGatewayTokenRequest& request) const; + GenerateMqttTokenOutcome generateMqttToken(const Model::GenerateMqttTokenRequest &request)const; + void generateMqttTokenAsync(const Model::GenerateMqttTokenRequest& request, const GenerateMqttTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GenerateMqttTokenOutcomeCallable generateMqttTokenCallable(const Model::GenerateMqttTokenRequest& request) const; + GenerateStsTokenOutcome generateStsToken(const Model::GenerateStsTokenRequest &request)const; + void generateStsTokenAsync(const Model::GenerateStsTokenRequest& request, const GenerateStsTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GenerateStsTokenOutcomeCallable generateStsTokenCallable(const Model::GenerateStsTokenRequest& request) const; + ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const; + void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const; + ModifyGatewayOutcome modifyGateway(const Model::ModifyGatewayRequest &request)const; + void modifyGatewayAsync(const Model::ModifyGatewayRequest& request, const ModifyGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyGatewayOutcomeCallable modifyGatewayCallable(const Model::ModifyGatewayRequest& request) const; + ModifyGatewayBlockVolumeOutcome modifyGatewayBlockVolume(const Model::ModifyGatewayBlockVolumeRequest &request)const; + void modifyGatewayBlockVolumeAsync(const Model::ModifyGatewayBlockVolumeRequest& request, const ModifyGatewayBlockVolumeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyGatewayBlockVolumeOutcomeCallable modifyGatewayBlockVolumeCallable(const Model::ModifyGatewayBlockVolumeRequest& request) const; + ModifyGatewayClassOutcome modifyGatewayClass(const Model::ModifyGatewayClassRequest &request)const; + void modifyGatewayClassAsync(const Model::ModifyGatewayClassRequest& request, const ModifyGatewayClassAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyGatewayClassOutcomeCallable modifyGatewayClassCallable(const Model::ModifyGatewayClassRequest& request) const; + ModifyGatewayFileShareOutcome modifyGatewayFileShare(const Model::ModifyGatewayFileShareRequest &request)const; + void modifyGatewayFileShareAsync(const Model::ModifyGatewayFileShareRequest& request, const ModifyGatewayFileShareAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyGatewayFileShareOutcomeCallable modifyGatewayFileShareCallable(const Model::ModifyGatewayFileShareRequest& request) const; + ModifyStorageBundleOutcome modifyStorageBundle(const Model::ModifyStorageBundleRequest &request)const; + void modifyStorageBundleAsync(const Model::ModifyStorageBundleRequest& request, const ModifyStorageBundleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyStorageBundleOutcomeCallable modifyStorageBundleCallable(const Model::ModifyStorageBundleRequest& request) const; + OperateGatewayOutcome operateGateway(const Model::OperateGatewayRequest &request)const; + void operateGatewayAsync(const Model::OperateGatewayRequest& request, const OperateGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OperateGatewayOutcomeCallable operateGatewayCallable(const Model::OperateGatewayRequest& request) const; + ReleaseServiceOutcome releaseService(const Model::ReleaseServiceRequest &request)const; + void releaseServiceAsync(const Model::ReleaseServiceRequest& request, const ReleaseServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReleaseServiceOutcomeCallable releaseServiceCallable(const Model::ReleaseServiceRequest& request) const; + RemoveSharesFromExpressSyncOutcome removeSharesFromExpressSync(const Model::RemoveSharesFromExpressSyncRequest &request)const; + void removeSharesFromExpressSyncAsync(const Model::RemoveSharesFromExpressSyncRequest& request, const RemoveSharesFromExpressSyncAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveSharesFromExpressSyncOutcomeCallable removeSharesFromExpressSyncCallable(const Model::RemoveSharesFromExpressSyncRequest& request) const; + RemoveTagsFromGatewayOutcome removeTagsFromGateway(const Model::RemoveTagsFromGatewayRequest &request)const; + void removeTagsFromGatewayAsync(const Model::RemoveTagsFromGatewayRequest& request, const RemoveTagsFromGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveTagsFromGatewayOutcomeCallable removeTagsFromGatewayCallable(const Model::RemoveTagsFromGatewayRequest& request) const; + ReportBlockVolumesOutcome reportBlockVolumes(const Model::ReportBlockVolumesRequest &request)const; + void reportBlockVolumesAsync(const Model::ReportBlockVolumesRequest& request, const ReportBlockVolumesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReportBlockVolumesOutcomeCallable reportBlockVolumesCallable(const Model::ReportBlockVolumesRequest& request) const; + ReportFileSharesOutcome reportFileShares(const Model::ReportFileSharesRequest &request)const; + void reportFileSharesAsync(const Model::ReportFileSharesRequest& request, const ReportFileSharesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReportFileSharesOutcomeCallable reportFileSharesCallable(const Model::ReportFileSharesRequest& request) const; + ReportGatewayInfoOutcome reportGatewayInfo(const Model::ReportGatewayInfoRequest &request)const; + void reportGatewayInfoAsync(const Model::ReportGatewayInfoRequest& request, const ReportGatewayInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReportGatewayInfoOutcomeCallable reportGatewayInfoCallable(const Model::ReportGatewayInfoRequest& request) const; + ReportGatewayUsageOutcome reportGatewayUsage(const Model::ReportGatewayUsageRequest &request)const; + void reportGatewayUsageAsync(const Model::ReportGatewayUsageRequest& request, const ReportGatewayUsageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReportGatewayUsageOutcomeCallable reportGatewayUsageCallable(const Model::ReportGatewayUsageRequest& request) const; + ResetGatewayPasswordOutcome resetGatewayPassword(const Model::ResetGatewayPasswordRequest &request)const; + void resetGatewayPasswordAsync(const Model::ResetGatewayPasswordRequest& request, const ResetGatewayPasswordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResetGatewayPasswordOutcomeCallable resetGatewayPasswordCallable(const Model::ResetGatewayPasswordRequest& request) const; + RestartFileSharesOutcome restartFileShares(const Model::RestartFileSharesRequest &request)const; + void restartFileSharesAsync(const Model::RestartFileSharesRequest& request, const RestartFileSharesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RestartFileSharesOutcomeCallable restartFileSharesCallable(const Model::RestartFileSharesRequest& request) const; + SetGatewayADInfoOutcome setGatewayADInfo(const Model::SetGatewayADInfoRequest &request)const; + void setGatewayADInfoAsync(const Model::SetGatewayADInfoRequest& request, const SetGatewayADInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetGatewayADInfoOutcomeCallable setGatewayADInfoCallable(const Model::SetGatewayADInfoRequest& request) const; + SetGatewayDNSOutcome setGatewayDNS(const Model::SetGatewayDNSRequest &request)const; + void setGatewayDNSAsync(const Model::SetGatewayDNSRequest& request, const SetGatewayDNSAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetGatewayDNSOutcomeCallable setGatewayDNSCallable(const Model::SetGatewayDNSRequest& request) const; + SetGatewayLDAPInfoOutcome setGatewayLDAPInfo(const Model::SetGatewayLDAPInfoRequest &request)const; + void setGatewayLDAPInfoAsync(const Model::SetGatewayLDAPInfoRequest& request, const SetGatewayLDAPInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetGatewayLDAPInfoOutcomeCallable setGatewayLDAPInfoCallable(const Model::SetGatewayLDAPInfoRequest& request) const; + SwitchGatewayExpirationPolicyOutcome switchGatewayExpirationPolicy(const Model::SwitchGatewayExpirationPolicyRequest &request)const; + void switchGatewayExpirationPolicyAsync(const Model::SwitchGatewayExpirationPolicyRequest& request, const SwitchGatewayExpirationPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SwitchGatewayExpirationPolicyOutcomeCallable switchGatewayExpirationPolicyCallable(const Model::SwitchGatewayExpirationPolicyRequest& request) const; + SwitchToSubscriptionOutcome switchToSubscription(const Model::SwitchToSubscriptionRequest &request)const; + void switchToSubscriptionAsync(const Model::SwitchToSubscriptionRequest& request, const SwitchToSubscriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SwitchToSubscriptionOutcomeCallable switchToSubscriptionCallable(const Model::SwitchToSubscriptionRequest& request) const; + TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const; + void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const; + UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const; + void untagResourcesAsync(const Model::UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& request) const; + UpdateGatewayBlockVolumeOutcome updateGatewayBlockVolume(const Model::UpdateGatewayBlockVolumeRequest &request)const; + void updateGatewayBlockVolumeAsync(const Model::UpdateGatewayBlockVolumeRequest& request, const UpdateGatewayBlockVolumeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateGatewayBlockVolumeOutcomeCallable updateGatewayBlockVolumeCallable(const Model::UpdateGatewayBlockVolumeRequest& request) const; + UpdateGatewayFileShareOutcome updateGatewayFileShare(const Model::UpdateGatewayFileShareRequest &request)const; + void updateGatewayFileShareAsync(const Model::UpdateGatewayFileShareRequest& request, const UpdateGatewayFileShareAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateGatewayFileShareOutcomeCallable updateGatewayFileShareCallable(const Model::UpdateGatewayFileShareRequest& request) const; + UpgradeGatewayOutcome upgradeGateway(const Model::UpgradeGatewayRequest &request)const; + void upgradeGatewayAsync(const Model::UpgradeGatewayRequest& request, const UpgradeGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpgradeGatewayOutcomeCallable upgradeGatewayCallable(const Model::UpgradeGatewayRequest& request) const; + UploadGatewayLogOutcome uploadGatewayLog(const Model::UploadGatewayLogRequest &request)const; + void uploadGatewayLogAsync(const Model::UploadGatewayLogRequest& request, const UploadGatewayLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UploadGatewayLogOutcomeCallable uploadGatewayLogCallable(const Model::UploadGatewayLogRequest& request) const; + ValidateExpressSyncConfigOutcome validateExpressSyncConfig(const Model::ValidateExpressSyncConfigRequest &request)const; + void validateExpressSyncConfigAsync(const Model::ValidateExpressSyncConfigRequest& request, const ValidateExpressSyncConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ValidateExpressSyncConfigOutcomeCallable validateExpressSyncConfigCallable(const Model::ValidateExpressSyncConfigRequest& request) const; + ValidateGatewayNameOutcome validateGatewayName(const Model::ValidateGatewayNameRequest &request)const; + void validateGatewayNameAsync(const Model::ValidateGatewayNameRequest& request, const ValidateGatewayNameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ValidateGatewayNameOutcomeCallable validateGatewayNameCallable(const Model::ValidateGatewayNameRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_SGW_SGWCLIENT_H_ diff --git a/sgw/include/alibabacloud/sgw/SgwExport.h b/sgw/include/alibabacloud/sgw/SgwExport.h new file mode 100644 index 000000000..f16bdbd98 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/SgwExport.h @@ -0,0 +1,32 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_SGWEXPORT_H_ +#define ALIBABACLOUD_SGW_SGWEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_SGW_LIBRARY) +# define ALIBABACLOUD_SGW_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_SGW_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_SGW_EXPORT +#endif + +#endif // !ALIBABACLOUD_SGW_SGWEXPORT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/ActivateAllInOneGatewayRequest.h b/sgw/include/alibabacloud/sgw/model/ActivateAllInOneGatewayRequest.h new file mode 100644 index 000000000..c17169241 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/ActivateAllInOneGatewayRequest.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_SGW_MODEL_ACTIVATEALLINONEGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_ACTIVATEALLINONEGATEWAYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT ActivateAllInOneGatewayRequest : public RpcServiceRequest + { + + public: + ActivateAllInOneGatewayRequest(); + ~ActivateAllInOneGatewayRequest(); + + std::string getClientUUID()const; + void setClientUUID(const std::string& clientUUID); + std::string getSerialNumber()const; + void setSerialNumber(const std::string& serialNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getDeviceNumber()const; + void setDeviceNumber(const std::string& deviceNumber); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getModel()const; + void setModel(const std::string& model); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string clientUUID_; + std::string serialNumber_; + std::string accessKeyId_; + std::string deviceNumber_; + std::string securityToken_; + std::string model_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_ACTIVATEALLINONEGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/ActivateAllInOneGatewayResult.h b/sgw/include/alibabacloud/sgw/model/ActivateAllInOneGatewayResult.h new file mode 100644 index 000000000..35850d96f --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/ActivateAllInOneGatewayResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_ACTIVATEALLINONEGATEWAYRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_ACTIVATEALLINONEGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT ActivateAllInOneGatewayResult : public ServiceResult + { + public: + + + ActivateAllInOneGatewayResult(); + explicit ActivateAllInOneGatewayResult(const std::string &payload); + ~ActivateAllInOneGatewayResult(); + std::string getMessage()const; + std::string getRegionId()const; + std::string getGatewayId()const; + std::string getCode()const; + std::string getLicenseContent()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string regionId_; + std::string gatewayId_; + std::string code_; + std::string licenseContent_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_ACTIVATEALLINONEGATEWAYRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/ActivateGatewayRequest.h b/sgw/include/alibabacloud/sgw/model/ActivateGatewayRequest.h new file mode 100644 index 000000000..99b1939e3 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/ActivateGatewayRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_ACTIVATEGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_ACTIVATEGATEWAYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT ActivateGatewayRequest : public RpcServiceRequest + { + + public: + ActivateGatewayRequest(); + ~ActivateGatewayRequest(); + + std::string getClientUUID()const; + void setClientUUID(const std::string& clientUUID); + std::string getSerialNumber()const; + void setSerialNumber(const std::string& serialNumber); + std::string getType()const; + void setType(const std::string& type); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getToken()const; + void setToken(const std::string& token); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getModel()const; + void setModel(const std::string& model); + std::string getCategory()const; + void setCategory(const std::string& category); + + private: + std::string clientUUID_; + std::string serialNumber_; + std::string type_; + std::string accessKeyId_; + std::string token_; + std::string securityToken_; + std::string model_; + std::string category_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_ACTIVATEGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/ActivateGatewayResult.h b/sgw/include/alibabacloud/sgw/model/ActivateGatewayResult.h new file mode 100644 index 000000000..2477c4c8d --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/ActivateGatewayResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_ACTIVATEGATEWAYRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_ACTIVATEGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT ActivateGatewayResult : public ServiceResult + { + public: + + + ActivateGatewayResult(); + explicit ActivateGatewayResult(const std::string &payload); + ~ActivateGatewayResult(); + std::string getMessage()const; + std::string getRegionId()const; + std::string getGatewayId()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string regionId_; + std::string gatewayId_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_ACTIVATEGATEWAYRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/AddSharesToExpressSyncRequest.h b/sgw/include/alibabacloud/sgw/model/AddSharesToExpressSyncRequest.h new file mode 100644 index 000000000..3ffa86f16 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/AddSharesToExpressSyncRequest.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_SGW_MODEL_ADDSHARESTOEXPRESSSYNCREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_ADDSHARESTOEXPRESSSYNCREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT AddSharesToExpressSyncRequest : public RpcServiceRequest + { + + public: + AddSharesToExpressSyncRequest(); + ~AddSharesToExpressSyncRequest(); + + std::string getExpressSyncId()const; + void setExpressSyncId(const std::string& expressSyncId); + std::string getGatewayShares()const; + void setGatewayShares(const std::string& gatewayShares); + std::string getGatewayRegions()const; + void setGatewayRegions(const std::string& gatewayRegions); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + + private: + std::string expressSyncId_; + std::string gatewayShares_; + std::string gatewayRegions_; + std::string accessKeyId_; + std::string securityToken_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_ADDSHARESTOEXPRESSSYNCREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/AddSharesToExpressSyncResult.h b/sgw/include/alibabacloud/sgw/model/AddSharesToExpressSyncResult.h new file mode 100644 index 000000000..ed8c335eb --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/AddSharesToExpressSyncResult.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_SGW_MODEL_ADDSHARESTOEXPRESSSYNCRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_ADDSHARESTOEXPRESSSYNCRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT AddSharesToExpressSyncResult : public ServiceResult + { + public: + + + AddSharesToExpressSyncResult(); + explicit AddSharesToExpressSyncResult(const std::string &payload); + ~AddSharesToExpressSyncResult(); + std::string getTaskId()const; + std::string getMessage()const; + std::string getMnsTopic()const; + std::string getMnsQueues()const; + long getMnsFullSyncDelay()const; + std::string getMnsPublicEndpoint()const; + std::string getCode()const; + std::string getMnsInnerEndpoint()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + std::string message_; + std::string mnsTopic_; + std::string mnsQueues_; + long mnsFullSyncDelay_; + std::string mnsPublicEndpoint_; + std::string code_; + std::string mnsInnerEndpoint_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_ADDSHARESTOEXPRESSSYNCRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/AddTagsToGatewayRequest.h b/sgw/include/alibabacloud/sgw/model/AddTagsToGatewayRequest.h new file mode 100644 index 000000000..f908ef9ed --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/AddTagsToGatewayRequest.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_SGW_MODEL_ADDTAGSTOGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_ADDTAGSTOGATEWAYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT AddTagsToGatewayRequest : public RpcServiceRequest + { + + public: + AddTagsToGatewayRequest(); + ~AddTagsToGatewayRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getTags()const; + void setTags(const std::string& tags); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string accessKeyId_; + std::string tags_; + std::string securityToken_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_ADDTAGSTOGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/AddTagsToGatewayResult.h b/sgw/include/alibabacloud/sgw/model/AddTagsToGatewayResult.h new file mode 100644 index 000000000..7569be302 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/AddTagsToGatewayResult.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_SGW_MODEL_ADDTAGSTOGATEWAYRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_ADDTAGSTOGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT AddTagsToGatewayResult : public ServiceResult + { + public: + + + AddTagsToGatewayResult(); + explicit AddTagsToGatewayResult(const std::string &payload); + ~AddTagsToGatewayResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_ADDTAGSTOGATEWAYRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/CheckActivationKeyRequest.h b/sgw/include/alibabacloud/sgw/model/CheckActivationKeyRequest.h new file mode 100644 index 000000000..dd0a61547 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/CheckActivationKeyRequest.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_SGW_MODEL_CHECKACTIVATIONKEYREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_CHECKACTIVATIONKEYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT CheckActivationKeyRequest : public RpcServiceRequest + { + + public: + CheckActivationKeyRequest(); + ~CheckActivationKeyRequest(); + + std::string getCryptKey()const; + void setCryptKey(const std::string& cryptKey); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getToken()const; + void setToken(const std::string& token); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getCryptText()const; + void setCryptText(const std::string& cryptText); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string cryptKey_; + std::string accessKeyId_; + std::string token_; + std::string securityToken_; + std::string cryptText_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_CHECKACTIVATIONKEYREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/CheckActivationKeyResult.h b/sgw/include/alibabacloud/sgw/model/CheckActivationKeyResult.h new file mode 100644 index 000000000..4e395d751 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/CheckActivationKeyResult.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_SGW_MODEL_CHECKACTIVATIONKEYRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_CHECKACTIVATIONKEYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT CheckActivationKeyResult : public ServiceResult + { + public: + + + CheckActivationKeyResult(); + explicit CheckActivationKeyResult(const std::string &payload); + ~CheckActivationKeyResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_CHECKACTIVATIONKEYRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/CheckBlockVolumeNameRequest.h b/sgw/include/alibabacloud/sgw/model/CheckBlockVolumeNameRequest.h new file mode 100644 index 000000000..f6d941899 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/CheckBlockVolumeNameRequest.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_SGW_MODEL_CHECKBLOCKVOLUMENAMEREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_CHECKBLOCKVOLUMENAMEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT CheckBlockVolumeNameRequest : public RpcServiceRequest + { + + public: + CheckBlockVolumeNameRequest(); + ~CheckBlockVolumeNameRequest(); + + std::string getVolumeName()const; + void setVolumeName(const std::string& volumeName); + std::string getBucketEndpoint()const; + void setBucketEndpoint(const std::string& bucketEndpoint); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getBucketName()const; + void setBucketName(const std::string& bucketName); + + private: + std::string volumeName_; + std::string bucketEndpoint_; + std::string accessKeyId_; + std::string securityToken_; + std::string bucketName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_CHECKBLOCKVOLUMENAMEREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/CheckBlockVolumeNameResult.h b/sgw/include/alibabacloud/sgw/model/CheckBlockVolumeNameResult.h new file mode 100644 index 000000000..934bdad58 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/CheckBlockVolumeNameResult.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_SGW_MODEL_CHECKBLOCKVOLUMENAMERESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_CHECKBLOCKVOLUMENAMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT CheckBlockVolumeNameResult : public ServiceResult + { + public: + + + CheckBlockVolumeNameResult(); + explicit CheckBlockVolumeNameResult(const std::string &payload); + ~CheckBlockVolumeNameResult(); + std::string getIsRequireRecovery()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string isRequireRecovery_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_CHECKBLOCKVOLUMENAMERESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/CheckGatewayEssdSupportRequest.h b/sgw/include/alibabacloud/sgw/model/CheckGatewayEssdSupportRequest.h new file mode 100644 index 000000000..a0ddaa862 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/CheckGatewayEssdSupportRequest.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_SGW_MODEL_CHECKGATEWAYESSDSUPPORTREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_CHECKGATEWAYESSDSUPPORTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT CheckGatewayEssdSupportRequest : public RpcServiceRequest + { + + public: + CheckGatewayEssdSupportRequest(); + ~CheckGatewayEssdSupportRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string accessKeyId_; + std::string securityToken_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_CHECKGATEWAYESSDSUPPORTREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/CheckGatewayEssdSupportResult.h b/sgw/include/alibabacloud/sgw/model/CheckGatewayEssdSupportResult.h new file mode 100644 index 000000000..5a7c02875 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/CheckGatewayEssdSupportResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_CHECKGATEWAYESSDSUPPORTRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_CHECKGATEWAYESSDSUPPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT CheckGatewayEssdSupportResult : public ServiceResult + { + public: + + + CheckGatewayEssdSupportResult(); + explicit CheckGatewayEssdSupportResult(const std::string &payload); + ~CheckGatewayEssdSupportResult(); + bool getIsSupportEssd()const; + std::string getMessage()const; + bool getIsServiceAffect()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + bool isSupportEssd_; + std::string message_; + bool isServiceAffect_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_CHECKGATEWAYESSDSUPPORTRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/CheckMnsServiceRequest.h b/sgw/include/alibabacloud/sgw/model/CheckMnsServiceRequest.h new file mode 100644 index 000000000..a883a6b7b --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/CheckMnsServiceRequest.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_SGW_MODEL_CHECKMNSSERVICEREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_CHECKMNSSERVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT CheckMnsServiceRequest : public RpcServiceRequest + { + + public: + CheckMnsServiceRequest(); + ~CheckMnsServiceRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + + private: + std::string accessKeyId_; + std::string securityToken_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_CHECKMNSSERVICEREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/CheckMnsServiceResult.h b/sgw/include/alibabacloud/sgw/model/CheckMnsServiceResult.h new file mode 100644 index 000000000..c4772d9d3 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/CheckMnsServiceResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_CHECKMNSSERVICERESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_CHECKMNSSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT CheckMnsServiceResult : public ServiceResult + { + public: + + + CheckMnsServiceResult(); + explicit CheckMnsServiceResult(const std::string &payload); + ~CheckMnsServiceResult(); + std::string getMessage()const; + bool getIsEnabled()const; + std::string getCheckMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + bool isEnabled_; + std::string checkMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_CHECKMNSSERVICERESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/CheckRoleRequest.h b/sgw/include/alibabacloud/sgw/model/CheckRoleRequest.h new file mode 100644 index 000000000..5dacadf90 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/CheckRoleRequest.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_SGW_MODEL_CHECKROLEREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_CHECKROLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT CheckRoleRequest : public RpcServiceRequest + { + + public: + CheckRoleRequest(); + ~CheckRoleRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRoleType()const; + void setRoleType(const std::string& roleType); + + private: + std::string accessKeyId_; + std::string securityToken_; + std::string roleType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_CHECKROLEREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/CheckRoleResult.h b/sgw/include/alibabacloud/sgw/model/CheckRoleResult.h new file mode 100644 index 000000000..2b1cf6676 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/CheckRoleResult.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_SGW_MODEL_CHECKROLERESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_CHECKROLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT CheckRoleResult : public ServiceResult + { + public: + + + CheckRoleResult(); + explicit CheckRoleResult(const std::string &payload); + ~CheckRoleResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_CHECKROLERESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/CheckSlrRoleRequest.h b/sgw/include/alibabacloud/sgw/model/CheckSlrRoleRequest.h new file mode 100644 index 000000000..3ec78334a --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/CheckSlrRoleRequest.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_SGW_MODEL_CHECKSLRROLEREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_CHECKSLRROLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT CheckSlrRoleRequest : public RpcServiceRequest + { + + public: + CheckSlrRoleRequest(); + ~CheckSlrRoleRequest(); + + std::string getRoleName()const; + void setRoleName(const std::string& roleName); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getCreateIfNotExist()const; + void setCreateIfNotExist(bool createIfNotExist); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + + private: + std::string roleName_; + std::string accessKeyId_; + bool createIfNotExist_; + std::string securityToken_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_CHECKSLRROLEREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/CheckSlrRoleResult.h b/sgw/include/alibabacloud/sgw/model/CheckSlrRoleResult.h new file mode 100644 index 000000000..c11be4f79 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/CheckSlrRoleResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_CHECKSLRROLERESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_CHECKSLRROLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT CheckSlrRoleResult : public ServiceResult + { + public: + + + CheckSlrRoleResult(); + explicit CheckSlrRoleResult(const std::string &payload); + ~CheckSlrRoleResult(); + bool getExist()const; + bool getRequireOldWayCheck()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + bool exist_; + bool requireOldWayCheck_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_CHECKSLRROLERESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/CheckUpgradeVersionRequest.h b/sgw/include/alibabacloud/sgw/model/CheckUpgradeVersionRequest.h new file mode 100644 index 000000000..7afc0d002 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/CheckUpgradeVersionRequest.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_SGW_MODEL_CHECKUPGRADEVERSIONREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_CHECKUPGRADEVERSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT CheckUpgradeVersionRequest : public RpcServiceRequest + { + + public: + CheckUpgradeVersionRequest(); + ~CheckUpgradeVersionRequest(); + + std::string getClientUUID()const; + void setClientUUID(const std::string& clientUUID); + std::string getGatewayVersion()const; + void setGatewayVersion(const std::string& gatewayVersion); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string clientUUID_; + std::string gatewayVersion_; + std::string accessKeyId_; + std::string securityToken_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_CHECKUPGRADEVERSIONREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/CheckUpgradeVersionResult.h b/sgw/include/alibabacloud/sgw/model/CheckUpgradeVersionResult.h new file mode 100644 index 000000000..68b284e0e --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/CheckUpgradeVersionResult.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_SGW_MODEL_CHECKUPGRADEVERSIONRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_CHECKUPGRADEVERSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT CheckUpgradeVersionResult : public ServiceResult + { + public: + struct Patch + { + std::string internalUrl; + std::string url; + std::string name; + std::string mD5; + }; + + + CheckUpgradeVersionResult(); + explicit CheckUpgradeVersionResult(const std::string &payload); + ~CheckUpgradeVersionResult(); + std::string getMessage()const; + std::string getLatestVersion()const; + std::string getOption()const; + std::string getCode()const; + bool getSuccess()const; + std::vector getPatches()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string latestVersion_; + std::string option_; + std::string code_; + bool success_; + std::vector patches_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_CHECKUPGRADEVERSIONRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/CreateCacheRequest.h b/sgw/include/alibabacloud/sgw/model/CreateCacheRequest.h new file mode 100644 index 000000000..9a05c58ba --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/CreateCacheRequest.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_SGW_MODEL_CREATECACHEREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_CREATECACHEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT CreateCacheRequest : public RpcServiceRequest + { + + public: + CreateCacheRequest(); + ~CreateCacheRequest(); + + long getSizeInGB()const; + void setSizeInGB(long sizeInGB); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getCategory()const; + void setCategory(const std::string& category); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + long sizeInGB_; + std::string accessKeyId_; + std::string securityToken_; + std::string category_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_CREATECACHEREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/CreateCacheResult.h b/sgw/include/alibabacloud/sgw/model/CreateCacheResult.h new file mode 100644 index 000000000..fc341dd78 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/CreateCacheResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_CREATECACHERESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_CREATECACHERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT CreateCacheResult : public ServiceResult + { + public: + + + CreateCacheResult(); + explicit CreateCacheResult(const std::string &payload); + ~CreateCacheResult(); + std::string getBuyURL()const; + std::string getMessage()const; + std::string getCacheId()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string buyURL_; + std::string message_; + std::string cacheId_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_CREATECACHERESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/CreateExpressSyncRequest.h b/sgw/include/alibabacloud/sgw/model/CreateExpressSyncRequest.h new file mode 100644 index 000000000..3bffd379a --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/CreateExpressSyncRequest.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_SGW_MODEL_CREATEEXPRESSSYNCREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_CREATEEXPRESSSYNCREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT CreateExpressSyncRequest : public RpcServiceRequest + { + + public: + CreateExpressSyncRequest(); + ~CreateExpressSyncRequest(); + + std::string getBucketRegion()const; + void setBucketRegion(const std::string& bucketRegion); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getBucketName()const; + void setBucketName(const std::string& bucketName); + std::string getName()const; + void setName(const std::string& name); + std::string getBucketPrefix()const; + void setBucketPrefix(const std::string& bucketPrefix); + + private: + std::string bucketRegion_; + std::string description_; + std::string accessKeyId_; + std::string securityToken_; + std::string bucketName_; + std::string name_; + std::string bucketPrefix_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_CREATEEXPRESSSYNCREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/CreateExpressSyncResult.h b/sgw/include/alibabacloud/sgw/model/CreateExpressSyncResult.h new file mode 100644 index 000000000..55b30a0c8 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/CreateExpressSyncResult.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_SGW_MODEL_CREATEEXPRESSSYNCRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_CREATEEXPRESSSYNCRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT CreateExpressSyncResult : public ServiceResult + { + public: + + + CreateExpressSyncResult(); + explicit CreateExpressSyncResult(const std::string &payload); + ~CreateExpressSyncResult(); + std::string getMessage()const; + std::string getCode()const; + std::string getExpressSyncId()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + std::string expressSyncId_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_CREATEEXPRESSSYNCRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/CreateGatewayBlockVolumeRequest.h b/sgw/include/alibabacloud/sgw/model/CreateGatewayBlockVolumeRequest.h new file mode 100644 index 000000000..0958db3fd --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/CreateGatewayBlockVolumeRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_CREATEGATEWAYBLOCKVOLUMEREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_CREATEGATEWAYBLOCKVOLUMEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT CreateGatewayBlockVolumeRequest : public RpcServiceRequest + { + + public: + CreateGatewayBlockVolumeRequest(); + ~CreateGatewayBlockVolumeRequest(); + + std::string getOssEndpoint()const; + void setOssEndpoint(const std::string& ossEndpoint); + bool getRecovery()const; + void setRecovery(bool recovery); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + int getChunkSize()const; + void setChunkSize(int chunkSize); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + std::string getVolumeProtocol()const; + void setVolumeProtocol(const std::string& volumeProtocol); + bool getChapEnabled()const; + void setChapEnabled(bool chapEnabled); + std::string getCacheMode()const; + void setCacheMode(const std::string& cacheMode); + std::string getLocalFilePath()const; + void setLocalFilePath(const std::string& localFilePath); + bool getOssBucketSsl()const; + void setOssBucketSsl(bool ossBucketSsl); + long getSize()const; + void setSize(long size); + std::string getChapInUser()const; + void setChapInUser(const std::string& chapInUser); + std::string getName()const; + void setName(const std::string& name); + std::string getOssBucketName()const; + void setOssBucketName(const std::string& ossBucketName); + std::string getChapInPassword()const; + void setChapInPassword(const std::string& chapInPassword); + + private: + std::string ossEndpoint_; + bool recovery_; + std::string accessKeyId_; + std::string securityToken_; + int chunkSize_; + std::string gatewayId_; + std::string volumeProtocol_; + bool chapEnabled_; + std::string cacheMode_; + std::string localFilePath_; + bool ossBucketSsl_; + long size_; + std::string chapInUser_; + std::string name_; + std::string ossBucketName_; + std::string chapInPassword_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_CREATEGATEWAYBLOCKVOLUMEREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/CreateGatewayBlockVolumeResult.h b/sgw/include/alibabacloud/sgw/model/CreateGatewayBlockVolumeResult.h new file mode 100644 index 000000000..f1c0afeec --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/CreateGatewayBlockVolumeResult.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_SGW_MODEL_CREATEGATEWAYBLOCKVOLUMERESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_CREATEGATEWAYBLOCKVOLUMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT CreateGatewayBlockVolumeResult : public ServiceResult + { + public: + + + CreateGatewayBlockVolumeResult(); + explicit CreateGatewayBlockVolumeResult(const std::string &payload); + ~CreateGatewayBlockVolumeResult(); + std::string getTaskId()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_CREATEGATEWAYBLOCKVOLUMERESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/CreateGatewayCacheDiskRequest.h b/sgw/include/alibabacloud/sgw/model/CreateGatewayCacheDiskRequest.h new file mode 100644 index 000000000..f423d9e93 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/CreateGatewayCacheDiskRequest.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_SGW_MODEL_CREATEGATEWAYCACHEDISKREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_CREATEGATEWAYCACHEDISKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT CreateGatewayCacheDiskRequest : public RpcServiceRequest + { + + public: + CreateGatewayCacheDiskRequest(); + ~CreateGatewayCacheDiskRequest(); + + long getCacheDiskSizeInGB()const; + void setCacheDiskSizeInGB(long cacheDiskSizeInGB); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getCacheDiskCategory()const; + void setCacheDiskCategory(const std::string& cacheDiskCategory); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + long cacheDiskSizeInGB_; + std::string accessKeyId_; + std::string securityToken_; + std::string cacheDiskCategory_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_CREATEGATEWAYCACHEDISKREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/CreateGatewayCacheDiskResult.h b/sgw/include/alibabacloud/sgw/model/CreateGatewayCacheDiskResult.h new file mode 100644 index 000000000..aee8d8e98 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/CreateGatewayCacheDiskResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_CREATEGATEWAYCACHEDISKRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_CREATEGATEWAYCACHEDISKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT CreateGatewayCacheDiskResult : public ServiceResult + { + public: + + + CreateGatewayCacheDiskResult(); + explicit CreateGatewayCacheDiskResult(const std::string &payload); + ~CreateGatewayCacheDiskResult(); + std::string getBuyURL()const; + std::string getTaskId()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string buyURL_; + std::string taskId_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_CREATEGATEWAYCACHEDISKRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/CreateGatewayFileShareRequest.h b/sgw/include/alibabacloud/sgw/model/CreateGatewayFileShareRequest.h new file mode 100644 index 000000000..e04f2ec1c --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/CreateGatewayFileShareRequest.h @@ -0,0 +1,165 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_SGW_MODEL_CREATEGATEWAYFILESHAREREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_CREATEGATEWAYFILESHAREREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT CreateGatewayFileShareRequest : public RpcServiceRequest + { + + public: + CreateGatewayFileShareRequest(); + ~CreateGatewayFileShareRequest(); + + bool getInPlace()const; + void setInPlace(bool inPlace); + std::string getOssEndpoint()const; + void setOssEndpoint(const std::string& ossEndpoint); + std::string getReadWriteClientList()const; + void setReadWriteClientList(const std::string& readWriteClientList); + int getBackendLimit()const; + void setBackendLimit(int backendLimit); + std::string getSquash()const; + void setSquash(const std::string& squash); + std::string getReadOnlyClientList()const; + void setReadOnlyClientList(const std::string& readOnlyClientList); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + long getKmsRotatePeriod()const; + void setKmsRotatePeriod(long kmsRotatePeriod); + bool getRemoteSyncDownload()const; + void setRemoteSyncDownload(bool remoteSyncDownload); + std::string getShareProtocol()const; + void setShareProtocol(const std::string& shareProtocol); + bool getNfsV4Optimization()const; + void setNfsV4Optimization(bool nfsV4Optimization); + bool getAccessBasedEnumeration()const; + void setAccessBasedEnumeration(bool accessBasedEnumeration); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + bool getSupportArchive()const; + void setSupportArchive(bool supportArchive); + std::string getCacheMode()const; + void setCacheMode(const std::string& cacheMode); + std::string getLocalFilePath()const; + void setLocalFilePath(const std::string& localFilePath); + std::string getPartialSyncPaths()const; + void setPartialSyncPaths(const std::string& partialSyncPaths); + int getDownloadLimit()const; + void setDownloadLimit(int downloadLimit); + std::string getReadOnlyUserList()const; + void setReadOnlyUserList(const std::string& readOnlyUserList); + bool getFastReclaim()const; + void setFastReclaim(bool fastReclaim); + bool getWindowsAcl()const; + void setWindowsAcl(bool windowsAcl); + std::string getName()const; + void setName(const std::string& name); + std::string getOssBucketName()const; + void setOssBucketName(const std::string& ossBucketName); + bool getTransferAcceleration()const; + void setTransferAcceleration(bool transferAcceleration); + std::string getClientSideCmk()const; + void setClientSideCmk(const std::string& clientSideCmk); + std::string getPathPrefix()const; + void setPathPrefix(const std::string& pathPrefix); + bool getBrowsable()const; + void setBrowsable(bool browsable); + std::string getReadWriteUserList()const; + void setReadWriteUserList(const std::string& readWriteUserList); + int getPollingInterval()const; + void setPollingInterval(int pollingInterval); + bool getEnabled()const; + void setEnabled(bool enabled); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getServerSideCmk()const; + void setServerSideCmk(const std::string& serverSideCmk); + bool getServerSideEncryption()const; + void setServerSideEncryption(bool serverSideEncryption); + bool getIgnoreDelete()const; + void setIgnoreDelete(bool ignoreDelete); + long getLagPeriod()const; + void setLagPeriod(long lagPeriod); + bool getDirectIO()const; + void setDirectIO(bool directIO); + bool getClientSideEncryption()const; + void setClientSideEncryption(bool clientSideEncryption); + bool getOssBucketSsl()const; + void setOssBucketSsl(bool ossBucketSsl); + bool getRemoteSync()const; + void setRemoteSync(bool remoteSync); + int getFrontendLimit()const; + void setFrontendLimit(int frontendLimit); + + private: + bool inPlace_; + std::string ossEndpoint_; + std::string readWriteClientList_; + int backendLimit_; + std::string squash_; + std::string readOnlyClientList_; + std::string securityToken_; + long kmsRotatePeriod_; + bool remoteSyncDownload_; + std::string shareProtocol_; + bool nfsV4Optimization_; + bool accessBasedEnumeration_; + std::string gatewayId_; + bool supportArchive_; + std::string cacheMode_; + std::string localFilePath_; + std::string partialSyncPaths_; + int downloadLimit_; + std::string readOnlyUserList_; + bool fastReclaim_; + bool windowsAcl_; + std::string name_; + std::string ossBucketName_; + bool transferAcceleration_; + std::string clientSideCmk_; + std::string pathPrefix_; + bool browsable_; + std::string readWriteUserList_; + int pollingInterval_; + bool enabled_; + std::string accessKeyId_; + std::string serverSideCmk_; + bool serverSideEncryption_; + bool ignoreDelete_; + long lagPeriod_; + bool directIO_; + bool clientSideEncryption_; + bool ossBucketSsl_; + bool remoteSync_; + int frontendLimit_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_CREATEGATEWAYFILESHAREREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/CreateGatewayFileShareResult.h b/sgw/include/alibabacloud/sgw/model/CreateGatewayFileShareResult.h new file mode 100644 index 000000000..e488e337b --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/CreateGatewayFileShareResult.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_SGW_MODEL_CREATEGATEWAYFILESHARERESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_CREATEGATEWAYFILESHARERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT CreateGatewayFileShareResult : public ServiceResult + { + public: + + + CreateGatewayFileShareResult(); + explicit CreateGatewayFileShareResult(const std::string &payload); + ~CreateGatewayFileShareResult(); + std::string getTaskId()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_CREATEGATEWAYFILESHARERESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/CreateGatewayLoggingRequest.h b/sgw/include/alibabacloud/sgw/model/CreateGatewayLoggingRequest.h new file mode 100644 index 000000000..e0dc62cc2 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/CreateGatewayLoggingRequest.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_SGW_MODEL_CREATEGATEWAYLOGGINGREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_CREATEGATEWAYLOGGINGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT CreateGatewayLoggingRequest : public RpcServiceRequest + { + + public: + CreateGatewayLoggingRequest(); + ~CreateGatewayLoggingRequest(); + + std::string getSlsLogstore()const; + void setSlsLogstore(const std::string& slsLogstore); + std::string getSlsProject()const; + void setSlsProject(const std::string& slsProject); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string slsLogstore_; + std::string slsProject_; + std::string accessKeyId_; + std::string securityToken_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_CREATEGATEWAYLOGGINGREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/CreateGatewayLoggingResult.h b/sgw/include/alibabacloud/sgw/model/CreateGatewayLoggingResult.h new file mode 100644 index 000000000..3b0abbbb7 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/CreateGatewayLoggingResult.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_SGW_MODEL_CREATEGATEWAYLOGGINGRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_CREATEGATEWAYLOGGINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT CreateGatewayLoggingResult : public ServiceResult + { + public: + + + CreateGatewayLoggingResult(); + explicit CreateGatewayLoggingResult(const std::string &payload); + ~CreateGatewayLoggingResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_CREATEGATEWAYLOGGINGRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/CreateGatewayRequest.h b/sgw/include/alibabacloud/sgw/model/CreateGatewayRequest.h new file mode 100644 index 000000000..54f474d43 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/CreateGatewayRequest.h @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_CREATEGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_CREATEGATEWAYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT CreateGatewayRequest : public RpcServiceRequest + { + + public: + CreateGatewayRequest(); + ~CreateGatewayRequest(); + + std::string getGatewayClass()const; + void setGatewayClass(const std::string& gatewayClass); + std::string getGatewayVersion()const; + void setGatewayVersion(const std::string& gatewayVersion); + long getInitCacheSize()const; + void setInitCacheSize(long initCacheSize); + bool getPostPaid()const; + void setPostPaid(bool postPaid); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getType()const; + void setType(const std::string& type); + bool getReleaseAfterExpiration()const; + void setReleaseAfterExpiration(bool releaseAfterExpiration); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getStorageBundleId()const; + void setStorageBundleId(const std::string& storageBundleId); + std::string getInitCacheConfig()const; + void setInitCacheConfig(const std::string& initCacheConfig); + std::string getInitCacheCategory()const; + void setInitCacheCategory(const std::string& initCacheCategory); + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + std::string getName()const; + void setName(const std::string& name); + std::string getLocation()const; + void setLocation(const std::string& location); + std::string getCategory()const; + void setCategory(const std::string& category); + int getPublicNetworkBandwidth()const; + void setPublicNetworkBandwidth(int publicNetworkBandwidth); + + private: + std::string gatewayClass_; + std::string gatewayVersion_; + long initCacheSize_; + bool postPaid_; + std::string description_; + std::string type_; + bool releaseAfterExpiration_; + std::string accessKeyId_; + std::string securityToken_; + std::string storageBundleId_; + std::string initCacheConfig_; + std::string initCacheCategory_; + std::string vSwitchId_; + std::string name_; + std::string location_; + std::string category_; + int publicNetworkBandwidth_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_CREATEGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/CreateGatewayResult.h b/sgw/include/alibabacloud/sgw/model/CreateGatewayResult.h new file mode 100644 index 000000000..01bb53c31 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/CreateGatewayResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_CREATEGATEWAYRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_CREATEGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT CreateGatewayResult : public ServiceResult + { + public: + + + CreateGatewayResult(); + explicit CreateGatewayResult(const std::string &payload); + ~CreateGatewayResult(); + std::string getBuyURL()const; + std::string getMessage()const; + std::string getGatewayId()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string buyURL_; + std::string message_; + std::string gatewayId_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_CREATEGATEWAYRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/CreateGatewaySMBUserRequest.h b/sgw/include/alibabacloud/sgw/model/CreateGatewaySMBUserRequest.h new file mode 100644 index 000000000..a13ebe58b --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/CreateGatewaySMBUserRequest.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_SGW_MODEL_CREATEGATEWAYSMBUSERREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_CREATEGATEWAYSMBUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT CreateGatewaySMBUserRequest : public RpcServiceRequest + { + + public: + CreateGatewaySMBUserRequest(); + ~CreateGatewaySMBUserRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getPassword()const; + void setPassword(const std::string& password); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + std::string getUsername()const; + void setUsername(const std::string& username); + + private: + std::string accessKeyId_; + std::string password_; + std::string securityToken_; + std::string gatewayId_; + std::string username_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_CREATEGATEWAYSMBUSERREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/CreateGatewaySMBUserResult.h b/sgw/include/alibabacloud/sgw/model/CreateGatewaySMBUserResult.h new file mode 100644 index 000000000..b56c7b0a9 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/CreateGatewaySMBUserResult.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_SGW_MODEL_CREATEGATEWAYSMBUSERRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_CREATEGATEWAYSMBUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT CreateGatewaySMBUserResult : public ServiceResult + { + public: + + + CreateGatewaySMBUserResult(); + explicit CreateGatewaySMBUserResult(const std::string &payload); + ~CreateGatewaySMBUserResult(); + std::string getTaskId()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_CREATEGATEWAYSMBUSERRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/CreateStorageBundleRequest.h b/sgw/include/alibabacloud/sgw/model/CreateStorageBundleRequest.h new file mode 100644 index 000000000..afaebf6d4 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/CreateStorageBundleRequest.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_SGW_MODEL_CREATESTORAGEBUNDLEREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_CREATESTORAGEBUNDLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT CreateStorageBundleRequest : public RpcServiceRequest + { + + public: + CreateStorageBundleRequest(); + ~CreateStorageBundleRequest(); + + std::string getBackendBucketRegionId()const; + void setBackendBucketRegionId(const std::string& backendBucketRegionId); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getName()const; + void setName(const std::string& name); + std::string getLocation()const; + void setLocation(const std::string& location); + + private: + std::string backendBucketRegionId_; + std::string description_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string securityToken_; + std::string name_; + std::string location_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_CREATESTORAGEBUNDLEREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/CreateStorageBundleResult.h b/sgw/include/alibabacloud/sgw/model/CreateStorageBundleResult.h new file mode 100644 index 000000000..e10190b30 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/CreateStorageBundleResult.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_SGW_MODEL_CREATESTORAGEBUNDLERESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_CREATESTORAGEBUNDLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT CreateStorageBundleResult : public ServiceResult + { + public: + + + CreateStorageBundleResult(); + explicit CreateStorageBundleResult(const std::string &payload); + ~CreateStorageBundleResult(); + std::string getMessage()const; + std::string getStorageBundleId()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string storageBundleId_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_CREATESTORAGEBUNDLERESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DeleteExpressSyncRequest.h b/sgw/include/alibabacloud/sgw/model/DeleteExpressSyncRequest.h new file mode 100644 index 000000000..38cb1118b --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DeleteExpressSyncRequest.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_SGW_MODEL_DELETEEXPRESSSYNCREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DELETEEXPRESSSYNCREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DeleteExpressSyncRequest : public RpcServiceRequest + { + + public: + DeleteExpressSyncRequest(); + ~DeleteExpressSyncRequest(); + + std::string getExpressSyncId()const; + void setExpressSyncId(const std::string& expressSyncId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + + private: + std::string expressSyncId_; + std::string accessKeyId_; + std::string securityToken_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DELETEEXPRESSSYNCREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DeleteExpressSyncResult.h b/sgw/include/alibabacloud/sgw/model/DeleteExpressSyncResult.h new file mode 100644 index 000000000..a0b89856f --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DeleteExpressSyncResult.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_SGW_MODEL_DELETEEXPRESSSYNCRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DELETEEXPRESSSYNCRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DeleteExpressSyncResult : public ServiceResult + { + public: + + + DeleteExpressSyncResult(); + explicit DeleteExpressSyncResult(const std::string &payload); + ~DeleteExpressSyncResult(); + std::string getTaskId()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DELETEEXPRESSSYNCRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DeleteGatewayBlockVolumesRequest.h b/sgw/include/alibabacloud/sgw/model/DeleteGatewayBlockVolumesRequest.h new file mode 100644 index 000000000..d872e8882 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DeleteGatewayBlockVolumesRequest.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_SGW_MODEL_DELETEGATEWAYBLOCKVOLUMESREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DELETEGATEWAYBLOCKVOLUMESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DeleteGatewayBlockVolumesRequest : public RpcServiceRequest + { + + public: + DeleteGatewayBlockVolumesRequest(); + ~DeleteGatewayBlockVolumesRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getIsSourceDeletion()const; + void setIsSourceDeletion(bool isSourceDeletion); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getIndexId()const; + void setIndexId(const std::string& indexId); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string accessKeyId_; + bool isSourceDeletion_; + std::string securityToken_; + std::string indexId_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DELETEGATEWAYBLOCKVOLUMESREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DeleteGatewayBlockVolumesResult.h b/sgw/include/alibabacloud/sgw/model/DeleteGatewayBlockVolumesResult.h new file mode 100644 index 000000000..56e93da88 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DeleteGatewayBlockVolumesResult.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_SGW_MODEL_DELETEGATEWAYBLOCKVOLUMESRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DELETEGATEWAYBLOCKVOLUMESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DeleteGatewayBlockVolumesResult : public ServiceResult + { + public: + + + DeleteGatewayBlockVolumesResult(); + explicit DeleteGatewayBlockVolumesResult(const std::string &payload); + ~DeleteGatewayBlockVolumesResult(); + std::string getTaskId()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DELETEGATEWAYBLOCKVOLUMESRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DeleteGatewayCacheDiskRequest.h b/sgw/include/alibabacloud/sgw/model/DeleteGatewayCacheDiskRequest.h new file mode 100644 index 000000000..90304821e --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DeleteGatewayCacheDiskRequest.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_SGW_MODEL_DELETEGATEWAYCACHEDISKREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DELETEGATEWAYCACHEDISKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DeleteGatewayCacheDiskRequest : public RpcServiceRequest + { + + public: + DeleteGatewayCacheDiskRequest(); + ~DeleteGatewayCacheDiskRequest(); + + std::string getLocalFilePath()const; + void setLocalFilePath(const std::string& localFilePath); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getCacheId()const; + void setCacheId(const std::string& cacheId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string localFilePath_; + std::string accessKeyId_; + std::string cacheId_; + std::string securityToken_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DELETEGATEWAYCACHEDISKREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DeleteGatewayCacheDiskResult.h b/sgw/include/alibabacloud/sgw/model/DeleteGatewayCacheDiskResult.h new file mode 100644 index 000000000..8271dd920 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DeleteGatewayCacheDiskResult.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_SGW_MODEL_DELETEGATEWAYCACHEDISKRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DELETEGATEWAYCACHEDISKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DeleteGatewayCacheDiskResult : public ServiceResult + { + public: + + + DeleteGatewayCacheDiskResult(); + explicit DeleteGatewayCacheDiskResult(const std::string &payload); + ~DeleteGatewayCacheDiskResult(); + std::string getTaskId()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DELETEGATEWAYCACHEDISKRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DeleteGatewayFileSharesRequest.h b/sgw/include/alibabacloud/sgw/model/DeleteGatewayFileSharesRequest.h new file mode 100644 index 000000000..1d8ca7706 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DeleteGatewayFileSharesRequest.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_SGW_MODEL_DELETEGATEWAYFILESHARESREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DELETEGATEWAYFILESHARESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DeleteGatewayFileSharesRequest : public RpcServiceRequest + { + + public: + DeleteGatewayFileSharesRequest(); + ~DeleteGatewayFileSharesRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getIndexId()const; + void setIndexId(const std::string& indexId); + bool getForce()const; + void setForce(bool force); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string accessKeyId_; + std::string securityToken_; + std::string indexId_; + bool force_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DELETEGATEWAYFILESHARESREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DeleteGatewayFileSharesResult.h b/sgw/include/alibabacloud/sgw/model/DeleteGatewayFileSharesResult.h new file mode 100644 index 000000000..3727381bd --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DeleteGatewayFileSharesResult.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_SGW_MODEL_DELETEGATEWAYFILESHARESRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DELETEGATEWAYFILESHARESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DeleteGatewayFileSharesResult : public ServiceResult + { + public: + + + DeleteGatewayFileSharesResult(); + explicit DeleteGatewayFileSharesResult(const std::string &payload); + ~DeleteGatewayFileSharesResult(); + std::string getTaskId()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DELETEGATEWAYFILESHARESRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DeleteGatewayLoggingRequest.h b/sgw/include/alibabacloud/sgw/model/DeleteGatewayLoggingRequest.h new file mode 100644 index 000000000..ccb27df45 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DeleteGatewayLoggingRequest.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_SGW_MODEL_DELETEGATEWAYLOGGINGREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DELETEGATEWAYLOGGINGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DeleteGatewayLoggingRequest : public RpcServiceRequest + { + + public: + DeleteGatewayLoggingRequest(); + ~DeleteGatewayLoggingRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string accessKeyId_; + std::string securityToken_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DELETEGATEWAYLOGGINGREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DeleteGatewayLoggingResult.h b/sgw/include/alibabacloud/sgw/model/DeleteGatewayLoggingResult.h new file mode 100644 index 000000000..1c22cc64a --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DeleteGatewayLoggingResult.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_SGW_MODEL_DELETEGATEWAYLOGGINGRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DELETEGATEWAYLOGGINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DeleteGatewayLoggingResult : public ServiceResult + { + public: + + + DeleteGatewayLoggingResult(); + explicit DeleteGatewayLoggingResult(const std::string &payload); + ~DeleteGatewayLoggingResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DELETEGATEWAYLOGGINGRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DeleteGatewayRequest.h b/sgw/include/alibabacloud/sgw/model/DeleteGatewayRequest.h new file mode 100644 index 000000000..1bab0bc5e --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DeleteGatewayRequest.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_SGW_MODEL_DELETEGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DELETEGATEWAYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DeleteGatewayRequest : public RpcServiceRequest + { + + public: + DeleteGatewayRequest(); + ~DeleteGatewayRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string accessKeyId_; + std::string securityToken_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DELETEGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DeleteGatewayResult.h b/sgw/include/alibabacloud/sgw/model/DeleteGatewayResult.h new file mode 100644 index 000000000..fa86e9745 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DeleteGatewayResult.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_SGW_MODEL_DELETEGATEWAYRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DELETEGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DeleteGatewayResult : public ServiceResult + { + public: + + + DeleteGatewayResult(); + explicit DeleteGatewayResult(const std::string &payload); + ~DeleteGatewayResult(); + std::string getTaskId()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DELETEGATEWAYRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DeleteGatewaySMBUserRequest.h b/sgw/include/alibabacloud/sgw/model/DeleteGatewaySMBUserRequest.h new file mode 100644 index 000000000..d7fecd410 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DeleteGatewaySMBUserRequest.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_SGW_MODEL_DELETEGATEWAYSMBUSERREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DELETEGATEWAYSMBUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DeleteGatewaySMBUserRequest : public RpcServiceRequest + { + + public: + DeleteGatewaySMBUserRequest(); + ~DeleteGatewaySMBUserRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + std::string getUsername()const; + void setUsername(const std::string& username); + + private: + std::string accessKeyId_; + std::string securityToken_; + std::string gatewayId_; + std::string username_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DELETEGATEWAYSMBUSERREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DeleteGatewaySMBUserResult.h b/sgw/include/alibabacloud/sgw/model/DeleteGatewaySMBUserResult.h new file mode 100644 index 000000000..6a7e32e73 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DeleteGatewaySMBUserResult.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_SGW_MODEL_DELETEGATEWAYSMBUSERRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DELETEGATEWAYSMBUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DeleteGatewaySMBUserResult : public ServiceResult + { + public: + + + DeleteGatewaySMBUserResult(); + explicit DeleteGatewaySMBUserResult(const std::string &payload); + ~DeleteGatewaySMBUserResult(); + std::string getTaskId()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DELETEGATEWAYSMBUSERRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DeleteStorageBundleRequest.h b/sgw/include/alibabacloud/sgw/model/DeleteStorageBundleRequest.h new file mode 100644 index 000000000..3e26caf2a --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DeleteStorageBundleRequest.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_SGW_MODEL_DELETESTORAGEBUNDLEREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DELETESTORAGEBUNDLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DeleteStorageBundleRequest : public RpcServiceRequest + { + + public: + DeleteStorageBundleRequest(); + ~DeleteStorageBundleRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getStorageBundleId()const; + void setStorageBundleId(const std::string& storageBundleId); + + private: + std::string accessKeyId_; + std::string securityToken_; + std::string storageBundleId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DELETESTORAGEBUNDLEREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DeleteStorageBundleResult.h b/sgw/include/alibabacloud/sgw/model/DeleteStorageBundleResult.h new file mode 100644 index 000000000..c35d6ab8b --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DeleteStorageBundleResult.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_SGW_MODEL_DELETESTORAGEBUNDLERESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DELETESTORAGEBUNDLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DeleteStorageBundleResult : public ServiceResult + { + public: + + + DeleteStorageBundleResult(); + explicit DeleteStorageBundleResult(const std::string &payload); + ~DeleteStorageBundleResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DELETESTORAGEBUNDLERESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DeployCacheDiskRequest.h b/sgw/include/alibabacloud/sgw/model/DeployCacheDiskRequest.h new file mode 100644 index 000000000..385c907b7 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DeployCacheDiskRequest.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_SGW_MODEL_DEPLOYCACHEDISKREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DEPLOYCACHEDISKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DeployCacheDiskRequest : public RpcServiceRequest + { + + public: + DeployCacheDiskRequest(); + ~DeployCacheDiskRequest(); + + int getSizeInGB()const; + void setSizeInGB(int sizeInGB); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getCacheConfig()const; + void setCacheConfig(const std::string& cacheConfig); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getDiskCategory()const; + void setDiskCategory(const std::string& diskCategory); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + int sizeInGB_; + std::string accessKeyId_; + std::string cacheConfig_; + std::string securityToken_; + std::string diskCategory_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DEPLOYCACHEDISKREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DeployCacheDiskResult.h b/sgw/include/alibabacloud/sgw/model/DeployCacheDiskResult.h new file mode 100644 index 000000000..ff8fcffbd --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DeployCacheDiskResult.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_SGW_MODEL_DEPLOYCACHEDISKRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DEPLOYCACHEDISKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DeployCacheDiskResult : public ServiceResult + { + public: + + + DeployCacheDiskResult(); + explicit DeployCacheDiskResult(const std::string &payload); + ~DeployCacheDiskResult(); + std::string getTaskId()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DEPLOYCACHEDISKRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DeployGatewayRequest.h b/sgw/include/alibabacloud/sgw/model/DeployGatewayRequest.h new file mode 100644 index 000000000..1f02561f6 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DeployGatewayRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_DEPLOYGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DEPLOYGATEWAYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DeployGatewayRequest : public RpcServiceRequest + { + public: + struct DataDisk + { + int size; + std::string category; + std::string cacheConfig; + }; + + public: + DeployGatewayRequest(); + ~DeployGatewayRequest(); + + std::string getGatewayClass()const; + void setGatewayClass(const std::string& gatewayClass); + std::string getGatewayVersion()const; + void setGatewayVersion(const std::string& gatewayVersion); + std::vector getDataDisk()const; + void setDataDisk(const std::vector& dataDisk); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string gatewayClass_; + std::string gatewayVersion_; + std::vector dataDisk_; + std::string accessKeyId_; + std::string vSwitchId_; + std::string securityToken_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DEPLOYGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DeployGatewayResult.h b/sgw/include/alibabacloud/sgw/model/DeployGatewayResult.h new file mode 100644 index 000000000..bca0ca0da --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DeployGatewayResult.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_SGW_MODEL_DEPLOYGATEWAYRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DEPLOYGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DeployGatewayResult : public ServiceResult + { + public: + + + DeployGatewayResult(); + explicit DeployGatewayResult(const std::string &payload); + ~DeployGatewayResult(); + std::string getTaskId()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DEPLOYGATEWAYRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeAccountConfigRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeAccountConfigRequest.h new file mode 100644 index 000000000..f105d3bd0 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeAccountConfigRequest.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_SGW_MODEL_DESCRIBEACCOUNTCONFIGREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEACCOUNTCONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeAccountConfigRequest : public RpcServiceRequest + { + + public: + DescribeAccountConfigRequest(); + ~DescribeAccountConfigRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string accessKeyId_; + std::string securityToken_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEACCOUNTCONFIGREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeAccountConfigResult.h b/sgw/include/alibabacloud/sgw/model/DescribeAccountConfigResult.h new file mode 100644 index 000000000..cb9ca48a6 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeAccountConfigResult.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_SGW_MODEL_DESCRIBEACCOUNTCONFIGRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEACCOUNTCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeAccountConfigResult : public ServiceResult + { + public: + + + DescribeAccountConfigResult(); + explicit DescribeAccountConfigResult(const std::string &payload); + ~DescribeAccountConfigResult(); + std::string getMessage()const; + bool getIsSupportServerSideEncryption()const; + bool getIsSupportClientSideEncryption()const; + std::string getCode()const; + bool getIsSupportGatewayLogging()const; + bool getSuccess()const; + bool getIsSupportElasticGatewayBeta()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + bool isSupportServerSideEncryption_; + bool isSupportClientSideEncryption_; + std::string code_; + bool isSupportGatewayLogging_; + bool success_; + bool isSupportElasticGatewayBeta_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEACCOUNTCONFIGRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeBlockVolumeSnapshotsRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeBlockVolumeSnapshotsRequest.h new file mode 100644 index 000000000..e008a3513 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeBlockVolumeSnapshotsRequest.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_SGW_MODEL_DESCRIBEBLOCKVOLUMESNAPSHOTSREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEBLOCKVOLUMESNAPSHOTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeBlockVolumeSnapshotsRequest : public RpcServiceRequest + { + + public: + DescribeBlockVolumeSnapshotsRequest(); + ~DescribeBlockVolumeSnapshotsRequest(); + + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getIndexId()const; + void setIndexId(const std::string& indexId); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + int pageNumber_; + std::string accessKeyId_; + std::string securityToken_; + int pageSize_; + std::string indexId_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEBLOCKVOLUMESNAPSHOTSREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeBlockVolumeSnapshotsResult.h b/sgw/include/alibabacloud/sgw/model/DescribeBlockVolumeSnapshotsResult.h new file mode 100644 index 000000000..d9ef2e218 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeBlockVolumeSnapshotsResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_DESCRIBEBLOCKVOLUMESNAPSHOTSRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEBLOCKVOLUMESNAPSHOTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeBlockVolumeSnapshotsResult : public ServiceResult + { + public: + struct Snapshot + { + long size; + long createTime; + std::string snapshotName; + }; + + + DescribeBlockVolumeSnapshotsResult(); + explicit DescribeBlockVolumeSnapshotsResult(const std::string &payload); + ~DescribeBlockVolumeSnapshotsResult(); + int getTotalCount()const; + std::string getMessage()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getSnapshots()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string message_; + int pageSize_; + int pageNumber_; + std::vector snapshots_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEBLOCKVOLUMESNAPSHOTSRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeDashboardRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeDashboardRequest.h new file mode 100644 index 000000000..e0ccb485c --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeDashboardRequest.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_SGW_MODEL_DESCRIBEDASHBOARDREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEDASHBOARDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeDashboardRequest : public RpcServiceRequest + { + + public: + DescribeDashboardRequest(); + ~DescribeDashboardRequest(); + + std::string getBackendBucketRegionId()const; + void setBackendBucketRegionId(const std::string& backendBucketRegionId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + + private: + std::string backendBucketRegionId_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string securityToken_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEDASHBOARDREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeDashboardResult.h b/sgw/include/alibabacloud/sgw/model/DescribeDashboardResult.h new file mode 100644 index 000000000..850c15755 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeDashboardResult.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_SGW_MODEL_DESCRIBEDASHBOARDRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEDASHBOARDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeDashboardResult : public ServiceResult + { + public: + + + DescribeDashboardResult(); + explicit DescribeDashboardResult(const std::string &payload); + ~DescribeDashboardResult(); + std::string getMessage()const; + std::string getOverview()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string overview_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEDASHBOARDRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeExpireCachesRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeExpireCachesRequest.h new file mode 100644 index 000000000..eb0806ffe --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeExpireCachesRequest.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_SGW_MODEL_DESCRIBEEXPIRECACHESREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEEXPIRECACHESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeExpireCachesRequest : public RpcServiceRequest + { + + public: + DescribeExpireCachesRequest(); + ~DescribeExpireCachesRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string accessKeyId_; + std::string securityToken_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEEXPIRECACHESREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeExpireCachesResult.h b/sgw/include/alibabacloud/sgw/model/DescribeExpireCachesResult.h new file mode 100644 index 000000000..7d1aa5287 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeExpireCachesResult.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_SGW_MODEL_DESCRIBEEXPIRECACHESRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEEXPIRECACHESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeExpireCachesResult : public ServiceResult + { + public: + + + DescribeExpireCachesResult(); + explicit DescribeExpireCachesResult(const std::string &payload); + ~DescribeExpireCachesResult(); + std::string getMessage()const; + std::string getCacheFilePaths()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string cacheFilePaths_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEEXPIRECACHESRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeExpressSyncSharesRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeExpressSyncSharesRequest.h new file mode 100644 index 000000000..334a727e3 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeExpressSyncSharesRequest.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_SGW_MODEL_DESCRIBEEXPRESSSYNCSHARESREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEEXPRESSSYNCSHARESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeExpressSyncSharesRequest : public RpcServiceRequest + { + + public: + DescribeExpressSyncSharesRequest(); + ~DescribeExpressSyncSharesRequest(); + + bool getIsExternal()const; + void setIsExternal(bool isExternal); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getExpressSyncIds()const; + void setExpressSyncIds(const std::string& expressSyncIds); + bool getIsCrossRegion()const; + void setIsCrossRegion(bool isCrossRegion); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + + private: + bool isExternal_; + std::string accessKeyId_; + std::string expressSyncIds_; + bool isCrossRegion_; + std::string securityToken_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEEXPRESSSYNCSHARESREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeExpressSyncSharesResult.h b/sgw/include/alibabacloud/sgw/model/DescribeExpressSyncSharesResult.h new file mode 100644 index 000000000..12e61420d --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeExpressSyncSharesResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_DESCRIBEEXPRESSSYNCSHARESRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEEXPRESSSYNCSHARESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeExpressSyncSharesResult : public ServiceResult + { + public: + struct Share + { + std::string storageBundleId; + std::string gatewayRegion; + std::string shareName; + std::string expressSyncState; + std::string gatewayName; + std::string gatewayId; + std::string expressSyncId; + int syncProgress; + std::string mnsQueue; + }; + + + DescribeExpressSyncSharesResult(); + explicit DescribeExpressSyncSharesResult(const std::string &payload); + ~DescribeExpressSyncSharesResult(); + std::string getMessage()const; + std::vector getShares()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector shares_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEEXPRESSSYNCSHARESRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeExpressSyncsRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeExpressSyncsRequest.h new file mode 100644 index 000000000..b1cd422fe --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeExpressSyncsRequest.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_SGW_MODEL_DESCRIBEEXPRESSSYNCSREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEEXPRESSSYNCSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeExpressSyncsRequest : public RpcServiceRequest + { + + public: + DescribeExpressSyncsRequest(); + ~DescribeExpressSyncsRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getBucketName()const; + void setBucketName(const std::string& bucketName); + std::string getBucketPrefix()const; + void setBucketPrefix(const std::string& bucketPrefix); + + private: + std::string accessKeyId_; + std::string securityToken_; + std::string bucketName_; + std::string bucketPrefix_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEEXPRESSSYNCSREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeExpressSyncsResult.h b/sgw/include/alibabacloud/sgw/model/DescribeExpressSyncsResult.h new file mode 100644 index 000000000..b25d6c843 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeExpressSyncsResult.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_SGW_MODEL_DESCRIBEEXPRESSSYNCSRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEEXPRESSSYNCSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeExpressSyncsResult : public ServiceResult + { + public: + struct ExpressSync + { + std::string description; + std::string bucketName; + std::string bucketRegion; + std::string mnsTopic; + std::string bucketPrefix; + std::string expressSyncId; + std::string name; + }; + + + DescribeExpressSyncsResult(); + explicit DescribeExpressSyncsResult(const std::string &payload); + ~DescribeExpressSyncsResult(); + std::vector getExpressSyncs()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector expressSyncs_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEEXPRESSSYNCSRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayADInfoRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayADInfoRequest.h new file mode 100644 index 000000000..2c31cb93d --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayADInfoRequest.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_SGW_MODEL_DESCRIBEGATEWAYADINFOREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYADINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayADInfoRequest : public RpcServiceRequest + { + + public: + DescribeGatewayADInfoRequest(); + ~DescribeGatewayADInfoRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string accessKeyId_; + std::string securityToken_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYADINFOREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayADInfoResult.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayADInfoResult.h new file mode 100644 index 000000000..1840f9fce --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayADInfoResult.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_SGW_MODEL_DESCRIBEGATEWAYADINFORESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYADINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayADInfoResult : public ServiceResult + { + public: + + + DescribeGatewayADInfoResult(); + explicit DescribeGatewayADInfoResult(const std::string &payload); + ~DescribeGatewayADInfoResult(); + std::string getMessage()const; + std::string getUsername()const; + std::string getDomainName()const; + bool getIsEnabled()const; + std::string getServerIp()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string username_; + std::string domainName_; + bool isEnabled_; + std::string serverIp_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYADINFORESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayActionsRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayActionsRequest.h new file mode 100644 index 000000000..6afc7fbd2 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayActionsRequest.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_SGW_MODEL_DESCRIBEGATEWAYACTIONSREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYACTIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayActionsRequest : public RpcServiceRequest + { + + public: + DescribeGatewayActionsRequest(); + ~DescribeGatewayActionsRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string accessKeyId_; + std::string securityToken_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYACTIONSREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayActionsResult.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayActionsResult.h new file mode 100644 index 000000000..a16072f74 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayActionsResult.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_SGW_MODEL_DESCRIBEGATEWAYACTIONSRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYACTIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayActionsResult : public ServiceResult + { + public: + struct Action + { + std::string smbUser; + std::string target; + std::string monitor; + std::string adLdap; + std::string self; + std::string gatewayId; + std::string disk; + std::string cache; + }; + + + DescribeGatewayActionsResult(); + explicit DescribeGatewayActionsResult(const std::string &payload); + ~DescribeGatewayActionsResult(); + std::string getMessage()const; + std::vector getActions()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector actions_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYACTIONSRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayAuthInfoRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayAuthInfoRequest.h new file mode 100644 index 000000000..bab62fe46 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayAuthInfoRequest.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_SGW_MODEL_DESCRIBEGATEWAYAUTHINFOREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYAUTHINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayAuthInfoRequest : public RpcServiceRequest + { + + public: + DescribeGatewayAuthInfoRequest(); + ~DescribeGatewayAuthInfoRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string accessKeyId_; + std::string securityToken_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYAUTHINFOREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayAuthInfoResult.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayAuthInfoResult.h new file mode 100644 index 000000000..cfa9e9e4d --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayAuthInfoResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYAUTHINFORESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYAUTHINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayAuthInfoResult : public ServiceResult + { + public: + + + DescribeGatewayAuthInfoResult(); + explicit DescribeGatewayAuthInfoResult(const std::string &payload); + ~DescribeGatewayAuthInfoResult(); + std::string getMessage()const; + std::string getPublicIp()const; + std::string getUsername()const; + std::string getCode()const; + bool getSuccess()const; + std::string getPassword()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string publicIp_; + std::string username_; + std::string code_; + bool success_; + std::string password_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYAUTHINFORESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayBlockVolumesRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayBlockVolumesRequest.h new file mode 100644 index 000000000..0e23d0311 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayBlockVolumesRequest.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_SGW_MODEL_DESCRIBEGATEWAYBLOCKVOLUMESREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYBLOCKVOLUMESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayBlockVolumesRequest : public RpcServiceRequest + { + + public: + DescribeGatewayBlockVolumesRequest(); + ~DescribeGatewayBlockVolumesRequest(); + + bool getRefresh()const; + void setRefresh(bool refresh); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getIndexId()const; + void setIndexId(const std::string& indexId); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + bool refresh_; + std::string accessKeyId_; + std::string securityToken_; + std::string indexId_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYBLOCKVOLUMESREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayBlockVolumesResult.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayBlockVolumesResult.h new file mode 100644 index 000000000..196a30347 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayBlockVolumesResult.h @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYBLOCKVOLUMESRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYBLOCKVOLUMESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayBlockVolumesResult : public ServiceResult + { + public: + struct BlockVolume + { + long totalDownload; + std::string address; + long totalUpload; + int lunId; + std::string chapOutUser; + long size; + int port; + bool chapEnabled; + std::string localPath; + std::string cacheMode; + std::string name; + std::string diskType; + std::string target; + std::string ossEndpoint; + std::string protocol; + int status; + std::string indexId; + bool enabled; + int volumeState; + bool ossBucketSsl; + int chunkSize; + std::string serialNumber; + std::string state; + std::string ossBucketName; + std::string chapInUser; + std::string diskId; + }; + + + DescribeGatewayBlockVolumesResult(); + explicit DescribeGatewayBlockVolumesResult(const std::string &payload); + ~DescribeGatewayBlockVolumesResult(); + std::vector getBlockVolumes()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector blockVolumes_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYBLOCKVOLUMESRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayBucketCachesRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayBucketCachesRequest.h new file mode 100644 index 000000000..24ba3627f --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayBucketCachesRequest.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_SGW_MODEL_DESCRIBEGATEWAYBUCKETCACHESREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYBUCKETCACHESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayBucketCachesRequest : public RpcServiceRequest + { + + public: + DescribeGatewayBucketCachesRequest(); + ~DescribeGatewayBucketCachesRequest(); + + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getBucketName()const; + void setBucketName(const std::string& bucketName); + int getPageSize()const; + void setPageSize(int pageSize); + + private: + int pageNumber_; + std::string accessKeyId_; + std::string securityToken_; + std::string bucketName_; + int pageSize_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYBUCKETCACHESREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayBucketCachesResult.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayBucketCachesResult.h new file mode 100644 index 000000000..463239df2 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayBucketCachesResult.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_SGW_MODEL_DESCRIBEGATEWAYBUCKETCACHESRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYBUCKETCACHESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayBucketCachesResult : public ServiceResult + { + public: + struct BucketCache + { + std::string category; + std::string shareName; + std::string cacheMode; + std::string gatewayId; + std::string mountPoint; + std::string type; + std::string bucketName; + std::string vpcId; + std::string vpcCidr; + std::string cacheStats; + std::string gatewayName; + std::string regionId; + std::string protocol; + std::string location; + }; + + + DescribeGatewayBucketCachesResult(); + explicit DescribeGatewayBucketCachesResult(const std::string &payload); + ~DescribeGatewayBucketCachesResult(); + int getTotalCount()const; + std::string getMessage()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getBucketCaches()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string message_; + int pageSize_; + int pageNumber_; + std::vector bucketCaches_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYBUCKETCACHESRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayCachesRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayCachesRequest.h new file mode 100644 index 000000000..d385f24cb --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayCachesRequest.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_SGW_MODEL_DESCRIBEGATEWAYCACHESREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYCACHESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayCachesRequest : public RpcServiceRequest + { + + public: + DescribeGatewayCachesRequest(); + ~DescribeGatewayCachesRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string accessKeyId_; + std::string securityToken_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYCACHESREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayCachesResult.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayCachesResult.h new file mode 100644 index 000000000..c3e58ae1f --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayCachesResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYCACHESRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYCACHESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayCachesResult : public ServiceResult + { + public: + struct Cache + { + long sizeInGB; + std::string buyURL; + std::string renewURL; + std::string cacheId; + std::string performanceLevel; + long expiredTime; + int expireStatus; + bool isUsed; + long iops; + std::string localFilePath; + std::string cacheType; + }; + + + DescribeGatewayCachesResult(); + explicit DescribeGatewayCachesResult(const std::string &payload); + ~DescribeGatewayCachesResult(); + std::string getMessage()const; + std::vector getCaches()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector caches_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYCACHESRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayCapacityLimitRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayCapacityLimitRequest.h new file mode 100644 index 000000000..cb34344ae --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayCapacityLimitRequest.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_SGW_MODEL_DESCRIBEGATEWAYCAPACITYLIMITREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYCAPACITYLIMITREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayCapacityLimitRequest : public RpcServiceRequest + { + + public: + DescribeGatewayCapacityLimitRequest(); + ~DescribeGatewayCapacityLimitRequest(); + + long getSizeInGB()const; + void setSizeInGB(long sizeInGB); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + long sizeInGB_; + std::string accessKeyId_; + std::string securityToken_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYCAPACITYLIMITREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayCapacityLimitResult.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayCapacityLimitResult.h new file mode 100644 index 000000000..570dd7354 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayCapacityLimitResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYCAPACITYLIMITRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYCAPACITYLIMITRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayCapacityLimitResult : public ServiceResult + { + public: + + + DescribeGatewayCapacityLimitResult(); + explicit DescribeGatewayCapacityLimitResult(const std::string &payload); + ~DescribeGatewayCapacityLimitResult(); + long getFileSystemSizeInTB()const; + std::string getMessage()const; + std::string getCode()const; + long getFileNumber()const; + bool getIsMetadataSeparate()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + long fileSystemSizeInTB_; + std::string message_; + std::string code_; + long fileNumber_; + bool isMetadataSeparate_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYCAPACITYLIMITRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayCategoriesRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayCategoriesRequest.h new file mode 100644 index 000000000..8a816afa5 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayCategoriesRequest.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_SGW_MODEL_DESCRIBEGATEWAYCATEGORIESREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYCATEGORIESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayCategoriesRequest : public RpcServiceRequest + { + + public: + DescribeGatewayCategoriesRequest(); + ~DescribeGatewayCategoriesRequest(); + + std::string getGatewayLocation()const; + void setGatewayLocation(const std::string& gatewayLocation); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + + private: + std::string gatewayLocation_; + std::string accessKeyId_; + std::string securityToken_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYCATEGORIESREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayCategoriesResult.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayCategoriesResult.h new file mode 100644 index 000000000..91bc26222 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayCategoriesResult.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_SGW_MODEL_DESCRIBEGATEWAYCATEGORIESRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYCATEGORIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayCategoriesResult : public ServiceResult + { + public: + + + DescribeGatewayCategoriesResult(); + explicit DescribeGatewayCategoriesResult(const std::string &payload); + ~DescribeGatewayCategoriesResult(); + std::string getMessage()const; + std::string getCategories()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string categories_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYCATEGORIESRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayClassesRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayClassesRequest.h new file mode 100644 index 000000000..9ed348370 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayClassesRequest.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_SGW_MODEL_DESCRIBEGATEWAYCLASSESREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYCLASSESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayClassesRequest : public RpcServiceRequest + { + + public: + DescribeGatewayClassesRequest(); + ~DescribeGatewayClassesRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + + private: + std::string accessKeyId_; + std::string securityToken_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYCLASSESREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayClassesResult.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayClassesResult.h new file mode 100644 index 000000000..cedac79a2 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayClassesResult.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_SGW_MODEL_DESCRIBEGATEWAYCLASSESRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYCLASSESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayClassesResult : public ServiceResult + { + public: + + + DescribeGatewayClassesResult(); + explicit DescribeGatewayClassesResult(const std::string &payload); + ~DescribeGatewayClassesResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + std::string getClasses()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + std::string classes_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYCLASSESRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayCredentialRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayCredentialRequest.h new file mode 100644 index 000000000..5aa433e45 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayCredentialRequest.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_SGW_MODEL_DESCRIBEGATEWAYCREDENTIALREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYCREDENTIALREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayCredentialRequest : public RpcServiceRequest + { + + public: + DescribeGatewayCredentialRequest(); + ~DescribeGatewayCredentialRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string accessKeyId_; + std::string securityToken_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYCREDENTIALREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayCredentialResult.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayCredentialResult.h new file mode 100644 index 000000000..83ed0484e --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayCredentialResult.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_SGW_MODEL_DESCRIBEGATEWAYCREDENTIALRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYCREDENTIALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayCredentialResult : public ServiceResult + { + public: + + + DescribeGatewayCredentialResult(); + explicit DescribeGatewayCredentialResult(const std::string &payload); + ~DescribeGatewayCredentialResult(); + std::string getMessage()const; + std::string getVpcId()const; + std::string getEcsIp()const; + std::string getConsoleUsername()const; + std::string getVSwitchId()const; + std::string getConsolePassword()const; + std::string getEcsPassword()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string vpcId_; + std::string ecsIp_; + std::string consoleUsername_; + std::string vSwitchId_; + std::string consolePassword_; + std::string ecsPassword_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYCREDENTIALRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayDNSRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayDNSRequest.h new file mode 100644 index 000000000..5af764256 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayDNSRequest.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_SGW_MODEL_DESCRIBEGATEWAYDNSREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYDNSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayDNSRequest : public RpcServiceRequest + { + + public: + DescribeGatewayDNSRequest(); + ~DescribeGatewayDNSRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string accessKeyId_; + std::string securityToken_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYDNSREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayDNSResult.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayDNSResult.h new file mode 100644 index 000000000..dd9953e9a --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayDNSResult.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_SGW_MODEL_DESCRIBEGATEWAYDNSRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYDNSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayDNSResult : public ServiceResult + { + public: + + + DescribeGatewayDNSResult(); + explicit DescribeGatewayDNSResult(const std::string &payload); + ~DescribeGatewayDNSResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + std::string getDnsServer()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + std::string dnsServer_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYDNSRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayFileSharesRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayFileSharesRequest.h new file mode 100644 index 000000000..fff9e9d5f --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayFileSharesRequest.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_SGW_MODEL_DESCRIBEGATEWAYFILESHARESREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYFILESHARESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayFileSharesRequest : public RpcServiceRequest + { + + public: + DescribeGatewayFileSharesRequest(); + ~DescribeGatewayFileSharesRequest(); + + bool getRefresh()const; + void setRefresh(bool refresh); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getIndexId()const; + void setIndexId(const std::string& indexId); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + bool refresh_; + std::string accessKeyId_; + std::string securityToken_; + std::string indexId_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYFILESHARESREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayFileSharesResult.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayFileSharesResult.h new file mode 100644 index 000000000..43e6d2475 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayFileSharesResult.h @@ -0,0 +1,125 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYFILESHARESRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYFILESHARESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayFileSharesResult : public ServiceResult + { + public: + struct FileShare + { + long fileNumLimit; + std::string bucketInfos; + long totalDownload; + long inRate; + std::string address; + long totalUpload; + long size; + int downloadLimit; + long downloadQueue; + std::string localPath; + long ossUsed; + std::string clientSideCmk; + std::string serverSideCmk; + int beLimit; + std::string name; + std::string diskType; + long outRate; + std::string mnsHealth; + bool remoteSyncDownload; + bool clientSideEncryption; + bool supportArchive; + std::string roUserList; + bool browsable; + std::string obsoleteBuckets; + bool bucketsStub; + bool fastReclaim; + long remainingMetaSpace; + int feLimit; + std::string kmsRotatePeriod; + std::string serialNumber; + std::string state; + bool inPlace; + std::string ossBucketName; + int pollingInterval; + std::string diskId; + bool remoteSync; + bool accessBasedEnumeration; + std::string rwUserList; + bool windowsAcl; + long fsSizeLimit; + std::string cacheMode; + bool transferAcceleration; + long downloadRate; + std::string squash; + std::string roClientList; + std::string nfsFullPath; + std::string ossEndpoint; + bool nfsV4Optimization; + bool serverSideEncryption; + std::string protocol; + std::string pathPrefix; + long lagPeriod; + std::string partialSyncPaths; + std::string ossHealth; + std::string indexId; + long activeMessages; + bool enabled; + bool directIO; + bool ossBucketSsl; + std::string expressSyncId; + int syncProgress; + long uploadQueue; + bool ignoreDelete; + std::string rwClientList; + long used; + }; + + + DescribeGatewayFileSharesResult(); + explicit DescribeGatewayFileSharesResult(const std::string &payload); + ~DescribeGatewayFileSharesResult(); + std::vector getFileShares()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector fileShares_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYFILESHARESRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayFileStatusRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayFileStatusRequest.h new file mode 100644 index 000000000..9e810e02f --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayFileStatusRequest.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_SGW_MODEL_DESCRIBEGATEWAYFILESTATUSREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYFILESTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayFileStatusRequest : public RpcServiceRequest + { + + public: + DescribeGatewayFileStatusRequest(); + ~DescribeGatewayFileStatusRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getFilePath()const; + void setFilePath(const std::string& filePath); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getIndexId()const; + void setIndexId(const std::string& indexId); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string accessKeyId_; + std::string filePath_; + std::string securityToken_; + std::string indexId_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYFILESTATUSREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayFileStatusResult.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayFileStatusResult.h new file mode 100644 index 000000000..7c621febd --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayFileStatusResult.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_SGW_MODEL_DESCRIBEGATEWAYFILESTATUSRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYFILESTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayFileStatusResult : public ServiceResult + { + public: + + + DescribeGatewayFileStatusResult(); + explicit DescribeGatewayFileStatusResult(const std::string &payload); + ~DescribeGatewayFileStatusResult(); + std::string getStatus()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYFILESTATUSRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayImagesRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayImagesRequest.h new file mode 100644 index 000000000..f45796584 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayImagesRequest.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_SGW_MODEL_DESCRIBEGATEWAYIMAGESREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYIMAGESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayImagesRequest : public RpcServiceRequest + { + + public: + DescribeGatewayImagesRequest(); + ~DescribeGatewayImagesRequest(); + + std::string getType()const; + void setType(const std::string& type); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getCategory()const; + void setCategory(const std::string& category); + + private: + std::string type_; + std::string accessKeyId_; + std::string securityToken_; + std::string category_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYIMAGESREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayImagesResult.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayImagesResult.h new file mode 100644 index 000000000..76dfb555c --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayImagesResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYIMAGESRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYIMAGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayImagesResult : public ServiceResult + { + public: + struct Image + { + std::string type; + std::string description; + std::string version; + long size; + std::string title; + std::string modifiedDate; + std::string url; + std::string name; + std::string mD5; + }; + + + DescribeGatewayImagesResult(); + explicit DescribeGatewayImagesResult(const std::string &payload); + ~DescribeGatewayImagesResult(); + std::string getMessage()const; + std::vector getImages()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector images_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYIMAGESRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayInfoRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayInfoRequest.h new file mode 100644 index 000000000..4ee8090ad --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayInfoRequest.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_SGW_MODEL_DESCRIBEGATEWAYINFOREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayInfoRequest : public RpcServiceRequest + { + + public: + DescribeGatewayInfoRequest(); + ~DescribeGatewayInfoRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string accessKeyId_; + std::string securityToken_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYINFOREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayInfoResult.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayInfoResult.h new file mode 100644 index 000000000..ccc4e63fa --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayInfoResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYINFORESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayInfoResult : public ServiceResult + { + public: + struct GatewayInfo + { + long time; + std::string info; + }; + + + DescribeGatewayInfoResult(); + explicit DescribeGatewayInfoResult(const std::string &payload); + ~DescribeGatewayInfoResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + std::vector getGatewayInfos()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + std::vector gatewayInfos_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYINFORESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayLDAPInfoRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayLDAPInfoRequest.h new file mode 100644 index 000000000..438962747 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayLDAPInfoRequest.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_SGW_MODEL_DESCRIBEGATEWAYLDAPINFOREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYLDAPINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayLDAPInfoRequest : public RpcServiceRequest + { + + public: + DescribeGatewayLDAPInfoRequest(); + ~DescribeGatewayLDAPInfoRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string accessKeyId_; + std::string securityToken_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYLDAPINFOREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayLDAPInfoResult.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayLDAPInfoResult.h new file mode 100644 index 000000000..0d2a75277 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayLDAPInfoResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYLDAPINFORESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYLDAPINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayLDAPInfoResult : public ServiceResult + { + public: + + + DescribeGatewayLDAPInfoResult(); + explicit DescribeGatewayLDAPInfoResult(const std::string &payload); + ~DescribeGatewayLDAPInfoResult(); + std::string getRootDN()const; + std::string getMessage()const; + bool getIsEnabled()const; + std::string getBaseDN()const; + std::string getServerIp()const; + bool getIsTls()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string rootDN_; + std::string message_; + bool isEnabled_; + std::string baseDN_; + std::string serverIp_; + bool isTls_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYLDAPINFORESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayLocationsRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayLocationsRequest.h new file mode 100644 index 000000000..7ba0012d1 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayLocationsRequest.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_SGW_MODEL_DESCRIBEGATEWAYLOCATIONSREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYLOCATIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayLocationsRequest : public RpcServiceRequest + { + + public: + DescribeGatewayLocationsRequest(); + ~DescribeGatewayLocationsRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + + private: + std::string accessKeyId_; + std::string securityToken_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYLOCATIONSREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayLocationsResult.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayLocationsResult.h new file mode 100644 index 000000000..2659a417e --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayLocationsResult.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_SGW_MODEL_DESCRIBEGATEWAYLOCATIONSRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYLOCATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayLocationsResult : public ServiceResult + { + public: + + + DescribeGatewayLocationsResult(); + explicit DescribeGatewayLocationsResult(const std::string &payload); + ~DescribeGatewayLocationsResult(); + std::string getMessage()const; + std::string getLocations()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string locations_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYLOCATIONSRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayLoggingRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayLoggingRequest.h new file mode 100644 index 000000000..580a73fb9 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayLoggingRequest.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_SGW_MODEL_DESCRIBEGATEWAYLOGGINGREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYLOGGINGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayLoggingRequest : public RpcServiceRequest + { + + public: + DescribeGatewayLoggingRequest(); + ~DescribeGatewayLoggingRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string accessKeyId_; + std::string securityToken_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYLOGGINGREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayLoggingResult.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayLoggingResult.h new file mode 100644 index 000000000..ebedf0a06 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayLoggingResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYLOGGINGRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYLOGGINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayLoggingResult : public ServiceResult + { + public: + + + DescribeGatewayLoggingResult(); + explicit DescribeGatewayLoggingResult(const std::string &payload); + ~DescribeGatewayLoggingResult(); + std::string getSlsProject()const; + std::string getMessage()const; + std::string getGatewayLoggingStatus()const; + std::string getCode()const; + std::string getSlsLogstore()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string slsProject_; + std::string message_; + std::string gatewayLoggingStatus_; + std::string code_; + std::string slsLogstore_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYLOGGINGRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayLogsRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayLogsRequest.h new file mode 100644 index 000000000..d9ac78325 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayLogsRequest.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_SGW_MODEL_DESCRIBEGATEWAYLOGSREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYLOGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayLogsRequest : public RpcServiceRequest + { + + public: + DescribeGatewayLogsRequest(); + ~DescribeGatewayLogsRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getLogFilePath()const; + void setLogFilePath(const std::string& logFilePath); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string accessKeyId_; + std::string logFilePath_; + std::string securityToken_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYLOGSREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayLogsResult.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayLogsResult.h new file mode 100644 index 000000000..9119fb6cf --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayLogsResult.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_SGW_MODEL_DESCRIBEGATEWAYLOGSRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYLOGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayLogsResult : public ServiceResult + { + public: + + + DescribeGatewayLogsResult(); + explicit DescribeGatewayLogsResult(const std::string &payload); + ~DescribeGatewayLogsResult(); + std::string getMessage()const; + std::string getLogFilePaths()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string logFilePaths_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYLOGSRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayModificationClassesRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayModificationClassesRequest.h new file mode 100644 index 000000000..7d06ac2b6 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayModificationClassesRequest.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_SGW_MODEL_DESCRIBEGATEWAYMODIFICATIONCLASSESREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYMODIFICATIONCLASSESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayModificationClassesRequest : public RpcServiceRequest + { + + public: + DescribeGatewayModificationClassesRequest(); + ~DescribeGatewayModificationClassesRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string accessKeyId_; + std::string securityToken_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYMODIFICATIONCLASSESREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayModificationClassesResult.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayModificationClassesResult.h new file mode 100644 index 000000000..47ebfafd9 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayModificationClassesResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYMODIFICATIONCLASSESRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYMODIFICATIONCLASSESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayModificationClassesResult : public ServiceResult + { + public: + struct TargetGatewayClass + { + bool isAvailable; + std::string gatewayClass; + }; + + + DescribeGatewayModificationClassesResult(); + explicit DescribeGatewayModificationClassesResult(const std::string &payload); + ~DescribeGatewayModificationClassesResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + std::vector getTargetGatewayClasses()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + std::vector targetGatewayClasses_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYMODIFICATIONCLASSESRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayRequest.h new file mode 100644 index 000000000..cad54298b --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayRequest.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_SGW_MODEL_DESCRIBEGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayRequest : public RpcServiceRequest + { + + public: + DescribeGatewayRequest(); + ~DescribeGatewayRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string accessKeyId_; + std::string securityToken_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayResult.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayResult.h new file mode 100644 index 000000000..728212209 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayResult.h @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_SGW_MODEL_DESCRIBEGATEWAYRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayResult : public ServiceResult + { + public: + + + DescribeGatewayResult(); + explicit DescribeGatewayResult(const std::string &payload); + ~DescribeGatewayResult(); + std::string getDescription()const; + std::string getCategory()const; + long getCreatedTime()const; + std::string getTaskId()const; + int getPublicNetworkBandwidth()const; + std::string getDataLoadType()const; + std::string getMessage()const; + std::string getIp()const; + int getExpireStatus()const; + std::string getStorageBundleId()const; + std::string getGatewayType()const; + std::string getGatewayClass()const; + bool getSuccess()const; + std::string getName()const; + bool getIsPostPaid()const; + int getCapacity()const; + long getExpiredTime()const; + std::string getGatewayVersion()const; + bool getIsReleaseAfterExpiration()const; + std::string getStatus()const; + std::string getBuyURL()const; + int getMaxThroughput()const; + int getDataLoadInterval()const; + std::string getInnerIp()const; + std::string getVSwitchId()const; + std::vector getElasticNodes()const; + std::string getGatewayId()const; + std::string getCode()const; + std::string getEcsInstanceId()const; + std::string getType()const; + std::string getRenewURL()const; + std::string getSerialNumber()const; + std::string getVpcId()const; + long getActivatedTime()const; + bool getElasticGateway()const; + std::string getCommonBuyInstanceId()const; + std::string getModel()const; + std::string getLastErrorKey()const; + std::string getLocation()const; + + protected: + void parse(const std::string &payload); + private: + std::string description_; + std::string category_; + long createdTime_; + std::string taskId_; + int publicNetworkBandwidth_; + std::string dataLoadType_; + std::string message_; + std::string ip_; + int expireStatus_; + std::string storageBundleId_; + std::string gatewayType_; + std::string gatewayClass_; + bool success_; + std::string name_; + bool isPostPaid_; + int capacity_; + long expiredTime_; + std::string gatewayVersion_; + bool isReleaseAfterExpiration_; + std::string status_; + std::string buyURL_; + int maxThroughput_; + int dataLoadInterval_; + std::string innerIp_; + std::string vSwitchId_; + std::vector elasticNodes_; + std::string gatewayId_; + std::string code_; + std::string ecsInstanceId_; + std::string type_; + std::string renewURL_; + std::string serialNumber_; + std::string vpcId_; + long activatedTime_; + bool elasticGateway_; + std::string commonBuyInstanceId_; + std::string model_; + std::string lastErrorKey_; + std::string location_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewaySMBUsersRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewaySMBUsersRequest.h new file mode 100644 index 000000000..25d8a2af7 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewaySMBUsersRequest.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_SGW_MODEL_DESCRIBEGATEWAYSMBUSERSREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYSMBUSERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewaySMBUsersRequest : public RpcServiceRequest + { + + public: + DescribeGatewaySMBUsersRequest(); + ~DescribeGatewaySMBUsersRequest(); + + std::string getPattern()const; + void setPattern(const std::string& pattern); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string pattern_; + int pageNumber_; + std::string accessKeyId_; + std::string securityToken_; + int pageSize_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYSMBUSERSREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewaySMBUsersResult.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewaySMBUsersResult.h new file mode 100644 index 000000000..e27e66dde --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewaySMBUsersResult.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_SGW_MODEL_DESCRIBEGATEWAYSMBUSERSRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYSMBUSERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewaySMBUsersResult : public ServiceResult + { + public: + struct User + { + std::string username; + }; + + + DescribeGatewaySMBUsersResult(); + explicit DescribeGatewaySMBUsersResult(const std::string &payload); + ~DescribeGatewaySMBUsersResult(); + int getTotalCount()const; + std::string getMessage()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getUsers()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string message_; + int pageSize_; + int pageNumber_; + std::vector users_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYSMBUSERSRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayStatisticsRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayStatisticsRequest.h new file mode 100644 index 000000000..26134363a --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayStatisticsRequest.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_SGW_MODEL_DESCRIBEGATEWAYSTATISTICSREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYSTATISTICSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayStatisticsRequest : public RpcServiceRequest + { + + public: + DescribeGatewayStatisticsRequest(); + ~DescribeGatewayStatisticsRequest(); + + std::string getGatewayCategory()const; + void setGatewayCategory(const std::string& gatewayCategory); + std::string getGatewayLocation()const; + void setGatewayLocation(const std::string& gatewayLocation); + long getStartTimestamp()const; + void setStartTimestamp(long startTimestamp); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + long getEndTimestamp()const; + void setEndTimestamp(long endTimestamp); + std::string getTargetAccountId()const; + void setTargetAccountId(const std::string& targetAccountId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + + private: + std::string gatewayCategory_; + std::string gatewayLocation_; + long startTimestamp_; + std::string accessKeyId_; + long endTimestamp_; + std::string targetAccountId_; + std::string securityToken_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYSTATISTICSREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayStatisticsResult.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayStatisticsResult.h new file mode 100644 index 000000000..d9f6e6d00 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayStatisticsResult.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_SGW_MODEL_DESCRIBEGATEWAYSTATISTICSRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYSTATISTICSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayStatisticsResult : public ServiceResult + { + public: + + + DescribeGatewayStatisticsResult(); + explicit DescribeGatewayStatisticsResult(const std::string &payload); + ~DescribeGatewayStatisticsResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYSTATISTICSRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayStockRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayStockRequest.h new file mode 100644 index 000000000..b40cc4c17 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayStockRequest.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_SGW_MODEL_DESCRIBEGATEWAYSTOCKREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYSTOCKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayStockRequest : public RpcServiceRequest + { + + public: + DescribeGatewayStockRequest(); + ~DescribeGatewayStockRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getGatewayRegionId()const; + void setGatewayRegionId(const std::string& gatewayRegionId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + + private: + std::string accessKeyId_; + std::string gatewayRegionId_; + std::string securityToken_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYSTOCKREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayStockResult.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayStockResult.h new file mode 100644 index 000000000..36328dde0 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayStockResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYSTOCKRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYSTOCKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayStockResult : public ServiceResult + { + public: + struct Stock + { + std::string zoneId; + std::string stockInfo; + }; + + + DescribeGatewayStockResult(); + explicit DescribeGatewayStockResult(const std::string &payload); + ~DescribeGatewayStockResult(); + std::string getMessage()const; + std::vector getStocks()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector stocks_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYSTOCKRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayTypesRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayTypesRequest.h new file mode 100644 index 000000000..c9c3f85f0 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayTypesRequest.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_SGW_MODEL_DESCRIBEGATEWAYTYPESREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYTYPESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayTypesRequest : public RpcServiceRequest + { + + public: + DescribeGatewayTypesRequest(); + ~DescribeGatewayTypesRequest(); + + std::string getGatewayCategory()const; + void setGatewayCategory(const std::string& gatewayCategory); + std::string getGatewayLocation()const; + void setGatewayLocation(const std::string& gatewayLocation); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + + private: + std::string gatewayCategory_; + std::string gatewayLocation_; + std::string accessKeyId_; + std::string securityToken_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYTYPESREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewayTypesResult.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewayTypesResult.h new file mode 100644 index 000000000..67d1dd668 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewayTypesResult.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_SGW_MODEL_DESCRIBEGATEWAYTYPESRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYTYPESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewayTypesResult : public ServiceResult + { + public: + + + DescribeGatewayTypesResult(); + explicit DescribeGatewayTypesResult(const std::string &payload); + ~DescribeGatewayTypesResult(); + std::string getTypes()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string types_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYTYPESRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewaysForCmsRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewaysForCmsRequest.h new file mode 100644 index 000000000..3d7ce7bce --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewaysForCmsRequest.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_SGW_MODEL_DESCRIBEGATEWAYSFORCMSREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYSFORCMSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewaysForCmsRequest : public RpcServiceRequest + { + + public: + DescribeGatewaysForCmsRequest(); + ~DescribeGatewaysForCmsRequest(); + + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getGatewayRegionId()const; + void setGatewayRegionId(const std::string& gatewayRegionId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + int getPageSize()const; + void setPageSize(int pageSize); + + private: + int pageNumber_; + std::string accessKeyId_; + std::string gatewayRegionId_; + std::string securityToken_; + int pageSize_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYSFORCMSREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewaysForCmsResult.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewaysForCmsResult.h new file mode 100644 index 000000000..64a2b6fe7 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewaysForCmsResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYSFORCMSRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYSFORCMSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewaysForCmsResult : public ServiceResult + { + public: + struct Gateway + { + std::string description; + std::string gatewayId; + std::string name; + }; + + + DescribeGatewaysForCmsResult(); + explicit DescribeGatewaysForCmsResult(const std::string &payload); + ~DescribeGatewaysForCmsResult(); + int getTotalCount()const; + std::string getMessage()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getGateways()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string message_; + int pageSize_; + int pageNumber_; + std::vector gateways_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYSFORCMSRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewaysRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewaysRequest.h new file mode 100644 index 000000000..44d0e668a --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewaysRequest.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_SGW_MODEL_DESCRIBEGATEWAYSREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewaysRequest : public RpcServiceRequest + { + + public: + DescribeGatewaysRequest(); + ~DescribeGatewaysRequest(); + + std::string getEcsInstanceIds()const; + void setEcsInstanceIds(const std::string& ecsInstanceIds); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getStorageBundleId()const; + void setStorageBundleId(const std::string& storageBundleId); + + private: + std::string ecsInstanceIds_; + int pageNumber_; + std::string accessKeyId_; + std::string securityToken_; + int pageSize_; + std::string storageBundleId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYSREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewaysResult.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewaysResult.h new file mode 100644 index 000000000..da47efdbd --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewaysResult.h @@ -0,0 +1,102 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_SGW_MODEL_DESCRIBEGATEWAYSRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewaysResult : public ServiceResult + { + public: + struct Gateway + { + std::string description; + std::string category; + long createdTime; + std::string taskId; + int publicNetworkBandwidth; + std::string dataLoadType; + std::string ip; + int expireStatus; + std::string storageBundleId; + std::string gatewayType; + std::string gatewayClass; + std::string name; + bool isPostPaid; + int capacity; + long expiredTime; + std::string gatewayVersion; + bool isReleaseAfterExpiration; + std::string status; + std::string buyURL; + int maxThroughput; + int dataLoadInterval; + std::string innerIp; + std::string vSwitchId; + std::vector elasticNodes; + std::string gatewayId; + std::string ecsInstanceId; + std::string type; + std::string renewURL; + std::string serialNumber; + std::string vpcId; + long activatedTime; + bool elasticGateway; + std::string commonBuyInstanceId; + std::string model; + std::string lastErrorKey; + std::string location; + }; + + + DescribeGatewaysResult(); + explicit DescribeGatewaysResult(const std::string &payload); + ~DescribeGatewaysResult(); + int getTotalCount()const; + std::string getMessage()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getGateways()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string message_; + int pageSize_; + int pageNumber_; + std::vector gateways_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYSRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewaysTagsRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewaysTagsRequest.h new file mode 100644 index 000000000..23a8ff7b6 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewaysTagsRequest.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_SGW_MODEL_DESCRIBEGATEWAYSTAGSREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYSTAGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewaysTagsRequest : public RpcServiceRequest + { + + public: + DescribeGatewaysTagsRequest(); + ~DescribeGatewaysTagsRequest(); + + std::string getGatewayIds()const; + void setGatewayIds(const std::string& gatewayIds); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getTagCategory()const; + void setTagCategory(const std::string& tagCategory); + std::string getStorageBundleId()const; + void setStorageBundleId(const std::string& storageBundleId); + + private: + std::string gatewayIds_; + std::string accessKeyId_; + std::string securityToken_; + std::string tagCategory_; + std::string storageBundleId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYSTAGSREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeGatewaysTagsResult.h b/sgw/include/alibabacloud/sgw/model/DescribeGatewaysTagsResult.h new file mode 100644 index 000000000..d22282601 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeGatewaysTagsResult.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_SGW_MODEL_DESCRIBEGATEWAYSTAGSRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYSTAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeGatewaysTagsResult : public ServiceResult + { + public: + struct GatewayTag + { + struct Tag + { + std::string tagKey; + std::string tagValue; + }; + std::string gatewayId; + std::vector tags; + }; + + + DescribeGatewaysTagsResult(); + explicit DescribeGatewaysTagsResult(const std::string &payload); + ~DescribeGatewaysTagsResult(); + std::string getMessage()const; + std::vector getGatewayTags()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector gatewayTags_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEGATEWAYSTAGSRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeKmsKeyRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeKmsKeyRequest.h new file mode 100644 index 000000000..4c889c8f2 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeKmsKeyRequest.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_SGW_MODEL_DESCRIBEKMSKEYREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEKMSKEYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeKmsKeyRequest : public RpcServiceRequest + { + + public: + DescribeKmsKeyRequest(); + ~DescribeKmsKeyRequest(); + + std::string getKmsKey()const; + void setKmsKey(const std::string& kmsKey); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string kmsKey_; + std::string accessKeyId_; + std::string securityToken_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEKMSKEYREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeKmsKeyResult.h b/sgw/include/alibabacloud/sgw/model/DescribeKmsKeyResult.h new file mode 100644 index 000000000..0022ad45a --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeKmsKeyResult.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_SGW_MODEL_DESCRIBEKMSKEYRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEKMSKEYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeKmsKeyResult : public ServiceResult + { + public: + + + DescribeKmsKeyResult(); + explicit DescribeKmsKeyResult(const std::string &payload); + ~DescribeKmsKeyResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + bool getIsValid()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + bool isValid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEKMSKEYRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeMqttConfigRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeMqttConfigRequest.h new file mode 100644 index 000000000..ad11e08ef --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeMqttConfigRequest.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_SGW_MODEL_DESCRIBEMQTTCONFIGREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEMQTTCONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeMqttConfigRequest : public RpcServiceRequest + { + + public: + DescribeMqttConfigRequest(); + ~DescribeMqttConfigRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string accessKeyId_; + std::string securityToken_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEMQTTCONFIGREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeMqttConfigResult.h b/sgw/include/alibabacloud/sgw/model/DescribeMqttConfigResult.h new file mode 100644 index 000000000..1dd523e2e --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeMqttConfigResult.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_SGW_MODEL_DESCRIBEMQTTCONFIGRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEMQTTCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeMqttConfigResult : public ServiceResult + { + public: + + + DescribeMqttConfigResult(); + explicit DescribeMqttConfigResult(const std::string &payload); + ~DescribeMqttConfigResult(); + std::string getMessage()const; + bool getIsEnabled()const; + std::string getCode()const; + std::string getInternalBrokerUrl()const; + bool getSuccess()const; + std::string getBrokerUrl()const; + std::string getGroupId()const; + std::string getMqttInstanceId()const; + std::string getUsername()const; + std::string getSubscribeTopic()const; + std::string getPublishTopic()const; + std::string getAuthType()const; + std::string getPassword()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + bool isEnabled_; + std::string code_; + std::string internalBrokerUrl_; + bool success_; + std::string brokerUrl_; + std::string groupId_; + std::string mqttInstanceId_; + std::string username_; + std::string subscribeTopic_; + std::string publishTopic_; + std::string authType_; + std::string password_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEMQTTCONFIGRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeOssBucketInfoRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeOssBucketInfoRequest.h new file mode 100644 index 000000000..0d7222c31 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeOssBucketInfoRequest.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_SGW_MODEL_DESCRIBEOSSBUCKETINFOREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEOSSBUCKETINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeOssBucketInfoRequest : public RpcServiceRequest + { + + public: + DescribeOssBucketInfoRequest(); + ~DescribeOssBucketInfoRequest(); + + std::string getBucketEndpoint()const; + void setBucketEndpoint(const std::string& bucketEndpoint); + std::string getType()const; + void setType(const std::string& type); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getBucketName()const; + void setBucketName(const std::string& bucketName); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string bucketEndpoint_; + std::string type_; + std::string accessKeyId_; + std::string securityToken_; + std::string bucketName_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEOSSBUCKETINFOREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeOssBucketInfoResult.h b/sgw/include/alibabacloud/sgw/model/DescribeOssBucketInfoResult.h new file mode 100644 index 000000000..b1817044c --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeOssBucketInfoResult.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_SGW_MODEL_DESCRIBEOSSBUCKETINFORESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEOSSBUCKETINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeOssBucketInfoResult : public ServiceResult + { + public: + + + DescribeOssBucketInfoResult(); + explicit DescribeOssBucketInfoResult(const std::string &payload); + ~DescribeOssBucketInfoResult(); + std::string getMessage()const; + bool getIsArchive()const; + bool getIsFresh()const; + bool getIsSupportServerSideEncryption()const; + long getStorageSize()const; + bool getIsBackToResource()const; + int getPollingInterval()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + bool isArchive_; + bool isFresh_; + bool isSupportServerSideEncryption_; + long storageSize_; + bool isBackToResource_; + int pollingInterval_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEOSSBUCKETINFORESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeOssBucketsRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeOssBucketsRequest.h new file mode 100644 index 000000000..c22f8bd90 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeOssBucketsRequest.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_SGW_MODEL_DESCRIBEOSSBUCKETSREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEOSSBUCKETSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeOssBucketsRequest : public RpcServiceRequest + { + + public: + DescribeOssBucketsRequest(); + ~DescribeOssBucketsRequest(); + + std::string getBucketEndpoint()const; + void setBucketEndpoint(const std::string& bucketEndpoint); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + + private: + std::string bucketEndpoint_; + std::string accessKeyId_; + std::string securityToken_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEOSSBUCKETSREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeOssBucketsResult.h b/sgw/include/alibabacloud/sgw/model/DescribeOssBucketsResult.h new file mode 100644 index 000000000..c67edcf36 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeOssBucketsResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_DESCRIBEOSSBUCKETSRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEOSSBUCKETSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeOssBucketsResult : public ServiceResult + { + public: + struct Bucket + { + std::string name; + }; + + + DescribeOssBucketsResult(); + explicit DescribeOssBucketsResult(const std::string &payload); + ~DescribeOssBucketsResult(); + std::string getMessage()const; + std::string getCode()const; + std::vector getBuckets()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + std::vector buckets_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEOSSBUCKETSRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribePayAsYouGoPriceRequest.h b/sgw/include/alibabacloud/sgw/model/DescribePayAsYouGoPriceRequest.h new file mode 100644 index 000000000..f12083a4f --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribePayAsYouGoPriceRequest.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_SGW_MODEL_DESCRIBEPAYASYOUGOPRICEREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEPAYASYOUGOPRICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribePayAsYouGoPriceRequest : public RpcServiceRequest + { + + public: + DescribePayAsYouGoPriceRequest(); + ~DescribePayAsYouGoPriceRequest(); + + std::string getGatewayClass()const; + void setGatewayClass(const std::string& gatewayClass); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string gatewayClass_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEPAYASYOUGOPRICEREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribePayAsYouGoPriceResult.h b/sgw/include/alibabacloud/sgw/model/DescribePayAsYouGoPriceResult.h new file mode 100644 index 000000000..c25df7004 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribePayAsYouGoPriceResult.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_SGW_MODEL_DESCRIBEPAYASYOUGOPRICERESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEPAYASYOUGOPRICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribePayAsYouGoPriceResult : public ServiceResult + { + public: + + + DescribePayAsYouGoPriceResult(); + explicit DescribePayAsYouGoPriceResult(const std::string &payload); + ~DescribePayAsYouGoPriceResult(); + std::string getMessage()const; + std::string getCurrency()const; + float getGatewayClassPrice()const; + float getCacheCloudEfficiencySizePrice()const; + std::string getCode()const; + bool getSuccess()const; + float getCacheCloudSSDSizePrice()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string currency_; + float gatewayClassPrice_; + float cacheCloudEfficiencySizePrice_; + std::string code_; + bool success_; + float cacheCloudSSDSizePrice_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEPAYASYOUGOPRICERESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeRegionsRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeRegionsRequest.h new file mode 100644 index 000000000..c2ad540b0 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeRegionsRequest.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_SGW_MODEL_DESCRIBEREGIONSREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEREGIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeRegionsRequest : public RpcServiceRequest + { + + public: + DescribeRegionsRequest(); + ~DescribeRegionsRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + + private: + std::string accessKeyId_; + std::string securityToken_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEREGIONSREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeRegionsResult.h b/sgw/include/alibabacloud/sgw/model/DescribeRegionsResult.h new file mode 100644 index 000000000..3bf07f63d --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeRegionsResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_DESCRIBEREGIONSRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEREGIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeRegionsResult : public ServiceResult + { + public: + struct Region + { + std::string regionId; + }; + + + DescribeRegionsResult(); + explicit DescribeRegionsResult(const std::string &payload); + ~DescribeRegionsResult(); + std::string getMessage()const; + std::vector getRegions()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector regions_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEREGIONSRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeSharesBucketInfoForExpressSyncRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeSharesBucketInfoForExpressSyncRequest.h new file mode 100644 index 000000000..6b965b196 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeSharesBucketInfoForExpressSyncRequest.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_SGW_MODEL_DESCRIBESHARESBUCKETINFOFOREXPRESSSYNCREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBESHARESBUCKETINFOFOREXPRESSSYNCREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeSharesBucketInfoForExpressSyncRequest : public RpcServiceRequest + { + + public: + DescribeSharesBucketInfoForExpressSyncRequest(); + ~DescribeSharesBucketInfoForExpressSyncRequest(); + + std::string getBucketRegion()const; + void setBucketRegion(const std::string& bucketRegion); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getBucketName()const; + void setBucketName(const std::string& bucketName); + + private: + std::string bucketRegion_; + std::string accessKeyId_; + std::string securityToken_; + std::string bucketName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBESHARESBUCKETINFOFOREXPRESSSYNCREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeSharesBucketInfoForExpressSyncResult.h b/sgw/include/alibabacloud/sgw/model/DescribeSharesBucketInfoForExpressSyncResult.h new file mode 100644 index 000000000..e19c3035d --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeSharesBucketInfoForExpressSyncResult.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_SGW_MODEL_DESCRIBESHARESBUCKETINFOFOREXPRESSSYNCRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBESHARESBUCKETINFOFOREXPRESSSYNCRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeSharesBucketInfoForExpressSyncResult : public ServiceResult + { + public: + struct BucketInfo + { + std::string bucketName; + std::string bucketRegion; + std::string bucketPrefix; + }; + + + DescribeSharesBucketInfoForExpressSyncResult(); + explicit DescribeSharesBucketInfoForExpressSyncResult(const std::string &payload); + ~DescribeSharesBucketInfoForExpressSyncResult(); + std::vector getBucketInfos()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector bucketInfos_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBESHARESBUCKETINFOFOREXPRESSSYNCRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeStorageBundleRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeStorageBundleRequest.h new file mode 100644 index 000000000..554594042 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeStorageBundleRequest.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_SGW_MODEL_DESCRIBESTORAGEBUNDLEREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBESTORAGEBUNDLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeStorageBundleRequest : public RpcServiceRequest + { + + public: + DescribeStorageBundleRequest(); + ~DescribeStorageBundleRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getStorageBundleId()const; + void setStorageBundleId(const std::string& storageBundleId); + + private: + std::string accessKeyId_; + std::string securityToken_; + std::string storageBundleId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBESTORAGEBUNDLEREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeStorageBundleResult.h b/sgw/include/alibabacloud/sgw/model/DescribeStorageBundleResult.h new file mode 100644 index 000000000..d195ff85c --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeStorageBundleResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_DESCRIBESTORAGEBUNDLERESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBESTORAGEBUNDLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeStorageBundleResult : public ServiceResult + { + public: + + + DescribeStorageBundleResult(); + explicit DescribeStorageBundleResult(const std::string &payload); + ~DescribeStorageBundleResult(); + std::string getDescription()const; + long getCreatedTime()const; + std::string getMessage()const; + std::string getResourceGroupId()const; + std::string getStorageBundleId()const; + std::string getCode()const; + std::string getBackendBucketRegionId()const; + bool getSuccess()const; + std::string getName()const; + std::string getLocation()const; + + protected: + void parse(const std::string &payload); + private: + std::string description_; + long createdTime_; + std::string message_; + std::string resourceGroupId_; + std::string storageBundleId_; + std::string code_; + std::string backendBucketRegionId_; + bool success_; + std::string name_; + std::string location_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBESTORAGEBUNDLERESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeStorageBundlesRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeStorageBundlesRequest.h new file mode 100644 index 000000000..9264cee41 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeStorageBundlesRequest.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_SGW_MODEL_DESCRIBESTORAGEBUNDLESREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBESTORAGEBUNDLESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeStorageBundlesRequest : public RpcServiceRequest + { + + public: + DescribeStorageBundlesRequest(); + ~DescribeStorageBundlesRequest(); + + std::string getBackendBucketRegionId()const; + void setBackendBucketRegionId(const std::string& backendBucketRegionId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + int getPageSize()const; + void setPageSize(int pageSize); + + private: + std::string backendBucketRegionId_; + int pageNumber_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string securityToken_; + int pageSize_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBESTORAGEBUNDLESREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeStorageBundlesResult.h b/sgw/include/alibabacloud/sgw/model/DescribeStorageBundlesResult.h new file mode 100644 index 000000000..e16cda814 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeStorageBundlesResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_DESCRIBESTORAGEBUNDLESRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBESTORAGEBUNDLESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeStorageBundlesResult : public ServiceResult + { + public: + struct StorageBundle + { + std::string description; + long createdTime; + std::string resourceGroupId; + std::string storageBundleId; + std::string backendBucketRegionId; + std::string name; + std::string location; + }; + + + DescribeStorageBundlesResult(); + explicit DescribeStorageBundlesResult(const std::string &payload); + ~DescribeStorageBundlesResult(); + int getTotalCount()const; + std::string getMessage()const; + int getPageSize()const; + int getPageNumber()const; + std::string getCode()const; + std::vector getStorageBundles()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string message_; + int pageSize_; + int pageNumber_; + std::string code_; + std::vector storageBundles_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBESTORAGEBUNDLESRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeSubscriptionPriceRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeSubscriptionPriceRequest.h new file mode 100644 index 000000000..f60f596c0 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeSubscriptionPriceRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_DESCRIBESUBSCRIPTIONPRICEREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBESUBSCRIPTIONPRICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeSubscriptionPriceRequest : public RpcServiceRequest + { + + public: + DescribeSubscriptionPriceRequest(); + ~DescribeSubscriptionPriceRequest(); + + std::string getGatewayClass()const; + void setGatewayClass(const std::string& gatewayClass); + long getCacheSSDSize()const; + void setCacheSSDSize(long cacheSSDSize); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getPeriodUnit()const; + void setPeriodUnit(const std::string& periodUnit); + int getPeriodQuantity()const; + void setPeriodQuantity(int periodQuantity); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + long getCacheCloudEfficiencySize()const; + void setCacheCloudEfficiencySize(long cacheCloudEfficiencySize); + + private: + std::string gatewayClass_; + long cacheSSDSize_; + std::string accessKeyId_; + std::string periodUnit_; + int periodQuantity_; + std::string securityToken_; + std::string regionId_; + long cacheCloudEfficiencySize_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBESUBSCRIPTIONPRICEREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeSubscriptionPriceResult.h b/sgw/include/alibabacloud/sgw/model/DescribeSubscriptionPriceResult.h new file mode 100644 index 000000000..3dd6c612d --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeSubscriptionPriceResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_DESCRIBESUBSCRIPTIONPRICERESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBESUBSCRIPTIONPRICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeSubscriptionPriceResult : public ServiceResult + { + public: + + + DescribeSubscriptionPriceResult(); + explicit DescribeSubscriptionPriceResult(const std::string &payload); + ~DescribeSubscriptionPriceResult(); + std::string getMessage()const; + std::string getCurrency()const; + float getTradePrice()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string currency_; + float tradePrice_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBESUBSCRIPTIONPRICERESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeTasksRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeTasksRequest.h new file mode 100644 index 000000000..32ca281e9 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeTasksRequest.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_SGW_MODEL_DESCRIBETASKSREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBETASKSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeTasksRequest : public RpcServiceRequest + { + + public: + DescribeTasksRequest(); + ~DescribeTasksRequest(); + + std::string getTargetId()const; + void setTargetId(const std::string& targetId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + + private: + std::string targetId_; + int pageNumber_; + std::string accessKeyId_; + std::string securityToken_; + int pageSize_; + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBETASKSREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeTasksResult.h b/sgw/include/alibabacloud/sgw/model/DescribeTasksResult.h new file mode 100644 index 000000000..ba7ab76c2 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeTasksResult.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_SGW_MODEL_DESCRIBETASKSRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBETASKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeTasksResult : public ServiceResult + { + public: + struct SimpleTask + { + int progress; + std::string taskId; + long createdTime; + std::string messageKey; + std::string stateCode; + std::string messageParams; + long updatedTime; + std::string stageCode; + std::string name; + }; + + + DescribeTasksResult(); + explicit DescribeTasksResult(const std::string &payload); + ~DescribeTasksResult(); + int getTotalCount()const; + std::vector getTasks()const; + std::string getMessage()const; + int getPageSize()const; + int getPageNumber()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector tasks_; + std::string message_; + int pageSize_; + int pageNumber_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBETASKSRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeUserBusinessStatusRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeUserBusinessStatusRequest.h new file mode 100644 index 000000000..20d7801f0 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeUserBusinessStatusRequest.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_SGW_MODEL_DESCRIBEUSERBUSINESSSTATUSREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEUSERBUSINESSSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeUserBusinessStatusRequest : public RpcServiceRequest + { + + public: + DescribeUserBusinessStatusRequest(); + ~DescribeUserBusinessStatusRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + + private: + std::string accessKeyId_; + std::string securityToken_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEUSERBUSINESSSTATUSREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeUserBusinessStatusResult.h b/sgw/include/alibabacloud/sgw/model/DescribeUserBusinessStatusResult.h new file mode 100644 index 000000000..6fff35175 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeUserBusinessStatusResult.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_SGW_MODEL_DESCRIBEUSERBUSINESSSTATUSRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEUSERBUSINESSSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeUserBusinessStatusResult : public ServiceResult + { + public: + + + DescribeUserBusinessStatusResult(); + explicit DescribeUserBusinessStatusResult(const std::string &payload); + ~DescribeUserBusinessStatusResult(); + bool getIsIndebtedOverdue()const; + bool getIsRiskControl()const; + std::string getMessage()const; + bool getIsEnabled()const; + bool getIsIndebted()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + bool isIndebtedOverdue_; + bool isRiskControl_; + std::string message_; + bool isEnabled_; + bool isIndebted_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEUSERBUSINESSSTATUSRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeVSwitchesRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeVSwitchesRequest.h new file mode 100644 index 000000000..4cd21696f --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeVSwitchesRequest.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_SGW_MODEL_DESCRIBEVSWITCHESREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEVSWITCHESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeVSwitchesRequest : public RpcServiceRequest + { + + public: + DescribeVSwitchesRequest(); + ~DescribeVSwitchesRequest(); + + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getStorageBundleId()const; + void setStorageBundleId(const std::string& storageBundleId); + + private: + int pageNumber_; + std::string accessKeyId_; + std::string vSwitchId_; + std::string securityToken_; + std::string vpcId_; + int pageSize_; + std::string storageBundleId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEVSWITCHESREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeVSwitchesResult.h b/sgw/include/alibabacloud/sgw/model/DescribeVSwitchesResult.h new file mode 100644 index 000000000..313baad4a --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeVSwitchesResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_DESCRIBEVSWITCHESRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEVSWITCHESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeVSwitchesResult : public ServiceResult + { + public: + struct VSwitch + { + bool isDefault; + std::string zoneId; + std::string availableSelectionInfo; + std::string id; + std::string name; + }; + + + DescribeVSwitchesResult(); + explicit DescribeVSwitchesResult(const std::string &payload); + ~DescribeVSwitchesResult(); + int getTotalCount()const; + std::string getMessage()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getVSwitches()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string message_; + int pageSize_; + int pageNumber_; + std::vector vSwitches_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEVSWITCHESRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeVpcsRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeVpcsRequest.h new file mode 100644 index 000000000..27b1d53a2 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeVpcsRequest.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_SGW_MODEL_DESCRIBEVPCSREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEVPCSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeVpcsRequest : public RpcServiceRequest + { + + public: + DescribeVpcsRequest(); + ~DescribeVpcsRequest(); + + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getStorageBundleId()const; + void setStorageBundleId(const std::string& storageBundleId); + + private: + int pageNumber_; + std::string accessKeyId_; + std::string securityToken_; + std::string vpcId_; + int pageSize_; + std::string storageBundleId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEVPCSREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeVpcsResult.h b/sgw/include/alibabacloud/sgw/model/DescribeVpcsResult.h new file mode 100644 index 000000000..a2eb67fb8 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeVpcsResult.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_DESCRIBEVPCSRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEVPCSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeVpcsResult : public ServiceResult + { + public: + struct Vpc + { + bool isDefault; + std::string cidrBlock; + std::string id; + std::string name; + }; + + + DescribeVpcsResult(); + explicit DescribeVpcsResult(const std::string &payload); + ~DescribeVpcsResult(); + std::vector getVpcs()const; + int getTotalCount()const; + std::string getMessage()const; + int getPageSize()const; + int getPageNumber()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector vpcs_; + int totalCount_; + std::string message_; + int pageSize_; + int pageNumber_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEVPCSRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeZonesRequest.h b/sgw/include/alibabacloud/sgw/model/DescribeZonesRequest.h new file mode 100644 index 000000000..7d2f06a8c --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeZonesRequest.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_SGW_MODEL_DESCRIBEZONESREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEZONESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeZonesRequest : public RpcServiceRequest + { + + public: + DescribeZonesRequest(); + ~DescribeZonesRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEZONESREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DescribeZonesResult.h b/sgw/include/alibabacloud/sgw/model/DescribeZonesResult.h new file mode 100644 index 000000000..42b7d52a6 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DescribeZonesResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_DESCRIBEZONESRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DESCRIBEZONESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DescribeZonesResult : public ServiceResult + { + public: + struct Zone + { + std::string zoneId; + }; + + + DescribeZonesResult(); + explicit DescribeZonesResult(const std::string &payload); + ~DescribeZonesResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + std::vector getZones()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + std::vector zones_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DESCRIBEZONESRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DisableGatewayLoggingRequest.h b/sgw/include/alibabacloud/sgw/model/DisableGatewayLoggingRequest.h new file mode 100644 index 000000000..f57e5ccf9 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DisableGatewayLoggingRequest.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_SGW_MODEL_DISABLEGATEWAYLOGGINGREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_DISABLEGATEWAYLOGGINGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DisableGatewayLoggingRequest : public RpcServiceRequest + { + + public: + DisableGatewayLoggingRequest(); + ~DisableGatewayLoggingRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string accessKeyId_; + std::string securityToken_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DISABLEGATEWAYLOGGINGREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/DisableGatewayLoggingResult.h b/sgw/include/alibabacloud/sgw/model/DisableGatewayLoggingResult.h new file mode 100644 index 000000000..d7795995e --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/DisableGatewayLoggingResult.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_SGW_MODEL_DISABLEGATEWAYLOGGINGRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_DISABLEGATEWAYLOGGINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT DisableGatewayLoggingResult : public ServiceResult + { + public: + + + DisableGatewayLoggingResult(); + explicit DisableGatewayLoggingResult(const std::string &payload); + ~DisableGatewayLoggingResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_DISABLEGATEWAYLOGGINGRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/EnableGatewayLoggingRequest.h b/sgw/include/alibabacloud/sgw/model/EnableGatewayLoggingRequest.h new file mode 100644 index 000000000..c3313267c --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/EnableGatewayLoggingRequest.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_SGW_MODEL_ENABLEGATEWAYLOGGINGREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_ENABLEGATEWAYLOGGINGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT EnableGatewayLoggingRequest : public RpcServiceRequest + { + + public: + EnableGatewayLoggingRequest(); + ~EnableGatewayLoggingRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string accessKeyId_; + std::string securityToken_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_ENABLEGATEWAYLOGGINGREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/EnableGatewayLoggingResult.h b/sgw/include/alibabacloud/sgw/model/EnableGatewayLoggingResult.h new file mode 100644 index 000000000..30ce4afa8 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/EnableGatewayLoggingResult.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_SGW_MODEL_ENABLEGATEWAYLOGGINGRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_ENABLEGATEWAYLOGGINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT EnableGatewayLoggingResult : public ServiceResult + { + public: + + + EnableGatewayLoggingResult(); + explicit EnableGatewayLoggingResult(const std::string &payload); + ~EnableGatewayLoggingResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_ENABLEGATEWAYLOGGINGRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/ExpandCacheDiskRequest.h b/sgw/include/alibabacloud/sgw/model/ExpandCacheDiskRequest.h new file mode 100644 index 000000000..bc04ac356 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/ExpandCacheDiskRequest.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_SGW_MODEL_EXPANDCACHEDISKREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_EXPANDCACHEDISKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT ExpandCacheDiskRequest : public RpcServiceRequest + { + + public: + ExpandCacheDiskRequest(); + ~ExpandCacheDiskRequest(); + + std::string getLocalFilePath()const; + void setLocalFilePath(const std::string& localFilePath); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + int getNewSizeInGB()const; + void setNewSizeInGB(int newSizeInGB); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string localFilePath_; + std::string accessKeyId_; + int newSizeInGB_; + std::string securityToken_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_EXPANDCACHEDISKREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/ExpandCacheDiskResult.h b/sgw/include/alibabacloud/sgw/model/ExpandCacheDiskResult.h new file mode 100644 index 000000000..bdf5fe07c --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/ExpandCacheDiskResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_EXPANDCACHEDISKRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_EXPANDCACHEDISKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT ExpandCacheDiskResult : public ServiceResult + { + public: + + + ExpandCacheDiskResult(); + explicit ExpandCacheDiskResult(const std::string &payload); + ~ExpandCacheDiskResult(); + std::string getBuyURL()const; + std::string getTaskId()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string buyURL_; + std::string taskId_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_EXPANDCACHEDISKRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/ExpandGatewayNetworkBandwidthRequest.h b/sgw/include/alibabacloud/sgw/model/ExpandGatewayNetworkBandwidthRequest.h new file mode 100644 index 000000000..dac84e573 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/ExpandGatewayNetworkBandwidthRequest.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_SGW_MODEL_EXPANDGATEWAYNETWORKBANDWIDTHREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_EXPANDGATEWAYNETWORKBANDWIDTHREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT ExpandGatewayNetworkBandwidthRequest : public RpcServiceRequest + { + + public: + ExpandGatewayNetworkBandwidthRequest(); + ~ExpandGatewayNetworkBandwidthRequest(); + + int getNewNetworkBandwidth()const; + void setNewNetworkBandwidth(int newNetworkBandwidth); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + int newNetworkBandwidth_; + std::string accessKeyId_; + std::string securityToken_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_EXPANDGATEWAYNETWORKBANDWIDTHREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/ExpandGatewayNetworkBandwidthResult.h b/sgw/include/alibabacloud/sgw/model/ExpandGatewayNetworkBandwidthResult.h new file mode 100644 index 000000000..0c1d400b4 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/ExpandGatewayNetworkBandwidthResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_EXPANDGATEWAYNETWORKBANDWIDTHRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_EXPANDGATEWAYNETWORKBANDWIDTHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT ExpandGatewayNetworkBandwidthResult : public ServiceResult + { + public: + + + ExpandGatewayNetworkBandwidthResult(); + explicit ExpandGatewayNetworkBandwidthResult(const std::string &payload); + ~ExpandGatewayNetworkBandwidthResult(); + std::string getBuyURL()const; + std::string getTaskId()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string buyURL_; + std::string taskId_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_EXPANDGATEWAYNETWORKBANDWIDTHRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/GenerateGatewayTokenRequest.h b/sgw/include/alibabacloud/sgw/model/GenerateGatewayTokenRequest.h new file mode 100644 index 000000000..fef909f98 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/GenerateGatewayTokenRequest.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_SGW_MODEL_GENERATEGATEWAYTOKENREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_GENERATEGATEWAYTOKENREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT GenerateGatewayTokenRequest : public RpcServiceRequest + { + + public: + GenerateGatewayTokenRequest(); + ~GenerateGatewayTokenRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string accessKeyId_; + std::string securityToken_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_GENERATEGATEWAYTOKENREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/GenerateGatewayTokenResult.h b/sgw/include/alibabacloud/sgw/model/GenerateGatewayTokenResult.h new file mode 100644 index 000000000..0c67db1cd --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/GenerateGatewayTokenResult.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_SGW_MODEL_GENERATEGATEWAYTOKENRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_GENERATEGATEWAYTOKENRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT GenerateGatewayTokenResult : public ServiceResult + { + public: + + + GenerateGatewayTokenResult(); + explicit GenerateGatewayTokenResult(const std::string &payload); + ~GenerateGatewayTokenResult(); + std::string getMessage()const; + std::string getToken()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string token_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_GENERATEGATEWAYTOKENRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/GenerateMqttTokenRequest.h b/sgw/include/alibabacloud/sgw/model/GenerateMqttTokenRequest.h new file mode 100644 index 000000000..793713403 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/GenerateMqttTokenRequest.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_SGW_MODEL_GENERATEMQTTTOKENREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_GENERATEMQTTTOKENREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT GenerateMqttTokenRequest : public RpcServiceRequest + { + + public: + GenerateMqttTokenRequest(); + ~GenerateMqttTokenRequest(); + + std::string getClientUUID()const; + void setClientUUID(const std::string& clientUUID); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string clientUUID_; + std::string accessKeyId_; + std::string securityToken_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_GENERATEMQTTTOKENREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/GenerateMqttTokenResult.h b/sgw/include/alibabacloud/sgw/model/GenerateMqttTokenResult.h new file mode 100644 index 000000000..a4a3ffcfd --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/GenerateMqttTokenResult.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_SGW_MODEL_GENERATEMQTTTOKENRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_GENERATEMQTTTOKENRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT GenerateMqttTokenResult : public ServiceResult + { + public: + + + GenerateMqttTokenResult(); + explicit GenerateMqttTokenResult(const std::string &payload); + ~GenerateMqttTokenResult(); + std::string getMessage()const; + std::string getMqttToken()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string mqttToken_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_GENERATEMQTTTOKENRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/GenerateStsTokenRequest.h b/sgw/include/alibabacloud/sgw/model/GenerateStsTokenRequest.h new file mode 100644 index 000000000..97cb738f3 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/GenerateStsTokenRequest.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_SGW_MODEL_GENERATESTSTOKENREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_GENERATESTSTOKENREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT GenerateStsTokenRequest : public RpcServiceRequest + { + + public: + GenerateStsTokenRequest(); + ~GenerateStsTokenRequest(); + + std::string getTokenType()const; + void setTokenType(const std::string& tokenType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + long getExpireInSeconds()const; + void setExpireInSeconds(long expireInSeconds); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string tokenType_; + std::string accessKeyId_; + long expireInSeconds_; + std::string securityToken_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_GENERATESTSTOKENREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/GenerateStsTokenResult.h b/sgw/include/alibabacloud/sgw/model/GenerateStsTokenResult.h new file mode 100644 index 000000000..cb21a3b8c --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/GenerateStsTokenResult.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_SGW_MODEL_GENERATESTSTOKENRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_GENERATESTSTOKENRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT GenerateStsTokenResult : public ServiceResult + { + public: + + + GenerateStsTokenResult(); + explicit GenerateStsTokenResult(const std::string &payload); + ~GenerateStsTokenResult(); + std::string getSecurityToken()const; + std::string getMessage()const; + std::string getSupportBundleTarget()const; + std::string getAccessKeyId()const; + std::string getAccessKeySecret()const; + std::string getExpiration()const; + std::string getEnvironment()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string securityToken_; + std::string message_; + std::string supportBundleTarget_; + std::string accessKeyId_; + std::string accessKeySecret_; + std::string expiration_; + std::string environment_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_GENERATESTSTOKENRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/ListTagResourcesRequest.h b/sgw/include/alibabacloud/sgw/model/ListTagResourcesRequest.h new file mode 100644 index 000000000..e17de21f7 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/ListTagResourcesRequest.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_SGW_MODEL_LISTTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_LISTTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT ListTagResourcesRequest : public RpcServiceRequest + { + public: + struct Tag + { + std::string value; + std::string key; + }; + + public: + ListTagResourcesRequest(); + ~ListTagResourcesRequest(); + + std::vector getResourceId()const; + void setResourceId(const std::vector& resourceId); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNextToken()const; + void setNextToken(const std::string& nextToken); + std::vector getTag()const; + void setTag(const std::vector& tag); + + private: + std::vector resourceId_; + std::string resourceType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string nextToken_; + std::vector tag_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_LISTTAGRESOURCESREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/ListTagResourcesResult.h b/sgw/include/alibabacloud/sgw/model/ListTagResourcesResult.h new file mode 100644 index 000000000..002fe42b0 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/ListTagResourcesResult.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_SGW_MODEL_LISTTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_LISTTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT ListTagResourcesResult : public ServiceResult + { + public: + struct TagResource + { + std::string resourceId; + std::string tagKey; + std::string resourceType; + std::string tagValue; + }; + + + ListTagResourcesResult(); + explicit ListTagResourcesResult(const std::string &payload); + ~ListTagResourcesResult(); + std::string getNextToken()const; + std::vector getTagResources()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::vector tagResources_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_LISTTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/ModifyGatewayBlockVolumeRequest.h b/sgw/include/alibabacloud/sgw/model/ModifyGatewayBlockVolumeRequest.h new file mode 100644 index 000000000..575f1c41c --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/ModifyGatewayBlockVolumeRequest.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_SGW_MODEL_MODIFYGATEWAYBLOCKVOLUMEREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_MODIFYGATEWAYBLOCKVOLUMEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT ModifyGatewayBlockVolumeRequest : public RpcServiceRequest + { + + public: + ModifyGatewayBlockVolumeRequest(); + ~ModifyGatewayBlockVolumeRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getCacheConfig()const; + void setCacheConfig(const std::string& cacheConfig); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getIndexId()const; + void setIndexId(const std::string& indexId); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string accessKeyId_; + std::string cacheConfig_; + std::string securityToken_; + std::string indexId_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_MODIFYGATEWAYBLOCKVOLUMEREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/ModifyGatewayBlockVolumeResult.h b/sgw/include/alibabacloud/sgw/model/ModifyGatewayBlockVolumeResult.h new file mode 100644 index 000000000..0ff6d2d73 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/ModifyGatewayBlockVolumeResult.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_SGW_MODEL_MODIFYGATEWAYBLOCKVOLUMERESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_MODIFYGATEWAYBLOCKVOLUMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT ModifyGatewayBlockVolumeResult : public ServiceResult + { + public: + + + ModifyGatewayBlockVolumeResult(); + explicit ModifyGatewayBlockVolumeResult(const std::string &payload); + ~ModifyGatewayBlockVolumeResult(); + std::string getTaskId()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_MODIFYGATEWAYBLOCKVOLUMERESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/ModifyGatewayClassRequest.h b/sgw/include/alibabacloud/sgw/model/ModifyGatewayClassRequest.h new file mode 100644 index 000000000..b80f081e0 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/ModifyGatewayClassRequest.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_SGW_MODEL_MODIFYGATEWAYCLASSREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_MODIFYGATEWAYCLASSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT ModifyGatewayClassRequest : public RpcServiceRequest + { + + public: + ModifyGatewayClassRequest(); + ~ModifyGatewayClassRequest(); + + std::string getGatewayClass()const; + void setGatewayClass(const std::string& gatewayClass); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string gatewayClass_; + std::string accessKeyId_; + std::string securityToken_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_MODIFYGATEWAYCLASSREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/ModifyGatewayClassResult.h b/sgw/include/alibabacloud/sgw/model/ModifyGatewayClassResult.h new file mode 100644 index 000000000..82dc667c4 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/ModifyGatewayClassResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_MODIFYGATEWAYCLASSRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_MODIFYGATEWAYCLASSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT ModifyGatewayClassResult : public ServiceResult + { + public: + + + ModifyGatewayClassResult(); + explicit ModifyGatewayClassResult(const std::string &payload); + ~ModifyGatewayClassResult(); + std::string getBuyURL()const; + std::string getTaskId()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string buyURL_; + std::string taskId_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_MODIFYGATEWAYCLASSRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/ModifyGatewayFileShareRequest.h b/sgw/include/alibabacloud/sgw/model/ModifyGatewayFileShareRequest.h new file mode 100644 index 000000000..2f631346f --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/ModifyGatewayFileShareRequest.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_SGW_MODEL_MODIFYGATEWAYFILESHAREREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_MODIFYGATEWAYFILESHAREREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT ModifyGatewayFileShareRequest : public RpcServiceRequest + { + + public: + ModifyGatewayFileShareRequest(); + ~ModifyGatewayFileShareRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getCacheConfig()const; + void setCacheConfig(const std::string& cacheConfig); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getIndexId()const; + void setIndexId(const std::string& indexId); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string accessKeyId_; + std::string cacheConfig_; + std::string securityToken_; + std::string indexId_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_MODIFYGATEWAYFILESHAREREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/ModifyGatewayFileShareResult.h b/sgw/include/alibabacloud/sgw/model/ModifyGatewayFileShareResult.h new file mode 100644 index 000000000..30489115c --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/ModifyGatewayFileShareResult.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_SGW_MODEL_MODIFYGATEWAYFILESHARERESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_MODIFYGATEWAYFILESHARERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT ModifyGatewayFileShareResult : public ServiceResult + { + public: + + + ModifyGatewayFileShareResult(); + explicit ModifyGatewayFileShareResult(const std::string &payload); + ~ModifyGatewayFileShareResult(); + std::string getTaskId()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_MODIFYGATEWAYFILESHARERESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/ModifyGatewayRequest.h b/sgw/include/alibabacloud/sgw/model/ModifyGatewayRequest.h new file mode 100644 index 000000000..e4505b102 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/ModifyGatewayRequest.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_SGW_MODEL_MODIFYGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_MODIFYGATEWAYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT ModifyGatewayRequest : public RpcServiceRequest + { + + public: + ModifyGatewayRequest(); + ~ModifyGatewayRequest(); + + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getName()const; + void setName(const std::string& name); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string description_; + std::string accessKeyId_; + std::string securityToken_; + std::string name_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_MODIFYGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/ModifyGatewayResult.h b/sgw/include/alibabacloud/sgw/model/ModifyGatewayResult.h new file mode 100644 index 000000000..ec86ea7f9 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/ModifyGatewayResult.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_SGW_MODEL_MODIFYGATEWAYRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_MODIFYGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT ModifyGatewayResult : public ServiceResult + { + public: + + + ModifyGatewayResult(); + explicit ModifyGatewayResult(const std::string &payload); + ~ModifyGatewayResult(); + std::string getMessage()const; + std::string getGatewayId()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string gatewayId_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_MODIFYGATEWAYRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/ModifyStorageBundleRequest.h b/sgw/include/alibabacloud/sgw/model/ModifyStorageBundleRequest.h new file mode 100644 index 000000000..ec91993e3 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/ModifyStorageBundleRequest.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_SGW_MODEL_MODIFYSTORAGEBUNDLEREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_MODIFYSTORAGEBUNDLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT ModifyStorageBundleRequest : public RpcServiceRequest + { + + public: + ModifyStorageBundleRequest(); + ~ModifyStorageBundleRequest(); + + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getName()const; + void setName(const std::string& name); + std::string getStorageBundleId()const; + void setStorageBundleId(const std::string& storageBundleId); + + private: + std::string description_; + std::string accessKeyId_; + std::string securityToken_; + std::string name_; + std::string storageBundleId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_MODIFYSTORAGEBUNDLEREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/ModifyStorageBundleResult.h b/sgw/include/alibabacloud/sgw/model/ModifyStorageBundleResult.h new file mode 100644 index 000000000..8161db7b6 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/ModifyStorageBundleResult.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_SGW_MODEL_MODIFYSTORAGEBUNDLERESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_MODIFYSTORAGEBUNDLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT ModifyStorageBundleResult : public ServiceResult + { + public: + + + ModifyStorageBundleResult(); + explicit ModifyStorageBundleResult(const std::string &payload); + ~ModifyStorageBundleResult(); + std::string getMessage()const; + std::string getStorageBundleId()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string storageBundleId_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_MODIFYSTORAGEBUNDLERESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/OperateGatewayRequest.h b/sgw/include/alibabacloud/sgw/model/OperateGatewayRequest.h new file mode 100644 index 000000000..0a2f939b4 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/OperateGatewayRequest.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_SGW_MODEL_OPERATEGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_OPERATEGATEWAYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT OperateGatewayRequest : public RpcServiceRequest + { + + public: + OperateGatewayRequest(); + ~OperateGatewayRequest(); + + std::string getOperateAction()const; + void setOperateAction(const std::string& operateAction); + std::string getParams()const; + void setParams(const std::string& params); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string operateAction_; + std::string params_; + std::string accessKeyId_; + std::string securityToken_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_OPERATEGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/OperateGatewayResult.h b/sgw/include/alibabacloud/sgw/model/OperateGatewayResult.h new file mode 100644 index 000000000..d3502eb81 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/OperateGatewayResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_OPERATEGATEWAYRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_OPERATEGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT OperateGatewayResult : public ServiceResult + { + public: + + + OperateGatewayResult(); + explicit OperateGatewayResult(const std::string &payload); + ~OperateGatewayResult(); + std::string getBuyURL()const; + std::string getTaskId()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string buyURL_; + std::string taskId_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_OPERATEGATEWAYRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/ReleaseServiceRequest.h b/sgw/include/alibabacloud/sgw/model/ReleaseServiceRequest.h new file mode 100644 index 000000000..cdaa9612f --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/ReleaseServiceRequest.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_SGW_MODEL_RELEASESERVICEREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_RELEASESERVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT ReleaseServiceRequest : public RpcServiceRequest + { + + public: + ReleaseServiceRequest(); + ~ReleaseServiceRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + + private: + std::string accessKeyId_; + std::string securityToken_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_RELEASESERVICEREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/ReleaseServiceResult.h b/sgw/include/alibabacloud/sgw/model/ReleaseServiceResult.h new file mode 100644 index 000000000..7af7218fa --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/ReleaseServiceResult.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_SGW_MODEL_RELEASESERVICERESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_RELEASESERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT ReleaseServiceResult : public ServiceResult + { + public: + + + ReleaseServiceResult(); + explicit ReleaseServiceResult(const std::string &payload); + ~ReleaseServiceResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_RELEASESERVICERESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/RemoveSharesFromExpressSyncRequest.h b/sgw/include/alibabacloud/sgw/model/RemoveSharesFromExpressSyncRequest.h new file mode 100644 index 000000000..528682d90 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/RemoveSharesFromExpressSyncRequest.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_SGW_MODEL_REMOVESHARESFROMEXPRESSSYNCREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_REMOVESHARESFROMEXPRESSSYNCREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT RemoveSharesFromExpressSyncRequest : public RpcServiceRequest + { + + public: + RemoveSharesFromExpressSyncRequest(); + ~RemoveSharesFromExpressSyncRequest(); + + std::string getExpressSyncId()const; + void setExpressSyncId(const std::string& expressSyncId); + std::string getGatewayShares()const; + void setGatewayShares(const std::string& gatewayShares); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + + private: + std::string expressSyncId_; + std::string gatewayShares_; + std::string accessKeyId_; + std::string securityToken_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_REMOVESHARESFROMEXPRESSSYNCREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/RemoveSharesFromExpressSyncResult.h b/sgw/include/alibabacloud/sgw/model/RemoveSharesFromExpressSyncResult.h new file mode 100644 index 000000000..5b6a36277 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/RemoveSharesFromExpressSyncResult.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_SGW_MODEL_REMOVESHARESFROMEXPRESSSYNCRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_REMOVESHARESFROMEXPRESSSYNCRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT RemoveSharesFromExpressSyncResult : public ServiceResult + { + public: + + + RemoveSharesFromExpressSyncResult(); + explicit RemoveSharesFromExpressSyncResult(const std::string &payload); + ~RemoveSharesFromExpressSyncResult(); + std::string getTaskId()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_REMOVESHARESFROMEXPRESSSYNCRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/RemoveTagsFromGatewayRequest.h b/sgw/include/alibabacloud/sgw/model/RemoveTagsFromGatewayRequest.h new file mode 100644 index 000000000..a98e35b08 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/RemoveTagsFromGatewayRequest.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_SGW_MODEL_REMOVETAGSFROMGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_REMOVETAGSFROMGATEWAYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT RemoveTagsFromGatewayRequest : public RpcServiceRequest + { + + public: + RemoveTagsFromGatewayRequest(); + ~RemoveTagsFromGatewayRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getTags()const; + void setTags(const std::string& tags); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string accessKeyId_; + std::string tags_; + std::string securityToken_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_REMOVETAGSFROMGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/RemoveTagsFromGatewayResult.h b/sgw/include/alibabacloud/sgw/model/RemoveTagsFromGatewayResult.h new file mode 100644 index 000000000..e196b090d --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/RemoveTagsFromGatewayResult.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_SGW_MODEL_REMOVETAGSFROMGATEWAYRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_REMOVETAGSFROMGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT RemoveTagsFromGatewayResult : public ServiceResult + { + public: + + + RemoveTagsFromGatewayResult(); + explicit RemoveTagsFromGatewayResult(const std::string &payload); + ~RemoveTagsFromGatewayResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_REMOVETAGSFROMGATEWAYRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/ReportBlockVolumesRequest.h b/sgw/include/alibabacloud/sgw/model/ReportBlockVolumesRequest.h new file mode 100644 index 000000000..12356de2e --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/ReportBlockVolumesRequest.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_SGW_MODEL_REPORTBLOCKVOLUMESREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_REPORTBLOCKVOLUMESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT ReportBlockVolumesRequest : public RpcServiceRequest + { + + public: + ReportBlockVolumesRequest(); + ~ReportBlockVolumesRequest(); + + std::string getClientUUID()const; + void setClientUUID(const std::string& clientUUID); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + std::string getInfo()const; + void setInfo(const std::string& info); + + private: + std::string clientUUID_; + std::string accessKeyId_; + std::string securityToken_; + std::string gatewayId_; + std::string info_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_REPORTBLOCKVOLUMESREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/ReportBlockVolumesResult.h b/sgw/include/alibabacloud/sgw/model/ReportBlockVolumesResult.h new file mode 100644 index 000000000..1996a2f8f --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/ReportBlockVolumesResult.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_SGW_MODEL_REPORTBLOCKVOLUMESRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_REPORTBLOCKVOLUMESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT ReportBlockVolumesResult : public ServiceResult + { + public: + + + ReportBlockVolumesResult(); + explicit ReportBlockVolumesResult(const std::string &payload); + ~ReportBlockVolumesResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_REPORTBLOCKVOLUMESRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/ReportFileSharesRequest.h b/sgw/include/alibabacloud/sgw/model/ReportFileSharesRequest.h new file mode 100644 index 000000000..49de7cedd --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/ReportFileSharesRequest.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_SGW_MODEL_REPORTFILESHARESREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_REPORTFILESHARESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT ReportFileSharesRequest : public RpcServiceRequest + { + + public: + ReportFileSharesRequest(); + ~ReportFileSharesRequest(); + + std::string getClientUUID()const; + void setClientUUID(const std::string& clientUUID); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + std::string getInfo()const; + void setInfo(const std::string& info); + + private: + std::string clientUUID_; + std::string accessKeyId_; + std::string securityToken_; + std::string gatewayId_; + std::string info_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_REPORTFILESHARESREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/ReportFileSharesResult.h b/sgw/include/alibabacloud/sgw/model/ReportFileSharesResult.h new file mode 100644 index 000000000..b4bac7eb8 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/ReportFileSharesResult.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_SGW_MODEL_REPORTFILESHARESRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_REPORTFILESHARESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT ReportFileSharesResult : public ServiceResult + { + public: + + + ReportFileSharesResult(); + explicit ReportFileSharesResult(const std::string &payload); + ~ReportFileSharesResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_REPORTFILESHARESRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/ReportGatewayInfoRequest.h b/sgw/include/alibabacloud/sgw/model/ReportGatewayInfoRequest.h new file mode 100644 index 000000000..2a3356f64 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/ReportGatewayInfoRequest.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_SGW_MODEL_REPORTGATEWAYINFOREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_REPORTGATEWAYINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT ReportGatewayInfoRequest : public RpcServiceRequest + { + + public: + ReportGatewayInfoRequest(); + ~ReportGatewayInfoRequest(); + + std::string getClientUUID()const; + void setClientUUID(const std::string& clientUUID); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayStatus()const; + void setGatewayStatus(const std::string& gatewayStatus); + long getTime()const; + void setTime(long time); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + std::string getInfo()const; + void setInfo(const std::string& info); + + private: + std::string clientUUID_; + std::string accessKeyId_; + std::string securityToken_; + std::string gatewayStatus_; + long time_; + std::string gatewayId_; + std::string info_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_REPORTGATEWAYINFOREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/ReportGatewayInfoResult.h b/sgw/include/alibabacloud/sgw/model/ReportGatewayInfoResult.h new file mode 100644 index 000000000..b6027e6e2 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/ReportGatewayInfoResult.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_SGW_MODEL_REPORTGATEWAYINFORESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_REPORTGATEWAYINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT ReportGatewayInfoResult : public ServiceResult + { + public: + + + ReportGatewayInfoResult(); + explicit ReportGatewayInfoResult(const std::string &payload); + ~ReportGatewayInfoResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_REPORTGATEWAYINFORESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/ReportGatewayUsageRequest.h b/sgw/include/alibabacloud/sgw/model/ReportGatewayUsageRequest.h new file mode 100644 index 000000000..ee1c0b573 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/ReportGatewayUsageRequest.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_SGW_MODEL_REPORTGATEWAYUSAGEREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_REPORTGATEWAYUSAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT ReportGatewayUsageRequest : public RpcServiceRequest + { + + public: + ReportGatewayUsageRequest(); + ~ReportGatewayUsageRequest(); + + std::string getClientUUID()const; + void setClientUUID(const std::string& clientUUID); + std::string getUsage()const; + void setUsage(const std::string& usage); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string clientUUID_; + std::string usage_; + std::string accessKeyId_; + std::string securityToken_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_REPORTGATEWAYUSAGEREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/ReportGatewayUsageResult.h b/sgw/include/alibabacloud/sgw/model/ReportGatewayUsageResult.h new file mode 100644 index 000000000..0406372e4 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/ReportGatewayUsageResult.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_SGW_MODEL_REPORTGATEWAYUSAGERESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_REPORTGATEWAYUSAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT ReportGatewayUsageResult : public ServiceResult + { + public: + + + ReportGatewayUsageResult(); + explicit ReportGatewayUsageResult(const std::string &payload); + ~ReportGatewayUsageResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_REPORTGATEWAYUSAGERESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/ResetGatewayPasswordRequest.h b/sgw/include/alibabacloud/sgw/model/ResetGatewayPasswordRequest.h new file mode 100644 index 000000000..94b5141ca --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/ResetGatewayPasswordRequest.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_SGW_MODEL_RESETGATEWAYPASSWORDREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_RESETGATEWAYPASSWORDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT ResetGatewayPasswordRequest : public RpcServiceRequest + { + + public: + ResetGatewayPasswordRequest(); + ~ResetGatewayPasswordRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getPassword()const; + void setPassword(const std::string& password); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + std::string getUsername()const; + void setUsername(const std::string& username); + + private: + std::string accessKeyId_; + std::string password_; + std::string securityToken_; + std::string gatewayId_; + std::string username_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_RESETGATEWAYPASSWORDREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/ResetGatewayPasswordResult.h b/sgw/include/alibabacloud/sgw/model/ResetGatewayPasswordResult.h new file mode 100644 index 000000000..ce9be3798 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/ResetGatewayPasswordResult.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_SGW_MODEL_RESETGATEWAYPASSWORDRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_RESETGATEWAYPASSWORDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT ResetGatewayPasswordResult : public ServiceResult + { + public: + + + ResetGatewayPasswordResult(); + explicit ResetGatewayPasswordResult(const std::string &payload); + ~ResetGatewayPasswordResult(); + std::string getTaskId()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_RESETGATEWAYPASSWORDRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/RestartFileSharesRequest.h b/sgw/include/alibabacloud/sgw/model/RestartFileSharesRequest.h new file mode 100644 index 000000000..e091c756c --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/RestartFileSharesRequest.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_SGW_MODEL_RESTARTFILESHARESREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_RESTARTFILESHARESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT RestartFileSharesRequest : public RpcServiceRequest + { + + public: + RestartFileSharesRequest(); + ~RestartFileSharesRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getShareProtocol()const; + void setShareProtocol(const std::string& shareProtocol); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string accessKeyId_; + std::string securityToken_; + std::string shareProtocol_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_RESTARTFILESHARESREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/RestartFileSharesResult.h b/sgw/include/alibabacloud/sgw/model/RestartFileSharesResult.h new file mode 100644 index 000000000..cb8cefc41 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/RestartFileSharesResult.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_SGW_MODEL_RESTARTFILESHARESRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_RESTARTFILESHARESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT RestartFileSharesResult : public ServiceResult + { + public: + + + RestartFileSharesResult(); + explicit RestartFileSharesResult(const std::string &payload); + ~RestartFileSharesResult(); + std::string getTaskId()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_RESTARTFILESHARESRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/SetGatewayADInfoRequest.h b/sgw/include/alibabacloud/sgw/model/SetGatewayADInfoRequest.h new file mode 100644 index 000000000..a21d272a4 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/SetGatewayADInfoRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_SETGATEWAYADINFOREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_SETGATEWAYADINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT SetGatewayADInfoRequest : public RpcServiceRequest + { + + public: + SetGatewayADInfoRequest(); + ~SetGatewayADInfoRequest(); + + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getPassword()const; + void setPassword(const std::string& password); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getServerIp()const; + void setServerIp(const std::string& serverIp); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + std::string getUsername()const; + void setUsername(const std::string& username); + bool getIsEnabled()const; + void setIsEnabled(bool isEnabled); + + private: + std::string domainName_; + std::string accessKeyId_; + std::string password_; + std::string securityToken_; + std::string serverIp_; + std::string gatewayId_; + std::string username_; + bool isEnabled_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_SETGATEWAYADINFOREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/SetGatewayADInfoResult.h b/sgw/include/alibabacloud/sgw/model/SetGatewayADInfoResult.h new file mode 100644 index 000000000..f01721fa3 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/SetGatewayADInfoResult.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_SGW_MODEL_SETGATEWAYADINFORESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_SETGATEWAYADINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT SetGatewayADInfoResult : public ServiceResult + { + public: + + + SetGatewayADInfoResult(); + explicit SetGatewayADInfoResult(const std::string &payload); + ~SetGatewayADInfoResult(); + std::string getTaskId()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_SETGATEWAYADINFORESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/SetGatewayDNSRequest.h b/sgw/include/alibabacloud/sgw/model/SetGatewayDNSRequest.h new file mode 100644 index 000000000..a47d1f307 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/SetGatewayDNSRequest.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_SGW_MODEL_SETGATEWAYDNSREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_SETGATEWAYDNSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT SetGatewayDNSRequest : public RpcServiceRequest + { + + public: + SetGatewayDNSRequest(); + ~SetGatewayDNSRequest(); + + std::string getDnsServer()const; + void setDnsServer(const std::string& dnsServer); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string dnsServer_; + std::string accessKeyId_; + std::string securityToken_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_SETGATEWAYDNSREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/SetGatewayDNSResult.h b/sgw/include/alibabacloud/sgw/model/SetGatewayDNSResult.h new file mode 100644 index 000000000..ba8d8d02c --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/SetGatewayDNSResult.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_SGW_MODEL_SETGATEWAYDNSRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_SETGATEWAYDNSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT SetGatewayDNSResult : public ServiceResult + { + public: + + + SetGatewayDNSResult(); + explicit SetGatewayDNSResult(const std::string &payload); + ~SetGatewayDNSResult(); + std::string getTaskId()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_SETGATEWAYDNSRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/SetGatewayLDAPInfoRequest.h b/sgw/include/alibabacloud/sgw/model/SetGatewayLDAPInfoRequest.h new file mode 100644 index 000000000..e90773a40 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/SetGatewayLDAPInfoRequest.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_SGW_MODEL_SETGATEWAYLDAPINFOREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_SETGATEWAYLDAPINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT SetGatewayLDAPInfoRequest : public RpcServiceRequest + { + + public: + SetGatewayLDAPInfoRequest(); + ~SetGatewayLDAPInfoRequest(); + + bool getIsTls()const; + void setIsTls(bool isTls); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getPassword()const; + void setPassword(const std::string& password); + std::string getRootDN()const; + void setRootDN(const std::string& rootDN); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getServerIp()const; + void setServerIp(const std::string& serverIp); + std::string getBaseDN()const; + void setBaseDN(const std::string& baseDN); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + bool getIsEnabled()const; + void setIsEnabled(bool isEnabled); + + private: + bool isTls_; + std::string accessKeyId_; + std::string password_; + std::string rootDN_; + std::string securityToken_; + std::string serverIp_; + std::string baseDN_; + std::string gatewayId_; + bool isEnabled_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_SETGATEWAYLDAPINFOREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/SetGatewayLDAPInfoResult.h b/sgw/include/alibabacloud/sgw/model/SetGatewayLDAPInfoResult.h new file mode 100644 index 000000000..5e806375b --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/SetGatewayLDAPInfoResult.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_SGW_MODEL_SETGATEWAYLDAPINFORESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_SETGATEWAYLDAPINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT SetGatewayLDAPInfoResult : public ServiceResult + { + public: + + + SetGatewayLDAPInfoResult(); + explicit SetGatewayLDAPInfoResult(const std::string &payload); + ~SetGatewayLDAPInfoResult(); + std::string getTaskId()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_SETGATEWAYLDAPINFORESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/SwitchGatewayExpirationPolicyRequest.h b/sgw/include/alibabacloud/sgw/model/SwitchGatewayExpirationPolicyRequest.h new file mode 100644 index 000000000..a58db2b27 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/SwitchGatewayExpirationPolicyRequest.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_SGW_MODEL_SWITCHGATEWAYEXPIRATIONPOLICYREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_SWITCHGATEWAYEXPIRATIONPOLICYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT SwitchGatewayExpirationPolicyRequest : public RpcServiceRequest + { + + public: + SwitchGatewayExpirationPolicyRequest(); + ~SwitchGatewayExpirationPolicyRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string accessKeyId_; + std::string securityToken_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_SWITCHGATEWAYEXPIRATIONPOLICYREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/SwitchGatewayExpirationPolicyResult.h b/sgw/include/alibabacloud/sgw/model/SwitchGatewayExpirationPolicyResult.h new file mode 100644 index 000000000..a0aefe71f --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/SwitchGatewayExpirationPolicyResult.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_SGW_MODEL_SWITCHGATEWAYEXPIRATIONPOLICYRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_SWITCHGATEWAYEXPIRATIONPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT SwitchGatewayExpirationPolicyResult : public ServiceResult + { + public: + + + SwitchGatewayExpirationPolicyResult(); + explicit SwitchGatewayExpirationPolicyResult(const std::string &payload); + ~SwitchGatewayExpirationPolicyResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_SWITCHGATEWAYEXPIRATIONPOLICYRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/SwitchToSubscriptionRequest.h b/sgw/include/alibabacloud/sgw/model/SwitchToSubscriptionRequest.h new file mode 100644 index 000000000..ac5faf87c --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/SwitchToSubscriptionRequest.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_SGW_MODEL_SWITCHTOSUBSCRIPTIONREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_SWITCHTOSUBSCRIPTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT SwitchToSubscriptionRequest : public RpcServiceRequest + { + + public: + SwitchToSubscriptionRequest(); + ~SwitchToSubscriptionRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string accessKeyId_; + std::string securityToken_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_SWITCHTOSUBSCRIPTIONREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/SwitchToSubscriptionResult.h b/sgw/include/alibabacloud/sgw/model/SwitchToSubscriptionResult.h new file mode 100644 index 000000000..e6419e24e --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/SwitchToSubscriptionResult.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_SGW_MODEL_SWITCHTOSUBSCRIPTIONRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_SWITCHTOSUBSCRIPTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT SwitchToSubscriptionResult : public ServiceResult + { + public: + + + SwitchToSubscriptionResult(); + explicit SwitchToSubscriptionResult(const std::string &payload); + ~SwitchToSubscriptionResult(); + std::string getSubscriptionURL()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string subscriptionURL_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_SWITCHTOSUBSCRIPTIONRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/TagResourcesRequest.h b/sgw/include/alibabacloud/sgw/model/TagResourcesRequest.h new file mode 100644 index 000000000..155edc6d7 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/TagResourcesRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_TAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_TAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT TagResourcesRequest : public RpcServiceRequest + { + public: + struct Tag + { + std::string value; + std::string key; + }; + + public: + TagResourcesRequest(); + ~TagResourcesRequest(); + + std::vector getResourceId()const; + void setResourceId(const std::vector& resourceId); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::vector getTag()const; + void setTag(const std::vector& tag); + + private: + std::vector resourceId_; + std::string resourceType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::vector tag_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_TAGRESOURCESREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/TagResourcesResult.h b/sgw/include/alibabacloud/sgw/model/TagResourcesResult.h new file mode 100644 index 000000000..c93581217 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/TagResourcesResult.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_SGW_MODEL_TAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_TAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT TagResourcesResult : public ServiceResult + { + public: + + + TagResourcesResult(); + explicit TagResourcesResult(const std::string &payload); + ~TagResourcesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_TAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/UntagResourcesRequest.h b/sgw/include/alibabacloud/sgw/model/UntagResourcesRequest.h new file mode 100644 index 000000000..d9400a791 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/UntagResourcesRequest.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_SGW_MODEL_UNTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_UNTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT UntagResourcesRequest : public RpcServiceRequest + { + + public: + UntagResourcesRequest(); + ~UntagResourcesRequest(); + + bool getAll()const; + void setAll(bool all); + std::vector getResourceId()const; + void setResourceId(const std::vector& resourceId); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::vector getTagKey()const; + void setTagKey(const std::vector& tagKey); + + private: + bool all_; + std::vector resourceId_; + std::string resourceType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::vector tagKey_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_UNTAGRESOURCESREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/UntagResourcesResult.h b/sgw/include/alibabacloud/sgw/model/UntagResourcesResult.h new file mode 100644 index 000000000..e6a7ad795 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/UntagResourcesResult.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_SGW_MODEL_UNTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_UNTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT UntagResourcesResult : public ServiceResult + { + public: + + + UntagResourcesResult(); + explicit UntagResourcesResult(const std::string &payload); + ~UntagResourcesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_UNTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/UpdateGatewayBlockVolumeRequest.h b/sgw/include/alibabacloud/sgw/model/UpdateGatewayBlockVolumeRequest.h new file mode 100644 index 000000000..dfb68576c --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/UpdateGatewayBlockVolumeRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_UPDATEGATEWAYBLOCKVOLUMEREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_UPDATEGATEWAYBLOCKVOLUMEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT UpdateGatewayBlockVolumeRequest : public RpcServiceRequest + { + + public: + UpdateGatewayBlockVolumeRequest(); + ~UpdateGatewayBlockVolumeRequest(); + + bool getChapEnabled()const; + void setChapEnabled(bool chapEnabled); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + long getSize()const; + void setSize(long size); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getChapInUser()const; + void setChapInUser(const std::string& chapInUser); + std::string getIndexId()const; + void setIndexId(const std::string& indexId); + std::string getChapInPassword()const; + void setChapInPassword(const std::string& chapInPassword); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + bool chapEnabled_; + std::string accessKeyId_; + long size_; + std::string securityToken_; + std::string chapInUser_; + std::string indexId_; + std::string chapInPassword_; + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_UPDATEGATEWAYBLOCKVOLUMEREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/UpdateGatewayBlockVolumeResult.h b/sgw/include/alibabacloud/sgw/model/UpdateGatewayBlockVolumeResult.h new file mode 100644 index 000000000..2a9c9fd72 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/UpdateGatewayBlockVolumeResult.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_SGW_MODEL_UPDATEGATEWAYBLOCKVOLUMERESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_UPDATEGATEWAYBLOCKVOLUMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT UpdateGatewayBlockVolumeResult : public ServiceResult + { + public: + + + UpdateGatewayBlockVolumeResult(); + explicit UpdateGatewayBlockVolumeResult(const std::string &payload); + ~UpdateGatewayBlockVolumeResult(); + std::string getTaskId()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_UPDATEGATEWAYBLOCKVOLUMERESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/UpdateGatewayFileShareRequest.h b/sgw/include/alibabacloud/sgw/model/UpdateGatewayFileShareRequest.h new file mode 100644 index 000000000..05ecad029 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/UpdateGatewayFileShareRequest.h @@ -0,0 +1,141 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_SGW_MODEL_UPDATEGATEWAYFILESHAREREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_UPDATEGATEWAYFILESHAREREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT UpdateGatewayFileShareRequest : public RpcServiceRequest + { + + public: + UpdateGatewayFileShareRequest(); + ~UpdateGatewayFileShareRequest(); + + std::string getClientSideCmk()const; + void setClientSideCmk(const std::string& clientSideCmk); + bool getInPlace()const; + void setInPlace(bool inPlace); + bool getBrowsable()const; + void setBrowsable(bool browsable); + std::string getReadWriteUserList()const; + void setReadWriteUserList(const std::string& readWriteUserList); + int getPollingInterval()const; + void setPollingInterval(int pollingInterval); + std::string getReadWriteClientList()const; + void setReadWriteClientList(const std::string& readWriteClientList); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + int getBackendLimit()const; + void setBackendLimit(int backendLimit); + std::string getSquash()const; + void setSquash(const std::string& squash); + std::string getReadOnlyClientList()const; + void setReadOnlyClientList(const std::string& readOnlyClientList); + std::string getServerSideCmk()const; + void setServerSideCmk(const std::string& serverSideCmk); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + long getKmsRotatePeriod()const; + void setKmsRotatePeriod(long kmsRotatePeriod); + bool getRemoteSyncDownload()const; + void setRemoteSyncDownload(bool remoteSyncDownload); + bool getServerSideEncryption()const; + void setServerSideEncryption(bool serverSideEncryption); + bool getNfsV4Optimization()const; + void setNfsV4Optimization(bool nfsV4Optimization); + bool getAccessBasedEnumeration()const; + void setAccessBasedEnumeration(bool accessBasedEnumeration); + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + bool getIgnoreDelete()const; + void setIgnoreDelete(bool ignoreDelete); + long getLagPeriod()const; + void setLagPeriod(long lagPeriod); + bool getDirectIO()const; + void setDirectIO(bool directIO); + bool getClientSideEncryption()const; + void setClientSideEncryption(bool clientSideEncryption); + std::string getCacheMode()const; + void setCacheMode(const std::string& cacheMode); + int getDownloadLimit()const; + void setDownloadLimit(int downloadLimit); + std::string getReadOnlyUserList()const; + void setReadOnlyUserList(const std::string& readOnlyUserList); + bool getFastReclaim()const; + void setFastReclaim(bool fastReclaim); + bool getWindowsAcl()const; + void setWindowsAcl(bool windowsAcl); + std::string getName()const; + void setName(const std::string& name); + std::string getIndexId()const; + void setIndexId(const std::string& indexId); + bool getTransferAcceleration()const; + void setTransferAcceleration(bool transferAcceleration); + bool getRemoteSync()const; + void setRemoteSync(bool remoteSync); + int getFrontendLimit()const; + void setFrontendLimit(int frontendLimit); + + private: + std::string clientSideCmk_; + bool inPlace_; + bool browsable_; + std::string readWriteUserList_; + int pollingInterval_; + std::string readWriteClientList_; + std::string accessKeyId_; + int backendLimit_; + std::string squash_; + std::string readOnlyClientList_; + std::string serverSideCmk_; + std::string securityToken_; + long kmsRotatePeriod_; + bool remoteSyncDownload_; + bool serverSideEncryption_; + bool nfsV4Optimization_; + bool accessBasedEnumeration_; + std::string gatewayId_; + bool ignoreDelete_; + long lagPeriod_; + bool directIO_; + bool clientSideEncryption_; + std::string cacheMode_; + int downloadLimit_; + std::string readOnlyUserList_; + bool fastReclaim_; + bool windowsAcl_; + std::string name_; + std::string indexId_; + bool transferAcceleration_; + bool remoteSync_; + int frontendLimit_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_UPDATEGATEWAYFILESHAREREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/UpdateGatewayFileShareResult.h b/sgw/include/alibabacloud/sgw/model/UpdateGatewayFileShareResult.h new file mode 100644 index 000000000..1a74f8ef1 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/UpdateGatewayFileShareResult.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_SGW_MODEL_UPDATEGATEWAYFILESHARERESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_UPDATEGATEWAYFILESHARERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT UpdateGatewayFileShareResult : public ServiceResult + { + public: + + + UpdateGatewayFileShareResult(); + explicit UpdateGatewayFileShareResult(const std::string &payload); + ~UpdateGatewayFileShareResult(); + std::string getTaskId()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_UPDATEGATEWAYFILESHARERESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/UpgradeGatewayRequest.h b/sgw/include/alibabacloud/sgw/model/UpgradeGatewayRequest.h new file mode 100644 index 000000000..bad739a92 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/UpgradeGatewayRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_UPGRADEGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_UPGRADEGATEWAYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT UpgradeGatewayRequest : public RpcServiceRequest + { + + public: + UpgradeGatewayRequest(); + ~UpgradeGatewayRequest(); + + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_UPGRADEGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/UpgradeGatewayResult.h b/sgw/include/alibabacloud/sgw/model/UpgradeGatewayResult.h new file mode 100644 index 000000000..4a0798dcb --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/UpgradeGatewayResult.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_SGW_MODEL_UPGRADEGATEWAYRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_UPGRADEGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT UpgradeGatewayResult : public ServiceResult + { + public: + + + UpgradeGatewayResult(); + explicit UpgradeGatewayResult(const std::string &payload); + ~UpgradeGatewayResult(); + std::string getTaskId()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_UPGRADEGATEWAYRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/UploadGatewayLogRequest.h b/sgw/include/alibabacloud/sgw/model/UploadGatewayLogRequest.h new file mode 100644 index 000000000..1bb083339 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/UploadGatewayLogRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_UPLOADGATEWAYLOGREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_UPLOADGATEWAYLOGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT UploadGatewayLogRequest : public RpcServiceRequest + { + + public: + UploadGatewayLogRequest(); + ~UploadGatewayLogRequest(); + + std::string getGatewayId()const; + void setGatewayId(const std::string& gatewayId); + + private: + std::string gatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_UPLOADGATEWAYLOGREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/UploadGatewayLogResult.h b/sgw/include/alibabacloud/sgw/model/UploadGatewayLogResult.h new file mode 100644 index 000000000..1c3b53564 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/UploadGatewayLogResult.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_SGW_MODEL_UPLOADGATEWAYLOGRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_UPLOADGATEWAYLOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT UploadGatewayLogResult : public ServiceResult + { + public: + + + UploadGatewayLogResult(); + explicit UploadGatewayLogResult(const std::string &payload); + ~UploadGatewayLogResult(); + std::string getTaskId()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_UPLOADGATEWAYLOGRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/ValidateExpressSyncConfigRequest.h b/sgw/include/alibabacloud/sgw/model/ValidateExpressSyncConfigRequest.h new file mode 100644 index 000000000..2f6c7937f --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/ValidateExpressSyncConfigRequest.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_SGW_MODEL_VALIDATEEXPRESSSYNCCONFIGREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_VALIDATEEXPRESSSYNCCONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT ValidateExpressSyncConfigRequest : public RpcServiceRequest + { + + public: + ValidateExpressSyncConfigRequest(); + ~ValidateExpressSyncConfigRequest(); + + std::string getBucketRegion()const; + void setBucketRegion(const std::string& bucketRegion); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getBucketName()const; + void setBucketName(const std::string& bucketName); + std::string getName()const; + void setName(const std::string& name); + std::string getBucketPrefix()const; + void setBucketPrefix(const std::string& bucketPrefix); + + private: + std::string bucketRegion_; + std::string accessKeyId_; + std::string securityToken_; + std::string bucketName_; + std::string name_; + std::string bucketPrefix_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_VALIDATEEXPRESSSYNCCONFIGREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/ValidateExpressSyncConfigResult.h b/sgw/include/alibabacloud/sgw/model/ValidateExpressSyncConfigResult.h new file mode 100644 index 000000000..746be2522 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/ValidateExpressSyncConfigResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SGW_MODEL_VALIDATEEXPRESSSYNCCONFIGRESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_VALIDATEEXPRESSSYNCCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT ValidateExpressSyncConfigResult : public ServiceResult + { + public: + + + ValidateExpressSyncConfigResult(); + explicit ValidateExpressSyncConfigResult(const std::string &payload); + ~ValidateExpressSyncConfigResult(); + std::string getMessage()const; + std::string getValidateMessage()const; + std::string getCode()const; + bool getSuccess()const; + bool getIsValid()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string validateMessage_; + std::string code_; + bool success_; + bool isValid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_VALIDATEEXPRESSSYNCCONFIGRESULT_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/ValidateGatewayNameRequest.h b/sgw/include/alibabacloud/sgw/model/ValidateGatewayNameRequest.h new file mode 100644 index 000000000..ef4cc35d9 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/ValidateGatewayNameRequest.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_SGW_MODEL_VALIDATEGATEWAYNAMEREQUEST_H_ +#define ALIBABACLOUD_SGW_MODEL_VALIDATEGATEWAYNAMEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT ValidateGatewayNameRequest : public RpcServiceRequest + { + + public: + ValidateGatewayNameRequest(); + ~ValidateGatewayNameRequest(); + + std::string getName()const; + void setName(const std::string& name); + std::string getStorageBundleId()const; + void setStorageBundleId(const std::string& storageBundleId); + + private: + std::string name_; + std::string storageBundleId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_VALIDATEGATEWAYNAMEREQUEST_H_ \ No newline at end of file diff --git a/sgw/include/alibabacloud/sgw/model/ValidateGatewayNameResult.h b/sgw/include/alibabacloud/sgw/model/ValidateGatewayNameResult.h new file mode 100644 index 000000000..6feae7dd8 --- /dev/null +++ b/sgw/include/alibabacloud/sgw/model/ValidateGatewayNameResult.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_SGW_MODEL_VALIDATEGATEWAYNAMERESULT_H_ +#define ALIBABACLOUD_SGW_MODEL_VALIDATEGATEWAYNAMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sgw + { + namespace Model + { + class ALIBABACLOUD_SGW_EXPORT ValidateGatewayNameResult : public ServiceResult + { + public: + + + ValidateGatewayNameResult(); + explicit ValidateGatewayNameResult(const std::string &payload); + ~ValidateGatewayNameResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + bool getIsValid()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + bool isValid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SGW_MODEL_VALIDATEGATEWAYNAMERESULT_H_ \ No newline at end of file diff --git a/sgw/src/SgwClient.cc b/sgw/src/SgwClient.cc new file mode 100644 index 000000000..367ccea0c --- /dev/null +++ b/sgw/src/SgwClient.cc @@ -0,0 +1,4193 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud; +using namespace AlibabaCloud::Location; +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +namespace +{ + const std::string SERVICE_NAME = "sgw"; +} + +SgwClient::SgwClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "hcs_sgw"); +} + +SgwClient::SgwClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "hcs_sgw"); +} + +SgwClient::SgwClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "hcs_sgw"); +} + +SgwClient::~SgwClient() +{} + +SgwClient::ActivateAllInOneGatewayOutcome SgwClient::activateAllInOneGateway(const ActivateAllInOneGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ActivateAllInOneGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ActivateAllInOneGatewayOutcome(ActivateAllInOneGatewayResult(outcome.result())); + else + return ActivateAllInOneGatewayOutcome(outcome.error()); +} + +void SgwClient::activateAllInOneGatewayAsync(const ActivateAllInOneGatewayRequest& request, const ActivateAllInOneGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, activateAllInOneGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::ActivateAllInOneGatewayOutcomeCallable SgwClient::activateAllInOneGatewayCallable(const ActivateAllInOneGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->activateAllInOneGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::ActivateGatewayOutcome SgwClient::activateGateway(const ActivateGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ActivateGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ActivateGatewayOutcome(ActivateGatewayResult(outcome.result())); + else + return ActivateGatewayOutcome(outcome.error()); +} + +void SgwClient::activateGatewayAsync(const ActivateGatewayRequest& request, const ActivateGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, activateGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::ActivateGatewayOutcomeCallable SgwClient::activateGatewayCallable(const ActivateGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->activateGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::AddSharesToExpressSyncOutcome SgwClient::addSharesToExpressSync(const AddSharesToExpressSyncRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddSharesToExpressSyncOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddSharesToExpressSyncOutcome(AddSharesToExpressSyncResult(outcome.result())); + else + return AddSharesToExpressSyncOutcome(outcome.error()); +} + +void SgwClient::addSharesToExpressSyncAsync(const AddSharesToExpressSyncRequest& request, const AddSharesToExpressSyncAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addSharesToExpressSync(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::AddSharesToExpressSyncOutcomeCallable SgwClient::addSharesToExpressSyncCallable(const AddSharesToExpressSyncRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addSharesToExpressSync(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::AddTagsToGatewayOutcome SgwClient::addTagsToGateway(const AddTagsToGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddTagsToGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddTagsToGatewayOutcome(AddTagsToGatewayResult(outcome.result())); + else + return AddTagsToGatewayOutcome(outcome.error()); +} + +void SgwClient::addTagsToGatewayAsync(const AddTagsToGatewayRequest& request, const AddTagsToGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addTagsToGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::AddTagsToGatewayOutcomeCallable SgwClient::addTagsToGatewayCallable(const AddTagsToGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addTagsToGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::CheckActivationKeyOutcome SgwClient::checkActivationKey(const CheckActivationKeyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CheckActivationKeyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckActivationKeyOutcome(CheckActivationKeyResult(outcome.result())); + else + return CheckActivationKeyOutcome(outcome.error()); +} + +void SgwClient::checkActivationKeyAsync(const CheckActivationKeyRequest& request, const CheckActivationKeyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkActivationKey(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::CheckActivationKeyOutcomeCallable SgwClient::checkActivationKeyCallable(const CheckActivationKeyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkActivationKey(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::CheckBlockVolumeNameOutcome SgwClient::checkBlockVolumeName(const CheckBlockVolumeNameRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CheckBlockVolumeNameOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckBlockVolumeNameOutcome(CheckBlockVolumeNameResult(outcome.result())); + else + return CheckBlockVolumeNameOutcome(outcome.error()); +} + +void SgwClient::checkBlockVolumeNameAsync(const CheckBlockVolumeNameRequest& request, const CheckBlockVolumeNameAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkBlockVolumeName(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::CheckBlockVolumeNameOutcomeCallable SgwClient::checkBlockVolumeNameCallable(const CheckBlockVolumeNameRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkBlockVolumeName(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::CheckGatewayEssdSupportOutcome SgwClient::checkGatewayEssdSupport(const CheckGatewayEssdSupportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CheckGatewayEssdSupportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckGatewayEssdSupportOutcome(CheckGatewayEssdSupportResult(outcome.result())); + else + return CheckGatewayEssdSupportOutcome(outcome.error()); +} + +void SgwClient::checkGatewayEssdSupportAsync(const CheckGatewayEssdSupportRequest& request, const CheckGatewayEssdSupportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkGatewayEssdSupport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::CheckGatewayEssdSupportOutcomeCallable SgwClient::checkGatewayEssdSupportCallable(const CheckGatewayEssdSupportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkGatewayEssdSupport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::CheckMnsServiceOutcome SgwClient::checkMnsService(const CheckMnsServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CheckMnsServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckMnsServiceOutcome(CheckMnsServiceResult(outcome.result())); + else + return CheckMnsServiceOutcome(outcome.error()); +} + +void SgwClient::checkMnsServiceAsync(const CheckMnsServiceRequest& request, const CheckMnsServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkMnsService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::CheckMnsServiceOutcomeCallable SgwClient::checkMnsServiceCallable(const CheckMnsServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkMnsService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::CheckRoleOutcome SgwClient::checkRole(const CheckRoleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CheckRoleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckRoleOutcome(CheckRoleResult(outcome.result())); + else + return CheckRoleOutcome(outcome.error()); +} + +void SgwClient::checkRoleAsync(const CheckRoleRequest& request, const CheckRoleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkRole(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::CheckRoleOutcomeCallable SgwClient::checkRoleCallable(const CheckRoleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkRole(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::CheckSlrRoleOutcome SgwClient::checkSlrRole(const CheckSlrRoleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CheckSlrRoleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckSlrRoleOutcome(CheckSlrRoleResult(outcome.result())); + else + return CheckSlrRoleOutcome(outcome.error()); +} + +void SgwClient::checkSlrRoleAsync(const CheckSlrRoleRequest& request, const CheckSlrRoleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkSlrRole(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::CheckSlrRoleOutcomeCallable SgwClient::checkSlrRoleCallable(const CheckSlrRoleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkSlrRole(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::CheckUpgradeVersionOutcome SgwClient::checkUpgradeVersion(const CheckUpgradeVersionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CheckUpgradeVersionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckUpgradeVersionOutcome(CheckUpgradeVersionResult(outcome.result())); + else + return CheckUpgradeVersionOutcome(outcome.error()); +} + +void SgwClient::checkUpgradeVersionAsync(const CheckUpgradeVersionRequest& request, const CheckUpgradeVersionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkUpgradeVersion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::CheckUpgradeVersionOutcomeCallable SgwClient::checkUpgradeVersionCallable(const CheckUpgradeVersionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkUpgradeVersion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::CreateCacheOutcome SgwClient::createCache(const CreateCacheRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateCacheOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateCacheOutcome(CreateCacheResult(outcome.result())); + else + return CreateCacheOutcome(outcome.error()); +} + +void SgwClient::createCacheAsync(const CreateCacheRequest& request, const CreateCacheAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createCache(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::CreateCacheOutcomeCallable SgwClient::createCacheCallable(const CreateCacheRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createCache(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::CreateExpressSyncOutcome SgwClient::createExpressSync(const CreateExpressSyncRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateExpressSyncOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateExpressSyncOutcome(CreateExpressSyncResult(outcome.result())); + else + return CreateExpressSyncOutcome(outcome.error()); +} + +void SgwClient::createExpressSyncAsync(const CreateExpressSyncRequest& request, const CreateExpressSyncAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createExpressSync(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::CreateExpressSyncOutcomeCallable SgwClient::createExpressSyncCallable(const CreateExpressSyncRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createExpressSync(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::CreateGatewayOutcome SgwClient::createGateway(const CreateGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateGatewayOutcome(CreateGatewayResult(outcome.result())); + else + return CreateGatewayOutcome(outcome.error()); +} + +void SgwClient::createGatewayAsync(const CreateGatewayRequest& request, const CreateGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::CreateGatewayOutcomeCallable SgwClient::createGatewayCallable(const CreateGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::CreateGatewayBlockVolumeOutcome SgwClient::createGatewayBlockVolume(const CreateGatewayBlockVolumeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateGatewayBlockVolumeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateGatewayBlockVolumeOutcome(CreateGatewayBlockVolumeResult(outcome.result())); + else + return CreateGatewayBlockVolumeOutcome(outcome.error()); +} + +void SgwClient::createGatewayBlockVolumeAsync(const CreateGatewayBlockVolumeRequest& request, const CreateGatewayBlockVolumeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createGatewayBlockVolume(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::CreateGatewayBlockVolumeOutcomeCallable SgwClient::createGatewayBlockVolumeCallable(const CreateGatewayBlockVolumeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createGatewayBlockVolume(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::CreateGatewayCacheDiskOutcome SgwClient::createGatewayCacheDisk(const CreateGatewayCacheDiskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateGatewayCacheDiskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateGatewayCacheDiskOutcome(CreateGatewayCacheDiskResult(outcome.result())); + else + return CreateGatewayCacheDiskOutcome(outcome.error()); +} + +void SgwClient::createGatewayCacheDiskAsync(const CreateGatewayCacheDiskRequest& request, const CreateGatewayCacheDiskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createGatewayCacheDisk(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::CreateGatewayCacheDiskOutcomeCallable SgwClient::createGatewayCacheDiskCallable(const CreateGatewayCacheDiskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createGatewayCacheDisk(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::CreateGatewayFileShareOutcome SgwClient::createGatewayFileShare(const CreateGatewayFileShareRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateGatewayFileShareOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateGatewayFileShareOutcome(CreateGatewayFileShareResult(outcome.result())); + else + return CreateGatewayFileShareOutcome(outcome.error()); +} + +void SgwClient::createGatewayFileShareAsync(const CreateGatewayFileShareRequest& request, const CreateGatewayFileShareAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createGatewayFileShare(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::CreateGatewayFileShareOutcomeCallable SgwClient::createGatewayFileShareCallable(const CreateGatewayFileShareRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createGatewayFileShare(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::CreateGatewayLoggingOutcome SgwClient::createGatewayLogging(const CreateGatewayLoggingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateGatewayLoggingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateGatewayLoggingOutcome(CreateGatewayLoggingResult(outcome.result())); + else + return CreateGatewayLoggingOutcome(outcome.error()); +} + +void SgwClient::createGatewayLoggingAsync(const CreateGatewayLoggingRequest& request, const CreateGatewayLoggingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createGatewayLogging(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::CreateGatewayLoggingOutcomeCallable SgwClient::createGatewayLoggingCallable(const CreateGatewayLoggingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createGatewayLogging(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::CreateGatewaySMBUserOutcome SgwClient::createGatewaySMBUser(const CreateGatewaySMBUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateGatewaySMBUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateGatewaySMBUserOutcome(CreateGatewaySMBUserResult(outcome.result())); + else + return CreateGatewaySMBUserOutcome(outcome.error()); +} + +void SgwClient::createGatewaySMBUserAsync(const CreateGatewaySMBUserRequest& request, const CreateGatewaySMBUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createGatewaySMBUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::CreateGatewaySMBUserOutcomeCallable SgwClient::createGatewaySMBUserCallable(const CreateGatewaySMBUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createGatewaySMBUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::CreateStorageBundleOutcome SgwClient::createStorageBundle(const CreateStorageBundleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateStorageBundleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateStorageBundleOutcome(CreateStorageBundleResult(outcome.result())); + else + return CreateStorageBundleOutcome(outcome.error()); +} + +void SgwClient::createStorageBundleAsync(const CreateStorageBundleRequest& request, const CreateStorageBundleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createStorageBundle(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::CreateStorageBundleOutcomeCallable SgwClient::createStorageBundleCallable(const CreateStorageBundleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createStorageBundle(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DeleteExpressSyncOutcome SgwClient::deleteExpressSync(const DeleteExpressSyncRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteExpressSyncOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteExpressSyncOutcome(DeleteExpressSyncResult(outcome.result())); + else + return DeleteExpressSyncOutcome(outcome.error()); +} + +void SgwClient::deleteExpressSyncAsync(const DeleteExpressSyncRequest& request, const DeleteExpressSyncAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteExpressSync(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DeleteExpressSyncOutcomeCallable SgwClient::deleteExpressSyncCallable(const DeleteExpressSyncRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteExpressSync(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DeleteGatewayOutcome SgwClient::deleteGateway(const DeleteGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteGatewayOutcome(DeleteGatewayResult(outcome.result())); + else + return DeleteGatewayOutcome(outcome.error()); +} + +void SgwClient::deleteGatewayAsync(const DeleteGatewayRequest& request, const DeleteGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DeleteGatewayOutcomeCallable SgwClient::deleteGatewayCallable(const DeleteGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DeleteGatewayBlockVolumesOutcome SgwClient::deleteGatewayBlockVolumes(const DeleteGatewayBlockVolumesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteGatewayBlockVolumesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteGatewayBlockVolumesOutcome(DeleteGatewayBlockVolumesResult(outcome.result())); + else + return DeleteGatewayBlockVolumesOutcome(outcome.error()); +} + +void SgwClient::deleteGatewayBlockVolumesAsync(const DeleteGatewayBlockVolumesRequest& request, const DeleteGatewayBlockVolumesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteGatewayBlockVolumes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DeleteGatewayBlockVolumesOutcomeCallable SgwClient::deleteGatewayBlockVolumesCallable(const DeleteGatewayBlockVolumesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteGatewayBlockVolumes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DeleteGatewayCacheDiskOutcome SgwClient::deleteGatewayCacheDisk(const DeleteGatewayCacheDiskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteGatewayCacheDiskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteGatewayCacheDiskOutcome(DeleteGatewayCacheDiskResult(outcome.result())); + else + return DeleteGatewayCacheDiskOutcome(outcome.error()); +} + +void SgwClient::deleteGatewayCacheDiskAsync(const DeleteGatewayCacheDiskRequest& request, const DeleteGatewayCacheDiskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteGatewayCacheDisk(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DeleteGatewayCacheDiskOutcomeCallable SgwClient::deleteGatewayCacheDiskCallable(const DeleteGatewayCacheDiskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteGatewayCacheDisk(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DeleteGatewayFileSharesOutcome SgwClient::deleteGatewayFileShares(const DeleteGatewayFileSharesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteGatewayFileSharesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteGatewayFileSharesOutcome(DeleteGatewayFileSharesResult(outcome.result())); + else + return DeleteGatewayFileSharesOutcome(outcome.error()); +} + +void SgwClient::deleteGatewayFileSharesAsync(const DeleteGatewayFileSharesRequest& request, const DeleteGatewayFileSharesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteGatewayFileShares(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DeleteGatewayFileSharesOutcomeCallable SgwClient::deleteGatewayFileSharesCallable(const DeleteGatewayFileSharesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteGatewayFileShares(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DeleteGatewayLoggingOutcome SgwClient::deleteGatewayLogging(const DeleteGatewayLoggingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteGatewayLoggingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteGatewayLoggingOutcome(DeleteGatewayLoggingResult(outcome.result())); + else + return DeleteGatewayLoggingOutcome(outcome.error()); +} + +void SgwClient::deleteGatewayLoggingAsync(const DeleteGatewayLoggingRequest& request, const DeleteGatewayLoggingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteGatewayLogging(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DeleteGatewayLoggingOutcomeCallable SgwClient::deleteGatewayLoggingCallable(const DeleteGatewayLoggingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteGatewayLogging(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DeleteGatewaySMBUserOutcome SgwClient::deleteGatewaySMBUser(const DeleteGatewaySMBUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteGatewaySMBUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteGatewaySMBUserOutcome(DeleteGatewaySMBUserResult(outcome.result())); + else + return DeleteGatewaySMBUserOutcome(outcome.error()); +} + +void SgwClient::deleteGatewaySMBUserAsync(const DeleteGatewaySMBUserRequest& request, const DeleteGatewaySMBUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteGatewaySMBUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DeleteGatewaySMBUserOutcomeCallable SgwClient::deleteGatewaySMBUserCallable(const DeleteGatewaySMBUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteGatewaySMBUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DeleteStorageBundleOutcome SgwClient::deleteStorageBundle(const DeleteStorageBundleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteStorageBundleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteStorageBundleOutcome(DeleteStorageBundleResult(outcome.result())); + else + return DeleteStorageBundleOutcome(outcome.error()); +} + +void SgwClient::deleteStorageBundleAsync(const DeleteStorageBundleRequest& request, const DeleteStorageBundleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteStorageBundle(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DeleteStorageBundleOutcomeCallable SgwClient::deleteStorageBundleCallable(const DeleteStorageBundleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteStorageBundle(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DeployCacheDiskOutcome SgwClient::deployCacheDisk(const DeployCacheDiskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeployCacheDiskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeployCacheDiskOutcome(DeployCacheDiskResult(outcome.result())); + else + return DeployCacheDiskOutcome(outcome.error()); +} + +void SgwClient::deployCacheDiskAsync(const DeployCacheDiskRequest& request, const DeployCacheDiskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deployCacheDisk(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DeployCacheDiskOutcomeCallable SgwClient::deployCacheDiskCallable(const DeployCacheDiskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deployCacheDisk(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DeployGatewayOutcome SgwClient::deployGateway(const DeployGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeployGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeployGatewayOutcome(DeployGatewayResult(outcome.result())); + else + return DeployGatewayOutcome(outcome.error()); +} + +void SgwClient::deployGatewayAsync(const DeployGatewayRequest& request, const DeployGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deployGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DeployGatewayOutcomeCallable SgwClient::deployGatewayCallable(const DeployGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deployGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeAccountConfigOutcome SgwClient::describeAccountConfig(const DescribeAccountConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAccountConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAccountConfigOutcome(DescribeAccountConfigResult(outcome.result())); + else + return DescribeAccountConfigOutcome(outcome.error()); +} + +void SgwClient::describeAccountConfigAsync(const DescribeAccountConfigRequest& request, const DescribeAccountConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAccountConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeAccountConfigOutcomeCallable SgwClient::describeAccountConfigCallable(const DescribeAccountConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAccountConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeBlockVolumeSnapshotsOutcome SgwClient::describeBlockVolumeSnapshots(const DescribeBlockVolumeSnapshotsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeBlockVolumeSnapshotsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeBlockVolumeSnapshotsOutcome(DescribeBlockVolumeSnapshotsResult(outcome.result())); + else + return DescribeBlockVolumeSnapshotsOutcome(outcome.error()); +} + +void SgwClient::describeBlockVolumeSnapshotsAsync(const DescribeBlockVolumeSnapshotsRequest& request, const DescribeBlockVolumeSnapshotsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeBlockVolumeSnapshots(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeBlockVolumeSnapshotsOutcomeCallable SgwClient::describeBlockVolumeSnapshotsCallable(const DescribeBlockVolumeSnapshotsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeBlockVolumeSnapshots(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeDashboardOutcome SgwClient::describeDashboard(const DescribeDashboardRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDashboardOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDashboardOutcome(DescribeDashboardResult(outcome.result())); + else + return DescribeDashboardOutcome(outcome.error()); +} + +void SgwClient::describeDashboardAsync(const DescribeDashboardRequest& request, const DescribeDashboardAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDashboard(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeDashboardOutcomeCallable SgwClient::describeDashboardCallable(const DescribeDashboardRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDashboard(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeExpireCachesOutcome SgwClient::describeExpireCaches(const DescribeExpireCachesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeExpireCachesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeExpireCachesOutcome(DescribeExpireCachesResult(outcome.result())); + else + return DescribeExpireCachesOutcome(outcome.error()); +} + +void SgwClient::describeExpireCachesAsync(const DescribeExpireCachesRequest& request, const DescribeExpireCachesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeExpireCaches(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeExpireCachesOutcomeCallable SgwClient::describeExpireCachesCallable(const DescribeExpireCachesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeExpireCaches(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeExpressSyncSharesOutcome SgwClient::describeExpressSyncShares(const DescribeExpressSyncSharesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeExpressSyncSharesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeExpressSyncSharesOutcome(DescribeExpressSyncSharesResult(outcome.result())); + else + return DescribeExpressSyncSharesOutcome(outcome.error()); +} + +void SgwClient::describeExpressSyncSharesAsync(const DescribeExpressSyncSharesRequest& request, const DescribeExpressSyncSharesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeExpressSyncShares(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeExpressSyncSharesOutcomeCallable SgwClient::describeExpressSyncSharesCallable(const DescribeExpressSyncSharesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeExpressSyncShares(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeExpressSyncsOutcome SgwClient::describeExpressSyncs(const DescribeExpressSyncsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeExpressSyncsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeExpressSyncsOutcome(DescribeExpressSyncsResult(outcome.result())); + else + return DescribeExpressSyncsOutcome(outcome.error()); +} + +void SgwClient::describeExpressSyncsAsync(const DescribeExpressSyncsRequest& request, const DescribeExpressSyncsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeExpressSyncs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeExpressSyncsOutcomeCallable SgwClient::describeExpressSyncsCallable(const DescribeExpressSyncsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeExpressSyncs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeGatewayOutcome SgwClient::describeGateway(const DescribeGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGatewayOutcome(DescribeGatewayResult(outcome.result())); + else + return DescribeGatewayOutcome(outcome.error()); +} + +void SgwClient::describeGatewayAsync(const DescribeGatewayRequest& request, const DescribeGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeGatewayOutcomeCallable SgwClient::describeGatewayCallable(const DescribeGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeGatewayADInfoOutcome SgwClient::describeGatewayADInfo(const DescribeGatewayADInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGatewayADInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGatewayADInfoOutcome(DescribeGatewayADInfoResult(outcome.result())); + else + return DescribeGatewayADInfoOutcome(outcome.error()); +} + +void SgwClient::describeGatewayADInfoAsync(const DescribeGatewayADInfoRequest& request, const DescribeGatewayADInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGatewayADInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeGatewayADInfoOutcomeCallable SgwClient::describeGatewayADInfoCallable(const DescribeGatewayADInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGatewayADInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeGatewayActionsOutcome SgwClient::describeGatewayActions(const DescribeGatewayActionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGatewayActionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGatewayActionsOutcome(DescribeGatewayActionsResult(outcome.result())); + else + return DescribeGatewayActionsOutcome(outcome.error()); +} + +void SgwClient::describeGatewayActionsAsync(const DescribeGatewayActionsRequest& request, const DescribeGatewayActionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGatewayActions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeGatewayActionsOutcomeCallable SgwClient::describeGatewayActionsCallable(const DescribeGatewayActionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGatewayActions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeGatewayAuthInfoOutcome SgwClient::describeGatewayAuthInfo(const DescribeGatewayAuthInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGatewayAuthInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGatewayAuthInfoOutcome(DescribeGatewayAuthInfoResult(outcome.result())); + else + return DescribeGatewayAuthInfoOutcome(outcome.error()); +} + +void SgwClient::describeGatewayAuthInfoAsync(const DescribeGatewayAuthInfoRequest& request, const DescribeGatewayAuthInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGatewayAuthInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeGatewayAuthInfoOutcomeCallable SgwClient::describeGatewayAuthInfoCallable(const DescribeGatewayAuthInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGatewayAuthInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeGatewayBlockVolumesOutcome SgwClient::describeGatewayBlockVolumes(const DescribeGatewayBlockVolumesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGatewayBlockVolumesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGatewayBlockVolumesOutcome(DescribeGatewayBlockVolumesResult(outcome.result())); + else + return DescribeGatewayBlockVolumesOutcome(outcome.error()); +} + +void SgwClient::describeGatewayBlockVolumesAsync(const DescribeGatewayBlockVolumesRequest& request, const DescribeGatewayBlockVolumesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGatewayBlockVolumes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeGatewayBlockVolumesOutcomeCallable SgwClient::describeGatewayBlockVolumesCallable(const DescribeGatewayBlockVolumesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGatewayBlockVolumes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeGatewayBucketCachesOutcome SgwClient::describeGatewayBucketCaches(const DescribeGatewayBucketCachesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGatewayBucketCachesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGatewayBucketCachesOutcome(DescribeGatewayBucketCachesResult(outcome.result())); + else + return DescribeGatewayBucketCachesOutcome(outcome.error()); +} + +void SgwClient::describeGatewayBucketCachesAsync(const DescribeGatewayBucketCachesRequest& request, const DescribeGatewayBucketCachesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGatewayBucketCaches(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeGatewayBucketCachesOutcomeCallable SgwClient::describeGatewayBucketCachesCallable(const DescribeGatewayBucketCachesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGatewayBucketCaches(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeGatewayCachesOutcome SgwClient::describeGatewayCaches(const DescribeGatewayCachesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGatewayCachesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGatewayCachesOutcome(DescribeGatewayCachesResult(outcome.result())); + else + return DescribeGatewayCachesOutcome(outcome.error()); +} + +void SgwClient::describeGatewayCachesAsync(const DescribeGatewayCachesRequest& request, const DescribeGatewayCachesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGatewayCaches(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeGatewayCachesOutcomeCallable SgwClient::describeGatewayCachesCallable(const DescribeGatewayCachesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGatewayCaches(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeGatewayCapacityLimitOutcome SgwClient::describeGatewayCapacityLimit(const DescribeGatewayCapacityLimitRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGatewayCapacityLimitOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGatewayCapacityLimitOutcome(DescribeGatewayCapacityLimitResult(outcome.result())); + else + return DescribeGatewayCapacityLimitOutcome(outcome.error()); +} + +void SgwClient::describeGatewayCapacityLimitAsync(const DescribeGatewayCapacityLimitRequest& request, const DescribeGatewayCapacityLimitAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGatewayCapacityLimit(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeGatewayCapacityLimitOutcomeCallable SgwClient::describeGatewayCapacityLimitCallable(const DescribeGatewayCapacityLimitRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGatewayCapacityLimit(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeGatewayCategoriesOutcome SgwClient::describeGatewayCategories(const DescribeGatewayCategoriesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGatewayCategoriesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGatewayCategoriesOutcome(DescribeGatewayCategoriesResult(outcome.result())); + else + return DescribeGatewayCategoriesOutcome(outcome.error()); +} + +void SgwClient::describeGatewayCategoriesAsync(const DescribeGatewayCategoriesRequest& request, const DescribeGatewayCategoriesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGatewayCategories(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeGatewayCategoriesOutcomeCallable SgwClient::describeGatewayCategoriesCallable(const DescribeGatewayCategoriesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGatewayCategories(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeGatewayClassesOutcome SgwClient::describeGatewayClasses(const DescribeGatewayClassesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGatewayClassesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGatewayClassesOutcome(DescribeGatewayClassesResult(outcome.result())); + else + return DescribeGatewayClassesOutcome(outcome.error()); +} + +void SgwClient::describeGatewayClassesAsync(const DescribeGatewayClassesRequest& request, const DescribeGatewayClassesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGatewayClasses(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeGatewayClassesOutcomeCallable SgwClient::describeGatewayClassesCallable(const DescribeGatewayClassesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGatewayClasses(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeGatewayCredentialOutcome SgwClient::describeGatewayCredential(const DescribeGatewayCredentialRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGatewayCredentialOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGatewayCredentialOutcome(DescribeGatewayCredentialResult(outcome.result())); + else + return DescribeGatewayCredentialOutcome(outcome.error()); +} + +void SgwClient::describeGatewayCredentialAsync(const DescribeGatewayCredentialRequest& request, const DescribeGatewayCredentialAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGatewayCredential(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeGatewayCredentialOutcomeCallable SgwClient::describeGatewayCredentialCallable(const DescribeGatewayCredentialRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGatewayCredential(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeGatewayDNSOutcome SgwClient::describeGatewayDNS(const DescribeGatewayDNSRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGatewayDNSOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGatewayDNSOutcome(DescribeGatewayDNSResult(outcome.result())); + else + return DescribeGatewayDNSOutcome(outcome.error()); +} + +void SgwClient::describeGatewayDNSAsync(const DescribeGatewayDNSRequest& request, const DescribeGatewayDNSAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGatewayDNS(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeGatewayDNSOutcomeCallable SgwClient::describeGatewayDNSCallable(const DescribeGatewayDNSRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGatewayDNS(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeGatewayFileSharesOutcome SgwClient::describeGatewayFileShares(const DescribeGatewayFileSharesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGatewayFileSharesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGatewayFileSharesOutcome(DescribeGatewayFileSharesResult(outcome.result())); + else + return DescribeGatewayFileSharesOutcome(outcome.error()); +} + +void SgwClient::describeGatewayFileSharesAsync(const DescribeGatewayFileSharesRequest& request, const DescribeGatewayFileSharesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGatewayFileShares(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeGatewayFileSharesOutcomeCallable SgwClient::describeGatewayFileSharesCallable(const DescribeGatewayFileSharesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGatewayFileShares(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeGatewayFileStatusOutcome SgwClient::describeGatewayFileStatus(const DescribeGatewayFileStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGatewayFileStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGatewayFileStatusOutcome(DescribeGatewayFileStatusResult(outcome.result())); + else + return DescribeGatewayFileStatusOutcome(outcome.error()); +} + +void SgwClient::describeGatewayFileStatusAsync(const DescribeGatewayFileStatusRequest& request, const DescribeGatewayFileStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGatewayFileStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeGatewayFileStatusOutcomeCallable SgwClient::describeGatewayFileStatusCallable(const DescribeGatewayFileStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGatewayFileStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeGatewayImagesOutcome SgwClient::describeGatewayImages(const DescribeGatewayImagesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGatewayImagesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGatewayImagesOutcome(DescribeGatewayImagesResult(outcome.result())); + else + return DescribeGatewayImagesOutcome(outcome.error()); +} + +void SgwClient::describeGatewayImagesAsync(const DescribeGatewayImagesRequest& request, const DescribeGatewayImagesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGatewayImages(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeGatewayImagesOutcomeCallable SgwClient::describeGatewayImagesCallable(const DescribeGatewayImagesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGatewayImages(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeGatewayInfoOutcome SgwClient::describeGatewayInfo(const DescribeGatewayInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGatewayInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGatewayInfoOutcome(DescribeGatewayInfoResult(outcome.result())); + else + return DescribeGatewayInfoOutcome(outcome.error()); +} + +void SgwClient::describeGatewayInfoAsync(const DescribeGatewayInfoRequest& request, const DescribeGatewayInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGatewayInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeGatewayInfoOutcomeCallable SgwClient::describeGatewayInfoCallable(const DescribeGatewayInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGatewayInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeGatewayLDAPInfoOutcome SgwClient::describeGatewayLDAPInfo(const DescribeGatewayLDAPInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGatewayLDAPInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGatewayLDAPInfoOutcome(DescribeGatewayLDAPInfoResult(outcome.result())); + else + return DescribeGatewayLDAPInfoOutcome(outcome.error()); +} + +void SgwClient::describeGatewayLDAPInfoAsync(const DescribeGatewayLDAPInfoRequest& request, const DescribeGatewayLDAPInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGatewayLDAPInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeGatewayLDAPInfoOutcomeCallable SgwClient::describeGatewayLDAPInfoCallable(const DescribeGatewayLDAPInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGatewayLDAPInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeGatewayLocationsOutcome SgwClient::describeGatewayLocations(const DescribeGatewayLocationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGatewayLocationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGatewayLocationsOutcome(DescribeGatewayLocationsResult(outcome.result())); + else + return DescribeGatewayLocationsOutcome(outcome.error()); +} + +void SgwClient::describeGatewayLocationsAsync(const DescribeGatewayLocationsRequest& request, const DescribeGatewayLocationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGatewayLocations(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeGatewayLocationsOutcomeCallable SgwClient::describeGatewayLocationsCallable(const DescribeGatewayLocationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGatewayLocations(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeGatewayLoggingOutcome SgwClient::describeGatewayLogging(const DescribeGatewayLoggingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGatewayLoggingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGatewayLoggingOutcome(DescribeGatewayLoggingResult(outcome.result())); + else + return DescribeGatewayLoggingOutcome(outcome.error()); +} + +void SgwClient::describeGatewayLoggingAsync(const DescribeGatewayLoggingRequest& request, const DescribeGatewayLoggingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGatewayLogging(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeGatewayLoggingOutcomeCallable SgwClient::describeGatewayLoggingCallable(const DescribeGatewayLoggingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGatewayLogging(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeGatewayLogsOutcome SgwClient::describeGatewayLogs(const DescribeGatewayLogsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGatewayLogsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGatewayLogsOutcome(DescribeGatewayLogsResult(outcome.result())); + else + return DescribeGatewayLogsOutcome(outcome.error()); +} + +void SgwClient::describeGatewayLogsAsync(const DescribeGatewayLogsRequest& request, const DescribeGatewayLogsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGatewayLogs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeGatewayLogsOutcomeCallable SgwClient::describeGatewayLogsCallable(const DescribeGatewayLogsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGatewayLogs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeGatewayModificationClassesOutcome SgwClient::describeGatewayModificationClasses(const DescribeGatewayModificationClassesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGatewayModificationClassesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGatewayModificationClassesOutcome(DescribeGatewayModificationClassesResult(outcome.result())); + else + return DescribeGatewayModificationClassesOutcome(outcome.error()); +} + +void SgwClient::describeGatewayModificationClassesAsync(const DescribeGatewayModificationClassesRequest& request, const DescribeGatewayModificationClassesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGatewayModificationClasses(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeGatewayModificationClassesOutcomeCallable SgwClient::describeGatewayModificationClassesCallable(const DescribeGatewayModificationClassesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGatewayModificationClasses(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeGatewaySMBUsersOutcome SgwClient::describeGatewaySMBUsers(const DescribeGatewaySMBUsersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGatewaySMBUsersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGatewaySMBUsersOutcome(DescribeGatewaySMBUsersResult(outcome.result())); + else + return DescribeGatewaySMBUsersOutcome(outcome.error()); +} + +void SgwClient::describeGatewaySMBUsersAsync(const DescribeGatewaySMBUsersRequest& request, const DescribeGatewaySMBUsersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGatewaySMBUsers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeGatewaySMBUsersOutcomeCallable SgwClient::describeGatewaySMBUsersCallable(const DescribeGatewaySMBUsersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGatewaySMBUsers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeGatewayStatisticsOutcome SgwClient::describeGatewayStatistics(const DescribeGatewayStatisticsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGatewayStatisticsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGatewayStatisticsOutcome(DescribeGatewayStatisticsResult(outcome.result())); + else + return DescribeGatewayStatisticsOutcome(outcome.error()); +} + +void SgwClient::describeGatewayStatisticsAsync(const DescribeGatewayStatisticsRequest& request, const DescribeGatewayStatisticsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGatewayStatistics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeGatewayStatisticsOutcomeCallable SgwClient::describeGatewayStatisticsCallable(const DescribeGatewayStatisticsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGatewayStatistics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeGatewayStockOutcome SgwClient::describeGatewayStock(const DescribeGatewayStockRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGatewayStockOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGatewayStockOutcome(DescribeGatewayStockResult(outcome.result())); + else + return DescribeGatewayStockOutcome(outcome.error()); +} + +void SgwClient::describeGatewayStockAsync(const DescribeGatewayStockRequest& request, const DescribeGatewayStockAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGatewayStock(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeGatewayStockOutcomeCallable SgwClient::describeGatewayStockCallable(const DescribeGatewayStockRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGatewayStock(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeGatewayTypesOutcome SgwClient::describeGatewayTypes(const DescribeGatewayTypesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGatewayTypesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGatewayTypesOutcome(DescribeGatewayTypesResult(outcome.result())); + else + return DescribeGatewayTypesOutcome(outcome.error()); +} + +void SgwClient::describeGatewayTypesAsync(const DescribeGatewayTypesRequest& request, const DescribeGatewayTypesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGatewayTypes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeGatewayTypesOutcomeCallable SgwClient::describeGatewayTypesCallable(const DescribeGatewayTypesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGatewayTypes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeGatewaysOutcome SgwClient::describeGateways(const DescribeGatewaysRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGatewaysOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGatewaysOutcome(DescribeGatewaysResult(outcome.result())); + else + return DescribeGatewaysOutcome(outcome.error()); +} + +void SgwClient::describeGatewaysAsync(const DescribeGatewaysRequest& request, const DescribeGatewaysAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGateways(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeGatewaysOutcomeCallable SgwClient::describeGatewaysCallable(const DescribeGatewaysRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGateways(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeGatewaysForCmsOutcome SgwClient::describeGatewaysForCms(const DescribeGatewaysForCmsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGatewaysForCmsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGatewaysForCmsOutcome(DescribeGatewaysForCmsResult(outcome.result())); + else + return DescribeGatewaysForCmsOutcome(outcome.error()); +} + +void SgwClient::describeGatewaysForCmsAsync(const DescribeGatewaysForCmsRequest& request, const DescribeGatewaysForCmsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGatewaysForCms(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeGatewaysForCmsOutcomeCallable SgwClient::describeGatewaysForCmsCallable(const DescribeGatewaysForCmsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGatewaysForCms(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeGatewaysTagsOutcome SgwClient::describeGatewaysTags(const DescribeGatewaysTagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGatewaysTagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGatewaysTagsOutcome(DescribeGatewaysTagsResult(outcome.result())); + else + return DescribeGatewaysTagsOutcome(outcome.error()); +} + +void SgwClient::describeGatewaysTagsAsync(const DescribeGatewaysTagsRequest& request, const DescribeGatewaysTagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGatewaysTags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeGatewaysTagsOutcomeCallable SgwClient::describeGatewaysTagsCallable(const DescribeGatewaysTagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGatewaysTags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeKmsKeyOutcome SgwClient::describeKmsKey(const DescribeKmsKeyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeKmsKeyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeKmsKeyOutcome(DescribeKmsKeyResult(outcome.result())); + else + return DescribeKmsKeyOutcome(outcome.error()); +} + +void SgwClient::describeKmsKeyAsync(const DescribeKmsKeyRequest& request, const DescribeKmsKeyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeKmsKey(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeKmsKeyOutcomeCallable SgwClient::describeKmsKeyCallable(const DescribeKmsKeyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeKmsKey(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeMqttConfigOutcome SgwClient::describeMqttConfig(const DescribeMqttConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeMqttConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeMqttConfigOutcome(DescribeMqttConfigResult(outcome.result())); + else + return DescribeMqttConfigOutcome(outcome.error()); +} + +void SgwClient::describeMqttConfigAsync(const DescribeMqttConfigRequest& request, const DescribeMqttConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeMqttConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeMqttConfigOutcomeCallable SgwClient::describeMqttConfigCallable(const DescribeMqttConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeMqttConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeOssBucketInfoOutcome SgwClient::describeOssBucketInfo(const DescribeOssBucketInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeOssBucketInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeOssBucketInfoOutcome(DescribeOssBucketInfoResult(outcome.result())); + else + return DescribeOssBucketInfoOutcome(outcome.error()); +} + +void SgwClient::describeOssBucketInfoAsync(const DescribeOssBucketInfoRequest& request, const DescribeOssBucketInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeOssBucketInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeOssBucketInfoOutcomeCallable SgwClient::describeOssBucketInfoCallable(const DescribeOssBucketInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeOssBucketInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeOssBucketsOutcome SgwClient::describeOssBuckets(const DescribeOssBucketsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeOssBucketsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeOssBucketsOutcome(DescribeOssBucketsResult(outcome.result())); + else + return DescribeOssBucketsOutcome(outcome.error()); +} + +void SgwClient::describeOssBucketsAsync(const DescribeOssBucketsRequest& request, const DescribeOssBucketsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeOssBuckets(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeOssBucketsOutcomeCallable SgwClient::describeOssBucketsCallable(const DescribeOssBucketsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeOssBuckets(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribePayAsYouGoPriceOutcome SgwClient::describePayAsYouGoPrice(const DescribePayAsYouGoPriceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePayAsYouGoPriceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePayAsYouGoPriceOutcome(DescribePayAsYouGoPriceResult(outcome.result())); + else + return DescribePayAsYouGoPriceOutcome(outcome.error()); +} + +void SgwClient::describePayAsYouGoPriceAsync(const DescribePayAsYouGoPriceRequest& request, const DescribePayAsYouGoPriceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePayAsYouGoPrice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribePayAsYouGoPriceOutcomeCallable SgwClient::describePayAsYouGoPriceCallable(const DescribePayAsYouGoPriceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePayAsYouGoPrice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeRegionsOutcome SgwClient::describeRegions(const DescribeRegionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRegionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRegionsOutcome(DescribeRegionsResult(outcome.result())); + else + return DescribeRegionsOutcome(outcome.error()); +} + +void SgwClient::describeRegionsAsync(const DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRegions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeRegionsOutcomeCallable SgwClient::describeRegionsCallable(const DescribeRegionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRegions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeSharesBucketInfoForExpressSyncOutcome SgwClient::describeSharesBucketInfoForExpressSync(const DescribeSharesBucketInfoForExpressSyncRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSharesBucketInfoForExpressSyncOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSharesBucketInfoForExpressSyncOutcome(DescribeSharesBucketInfoForExpressSyncResult(outcome.result())); + else + return DescribeSharesBucketInfoForExpressSyncOutcome(outcome.error()); +} + +void SgwClient::describeSharesBucketInfoForExpressSyncAsync(const DescribeSharesBucketInfoForExpressSyncRequest& request, const DescribeSharesBucketInfoForExpressSyncAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSharesBucketInfoForExpressSync(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeSharesBucketInfoForExpressSyncOutcomeCallable SgwClient::describeSharesBucketInfoForExpressSyncCallable(const DescribeSharesBucketInfoForExpressSyncRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSharesBucketInfoForExpressSync(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeStorageBundleOutcome SgwClient::describeStorageBundle(const DescribeStorageBundleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeStorageBundleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeStorageBundleOutcome(DescribeStorageBundleResult(outcome.result())); + else + return DescribeStorageBundleOutcome(outcome.error()); +} + +void SgwClient::describeStorageBundleAsync(const DescribeStorageBundleRequest& request, const DescribeStorageBundleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeStorageBundle(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeStorageBundleOutcomeCallable SgwClient::describeStorageBundleCallable(const DescribeStorageBundleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeStorageBundle(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeStorageBundlesOutcome SgwClient::describeStorageBundles(const DescribeStorageBundlesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeStorageBundlesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeStorageBundlesOutcome(DescribeStorageBundlesResult(outcome.result())); + else + return DescribeStorageBundlesOutcome(outcome.error()); +} + +void SgwClient::describeStorageBundlesAsync(const DescribeStorageBundlesRequest& request, const DescribeStorageBundlesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeStorageBundles(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeStorageBundlesOutcomeCallable SgwClient::describeStorageBundlesCallable(const DescribeStorageBundlesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeStorageBundles(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeSubscriptionPriceOutcome SgwClient::describeSubscriptionPrice(const DescribeSubscriptionPriceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSubscriptionPriceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSubscriptionPriceOutcome(DescribeSubscriptionPriceResult(outcome.result())); + else + return DescribeSubscriptionPriceOutcome(outcome.error()); +} + +void SgwClient::describeSubscriptionPriceAsync(const DescribeSubscriptionPriceRequest& request, const DescribeSubscriptionPriceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSubscriptionPrice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeSubscriptionPriceOutcomeCallable SgwClient::describeSubscriptionPriceCallable(const DescribeSubscriptionPriceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSubscriptionPrice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeTasksOutcome SgwClient::describeTasks(const DescribeTasksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeTasksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeTasksOutcome(DescribeTasksResult(outcome.result())); + else + return DescribeTasksOutcome(outcome.error()); +} + +void SgwClient::describeTasksAsync(const DescribeTasksRequest& request, const DescribeTasksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeTasks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeTasksOutcomeCallable SgwClient::describeTasksCallable(const DescribeTasksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeTasks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeUserBusinessStatusOutcome SgwClient::describeUserBusinessStatus(const DescribeUserBusinessStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeUserBusinessStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeUserBusinessStatusOutcome(DescribeUserBusinessStatusResult(outcome.result())); + else + return DescribeUserBusinessStatusOutcome(outcome.error()); +} + +void SgwClient::describeUserBusinessStatusAsync(const DescribeUserBusinessStatusRequest& request, const DescribeUserBusinessStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeUserBusinessStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeUserBusinessStatusOutcomeCallable SgwClient::describeUserBusinessStatusCallable(const DescribeUserBusinessStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeUserBusinessStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeVSwitchesOutcome SgwClient::describeVSwitches(const DescribeVSwitchesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVSwitchesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVSwitchesOutcome(DescribeVSwitchesResult(outcome.result())); + else + return DescribeVSwitchesOutcome(outcome.error()); +} + +void SgwClient::describeVSwitchesAsync(const DescribeVSwitchesRequest& request, const DescribeVSwitchesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVSwitches(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeVSwitchesOutcomeCallable SgwClient::describeVSwitchesCallable(const DescribeVSwitchesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVSwitches(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeVpcsOutcome SgwClient::describeVpcs(const DescribeVpcsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVpcsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVpcsOutcome(DescribeVpcsResult(outcome.result())); + else + return DescribeVpcsOutcome(outcome.error()); +} + +void SgwClient::describeVpcsAsync(const DescribeVpcsRequest& request, const DescribeVpcsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVpcs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeVpcsOutcomeCallable SgwClient::describeVpcsCallable(const DescribeVpcsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVpcs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DescribeZonesOutcome SgwClient::describeZones(const DescribeZonesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeZonesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeZonesOutcome(DescribeZonesResult(outcome.result())); + else + return DescribeZonesOutcome(outcome.error()); +} + +void SgwClient::describeZonesAsync(const DescribeZonesRequest& request, const DescribeZonesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeZones(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DescribeZonesOutcomeCallable SgwClient::describeZonesCallable(const DescribeZonesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeZones(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::DisableGatewayLoggingOutcome SgwClient::disableGatewayLogging(const DisableGatewayLoggingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DisableGatewayLoggingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DisableGatewayLoggingOutcome(DisableGatewayLoggingResult(outcome.result())); + else + return DisableGatewayLoggingOutcome(outcome.error()); +} + +void SgwClient::disableGatewayLoggingAsync(const DisableGatewayLoggingRequest& request, const DisableGatewayLoggingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, disableGatewayLogging(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::DisableGatewayLoggingOutcomeCallable SgwClient::disableGatewayLoggingCallable(const DisableGatewayLoggingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->disableGatewayLogging(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::EnableGatewayLoggingOutcome SgwClient::enableGatewayLogging(const EnableGatewayLoggingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EnableGatewayLoggingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EnableGatewayLoggingOutcome(EnableGatewayLoggingResult(outcome.result())); + else + return EnableGatewayLoggingOutcome(outcome.error()); +} + +void SgwClient::enableGatewayLoggingAsync(const EnableGatewayLoggingRequest& request, const EnableGatewayLoggingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, enableGatewayLogging(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::EnableGatewayLoggingOutcomeCallable SgwClient::enableGatewayLoggingCallable(const EnableGatewayLoggingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->enableGatewayLogging(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::ExpandCacheDiskOutcome SgwClient::expandCacheDisk(const ExpandCacheDiskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ExpandCacheDiskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ExpandCacheDiskOutcome(ExpandCacheDiskResult(outcome.result())); + else + return ExpandCacheDiskOutcome(outcome.error()); +} + +void SgwClient::expandCacheDiskAsync(const ExpandCacheDiskRequest& request, const ExpandCacheDiskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, expandCacheDisk(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::ExpandCacheDiskOutcomeCallable SgwClient::expandCacheDiskCallable(const ExpandCacheDiskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->expandCacheDisk(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::ExpandGatewayNetworkBandwidthOutcome SgwClient::expandGatewayNetworkBandwidth(const ExpandGatewayNetworkBandwidthRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ExpandGatewayNetworkBandwidthOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ExpandGatewayNetworkBandwidthOutcome(ExpandGatewayNetworkBandwidthResult(outcome.result())); + else + return ExpandGatewayNetworkBandwidthOutcome(outcome.error()); +} + +void SgwClient::expandGatewayNetworkBandwidthAsync(const ExpandGatewayNetworkBandwidthRequest& request, const ExpandGatewayNetworkBandwidthAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, expandGatewayNetworkBandwidth(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::ExpandGatewayNetworkBandwidthOutcomeCallable SgwClient::expandGatewayNetworkBandwidthCallable(const ExpandGatewayNetworkBandwidthRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->expandGatewayNetworkBandwidth(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::GenerateGatewayTokenOutcome SgwClient::generateGatewayToken(const GenerateGatewayTokenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GenerateGatewayTokenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GenerateGatewayTokenOutcome(GenerateGatewayTokenResult(outcome.result())); + else + return GenerateGatewayTokenOutcome(outcome.error()); +} + +void SgwClient::generateGatewayTokenAsync(const GenerateGatewayTokenRequest& request, const GenerateGatewayTokenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, generateGatewayToken(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::GenerateGatewayTokenOutcomeCallable SgwClient::generateGatewayTokenCallable(const GenerateGatewayTokenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->generateGatewayToken(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::GenerateMqttTokenOutcome SgwClient::generateMqttToken(const GenerateMqttTokenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GenerateMqttTokenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GenerateMqttTokenOutcome(GenerateMqttTokenResult(outcome.result())); + else + return GenerateMqttTokenOutcome(outcome.error()); +} + +void SgwClient::generateMqttTokenAsync(const GenerateMqttTokenRequest& request, const GenerateMqttTokenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, generateMqttToken(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::GenerateMqttTokenOutcomeCallable SgwClient::generateMqttTokenCallable(const GenerateMqttTokenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->generateMqttToken(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::GenerateStsTokenOutcome SgwClient::generateStsToken(const GenerateStsTokenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GenerateStsTokenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GenerateStsTokenOutcome(GenerateStsTokenResult(outcome.result())); + else + return GenerateStsTokenOutcome(outcome.error()); +} + +void SgwClient::generateStsTokenAsync(const GenerateStsTokenRequest& request, const GenerateStsTokenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, generateStsToken(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::GenerateStsTokenOutcomeCallable SgwClient::generateStsTokenCallable(const GenerateStsTokenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->generateStsToken(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::ListTagResourcesOutcome SgwClient::listTagResources(const ListTagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTagResourcesOutcome(ListTagResourcesResult(outcome.result())); + else + return ListTagResourcesOutcome(outcome.error()); +} + +void SgwClient::listTagResourcesAsync(const ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::ListTagResourcesOutcomeCallable SgwClient::listTagResourcesCallable(const ListTagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::ModifyGatewayOutcome SgwClient::modifyGateway(const ModifyGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyGatewayOutcome(ModifyGatewayResult(outcome.result())); + else + return ModifyGatewayOutcome(outcome.error()); +} + +void SgwClient::modifyGatewayAsync(const ModifyGatewayRequest& request, const ModifyGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::ModifyGatewayOutcomeCallable SgwClient::modifyGatewayCallable(const ModifyGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::ModifyGatewayBlockVolumeOutcome SgwClient::modifyGatewayBlockVolume(const ModifyGatewayBlockVolumeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyGatewayBlockVolumeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyGatewayBlockVolumeOutcome(ModifyGatewayBlockVolumeResult(outcome.result())); + else + return ModifyGatewayBlockVolumeOutcome(outcome.error()); +} + +void SgwClient::modifyGatewayBlockVolumeAsync(const ModifyGatewayBlockVolumeRequest& request, const ModifyGatewayBlockVolumeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyGatewayBlockVolume(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::ModifyGatewayBlockVolumeOutcomeCallable SgwClient::modifyGatewayBlockVolumeCallable(const ModifyGatewayBlockVolumeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyGatewayBlockVolume(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::ModifyGatewayClassOutcome SgwClient::modifyGatewayClass(const ModifyGatewayClassRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyGatewayClassOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyGatewayClassOutcome(ModifyGatewayClassResult(outcome.result())); + else + return ModifyGatewayClassOutcome(outcome.error()); +} + +void SgwClient::modifyGatewayClassAsync(const ModifyGatewayClassRequest& request, const ModifyGatewayClassAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyGatewayClass(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::ModifyGatewayClassOutcomeCallable SgwClient::modifyGatewayClassCallable(const ModifyGatewayClassRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyGatewayClass(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::ModifyGatewayFileShareOutcome SgwClient::modifyGatewayFileShare(const ModifyGatewayFileShareRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyGatewayFileShareOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyGatewayFileShareOutcome(ModifyGatewayFileShareResult(outcome.result())); + else + return ModifyGatewayFileShareOutcome(outcome.error()); +} + +void SgwClient::modifyGatewayFileShareAsync(const ModifyGatewayFileShareRequest& request, const ModifyGatewayFileShareAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyGatewayFileShare(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::ModifyGatewayFileShareOutcomeCallable SgwClient::modifyGatewayFileShareCallable(const ModifyGatewayFileShareRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyGatewayFileShare(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::ModifyStorageBundleOutcome SgwClient::modifyStorageBundle(const ModifyStorageBundleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyStorageBundleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyStorageBundleOutcome(ModifyStorageBundleResult(outcome.result())); + else + return ModifyStorageBundleOutcome(outcome.error()); +} + +void SgwClient::modifyStorageBundleAsync(const ModifyStorageBundleRequest& request, const ModifyStorageBundleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyStorageBundle(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::ModifyStorageBundleOutcomeCallable SgwClient::modifyStorageBundleCallable(const ModifyStorageBundleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyStorageBundle(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::OperateGatewayOutcome SgwClient::operateGateway(const OperateGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OperateGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OperateGatewayOutcome(OperateGatewayResult(outcome.result())); + else + return OperateGatewayOutcome(outcome.error()); +} + +void SgwClient::operateGatewayAsync(const OperateGatewayRequest& request, const OperateGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, operateGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::OperateGatewayOutcomeCallable SgwClient::operateGatewayCallable(const OperateGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->operateGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::ReleaseServiceOutcome SgwClient::releaseService(const ReleaseServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReleaseServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReleaseServiceOutcome(ReleaseServiceResult(outcome.result())); + else + return ReleaseServiceOutcome(outcome.error()); +} + +void SgwClient::releaseServiceAsync(const ReleaseServiceRequest& request, const ReleaseServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, releaseService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::ReleaseServiceOutcomeCallable SgwClient::releaseServiceCallable(const ReleaseServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->releaseService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::RemoveSharesFromExpressSyncOutcome SgwClient::removeSharesFromExpressSync(const RemoveSharesFromExpressSyncRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveSharesFromExpressSyncOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveSharesFromExpressSyncOutcome(RemoveSharesFromExpressSyncResult(outcome.result())); + else + return RemoveSharesFromExpressSyncOutcome(outcome.error()); +} + +void SgwClient::removeSharesFromExpressSyncAsync(const RemoveSharesFromExpressSyncRequest& request, const RemoveSharesFromExpressSyncAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeSharesFromExpressSync(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::RemoveSharesFromExpressSyncOutcomeCallable SgwClient::removeSharesFromExpressSyncCallable(const RemoveSharesFromExpressSyncRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeSharesFromExpressSync(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::RemoveTagsFromGatewayOutcome SgwClient::removeTagsFromGateway(const RemoveTagsFromGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveTagsFromGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveTagsFromGatewayOutcome(RemoveTagsFromGatewayResult(outcome.result())); + else + return RemoveTagsFromGatewayOutcome(outcome.error()); +} + +void SgwClient::removeTagsFromGatewayAsync(const RemoveTagsFromGatewayRequest& request, const RemoveTagsFromGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeTagsFromGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::RemoveTagsFromGatewayOutcomeCallable SgwClient::removeTagsFromGatewayCallable(const RemoveTagsFromGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeTagsFromGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::ReportBlockVolumesOutcome SgwClient::reportBlockVolumes(const ReportBlockVolumesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReportBlockVolumesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReportBlockVolumesOutcome(ReportBlockVolumesResult(outcome.result())); + else + return ReportBlockVolumesOutcome(outcome.error()); +} + +void SgwClient::reportBlockVolumesAsync(const ReportBlockVolumesRequest& request, const ReportBlockVolumesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, reportBlockVolumes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::ReportBlockVolumesOutcomeCallable SgwClient::reportBlockVolumesCallable(const ReportBlockVolumesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->reportBlockVolumes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::ReportFileSharesOutcome SgwClient::reportFileShares(const ReportFileSharesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReportFileSharesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReportFileSharesOutcome(ReportFileSharesResult(outcome.result())); + else + return ReportFileSharesOutcome(outcome.error()); +} + +void SgwClient::reportFileSharesAsync(const ReportFileSharesRequest& request, const ReportFileSharesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, reportFileShares(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::ReportFileSharesOutcomeCallable SgwClient::reportFileSharesCallable(const ReportFileSharesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->reportFileShares(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::ReportGatewayInfoOutcome SgwClient::reportGatewayInfo(const ReportGatewayInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReportGatewayInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReportGatewayInfoOutcome(ReportGatewayInfoResult(outcome.result())); + else + return ReportGatewayInfoOutcome(outcome.error()); +} + +void SgwClient::reportGatewayInfoAsync(const ReportGatewayInfoRequest& request, const ReportGatewayInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, reportGatewayInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::ReportGatewayInfoOutcomeCallable SgwClient::reportGatewayInfoCallable(const ReportGatewayInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->reportGatewayInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::ReportGatewayUsageOutcome SgwClient::reportGatewayUsage(const ReportGatewayUsageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReportGatewayUsageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReportGatewayUsageOutcome(ReportGatewayUsageResult(outcome.result())); + else + return ReportGatewayUsageOutcome(outcome.error()); +} + +void SgwClient::reportGatewayUsageAsync(const ReportGatewayUsageRequest& request, const ReportGatewayUsageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, reportGatewayUsage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::ReportGatewayUsageOutcomeCallable SgwClient::reportGatewayUsageCallable(const ReportGatewayUsageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->reportGatewayUsage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::ResetGatewayPasswordOutcome SgwClient::resetGatewayPassword(const ResetGatewayPasswordRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ResetGatewayPasswordOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResetGatewayPasswordOutcome(ResetGatewayPasswordResult(outcome.result())); + else + return ResetGatewayPasswordOutcome(outcome.error()); +} + +void SgwClient::resetGatewayPasswordAsync(const ResetGatewayPasswordRequest& request, const ResetGatewayPasswordAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resetGatewayPassword(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::ResetGatewayPasswordOutcomeCallable SgwClient::resetGatewayPasswordCallable(const ResetGatewayPasswordRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resetGatewayPassword(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::RestartFileSharesOutcome SgwClient::restartFileShares(const RestartFileSharesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RestartFileSharesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RestartFileSharesOutcome(RestartFileSharesResult(outcome.result())); + else + return RestartFileSharesOutcome(outcome.error()); +} + +void SgwClient::restartFileSharesAsync(const RestartFileSharesRequest& request, const RestartFileSharesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, restartFileShares(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::RestartFileSharesOutcomeCallable SgwClient::restartFileSharesCallable(const RestartFileSharesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->restartFileShares(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::SetGatewayADInfoOutcome SgwClient::setGatewayADInfo(const SetGatewayADInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetGatewayADInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetGatewayADInfoOutcome(SetGatewayADInfoResult(outcome.result())); + else + return SetGatewayADInfoOutcome(outcome.error()); +} + +void SgwClient::setGatewayADInfoAsync(const SetGatewayADInfoRequest& request, const SetGatewayADInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setGatewayADInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::SetGatewayADInfoOutcomeCallable SgwClient::setGatewayADInfoCallable(const SetGatewayADInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setGatewayADInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::SetGatewayDNSOutcome SgwClient::setGatewayDNS(const SetGatewayDNSRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetGatewayDNSOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetGatewayDNSOutcome(SetGatewayDNSResult(outcome.result())); + else + return SetGatewayDNSOutcome(outcome.error()); +} + +void SgwClient::setGatewayDNSAsync(const SetGatewayDNSRequest& request, const SetGatewayDNSAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setGatewayDNS(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::SetGatewayDNSOutcomeCallable SgwClient::setGatewayDNSCallable(const SetGatewayDNSRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setGatewayDNS(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::SetGatewayLDAPInfoOutcome SgwClient::setGatewayLDAPInfo(const SetGatewayLDAPInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetGatewayLDAPInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetGatewayLDAPInfoOutcome(SetGatewayLDAPInfoResult(outcome.result())); + else + return SetGatewayLDAPInfoOutcome(outcome.error()); +} + +void SgwClient::setGatewayLDAPInfoAsync(const SetGatewayLDAPInfoRequest& request, const SetGatewayLDAPInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setGatewayLDAPInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::SetGatewayLDAPInfoOutcomeCallable SgwClient::setGatewayLDAPInfoCallable(const SetGatewayLDAPInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setGatewayLDAPInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::SwitchGatewayExpirationPolicyOutcome SgwClient::switchGatewayExpirationPolicy(const SwitchGatewayExpirationPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SwitchGatewayExpirationPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SwitchGatewayExpirationPolicyOutcome(SwitchGatewayExpirationPolicyResult(outcome.result())); + else + return SwitchGatewayExpirationPolicyOutcome(outcome.error()); +} + +void SgwClient::switchGatewayExpirationPolicyAsync(const SwitchGatewayExpirationPolicyRequest& request, const SwitchGatewayExpirationPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, switchGatewayExpirationPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::SwitchGatewayExpirationPolicyOutcomeCallable SgwClient::switchGatewayExpirationPolicyCallable(const SwitchGatewayExpirationPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->switchGatewayExpirationPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::SwitchToSubscriptionOutcome SgwClient::switchToSubscription(const SwitchToSubscriptionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SwitchToSubscriptionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SwitchToSubscriptionOutcome(SwitchToSubscriptionResult(outcome.result())); + else + return SwitchToSubscriptionOutcome(outcome.error()); +} + +void SgwClient::switchToSubscriptionAsync(const SwitchToSubscriptionRequest& request, const SwitchToSubscriptionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, switchToSubscription(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::SwitchToSubscriptionOutcomeCallable SgwClient::switchToSubscriptionCallable(const SwitchToSubscriptionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->switchToSubscription(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::TagResourcesOutcome SgwClient::tagResources(const TagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TagResourcesOutcome(TagResourcesResult(outcome.result())); + else + return TagResourcesOutcome(outcome.error()); +} + +void SgwClient::tagResourcesAsync(const TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, tagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::TagResourcesOutcomeCallable SgwClient::tagResourcesCallable(const TagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->tagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::UntagResourcesOutcome SgwClient::untagResources(const UntagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UntagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UntagResourcesOutcome(UntagResourcesResult(outcome.result())); + else + return UntagResourcesOutcome(outcome.error()); +} + +void SgwClient::untagResourcesAsync(const UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, untagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::UntagResourcesOutcomeCallable SgwClient::untagResourcesCallable(const UntagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->untagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::UpdateGatewayBlockVolumeOutcome SgwClient::updateGatewayBlockVolume(const UpdateGatewayBlockVolumeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateGatewayBlockVolumeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateGatewayBlockVolumeOutcome(UpdateGatewayBlockVolumeResult(outcome.result())); + else + return UpdateGatewayBlockVolumeOutcome(outcome.error()); +} + +void SgwClient::updateGatewayBlockVolumeAsync(const UpdateGatewayBlockVolumeRequest& request, const UpdateGatewayBlockVolumeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateGatewayBlockVolume(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::UpdateGatewayBlockVolumeOutcomeCallable SgwClient::updateGatewayBlockVolumeCallable(const UpdateGatewayBlockVolumeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateGatewayBlockVolume(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::UpdateGatewayFileShareOutcome SgwClient::updateGatewayFileShare(const UpdateGatewayFileShareRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateGatewayFileShareOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateGatewayFileShareOutcome(UpdateGatewayFileShareResult(outcome.result())); + else + return UpdateGatewayFileShareOutcome(outcome.error()); +} + +void SgwClient::updateGatewayFileShareAsync(const UpdateGatewayFileShareRequest& request, const UpdateGatewayFileShareAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateGatewayFileShare(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::UpdateGatewayFileShareOutcomeCallable SgwClient::updateGatewayFileShareCallable(const UpdateGatewayFileShareRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateGatewayFileShare(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::UpgradeGatewayOutcome SgwClient::upgradeGateway(const UpgradeGatewayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpgradeGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpgradeGatewayOutcome(UpgradeGatewayResult(outcome.result())); + else + return UpgradeGatewayOutcome(outcome.error()); +} + +void SgwClient::upgradeGatewayAsync(const UpgradeGatewayRequest& request, const UpgradeGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, upgradeGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::UpgradeGatewayOutcomeCallable SgwClient::upgradeGatewayCallable(const UpgradeGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->upgradeGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::UploadGatewayLogOutcome SgwClient::uploadGatewayLog(const UploadGatewayLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UploadGatewayLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UploadGatewayLogOutcome(UploadGatewayLogResult(outcome.result())); + else + return UploadGatewayLogOutcome(outcome.error()); +} + +void SgwClient::uploadGatewayLogAsync(const UploadGatewayLogRequest& request, const UploadGatewayLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, uploadGatewayLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::UploadGatewayLogOutcomeCallable SgwClient::uploadGatewayLogCallable(const UploadGatewayLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->uploadGatewayLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::ValidateExpressSyncConfigOutcome SgwClient::validateExpressSyncConfig(const ValidateExpressSyncConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ValidateExpressSyncConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ValidateExpressSyncConfigOutcome(ValidateExpressSyncConfigResult(outcome.result())); + else + return ValidateExpressSyncConfigOutcome(outcome.error()); +} + +void SgwClient::validateExpressSyncConfigAsync(const ValidateExpressSyncConfigRequest& request, const ValidateExpressSyncConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, validateExpressSyncConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::ValidateExpressSyncConfigOutcomeCallable SgwClient::validateExpressSyncConfigCallable(const ValidateExpressSyncConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->validateExpressSyncConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SgwClient::ValidateGatewayNameOutcome SgwClient::validateGatewayName(const ValidateGatewayNameRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ValidateGatewayNameOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ValidateGatewayNameOutcome(ValidateGatewayNameResult(outcome.result())); + else + return ValidateGatewayNameOutcome(outcome.error()); +} + +void SgwClient::validateGatewayNameAsync(const ValidateGatewayNameRequest& request, const ValidateGatewayNameAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, validateGatewayName(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SgwClient::ValidateGatewayNameOutcomeCallable SgwClient::validateGatewayNameCallable(const ValidateGatewayNameRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->validateGatewayName(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/sgw/src/model/ActivateAllInOneGatewayRequest.cc b/sgw/src/model/ActivateAllInOneGatewayRequest.cc new file mode 100644 index 000000000..949bbbbe3 --- /dev/null +++ b/sgw/src/model/ActivateAllInOneGatewayRequest.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::Sgw::Model::ActivateAllInOneGatewayRequest; + +ActivateAllInOneGatewayRequest::ActivateAllInOneGatewayRequest() : + RpcServiceRequest("sgw", "2018-05-11", "ActivateAllInOneGateway") +{ + setMethod(HttpRequest::Method::Post); +} + +ActivateAllInOneGatewayRequest::~ActivateAllInOneGatewayRequest() +{} + +std::string ActivateAllInOneGatewayRequest::getClientUUID()const +{ + return clientUUID_; +} + +void ActivateAllInOneGatewayRequest::setClientUUID(const std::string& clientUUID) +{ + clientUUID_ = clientUUID; + setParameter("ClientUUID", clientUUID); +} + +std::string ActivateAllInOneGatewayRequest::getSerialNumber()const +{ + return serialNumber_; +} + +void ActivateAllInOneGatewayRequest::setSerialNumber(const std::string& serialNumber) +{ + serialNumber_ = serialNumber; + setParameter("SerialNumber", serialNumber); +} + +std::string ActivateAllInOneGatewayRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ActivateAllInOneGatewayRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ActivateAllInOneGatewayRequest::getDeviceNumber()const +{ + return deviceNumber_; +} + +void ActivateAllInOneGatewayRequest::setDeviceNumber(const std::string& deviceNumber) +{ + deviceNumber_ = deviceNumber; + setParameter("DeviceNumber", deviceNumber); +} + +std::string ActivateAllInOneGatewayRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ActivateAllInOneGatewayRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string ActivateAllInOneGatewayRequest::getModel()const +{ + return model_; +} + +void ActivateAllInOneGatewayRequest::setModel(const std::string& model) +{ + model_ = model; + setParameter("Model", model); +} + +std::string ActivateAllInOneGatewayRequest::getGatewayId()const +{ + return gatewayId_; +} + +void ActivateAllInOneGatewayRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/ActivateAllInOneGatewayResult.cc b/sgw/src/model/ActivateAllInOneGatewayResult.cc new file mode 100644 index 000000000..c15bf3adf --- /dev/null +++ b/sgw/src/model/ActivateAllInOneGatewayResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +ActivateAllInOneGatewayResult::ActivateAllInOneGatewayResult() : + ServiceResult() +{} + +ActivateAllInOneGatewayResult::ActivateAllInOneGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ActivateAllInOneGatewayResult::~ActivateAllInOneGatewayResult() +{} + +void ActivateAllInOneGatewayResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["GatewayId"].isNull()) + gatewayId_ = value["GatewayId"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["LicenseContent"].isNull()) + licenseContent_ = value["LicenseContent"].asString(); + +} + +std::string ActivateAllInOneGatewayResult::getMessage()const +{ + return message_; +} + +std::string ActivateAllInOneGatewayResult::getRegionId()const +{ + return regionId_; +} + +std::string ActivateAllInOneGatewayResult::getGatewayId()const +{ + return gatewayId_; +} + +std::string ActivateAllInOneGatewayResult::getCode()const +{ + return code_; +} + +std::string ActivateAllInOneGatewayResult::getLicenseContent()const +{ + return licenseContent_; +} + +bool ActivateAllInOneGatewayResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/ActivateGatewayRequest.cc b/sgw/src/model/ActivateGatewayRequest.cc new file mode 100644 index 000000000..f66da976e --- /dev/null +++ b/sgw/src/model/ActivateGatewayRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sgw::Model::ActivateGatewayRequest; + +ActivateGatewayRequest::ActivateGatewayRequest() : + RpcServiceRequest("sgw", "2018-05-11", "ActivateGateway") +{ + setMethod(HttpRequest::Method::Post); +} + +ActivateGatewayRequest::~ActivateGatewayRequest() +{} + +std::string ActivateGatewayRequest::getClientUUID()const +{ + return clientUUID_; +} + +void ActivateGatewayRequest::setClientUUID(const std::string& clientUUID) +{ + clientUUID_ = clientUUID; + setParameter("ClientUUID", clientUUID); +} + +std::string ActivateGatewayRequest::getSerialNumber()const +{ + return serialNumber_; +} + +void ActivateGatewayRequest::setSerialNumber(const std::string& serialNumber) +{ + serialNumber_ = serialNumber; + setParameter("SerialNumber", serialNumber); +} + +std::string ActivateGatewayRequest::getType()const +{ + return type_; +} + +void ActivateGatewayRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + +std::string ActivateGatewayRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ActivateGatewayRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ActivateGatewayRequest::getToken()const +{ + return token_; +} + +void ActivateGatewayRequest::setToken(const std::string& token) +{ + token_ = token; + setParameter("Token", token); +} + +std::string ActivateGatewayRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ActivateGatewayRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string ActivateGatewayRequest::getModel()const +{ + return model_; +} + +void ActivateGatewayRequest::setModel(const std::string& model) +{ + model_ = model; + setParameter("Model", model); +} + +std::string ActivateGatewayRequest::getCategory()const +{ + return category_; +} + +void ActivateGatewayRequest::setCategory(const std::string& category) +{ + category_ = category; + setParameter("Category", category); +} + diff --git a/sgw/src/model/ActivateGatewayResult.cc b/sgw/src/model/ActivateGatewayResult.cc new file mode 100644 index 000000000..c0a8242fa --- /dev/null +++ b/sgw/src/model/ActivateGatewayResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +ActivateGatewayResult::ActivateGatewayResult() : + ServiceResult() +{} + +ActivateGatewayResult::ActivateGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ActivateGatewayResult::~ActivateGatewayResult() +{} + +void ActivateGatewayResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["GatewayId"].isNull()) + gatewayId_ = value["GatewayId"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + +} + +std::string ActivateGatewayResult::getMessage()const +{ + return message_; +} + +std::string ActivateGatewayResult::getRegionId()const +{ + return regionId_; +} + +std::string ActivateGatewayResult::getGatewayId()const +{ + return gatewayId_; +} + +std::string ActivateGatewayResult::getCode()const +{ + return code_; +} + +bool ActivateGatewayResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/AddSharesToExpressSyncRequest.cc b/sgw/src/model/AddSharesToExpressSyncRequest.cc new file mode 100644 index 000000000..33bb36522 --- /dev/null +++ b/sgw/src/model/AddSharesToExpressSyncRequest.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::Sgw::Model::AddSharesToExpressSyncRequest; + +AddSharesToExpressSyncRequest::AddSharesToExpressSyncRequest() : + RpcServiceRequest("sgw", "2018-05-11", "AddSharesToExpressSync") +{ + setMethod(HttpRequest::Method::Post); +} + +AddSharesToExpressSyncRequest::~AddSharesToExpressSyncRequest() +{} + +std::string AddSharesToExpressSyncRequest::getExpressSyncId()const +{ + return expressSyncId_; +} + +void AddSharesToExpressSyncRequest::setExpressSyncId(const std::string& expressSyncId) +{ + expressSyncId_ = expressSyncId; + setParameter("ExpressSyncId", expressSyncId); +} + +std::string AddSharesToExpressSyncRequest::getGatewayShares()const +{ + return gatewayShares_; +} + +void AddSharesToExpressSyncRequest::setGatewayShares(const std::string& gatewayShares) +{ + gatewayShares_ = gatewayShares; + setParameter("GatewayShares", gatewayShares); +} + +std::string AddSharesToExpressSyncRequest::getGatewayRegions()const +{ + return gatewayRegions_; +} + +void AddSharesToExpressSyncRequest::setGatewayRegions(const std::string& gatewayRegions) +{ + gatewayRegions_ = gatewayRegions; + setParameter("GatewayRegions", gatewayRegions); +} + +std::string AddSharesToExpressSyncRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void AddSharesToExpressSyncRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string AddSharesToExpressSyncRequest::getSecurityToken()const +{ + return securityToken_; +} + +void AddSharesToExpressSyncRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + diff --git a/sgw/src/model/AddSharesToExpressSyncResult.cc b/sgw/src/model/AddSharesToExpressSyncResult.cc new file mode 100644 index 000000000..ada1ba3d1 --- /dev/null +++ b/sgw/src/model/AddSharesToExpressSyncResult.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +AddSharesToExpressSyncResult::AddSharesToExpressSyncResult() : + ServiceResult() +{} + +AddSharesToExpressSyncResult::AddSharesToExpressSyncResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddSharesToExpressSyncResult::~AddSharesToExpressSyncResult() +{} + +void AddSharesToExpressSyncResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + if(!value["MnsTopic"].isNull()) + mnsTopic_ = value["MnsTopic"].asString(); + if(!value["MnsQueues"].isNull()) + mnsQueues_ = value["MnsQueues"].asString(); + if(!value["MnsFullSyncDelay"].isNull()) + mnsFullSyncDelay_ = std::stol(value["MnsFullSyncDelay"].asString()); + if(!value["MnsPublicEndpoint"].isNull()) + mnsPublicEndpoint_ = value["MnsPublicEndpoint"].asString(); + if(!value["MnsInnerEndpoint"].isNull()) + mnsInnerEndpoint_ = value["MnsInnerEndpoint"].asString(); + +} + +std::string AddSharesToExpressSyncResult::getTaskId()const +{ + return taskId_; +} + +std::string AddSharesToExpressSyncResult::getMessage()const +{ + return message_; +} + +std::string AddSharesToExpressSyncResult::getMnsTopic()const +{ + return mnsTopic_; +} + +std::string AddSharesToExpressSyncResult::getMnsQueues()const +{ + return mnsQueues_; +} + +long AddSharesToExpressSyncResult::getMnsFullSyncDelay()const +{ + return mnsFullSyncDelay_; +} + +std::string AddSharesToExpressSyncResult::getMnsPublicEndpoint()const +{ + return mnsPublicEndpoint_; +} + +std::string AddSharesToExpressSyncResult::getCode()const +{ + return code_; +} + +std::string AddSharesToExpressSyncResult::getMnsInnerEndpoint()const +{ + return mnsInnerEndpoint_; +} + +bool AddSharesToExpressSyncResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/AddTagsToGatewayRequest.cc b/sgw/src/model/AddTagsToGatewayRequest.cc new file mode 100644 index 000000000..fa1183063 --- /dev/null +++ b/sgw/src/model/AddTagsToGatewayRequest.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::Sgw::Model::AddTagsToGatewayRequest; + +AddTagsToGatewayRequest::AddTagsToGatewayRequest() : + RpcServiceRequest("sgw", "2018-05-11", "AddTagsToGateway") +{ + setMethod(HttpRequest::Method::Post); +} + +AddTagsToGatewayRequest::~AddTagsToGatewayRequest() +{} + +std::string AddTagsToGatewayRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void AddTagsToGatewayRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string AddTagsToGatewayRequest::getTags()const +{ + return tags_; +} + +void AddTagsToGatewayRequest::setTags(const std::string& tags) +{ + tags_ = tags; + setParameter("Tags", tags); +} + +std::string AddTagsToGatewayRequest::getSecurityToken()const +{ + return securityToken_; +} + +void AddTagsToGatewayRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string AddTagsToGatewayRequest::getGatewayId()const +{ + return gatewayId_; +} + +void AddTagsToGatewayRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/AddTagsToGatewayResult.cc b/sgw/src/model/AddTagsToGatewayResult.cc new file mode 100644 index 000000000..3666657b7 --- /dev/null +++ b/sgw/src/model/AddTagsToGatewayResult.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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +AddTagsToGatewayResult::AddTagsToGatewayResult() : + ServiceResult() +{} + +AddTagsToGatewayResult::AddTagsToGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddTagsToGatewayResult::~AddTagsToGatewayResult() +{} + +void AddTagsToGatewayResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string AddTagsToGatewayResult::getMessage()const +{ + return message_; +} + +std::string AddTagsToGatewayResult::getCode()const +{ + return code_; +} + +bool AddTagsToGatewayResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/CheckActivationKeyRequest.cc b/sgw/src/model/CheckActivationKeyRequest.cc new file mode 100644 index 000000000..d30ad7822 --- /dev/null +++ b/sgw/src/model/CheckActivationKeyRequest.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::Sgw::Model::CheckActivationKeyRequest; + +CheckActivationKeyRequest::CheckActivationKeyRequest() : + RpcServiceRequest("sgw", "2018-05-11", "CheckActivationKey") +{ + setMethod(HttpRequest::Method::Post); +} + +CheckActivationKeyRequest::~CheckActivationKeyRequest() +{} + +std::string CheckActivationKeyRequest::getCryptKey()const +{ + return cryptKey_; +} + +void CheckActivationKeyRequest::setCryptKey(const std::string& cryptKey) +{ + cryptKey_ = cryptKey; + setParameter("CryptKey", cryptKey); +} + +std::string CheckActivationKeyRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CheckActivationKeyRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CheckActivationKeyRequest::getToken()const +{ + return token_; +} + +void CheckActivationKeyRequest::setToken(const std::string& token) +{ + token_ = token; + setParameter("Token", token); +} + +std::string CheckActivationKeyRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CheckActivationKeyRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string CheckActivationKeyRequest::getCryptText()const +{ + return cryptText_; +} + +void CheckActivationKeyRequest::setCryptText(const std::string& cryptText) +{ + cryptText_ = cryptText; + setParameter("CryptText", cryptText); +} + +std::string CheckActivationKeyRequest::getGatewayId()const +{ + return gatewayId_; +} + +void CheckActivationKeyRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/CheckActivationKeyResult.cc b/sgw/src/model/CheckActivationKeyResult.cc new file mode 100644 index 000000000..c9622b58a --- /dev/null +++ b/sgw/src/model/CheckActivationKeyResult.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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +CheckActivationKeyResult::CheckActivationKeyResult() : + ServiceResult() +{} + +CheckActivationKeyResult::CheckActivationKeyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckActivationKeyResult::~CheckActivationKeyResult() +{} + +void CheckActivationKeyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CheckActivationKeyResult::getMessage()const +{ + return message_; +} + +std::string CheckActivationKeyResult::getCode()const +{ + return code_; +} + +bool CheckActivationKeyResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/CheckBlockVolumeNameRequest.cc b/sgw/src/model/CheckBlockVolumeNameRequest.cc new file mode 100644 index 000000000..89748ff13 --- /dev/null +++ b/sgw/src/model/CheckBlockVolumeNameRequest.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::Sgw::Model::CheckBlockVolumeNameRequest; + +CheckBlockVolumeNameRequest::CheckBlockVolumeNameRequest() : + RpcServiceRequest("sgw", "2018-05-11", "CheckBlockVolumeName") +{ + setMethod(HttpRequest::Method::Post); +} + +CheckBlockVolumeNameRequest::~CheckBlockVolumeNameRequest() +{} + +std::string CheckBlockVolumeNameRequest::getVolumeName()const +{ + return volumeName_; +} + +void CheckBlockVolumeNameRequest::setVolumeName(const std::string& volumeName) +{ + volumeName_ = volumeName; + setParameter("VolumeName", volumeName); +} + +std::string CheckBlockVolumeNameRequest::getBucketEndpoint()const +{ + return bucketEndpoint_; +} + +void CheckBlockVolumeNameRequest::setBucketEndpoint(const std::string& bucketEndpoint) +{ + bucketEndpoint_ = bucketEndpoint; + setParameter("BucketEndpoint", bucketEndpoint); +} + +std::string CheckBlockVolumeNameRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CheckBlockVolumeNameRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CheckBlockVolumeNameRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CheckBlockVolumeNameRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string CheckBlockVolumeNameRequest::getBucketName()const +{ + return bucketName_; +} + +void CheckBlockVolumeNameRequest::setBucketName(const std::string& bucketName) +{ + bucketName_ = bucketName; + setParameter("BucketName", bucketName); +} + diff --git a/sgw/src/model/CheckBlockVolumeNameResult.cc b/sgw/src/model/CheckBlockVolumeNameResult.cc new file mode 100644 index 000000000..63cc232c1 --- /dev/null +++ b/sgw/src/model/CheckBlockVolumeNameResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +CheckBlockVolumeNameResult::CheckBlockVolumeNameResult() : + ServiceResult() +{} + +CheckBlockVolumeNameResult::CheckBlockVolumeNameResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckBlockVolumeNameResult::~CheckBlockVolumeNameResult() +{} + +void CheckBlockVolumeNameResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["IsRequireRecovery"].isNull()) + isRequireRecovery_ = value["IsRequireRecovery"].asString(); + +} + +std::string CheckBlockVolumeNameResult::getIsRequireRecovery()const +{ + return isRequireRecovery_; +} + +std::string CheckBlockVolumeNameResult::getMessage()const +{ + return message_; +} + +std::string CheckBlockVolumeNameResult::getCode()const +{ + return code_; +} + +bool CheckBlockVolumeNameResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/CheckGatewayEssdSupportRequest.cc b/sgw/src/model/CheckGatewayEssdSupportRequest.cc new file mode 100644 index 000000000..5b6698265 --- /dev/null +++ b/sgw/src/model/CheckGatewayEssdSupportRequest.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::Sgw::Model::CheckGatewayEssdSupportRequest; + +CheckGatewayEssdSupportRequest::CheckGatewayEssdSupportRequest() : + RpcServiceRequest("sgw", "2018-05-11", "CheckGatewayEssdSupport") +{ + setMethod(HttpRequest::Method::Post); +} + +CheckGatewayEssdSupportRequest::~CheckGatewayEssdSupportRequest() +{} + +std::string CheckGatewayEssdSupportRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CheckGatewayEssdSupportRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CheckGatewayEssdSupportRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CheckGatewayEssdSupportRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string CheckGatewayEssdSupportRequest::getGatewayId()const +{ + return gatewayId_; +} + +void CheckGatewayEssdSupportRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/CheckGatewayEssdSupportResult.cc b/sgw/src/model/CheckGatewayEssdSupportResult.cc new file mode 100644 index 000000000..323a2caad --- /dev/null +++ b/sgw/src/model/CheckGatewayEssdSupportResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +CheckGatewayEssdSupportResult::CheckGatewayEssdSupportResult() : + ServiceResult() +{} + +CheckGatewayEssdSupportResult::CheckGatewayEssdSupportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckGatewayEssdSupportResult::~CheckGatewayEssdSupportResult() +{} + +void CheckGatewayEssdSupportResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["IsSupportEssd"].isNull()) + isSupportEssd_ = value["IsSupportEssd"].asString() == "true"; + if(!value["IsServiceAffect"].isNull()) + isServiceAffect_ = value["IsServiceAffect"].asString() == "true"; + +} + +bool CheckGatewayEssdSupportResult::getIsSupportEssd()const +{ + return isSupportEssd_; +} + +std::string CheckGatewayEssdSupportResult::getMessage()const +{ + return message_; +} + +bool CheckGatewayEssdSupportResult::getIsServiceAffect()const +{ + return isServiceAffect_; +} + +std::string CheckGatewayEssdSupportResult::getCode()const +{ + return code_; +} + +bool CheckGatewayEssdSupportResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/CheckMnsServiceRequest.cc b/sgw/src/model/CheckMnsServiceRequest.cc new file mode 100644 index 000000000..728ca43ff --- /dev/null +++ b/sgw/src/model/CheckMnsServiceRequest.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 + +using AlibabaCloud::Sgw::Model::CheckMnsServiceRequest; + +CheckMnsServiceRequest::CheckMnsServiceRequest() : + RpcServiceRequest("sgw", "2018-05-11", "CheckMnsService") +{ + setMethod(HttpRequest::Method::Post); +} + +CheckMnsServiceRequest::~CheckMnsServiceRequest() +{} + +std::string CheckMnsServiceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CheckMnsServiceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CheckMnsServiceRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CheckMnsServiceRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + diff --git a/sgw/src/model/CheckMnsServiceResult.cc b/sgw/src/model/CheckMnsServiceResult.cc new file mode 100644 index 000000000..00e1a0cf0 --- /dev/null +++ b/sgw/src/model/CheckMnsServiceResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +CheckMnsServiceResult::CheckMnsServiceResult() : + ServiceResult() +{} + +CheckMnsServiceResult::CheckMnsServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckMnsServiceResult::~CheckMnsServiceResult() +{} + +void CheckMnsServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["IsEnabled"].isNull()) + isEnabled_ = value["IsEnabled"].asString() == "true"; + if(!value["CheckMessage"].isNull()) + checkMessage_ = value["CheckMessage"].asString(); + +} + +std::string CheckMnsServiceResult::getMessage()const +{ + return message_; +} + +bool CheckMnsServiceResult::getIsEnabled()const +{ + return isEnabled_; +} + +std::string CheckMnsServiceResult::getCheckMessage()const +{ + return checkMessage_; +} + +std::string CheckMnsServiceResult::getCode()const +{ + return code_; +} + +bool CheckMnsServiceResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/CheckRoleRequest.cc b/sgw/src/model/CheckRoleRequest.cc new file mode 100644 index 000000000..54b838b21 --- /dev/null +++ b/sgw/src/model/CheckRoleRequest.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::Sgw::Model::CheckRoleRequest; + +CheckRoleRequest::CheckRoleRequest() : + RpcServiceRequest("sgw", "2018-05-11", "CheckRole") +{ + setMethod(HttpRequest::Method::Post); +} + +CheckRoleRequest::~CheckRoleRequest() +{} + +std::string CheckRoleRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CheckRoleRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CheckRoleRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CheckRoleRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string CheckRoleRequest::getRoleType()const +{ + return roleType_; +} + +void CheckRoleRequest::setRoleType(const std::string& roleType) +{ + roleType_ = roleType; + setParameter("RoleType", roleType); +} + diff --git a/sgw/src/model/CheckRoleResult.cc b/sgw/src/model/CheckRoleResult.cc new file mode 100644 index 000000000..b3564df58 --- /dev/null +++ b/sgw/src/model/CheckRoleResult.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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +CheckRoleResult::CheckRoleResult() : + ServiceResult() +{} + +CheckRoleResult::CheckRoleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckRoleResult::~CheckRoleResult() +{} + +void CheckRoleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CheckRoleResult::getMessage()const +{ + return message_; +} + +std::string CheckRoleResult::getCode()const +{ + return code_; +} + +bool CheckRoleResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/CheckSlrRoleRequest.cc b/sgw/src/model/CheckSlrRoleRequest.cc new file mode 100644 index 000000000..4a0c006a8 --- /dev/null +++ b/sgw/src/model/CheckSlrRoleRequest.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::Sgw::Model::CheckSlrRoleRequest; + +CheckSlrRoleRequest::CheckSlrRoleRequest() : + RpcServiceRequest("sgw", "2018-05-11", "CheckSlrRole") +{ + setMethod(HttpRequest::Method::Post); +} + +CheckSlrRoleRequest::~CheckSlrRoleRequest() +{} + +std::string CheckSlrRoleRequest::getRoleName()const +{ + return roleName_; +} + +void CheckSlrRoleRequest::setRoleName(const std::string& roleName) +{ + roleName_ = roleName; + setParameter("RoleName", roleName); +} + +std::string CheckSlrRoleRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CheckSlrRoleRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +bool CheckSlrRoleRequest::getCreateIfNotExist()const +{ + return createIfNotExist_; +} + +void CheckSlrRoleRequest::setCreateIfNotExist(bool createIfNotExist) +{ + createIfNotExist_ = createIfNotExist; + setParameter("CreateIfNotExist", createIfNotExist ? "true" : "false"); +} + +std::string CheckSlrRoleRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CheckSlrRoleRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + diff --git a/sgw/src/model/CheckSlrRoleResult.cc b/sgw/src/model/CheckSlrRoleResult.cc new file mode 100644 index 000000000..50f55493e --- /dev/null +++ b/sgw/src/model/CheckSlrRoleResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +CheckSlrRoleResult::CheckSlrRoleResult() : + ServiceResult() +{} + +CheckSlrRoleResult::CheckSlrRoleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckSlrRoleResult::~CheckSlrRoleResult() +{} + +void CheckSlrRoleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Exist"].isNull()) + exist_ = value["Exist"].asString() == "true"; + if(!value["RequireOldWayCheck"].isNull()) + requireOldWayCheck_ = value["RequireOldWayCheck"].asString() == "true"; + +} + +bool CheckSlrRoleResult::getExist()const +{ + return exist_; +} + +bool CheckSlrRoleResult::getRequireOldWayCheck()const +{ + return requireOldWayCheck_; +} + +std::string CheckSlrRoleResult::getMessage()const +{ + return message_; +} + +std::string CheckSlrRoleResult::getCode()const +{ + return code_; +} + +bool CheckSlrRoleResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/CheckUpgradeVersionRequest.cc b/sgw/src/model/CheckUpgradeVersionRequest.cc new file mode 100644 index 000000000..0b86fe3f7 --- /dev/null +++ b/sgw/src/model/CheckUpgradeVersionRequest.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::Sgw::Model::CheckUpgradeVersionRequest; + +CheckUpgradeVersionRequest::CheckUpgradeVersionRequest() : + RpcServiceRequest("sgw", "2018-05-11", "CheckUpgradeVersion") +{ + setMethod(HttpRequest::Method::Post); +} + +CheckUpgradeVersionRequest::~CheckUpgradeVersionRequest() +{} + +std::string CheckUpgradeVersionRequest::getClientUUID()const +{ + return clientUUID_; +} + +void CheckUpgradeVersionRequest::setClientUUID(const std::string& clientUUID) +{ + clientUUID_ = clientUUID; + setParameter("ClientUUID", clientUUID); +} + +std::string CheckUpgradeVersionRequest::getGatewayVersion()const +{ + return gatewayVersion_; +} + +void CheckUpgradeVersionRequest::setGatewayVersion(const std::string& gatewayVersion) +{ + gatewayVersion_ = gatewayVersion; + setParameter("GatewayVersion", gatewayVersion); +} + +std::string CheckUpgradeVersionRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CheckUpgradeVersionRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CheckUpgradeVersionRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CheckUpgradeVersionRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string CheckUpgradeVersionRequest::getGatewayId()const +{ + return gatewayId_; +} + +void CheckUpgradeVersionRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/CheckUpgradeVersionResult.cc b/sgw/src/model/CheckUpgradeVersionResult.cc new file mode 100644 index 000000000..0d84fea10 --- /dev/null +++ b/sgw/src/model/CheckUpgradeVersionResult.cc @@ -0,0 +1,98 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +CheckUpgradeVersionResult::CheckUpgradeVersionResult() : + ServiceResult() +{} + +CheckUpgradeVersionResult::CheckUpgradeVersionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckUpgradeVersionResult::~CheckUpgradeVersionResult() +{} + +void CheckUpgradeVersionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPatchesNode = value["Patches"]["Patch"]; + for (auto valuePatchesPatch : allPatchesNode) + { + Patch patchesObject; + if(!valuePatchesPatch["Name"].isNull()) + patchesObject.name = valuePatchesPatch["Name"].asString(); + if(!valuePatchesPatch["MD5"].isNull()) + patchesObject.mD5 = valuePatchesPatch["MD5"].asString(); + if(!valuePatchesPatch["Url"].isNull()) + patchesObject.url = valuePatchesPatch["Url"].asString(); + if(!valuePatchesPatch["InternalUrl"].isNull()) + patchesObject.internalUrl = valuePatchesPatch["InternalUrl"].asString(); + patches_.push_back(patchesObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Option"].isNull()) + option_ = value["Option"].asString(); + if(!value["LatestVersion"].isNull()) + latestVersion_ = value["LatestVersion"].asString(); + +} + +std::string CheckUpgradeVersionResult::getMessage()const +{ + return message_; +} + +std::string CheckUpgradeVersionResult::getLatestVersion()const +{ + return latestVersion_; +} + +std::string CheckUpgradeVersionResult::getOption()const +{ + return option_; +} + +std::string CheckUpgradeVersionResult::getCode()const +{ + return code_; +} + +bool CheckUpgradeVersionResult::getSuccess()const +{ + return success_; +} + +std::vector CheckUpgradeVersionResult::getPatches()const +{ + return patches_; +} + diff --git a/sgw/src/model/CreateCacheRequest.cc b/sgw/src/model/CreateCacheRequest.cc new file mode 100644 index 000000000..c04114232 --- /dev/null +++ b/sgw/src/model/CreateCacheRequest.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::Sgw::Model::CreateCacheRequest; + +CreateCacheRequest::CreateCacheRequest() : + RpcServiceRequest("sgw", "2018-05-11", "CreateCache") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateCacheRequest::~CreateCacheRequest() +{} + +long CreateCacheRequest::getSizeInGB()const +{ + return sizeInGB_; +} + +void CreateCacheRequest::setSizeInGB(long sizeInGB) +{ + sizeInGB_ = sizeInGB; + setParameter("SizeInGB", std::to_string(sizeInGB)); +} + +std::string CreateCacheRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateCacheRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CreateCacheRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateCacheRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string CreateCacheRequest::getCategory()const +{ + return category_; +} + +void CreateCacheRequest::setCategory(const std::string& category) +{ + category_ = category; + setParameter("Category", category); +} + +std::string CreateCacheRequest::getGatewayId()const +{ + return gatewayId_; +} + +void CreateCacheRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/CreateCacheResult.cc b/sgw/src/model/CreateCacheResult.cc new file mode 100644 index 000000000..1b03d3e68 --- /dev/null +++ b/sgw/src/model/CreateCacheResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +CreateCacheResult::CreateCacheResult() : + ServiceResult() +{} + +CreateCacheResult::CreateCacheResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateCacheResult::~CreateCacheResult() +{} + +void CreateCacheResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["CacheId"].isNull()) + cacheId_ = value["CacheId"].asString(); + if(!value["BuyURL"].isNull()) + buyURL_ = value["BuyURL"].asString(); + +} + +std::string CreateCacheResult::getBuyURL()const +{ + return buyURL_; +} + +std::string CreateCacheResult::getMessage()const +{ + return message_; +} + +std::string CreateCacheResult::getCacheId()const +{ + return cacheId_; +} + +std::string CreateCacheResult::getCode()const +{ + return code_; +} + +bool CreateCacheResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/CreateExpressSyncRequest.cc b/sgw/src/model/CreateExpressSyncRequest.cc new file mode 100644 index 000000000..943bff061 --- /dev/null +++ b/sgw/src/model/CreateExpressSyncRequest.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::Sgw::Model::CreateExpressSyncRequest; + +CreateExpressSyncRequest::CreateExpressSyncRequest() : + RpcServiceRequest("sgw", "2018-05-11", "CreateExpressSync") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateExpressSyncRequest::~CreateExpressSyncRequest() +{} + +std::string CreateExpressSyncRequest::getBucketRegion()const +{ + return bucketRegion_; +} + +void CreateExpressSyncRequest::setBucketRegion(const std::string& bucketRegion) +{ + bucketRegion_ = bucketRegion; + setParameter("BucketRegion", bucketRegion); +} + +std::string CreateExpressSyncRequest::getDescription()const +{ + return description_; +} + +void CreateExpressSyncRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreateExpressSyncRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateExpressSyncRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CreateExpressSyncRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateExpressSyncRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string CreateExpressSyncRequest::getBucketName()const +{ + return bucketName_; +} + +void CreateExpressSyncRequest::setBucketName(const std::string& bucketName) +{ + bucketName_ = bucketName; + setParameter("BucketName", bucketName); +} + +std::string CreateExpressSyncRequest::getName()const +{ + return name_; +} + +void CreateExpressSyncRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string CreateExpressSyncRequest::getBucketPrefix()const +{ + return bucketPrefix_; +} + +void CreateExpressSyncRequest::setBucketPrefix(const std::string& bucketPrefix) +{ + bucketPrefix_ = bucketPrefix; + setParameter("BucketPrefix", bucketPrefix); +} + diff --git a/sgw/src/model/CreateExpressSyncResult.cc b/sgw/src/model/CreateExpressSyncResult.cc new file mode 100644 index 000000000..1a78d736a --- /dev/null +++ b/sgw/src/model/CreateExpressSyncResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +CreateExpressSyncResult::CreateExpressSyncResult() : + ServiceResult() +{} + +CreateExpressSyncResult::CreateExpressSyncResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateExpressSyncResult::~CreateExpressSyncResult() +{} + +void CreateExpressSyncResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["ExpressSyncId"].isNull()) + expressSyncId_ = value["ExpressSyncId"].asString(); + +} + +std::string CreateExpressSyncResult::getMessage()const +{ + return message_; +} + +std::string CreateExpressSyncResult::getCode()const +{ + return code_; +} + +std::string CreateExpressSyncResult::getExpressSyncId()const +{ + return expressSyncId_; +} + +bool CreateExpressSyncResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/CreateGatewayBlockVolumeRequest.cc b/sgw/src/model/CreateGatewayBlockVolumeRequest.cc new file mode 100644 index 000000000..f9ff1f517 --- /dev/null +++ b/sgw/src/model/CreateGatewayBlockVolumeRequest.cc @@ -0,0 +1,205 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Sgw::Model::CreateGatewayBlockVolumeRequest; + +CreateGatewayBlockVolumeRequest::CreateGatewayBlockVolumeRequest() : + RpcServiceRequest("sgw", "2018-05-11", "CreateGatewayBlockVolume") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateGatewayBlockVolumeRequest::~CreateGatewayBlockVolumeRequest() +{} + +std::string CreateGatewayBlockVolumeRequest::getOssEndpoint()const +{ + return ossEndpoint_; +} + +void CreateGatewayBlockVolumeRequest::setOssEndpoint(const std::string& ossEndpoint) +{ + ossEndpoint_ = ossEndpoint; + setParameter("OssEndpoint", ossEndpoint); +} + +bool CreateGatewayBlockVolumeRequest::getRecovery()const +{ + return recovery_; +} + +void CreateGatewayBlockVolumeRequest::setRecovery(bool recovery) +{ + recovery_ = recovery; + setParameter("Recovery", recovery ? "true" : "false"); +} + +std::string CreateGatewayBlockVolumeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateGatewayBlockVolumeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CreateGatewayBlockVolumeRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateGatewayBlockVolumeRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +int CreateGatewayBlockVolumeRequest::getChunkSize()const +{ + return chunkSize_; +} + +void CreateGatewayBlockVolumeRequest::setChunkSize(int chunkSize) +{ + chunkSize_ = chunkSize; + setParameter("ChunkSize", std::to_string(chunkSize)); +} + +std::string CreateGatewayBlockVolumeRequest::getGatewayId()const +{ + return gatewayId_; +} + +void CreateGatewayBlockVolumeRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + +std::string CreateGatewayBlockVolumeRequest::getVolumeProtocol()const +{ + return volumeProtocol_; +} + +void CreateGatewayBlockVolumeRequest::setVolumeProtocol(const std::string& volumeProtocol) +{ + volumeProtocol_ = volumeProtocol; + setParameter("VolumeProtocol", volumeProtocol); +} + +bool CreateGatewayBlockVolumeRequest::getChapEnabled()const +{ + return chapEnabled_; +} + +void CreateGatewayBlockVolumeRequest::setChapEnabled(bool chapEnabled) +{ + chapEnabled_ = chapEnabled; + setParameter("ChapEnabled", chapEnabled ? "true" : "false"); +} + +std::string CreateGatewayBlockVolumeRequest::getCacheMode()const +{ + return cacheMode_; +} + +void CreateGatewayBlockVolumeRequest::setCacheMode(const std::string& cacheMode) +{ + cacheMode_ = cacheMode; + setParameter("CacheMode", cacheMode); +} + +std::string CreateGatewayBlockVolumeRequest::getLocalFilePath()const +{ + return localFilePath_; +} + +void CreateGatewayBlockVolumeRequest::setLocalFilePath(const std::string& localFilePath) +{ + localFilePath_ = localFilePath; + setParameter("LocalFilePath", localFilePath); +} + +bool CreateGatewayBlockVolumeRequest::getOssBucketSsl()const +{ + return ossBucketSsl_; +} + +void CreateGatewayBlockVolumeRequest::setOssBucketSsl(bool ossBucketSsl) +{ + ossBucketSsl_ = ossBucketSsl; + setParameter("OssBucketSsl", ossBucketSsl ? "true" : "false"); +} + +long CreateGatewayBlockVolumeRequest::getSize()const +{ + return size_; +} + +void CreateGatewayBlockVolumeRequest::setSize(long size) +{ + size_ = size; + setParameter("Size", std::to_string(size)); +} + +std::string CreateGatewayBlockVolumeRequest::getChapInUser()const +{ + return chapInUser_; +} + +void CreateGatewayBlockVolumeRequest::setChapInUser(const std::string& chapInUser) +{ + chapInUser_ = chapInUser; + setParameter("ChapInUser", chapInUser); +} + +std::string CreateGatewayBlockVolumeRequest::getName()const +{ + return name_; +} + +void CreateGatewayBlockVolumeRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string CreateGatewayBlockVolumeRequest::getOssBucketName()const +{ + return ossBucketName_; +} + +void CreateGatewayBlockVolumeRequest::setOssBucketName(const std::string& ossBucketName) +{ + ossBucketName_ = ossBucketName; + setParameter("OssBucketName", ossBucketName); +} + +std::string CreateGatewayBlockVolumeRequest::getChapInPassword()const +{ + return chapInPassword_; +} + +void CreateGatewayBlockVolumeRequest::setChapInPassword(const std::string& chapInPassword) +{ + chapInPassword_ = chapInPassword; + setParameter("ChapInPassword", chapInPassword); +} + diff --git a/sgw/src/model/CreateGatewayBlockVolumeResult.cc b/sgw/src/model/CreateGatewayBlockVolumeResult.cc new file mode 100644 index 000000000..490ca94cf --- /dev/null +++ b/sgw/src/model/CreateGatewayBlockVolumeResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +CreateGatewayBlockVolumeResult::CreateGatewayBlockVolumeResult() : + ServiceResult() +{} + +CreateGatewayBlockVolumeResult::CreateGatewayBlockVolumeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateGatewayBlockVolumeResult::~CreateGatewayBlockVolumeResult() +{} + +void CreateGatewayBlockVolumeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + +} + +std::string CreateGatewayBlockVolumeResult::getTaskId()const +{ + return taskId_; +} + +std::string CreateGatewayBlockVolumeResult::getMessage()const +{ + return message_; +} + +std::string CreateGatewayBlockVolumeResult::getCode()const +{ + return code_; +} + +bool CreateGatewayBlockVolumeResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/CreateGatewayCacheDiskRequest.cc b/sgw/src/model/CreateGatewayCacheDiskRequest.cc new file mode 100644 index 000000000..24bcf0e24 --- /dev/null +++ b/sgw/src/model/CreateGatewayCacheDiskRequest.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::Sgw::Model::CreateGatewayCacheDiskRequest; + +CreateGatewayCacheDiskRequest::CreateGatewayCacheDiskRequest() : + RpcServiceRequest("sgw", "2018-05-11", "CreateGatewayCacheDisk") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateGatewayCacheDiskRequest::~CreateGatewayCacheDiskRequest() +{} + +long CreateGatewayCacheDiskRequest::getCacheDiskSizeInGB()const +{ + return cacheDiskSizeInGB_; +} + +void CreateGatewayCacheDiskRequest::setCacheDiskSizeInGB(long cacheDiskSizeInGB) +{ + cacheDiskSizeInGB_ = cacheDiskSizeInGB; + setParameter("CacheDiskSizeInGB", std::to_string(cacheDiskSizeInGB)); +} + +std::string CreateGatewayCacheDiskRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateGatewayCacheDiskRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CreateGatewayCacheDiskRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateGatewayCacheDiskRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string CreateGatewayCacheDiskRequest::getCacheDiskCategory()const +{ + return cacheDiskCategory_; +} + +void CreateGatewayCacheDiskRequest::setCacheDiskCategory(const std::string& cacheDiskCategory) +{ + cacheDiskCategory_ = cacheDiskCategory; + setParameter("CacheDiskCategory", cacheDiskCategory); +} + +std::string CreateGatewayCacheDiskRequest::getGatewayId()const +{ + return gatewayId_; +} + +void CreateGatewayCacheDiskRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/CreateGatewayCacheDiskResult.cc b/sgw/src/model/CreateGatewayCacheDiskResult.cc new file mode 100644 index 000000000..4f58b222d --- /dev/null +++ b/sgw/src/model/CreateGatewayCacheDiskResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +CreateGatewayCacheDiskResult::CreateGatewayCacheDiskResult() : + ServiceResult() +{} + +CreateGatewayCacheDiskResult::CreateGatewayCacheDiskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateGatewayCacheDiskResult::~CreateGatewayCacheDiskResult() +{} + +void CreateGatewayCacheDiskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + if(!value["BuyURL"].isNull()) + buyURL_ = value["BuyURL"].asString(); + +} + +std::string CreateGatewayCacheDiskResult::getBuyURL()const +{ + return buyURL_; +} + +std::string CreateGatewayCacheDiskResult::getTaskId()const +{ + return taskId_; +} + +std::string CreateGatewayCacheDiskResult::getMessage()const +{ + return message_; +} + +std::string CreateGatewayCacheDiskResult::getCode()const +{ + return code_; +} + +bool CreateGatewayCacheDiskResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/CreateGatewayFileShareRequest.cc b/sgw/src/model/CreateGatewayFileShareRequest.cc new file mode 100644 index 000000000..109bc2b6d --- /dev/null +++ b/sgw/src/model/CreateGatewayFileShareRequest.cc @@ -0,0 +1,469 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Sgw::Model::CreateGatewayFileShareRequest; + +CreateGatewayFileShareRequest::CreateGatewayFileShareRequest() : + RpcServiceRequest("sgw", "2018-05-11", "CreateGatewayFileShare") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateGatewayFileShareRequest::~CreateGatewayFileShareRequest() +{} + +bool CreateGatewayFileShareRequest::getInPlace()const +{ + return inPlace_; +} + +void CreateGatewayFileShareRequest::setInPlace(bool inPlace) +{ + inPlace_ = inPlace; + setParameter("InPlace", inPlace ? "true" : "false"); +} + +std::string CreateGatewayFileShareRequest::getOssEndpoint()const +{ + return ossEndpoint_; +} + +void CreateGatewayFileShareRequest::setOssEndpoint(const std::string& ossEndpoint) +{ + ossEndpoint_ = ossEndpoint; + setParameter("OssEndpoint", ossEndpoint); +} + +std::string CreateGatewayFileShareRequest::getReadWriteClientList()const +{ + return readWriteClientList_; +} + +void CreateGatewayFileShareRequest::setReadWriteClientList(const std::string& readWriteClientList) +{ + readWriteClientList_ = readWriteClientList; + setParameter("ReadWriteClientList", readWriteClientList); +} + +int CreateGatewayFileShareRequest::getBackendLimit()const +{ + return backendLimit_; +} + +void CreateGatewayFileShareRequest::setBackendLimit(int backendLimit) +{ + backendLimit_ = backendLimit; + setParameter("BackendLimit", std::to_string(backendLimit)); +} + +std::string CreateGatewayFileShareRequest::getSquash()const +{ + return squash_; +} + +void CreateGatewayFileShareRequest::setSquash(const std::string& squash) +{ + squash_ = squash; + setParameter("Squash", squash); +} + +std::string CreateGatewayFileShareRequest::getReadOnlyClientList()const +{ + return readOnlyClientList_; +} + +void CreateGatewayFileShareRequest::setReadOnlyClientList(const std::string& readOnlyClientList) +{ + readOnlyClientList_ = readOnlyClientList; + setParameter("ReadOnlyClientList", readOnlyClientList); +} + +std::string CreateGatewayFileShareRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateGatewayFileShareRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +long CreateGatewayFileShareRequest::getKmsRotatePeriod()const +{ + return kmsRotatePeriod_; +} + +void CreateGatewayFileShareRequest::setKmsRotatePeriod(long kmsRotatePeriod) +{ + kmsRotatePeriod_ = kmsRotatePeriod; + setParameter("KmsRotatePeriod", std::to_string(kmsRotatePeriod)); +} + +bool CreateGatewayFileShareRequest::getRemoteSyncDownload()const +{ + return remoteSyncDownload_; +} + +void CreateGatewayFileShareRequest::setRemoteSyncDownload(bool remoteSyncDownload) +{ + remoteSyncDownload_ = remoteSyncDownload; + setParameter("RemoteSyncDownload", remoteSyncDownload ? "true" : "false"); +} + +std::string CreateGatewayFileShareRequest::getShareProtocol()const +{ + return shareProtocol_; +} + +void CreateGatewayFileShareRequest::setShareProtocol(const std::string& shareProtocol) +{ + shareProtocol_ = shareProtocol; + setParameter("ShareProtocol", shareProtocol); +} + +bool CreateGatewayFileShareRequest::getNfsV4Optimization()const +{ + return nfsV4Optimization_; +} + +void CreateGatewayFileShareRequest::setNfsV4Optimization(bool nfsV4Optimization) +{ + nfsV4Optimization_ = nfsV4Optimization; + setParameter("NfsV4Optimization", nfsV4Optimization ? "true" : "false"); +} + +bool CreateGatewayFileShareRequest::getAccessBasedEnumeration()const +{ + return accessBasedEnumeration_; +} + +void CreateGatewayFileShareRequest::setAccessBasedEnumeration(bool accessBasedEnumeration) +{ + accessBasedEnumeration_ = accessBasedEnumeration; + setParameter("AccessBasedEnumeration", accessBasedEnumeration ? "true" : "false"); +} + +std::string CreateGatewayFileShareRequest::getGatewayId()const +{ + return gatewayId_; +} + +void CreateGatewayFileShareRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + +bool CreateGatewayFileShareRequest::getSupportArchive()const +{ + return supportArchive_; +} + +void CreateGatewayFileShareRequest::setSupportArchive(bool supportArchive) +{ + supportArchive_ = supportArchive; + setParameter("SupportArchive", supportArchive ? "true" : "false"); +} + +std::string CreateGatewayFileShareRequest::getCacheMode()const +{ + return cacheMode_; +} + +void CreateGatewayFileShareRequest::setCacheMode(const std::string& cacheMode) +{ + cacheMode_ = cacheMode; + setParameter("CacheMode", cacheMode); +} + +std::string CreateGatewayFileShareRequest::getLocalFilePath()const +{ + return localFilePath_; +} + +void CreateGatewayFileShareRequest::setLocalFilePath(const std::string& localFilePath) +{ + localFilePath_ = localFilePath; + setParameter("LocalFilePath", localFilePath); +} + +std::string CreateGatewayFileShareRequest::getPartialSyncPaths()const +{ + return partialSyncPaths_; +} + +void CreateGatewayFileShareRequest::setPartialSyncPaths(const std::string& partialSyncPaths) +{ + partialSyncPaths_ = partialSyncPaths; + setParameter("PartialSyncPaths", partialSyncPaths); +} + +int CreateGatewayFileShareRequest::getDownloadLimit()const +{ + return downloadLimit_; +} + +void CreateGatewayFileShareRequest::setDownloadLimit(int downloadLimit) +{ + downloadLimit_ = downloadLimit; + setParameter("DownloadLimit", std::to_string(downloadLimit)); +} + +std::string CreateGatewayFileShareRequest::getReadOnlyUserList()const +{ + return readOnlyUserList_; +} + +void CreateGatewayFileShareRequest::setReadOnlyUserList(const std::string& readOnlyUserList) +{ + readOnlyUserList_ = readOnlyUserList; + setParameter("ReadOnlyUserList", readOnlyUserList); +} + +bool CreateGatewayFileShareRequest::getFastReclaim()const +{ + return fastReclaim_; +} + +void CreateGatewayFileShareRequest::setFastReclaim(bool fastReclaim) +{ + fastReclaim_ = fastReclaim; + setParameter("FastReclaim", fastReclaim ? "true" : "false"); +} + +bool CreateGatewayFileShareRequest::getWindowsAcl()const +{ + return windowsAcl_; +} + +void CreateGatewayFileShareRequest::setWindowsAcl(bool windowsAcl) +{ + windowsAcl_ = windowsAcl; + setParameter("WindowsAcl", windowsAcl ? "true" : "false"); +} + +std::string CreateGatewayFileShareRequest::getName()const +{ + return name_; +} + +void CreateGatewayFileShareRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string CreateGatewayFileShareRequest::getOssBucketName()const +{ + return ossBucketName_; +} + +void CreateGatewayFileShareRequest::setOssBucketName(const std::string& ossBucketName) +{ + ossBucketName_ = ossBucketName; + setParameter("OssBucketName", ossBucketName); +} + +bool CreateGatewayFileShareRequest::getTransferAcceleration()const +{ + return transferAcceleration_; +} + +void CreateGatewayFileShareRequest::setTransferAcceleration(bool transferAcceleration) +{ + transferAcceleration_ = transferAcceleration; + setParameter("TransferAcceleration", transferAcceleration ? "true" : "false"); +} + +std::string CreateGatewayFileShareRequest::getClientSideCmk()const +{ + return clientSideCmk_; +} + +void CreateGatewayFileShareRequest::setClientSideCmk(const std::string& clientSideCmk) +{ + clientSideCmk_ = clientSideCmk; + setParameter("ClientSideCmk", clientSideCmk); +} + +std::string CreateGatewayFileShareRequest::getPathPrefix()const +{ + return pathPrefix_; +} + +void CreateGatewayFileShareRequest::setPathPrefix(const std::string& pathPrefix) +{ + pathPrefix_ = pathPrefix; + setParameter("PathPrefix", pathPrefix); +} + +bool CreateGatewayFileShareRequest::getBrowsable()const +{ + return browsable_; +} + +void CreateGatewayFileShareRequest::setBrowsable(bool browsable) +{ + browsable_ = browsable; + setParameter("Browsable", browsable ? "true" : "false"); +} + +std::string CreateGatewayFileShareRequest::getReadWriteUserList()const +{ + return readWriteUserList_; +} + +void CreateGatewayFileShareRequest::setReadWriteUserList(const std::string& readWriteUserList) +{ + readWriteUserList_ = readWriteUserList; + setParameter("ReadWriteUserList", readWriteUserList); +} + +int CreateGatewayFileShareRequest::getPollingInterval()const +{ + return pollingInterval_; +} + +void CreateGatewayFileShareRequest::setPollingInterval(int pollingInterval) +{ + pollingInterval_ = pollingInterval; + setParameter("PollingInterval", std::to_string(pollingInterval)); +} + +bool CreateGatewayFileShareRequest::getEnabled()const +{ + return enabled_; +} + +void CreateGatewayFileShareRequest::setEnabled(bool enabled) +{ + enabled_ = enabled; + setParameter("Enabled", enabled ? "true" : "false"); +} + +std::string CreateGatewayFileShareRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateGatewayFileShareRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CreateGatewayFileShareRequest::getServerSideCmk()const +{ + return serverSideCmk_; +} + +void CreateGatewayFileShareRequest::setServerSideCmk(const std::string& serverSideCmk) +{ + serverSideCmk_ = serverSideCmk; + setParameter("ServerSideCmk", serverSideCmk); +} + +bool CreateGatewayFileShareRequest::getServerSideEncryption()const +{ + return serverSideEncryption_; +} + +void CreateGatewayFileShareRequest::setServerSideEncryption(bool serverSideEncryption) +{ + serverSideEncryption_ = serverSideEncryption; + setParameter("ServerSideEncryption", serverSideEncryption ? "true" : "false"); +} + +bool CreateGatewayFileShareRequest::getIgnoreDelete()const +{ + return ignoreDelete_; +} + +void CreateGatewayFileShareRequest::setIgnoreDelete(bool ignoreDelete) +{ + ignoreDelete_ = ignoreDelete; + setParameter("IgnoreDelete", ignoreDelete ? "true" : "false"); +} + +long CreateGatewayFileShareRequest::getLagPeriod()const +{ + return lagPeriod_; +} + +void CreateGatewayFileShareRequest::setLagPeriod(long lagPeriod) +{ + lagPeriod_ = lagPeriod; + setParameter("LagPeriod", std::to_string(lagPeriod)); +} + +bool CreateGatewayFileShareRequest::getDirectIO()const +{ + return directIO_; +} + +void CreateGatewayFileShareRequest::setDirectIO(bool directIO) +{ + directIO_ = directIO; + setParameter("DirectIO", directIO ? "true" : "false"); +} + +bool CreateGatewayFileShareRequest::getClientSideEncryption()const +{ + return clientSideEncryption_; +} + +void CreateGatewayFileShareRequest::setClientSideEncryption(bool clientSideEncryption) +{ + clientSideEncryption_ = clientSideEncryption; + setParameter("ClientSideEncryption", clientSideEncryption ? "true" : "false"); +} + +bool CreateGatewayFileShareRequest::getOssBucketSsl()const +{ + return ossBucketSsl_; +} + +void CreateGatewayFileShareRequest::setOssBucketSsl(bool ossBucketSsl) +{ + ossBucketSsl_ = ossBucketSsl; + setParameter("OssBucketSsl", ossBucketSsl ? "true" : "false"); +} + +bool CreateGatewayFileShareRequest::getRemoteSync()const +{ + return remoteSync_; +} + +void CreateGatewayFileShareRequest::setRemoteSync(bool remoteSync) +{ + remoteSync_ = remoteSync; + setParameter("RemoteSync", remoteSync ? "true" : "false"); +} + +int CreateGatewayFileShareRequest::getFrontendLimit()const +{ + return frontendLimit_; +} + +void CreateGatewayFileShareRequest::setFrontendLimit(int frontendLimit) +{ + frontendLimit_ = frontendLimit; + setParameter("FrontendLimit", std::to_string(frontendLimit)); +} + diff --git a/sgw/src/model/CreateGatewayFileShareResult.cc b/sgw/src/model/CreateGatewayFileShareResult.cc new file mode 100644 index 000000000..a2aed05a5 --- /dev/null +++ b/sgw/src/model/CreateGatewayFileShareResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +CreateGatewayFileShareResult::CreateGatewayFileShareResult() : + ServiceResult() +{} + +CreateGatewayFileShareResult::CreateGatewayFileShareResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateGatewayFileShareResult::~CreateGatewayFileShareResult() +{} + +void CreateGatewayFileShareResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + +} + +std::string CreateGatewayFileShareResult::getTaskId()const +{ + return taskId_; +} + +std::string CreateGatewayFileShareResult::getMessage()const +{ + return message_; +} + +std::string CreateGatewayFileShareResult::getCode()const +{ + return code_; +} + +bool CreateGatewayFileShareResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/CreateGatewayLoggingRequest.cc b/sgw/src/model/CreateGatewayLoggingRequest.cc new file mode 100644 index 000000000..bd7528536 --- /dev/null +++ b/sgw/src/model/CreateGatewayLoggingRequest.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::Sgw::Model::CreateGatewayLoggingRequest; + +CreateGatewayLoggingRequest::CreateGatewayLoggingRequest() : + RpcServiceRequest("sgw", "2018-05-11", "CreateGatewayLogging") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateGatewayLoggingRequest::~CreateGatewayLoggingRequest() +{} + +std::string CreateGatewayLoggingRequest::getSlsLogstore()const +{ + return slsLogstore_; +} + +void CreateGatewayLoggingRequest::setSlsLogstore(const std::string& slsLogstore) +{ + slsLogstore_ = slsLogstore; + setParameter("SlsLogstore", slsLogstore); +} + +std::string CreateGatewayLoggingRequest::getSlsProject()const +{ + return slsProject_; +} + +void CreateGatewayLoggingRequest::setSlsProject(const std::string& slsProject) +{ + slsProject_ = slsProject; + setParameter("SlsProject", slsProject); +} + +std::string CreateGatewayLoggingRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateGatewayLoggingRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CreateGatewayLoggingRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateGatewayLoggingRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string CreateGatewayLoggingRequest::getGatewayId()const +{ + return gatewayId_; +} + +void CreateGatewayLoggingRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/CreateGatewayLoggingResult.cc b/sgw/src/model/CreateGatewayLoggingResult.cc new file mode 100644 index 000000000..820389315 --- /dev/null +++ b/sgw/src/model/CreateGatewayLoggingResult.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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +CreateGatewayLoggingResult::CreateGatewayLoggingResult() : + ServiceResult() +{} + +CreateGatewayLoggingResult::CreateGatewayLoggingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateGatewayLoggingResult::~CreateGatewayLoggingResult() +{} + +void CreateGatewayLoggingResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CreateGatewayLoggingResult::getMessage()const +{ + return message_; +} + +std::string CreateGatewayLoggingResult::getCode()const +{ + return code_; +} + +bool CreateGatewayLoggingResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/CreateGatewayRequest.cc b/sgw/src/model/CreateGatewayRequest.cc new file mode 100644 index 000000000..f74a18785 --- /dev/null +++ b/sgw/src/model/CreateGatewayRequest.cc @@ -0,0 +1,216 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Sgw::Model::CreateGatewayRequest; + +CreateGatewayRequest::CreateGatewayRequest() : + RpcServiceRequest("sgw", "2018-05-11", "CreateGateway") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateGatewayRequest::~CreateGatewayRequest() +{} + +std::string CreateGatewayRequest::getGatewayClass()const +{ + return gatewayClass_; +} + +void CreateGatewayRequest::setGatewayClass(const std::string& gatewayClass) +{ + gatewayClass_ = gatewayClass; + setParameter("GatewayClass", gatewayClass); +} + +std::string CreateGatewayRequest::getGatewayVersion()const +{ + return gatewayVersion_; +} + +void CreateGatewayRequest::setGatewayVersion(const std::string& gatewayVersion) +{ + gatewayVersion_ = gatewayVersion; + setParameter("GatewayVersion", gatewayVersion); +} + +long CreateGatewayRequest::getInitCacheSize()const +{ + return initCacheSize_; +} + +void CreateGatewayRequest::setInitCacheSize(long initCacheSize) +{ + initCacheSize_ = initCacheSize; + setParameter("InitCacheSize", std::to_string(initCacheSize)); +} + +bool CreateGatewayRequest::getPostPaid()const +{ + return postPaid_; +} + +void CreateGatewayRequest::setPostPaid(bool postPaid) +{ + postPaid_ = postPaid; + setParameter("PostPaid", postPaid ? "true" : "false"); +} + +std::string CreateGatewayRequest::getDescription()const +{ + return description_; +} + +void CreateGatewayRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreateGatewayRequest::getType()const +{ + return type_; +} + +void CreateGatewayRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + +bool CreateGatewayRequest::getReleaseAfterExpiration()const +{ + return releaseAfterExpiration_; +} + +void CreateGatewayRequest::setReleaseAfterExpiration(bool releaseAfterExpiration) +{ + releaseAfterExpiration_ = releaseAfterExpiration; + setParameter("ReleaseAfterExpiration", releaseAfterExpiration ? "true" : "false"); +} + +std::string CreateGatewayRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateGatewayRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CreateGatewayRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateGatewayRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string CreateGatewayRequest::getStorageBundleId()const +{ + return storageBundleId_; +} + +void CreateGatewayRequest::setStorageBundleId(const std::string& storageBundleId) +{ + storageBundleId_ = storageBundleId; + setParameter("StorageBundleId", storageBundleId); +} + +std::string CreateGatewayRequest::getInitCacheConfig()const +{ + return initCacheConfig_; +} + +void CreateGatewayRequest::setInitCacheConfig(const std::string& initCacheConfig) +{ + initCacheConfig_ = initCacheConfig; + setParameter("InitCacheConfig", initCacheConfig); +} + +std::string CreateGatewayRequest::getInitCacheCategory()const +{ + return initCacheCategory_; +} + +void CreateGatewayRequest::setInitCacheCategory(const std::string& initCacheCategory) +{ + initCacheCategory_ = initCacheCategory; + setParameter("InitCacheCategory", initCacheCategory); +} + +std::string CreateGatewayRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void CreateGatewayRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setParameter("VSwitchId", vSwitchId); +} + +std::string CreateGatewayRequest::getName()const +{ + return name_; +} + +void CreateGatewayRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string CreateGatewayRequest::getLocation()const +{ + return location_; +} + +void CreateGatewayRequest::setLocation(const std::string& location) +{ + location_ = location; + setParameter("Location", location); +} + +std::string CreateGatewayRequest::getCategory()const +{ + return category_; +} + +void CreateGatewayRequest::setCategory(const std::string& category) +{ + category_ = category; + setParameter("Category", category); +} + +int CreateGatewayRequest::getPublicNetworkBandwidth()const +{ + return publicNetworkBandwidth_; +} + +void CreateGatewayRequest::setPublicNetworkBandwidth(int publicNetworkBandwidth) +{ + publicNetworkBandwidth_ = publicNetworkBandwidth; + setParameter("PublicNetworkBandwidth", std::to_string(publicNetworkBandwidth)); +} + diff --git a/sgw/src/model/CreateGatewayResult.cc b/sgw/src/model/CreateGatewayResult.cc new file mode 100644 index 000000000..bb76a983f --- /dev/null +++ b/sgw/src/model/CreateGatewayResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +CreateGatewayResult::CreateGatewayResult() : + ServiceResult() +{} + +CreateGatewayResult::CreateGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateGatewayResult::~CreateGatewayResult() +{} + +void CreateGatewayResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["GatewayId"].isNull()) + gatewayId_ = value["GatewayId"].asString(); + if(!value["BuyURL"].isNull()) + buyURL_ = value["BuyURL"].asString(); + +} + +std::string CreateGatewayResult::getBuyURL()const +{ + return buyURL_; +} + +std::string CreateGatewayResult::getMessage()const +{ + return message_; +} + +std::string CreateGatewayResult::getGatewayId()const +{ + return gatewayId_; +} + +std::string CreateGatewayResult::getCode()const +{ + return code_; +} + +bool CreateGatewayResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/CreateGatewaySMBUserRequest.cc b/sgw/src/model/CreateGatewaySMBUserRequest.cc new file mode 100644 index 000000000..e03e4a2ba --- /dev/null +++ b/sgw/src/model/CreateGatewaySMBUserRequest.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::Sgw::Model::CreateGatewaySMBUserRequest; + +CreateGatewaySMBUserRequest::CreateGatewaySMBUserRequest() : + RpcServiceRequest("sgw", "2018-05-11", "CreateGatewaySMBUser") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateGatewaySMBUserRequest::~CreateGatewaySMBUserRequest() +{} + +std::string CreateGatewaySMBUserRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateGatewaySMBUserRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CreateGatewaySMBUserRequest::getPassword()const +{ + return password_; +} + +void CreateGatewaySMBUserRequest::setPassword(const std::string& password) +{ + password_ = password; + setParameter("Password", password); +} + +std::string CreateGatewaySMBUserRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateGatewaySMBUserRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string CreateGatewaySMBUserRequest::getGatewayId()const +{ + return gatewayId_; +} + +void CreateGatewaySMBUserRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + +std::string CreateGatewaySMBUserRequest::getUsername()const +{ + return username_; +} + +void CreateGatewaySMBUserRequest::setUsername(const std::string& username) +{ + username_ = username; + setParameter("Username", username); +} + diff --git a/sgw/src/model/CreateGatewaySMBUserResult.cc b/sgw/src/model/CreateGatewaySMBUserResult.cc new file mode 100644 index 000000000..605903113 --- /dev/null +++ b/sgw/src/model/CreateGatewaySMBUserResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +CreateGatewaySMBUserResult::CreateGatewaySMBUserResult() : + ServiceResult() +{} + +CreateGatewaySMBUserResult::CreateGatewaySMBUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateGatewaySMBUserResult::~CreateGatewaySMBUserResult() +{} + +void CreateGatewaySMBUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + +} + +std::string CreateGatewaySMBUserResult::getTaskId()const +{ + return taskId_; +} + +std::string CreateGatewaySMBUserResult::getMessage()const +{ + return message_; +} + +std::string CreateGatewaySMBUserResult::getCode()const +{ + return code_; +} + +bool CreateGatewaySMBUserResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/CreateStorageBundleRequest.cc b/sgw/src/model/CreateStorageBundleRequest.cc new file mode 100644 index 000000000..a2dd61b2d --- /dev/null +++ b/sgw/src/model/CreateStorageBundleRequest.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::Sgw::Model::CreateStorageBundleRequest; + +CreateStorageBundleRequest::CreateStorageBundleRequest() : + RpcServiceRequest("sgw", "2018-05-11", "CreateStorageBundle") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateStorageBundleRequest::~CreateStorageBundleRequest() +{} + +std::string CreateStorageBundleRequest::getBackendBucketRegionId()const +{ + return backendBucketRegionId_; +} + +void CreateStorageBundleRequest::setBackendBucketRegionId(const std::string& backendBucketRegionId) +{ + backendBucketRegionId_ = backendBucketRegionId; + setParameter("BackendBucketRegionId", backendBucketRegionId); +} + +std::string CreateStorageBundleRequest::getDescription()const +{ + return description_; +} + +void CreateStorageBundleRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreateStorageBundleRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateStorageBundleRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CreateStorageBundleRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void CreateStorageBundleRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string CreateStorageBundleRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateStorageBundleRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string CreateStorageBundleRequest::getName()const +{ + return name_; +} + +void CreateStorageBundleRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string CreateStorageBundleRequest::getLocation()const +{ + return location_; +} + +void CreateStorageBundleRequest::setLocation(const std::string& location) +{ + location_ = location; + setParameter("Location", location); +} + diff --git a/sgw/src/model/CreateStorageBundleResult.cc b/sgw/src/model/CreateStorageBundleResult.cc new file mode 100644 index 000000000..d36ee5d3f --- /dev/null +++ b/sgw/src/model/CreateStorageBundleResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +CreateStorageBundleResult::CreateStorageBundleResult() : + ServiceResult() +{} + +CreateStorageBundleResult::CreateStorageBundleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateStorageBundleResult::~CreateStorageBundleResult() +{} + +void CreateStorageBundleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["StorageBundleId"].isNull()) + storageBundleId_ = value["StorageBundleId"].asString(); + +} + +std::string CreateStorageBundleResult::getMessage()const +{ + return message_; +} + +std::string CreateStorageBundleResult::getStorageBundleId()const +{ + return storageBundleId_; +} + +std::string CreateStorageBundleResult::getCode()const +{ + return code_; +} + +bool CreateStorageBundleResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DeleteExpressSyncRequest.cc b/sgw/src/model/DeleteExpressSyncRequest.cc new file mode 100644 index 000000000..ee1fb1565 --- /dev/null +++ b/sgw/src/model/DeleteExpressSyncRequest.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::Sgw::Model::DeleteExpressSyncRequest; + +DeleteExpressSyncRequest::DeleteExpressSyncRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DeleteExpressSync") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteExpressSyncRequest::~DeleteExpressSyncRequest() +{} + +std::string DeleteExpressSyncRequest::getExpressSyncId()const +{ + return expressSyncId_; +} + +void DeleteExpressSyncRequest::setExpressSyncId(const std::string& expressSyncId) +{ + expressSyncId_ = expressSyncId; + setParameter("ExpressSyncId", expressSyncId); +} + +std::string DeleteExpressSyncRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteExpressSyncRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DeleteExpressSyncRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DeleteExpressSyncRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + diff --git a/sgw/src/model/DeleteExpressSyncResult.cc b/sgw/src/model/DeleteExpressSyncResult.cc new file mode 100644 index 000000000..e0410cb9a --- /dev/null +++ b/sgw/src/model/DeleteExpressSyncResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DeleteExpressSyncResult::DeleteExpressSyncResult() : + ServiceResult() +{} + +DeleteExpressSyncResult::DeleteExpressSyncResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteExpressSyncResult::~DeleteExpressSyncResult() +{} + +void DeleteExpressSyncResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DeleteExpressSyncResult::getTaskId()const +{ + return taskId_; +} + +std::string DeleteExpressSyncResult::getMessage()const +{ + return message_; +} + +std::string DeleteExpressSyncResult::getCode()const +{ + return code_; +} + +bool DeleteExpressSyncResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DeleteGatewayBlockVolumesRequest.cc b/sgw/src/model/DeleteGatewayBlockVolumesRequest.cc new file mode 100644 index 000000000..44911fd67 --- /dev/null +++ b/sgw/src/model/DeleteGatewayBlockVolumesRequest.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::Sgw::Model::DeleteGatewayBlockVolumesRequest; + +DeleteGatewayBlockVolumesRequest::DeleteGatewayBlockVolumesRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DeleteGatewayBlockVolumes") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteGatewayBlockVolumesRequest::~DeleteGatewayBlockVolumesRequest() +{} + +std::string DeleteGatewayBlockVolumesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteGatewayBlockVolumesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +bool DeleteGatewayBlockVolumesRequest::getIsSourceDeletion()const +{ + return isSourceDeletion_; +} + +void DeleteGatewayBlockVolumesRequest::setIsSourceDeletion(bool isSourceDeletion) +{ + isSourceDeletion_ = isSourceDeletion; + setParameter("IsSourceDeletion", isSourceDeletion ? "true" : "false"); +} + +std::string DeleteGatewayBlockVolumesRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DeleteGatewayBlockVolumesRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DeleteGatewayBlockVolumesRequest::getIndexId()const +{ + return indexId_; +} + +void DeleteGatewayBlockVolumesRequest::setIndexId(const std::string& indexId) +{ + indexId_ = indexId; + setParameter("IndexId", indexId); +} + +std::string DeleteGatewayBlockVolumesRequest::getGatewayId()const +{ + return gatewayId_; +} + +void DeleteGatewayBlockVolumesRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/DeleteGatewayBlockVolumesResult.cc b/sgw/src/model/DeleteGatewayBlockVolumesResult.cc new file mode 100644 index 000000000..42259ae6e --- /dev/null +++ b/sgw/src/model/DeleteGatewayBlockVolumesResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DeleteGatewayBlockVolumesResult::DeleteGatewayBlockVolumesResult() : + ServiceResult() +{} + +DeleteGatewayBlockVolumesResult::DeleteGatewayBlockVolumesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteGatewayBlockVolumesResult::~DeleteGatewayBlockVolumesResult() +{} + +void DeleteGatewayBlockVolumesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + +} + +std::string DeleteGatewayBlockVolumesResult::getTaskId()const +{ + return taskId_; +} + +std::string DeleteGatewayBlockVolumesResult::getMessage()const +{ + return message_; +} + +std::string DeleteGatewayBlockVolumesResult::getCode()const +{ + return code_; +} + +bool DeleteGatewayBlockVolumesResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DeleteGatewayCacheDiskRequest.cc b/sgw/src/model/DeleteGatewayCacheDiskRequest.cc new file mode 100644 index 000000000..14a6fb7ee --- /dev/null +++ b/sgw/src/model/DeleteGatewayCacheDiskRequest.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::Sgw::Model::DeleteGatewayCacheDiskRequest; + +DeleteGatewayCacheDiskRequest::DeleteGatewayCacheDiskRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DeleteGatewayCacheDisk") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteGatewayCacheDiskRequest::~DeleteGatewayCacheDiskRequest() +{} + +std::string DeleteGatewayCacheDiskRequest::getLocalFilePath()const +{ + return localFilePath_; +} + +void DeleteGatewayCacheDiskRequest::setLocalFilePath(const std::string& localFilePath) +{ + localFilePath_ = localFilePath; + setParameter("LocalFilePath", localFilePath); +} + +std::string DeleteGatewayCacheDiskRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteGatewayCacheDiskRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DeleteGatewayCacheDiskRequest::getCacheId()const +{ + return cacheId_; +} + +void DeleteGatewayCacheDiskRequest::setCacheId(const std::string& cacheId) +{ + cacheId_ = cacheId; + setParameter("CacheId", cacheId); +} + +std::string DeleteGatewayCacheDiskRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DeleteGatewayCacheDiskRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DeleteGatewayCacheDiskRequest::getGatewayId()const +{ + return gatewayId_; +} + +void DeleteGatewayCacheDiskRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/DeleteGatewayCacheDiskResult.cc b/sgw/src/model/DeleteGatewayCacheDiskResult.cc new file mode 100644 index 000000000..777eaf970 --- /dev/null +++ b/sgw/src/model/DeleteGatewayCacheDiskResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DeleteGatewayCacheDiskResult::DeleteGatewayCacheDiskResult() : + ServiceResult() +{} + +DeleteGatewayCacheDiskResult::DeleteGatewayCacheDiskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteGatewayCacheDiskResult::~DeleteGatewayCacheDiskResult() +{} + +void DeleteGatewayCacheDiskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + +} + +std::string DeleteGatewayCacheDiskResult::getTaskId()const +{ + return taskId_; +} + +std::string DeleteGatewayCacheDiskResult::getMessage()const +{ + return message_; +} + +std::string DeleteGatewayCacheDiskResult::getCode()const +{ + return code_; +} + +bool DeleteGatewayCacheDiskResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DeleteGatewayFileSharesRequest.cc b/sgw/src/model/DeleteGatewayFileSharesRequest.cc new file mode 100644 index 000000000..2942ebbd3 --- /dev/null +++ b/sgw/src/model/DeleteGatewayFileSharesRequest.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::Sgw::Model::DeleteGatewayFileSharesRequest; + +DeleteGatewayFileSharesRequest::DeleteGatewayFileSharesRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DeleteGatewayFileShares") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteGatewayFileSharesRequest::~DeleteGatewayFileSharesRequest() +{} + +std::string DeleteGatewayFileSharesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteGatewayFileSharesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DeleteGatewayFileSharesRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DeleteGatewayFileSharesRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DeleteGatewayFileSharesRequest::getIndexId()const +{ + return indexId_; +} + +void DeleteGatewayFileSharesRequest::setIndexId(const std::string& indexId) +{ + indexId_ = indexId; + setParameter("IndexId", indexId); +} + +bool DeleteGatewayFileSharesRequest::getForce()const +{ + return force_; +} + +void DeleteGatewayFileSharesRequest::setForce(bool force) +{ + force_ = force; + setParameter("Force", force ? "true" : "false"); +} + +std::string DeleteGatewayFileSharesRequest::getGatewayId()const +{ + return gatewayId_; +} + +void DeleteGatewayFileSharesRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/DeleteGatewayFileSharesResult.cc b/sgw/src/model/DeleteGatewayFileSharesResult.cc new file mode 100644 index 000000000..cd082c956 --- /dev/null +++ b/sgw/src/model/DeleteGatewayFileSharesResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DeleteGatewayFileSharesResult::DeleteGatewayFileSharesResult() : + ServiceResult() +{} + +DeleteGatewayFileSharesResult::DeleteGatewayFileSharesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteGatewayFileSharesResult::~DeleteGatewayFileSharesResult() +{} + +void DeleteGatewayFileSharesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + +} + +std::string DeleteGatewayFileSharesResult::getTaskId()const +{ + return taskId_; +} + +std::string DeleteGatewayFileSharesResult::getMessage()const +{ + return message_; +} + +std::string DeleteGatewayFileSharesResult::getCode()const +{ + return code_; +} + +bool DeleteGatewayFileSharesResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DeleteGatewayLoggingRequest.cc b/sgw/src/model/DeleteGatewayLoggingRequest.cc new file mode 100644 index 000000000..2afa4cba9 --- /dev/null +++ b/sgw/src/model/DeleteGatewayLoggingRequest.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::Sgw::Model::DeleteGatewayLoggingRequest; + +DeleteGatewayLoggingRequest::DeleteGatewayLoggingRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DeleteGatewayLogging") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteGatewayLoggingRequest::~DeleteGatewayLoggingRequest() +{} + +std::string DeleteGatewayLoggingRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteGatewayLoggingRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DeleteGatewayLoggingRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DeleteGatewayLoggingRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DeleteGatewayLoggingRequest::getGatewayId()const +{ + return gatewayId_; +} + +void DeleteGatewayLoggingRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/DeleteGatewayLoggingResult.cc b/sgw/src/model/DeleteGatewayLoggingResult.cc new file mode 100644 index 000000000..5f9cf5a6c --- /dev/null +++ b/sgw/src/model/DeleteGatewayLoggingResult.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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DeleteGatewayLoggingResult::DeleteGatewayLoggingResult() : + ServiceResult() +{} + +DeleteGatewayLoggingResult::DeleteGatewayLoggingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteGatewayLoggingResult::~DeleteGatewayLoggingResult() +{} + +void DeleteGatewayLoggingResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DeleteGatewayLoggingResult::getMessage()const +{ + return message_; +} + +std::string DeleteGatewayLoggingResult::getCode()const +{ + return code_; +} + +bool DeleteGatewayLoggingResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DeleteGatewayRequest.cc b/sgw/src/model/DeleteGatewayRequest.cc new file mode 100644 index 000000000..9e056a5e1 --- /dev/null +++ b/sgw/src/model/DeleteGatewayRequest.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::Sgw::Model::DeleteGatewayRequest; + +DeleteGatewayRequest::DeleteGatewayRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DeleteGateway") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteGatewayRequest::~DeleteGatewayRequest() +{} + +std::string DeleteGatewayRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteGatewayRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DeleteGatewayRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DeleteGatewayRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DeleteGatewayRequest::getGatewayId()const +{ + return gatewayId_; +} + +void DeleteGatewayRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/DeleteGatewayResult.cc b/sgw/src/model/DeleteGatewayResult.cc new file mode 100644 index 000000000..b0f508938 --- /dev/null +++ b/sgw/src/model/DeleteGatewayResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DeleteGatewayResult::DeleteGatewayResult() : + ServiceResult() +{} + +DeleteGatewayResult::DeleteGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteGatewayResult::~DeleteGatewayResult() +{} + +void DeleteGatewayResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + +} + +std::string DeleteGatewayResult::getTaskId()const +{ + return taskId_; +} + +std::string DeleteGatewayResult::getMessage()const +{ + return message_; +} + +std::string DeleteGatewayResult::getCode()const +{ + return code_; +} + +bool DeleteGatewayResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DeleteGatewaySMBUserRequest.cc b/sgw/src/model/DeleteGatewaySMBUserRequest.cc new file mode 100644 index 000000000..118ce990e --- /dev/null +++ b/sgw/src/model/DeleteGatewaySMBUserRequest.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::Sgw::Model::DeleteGatewaySMBUserRequest; + +DeleteGatewaySMBUserRequest::DeleteGatewaySMBUserRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DeleteGatewaySMBUser") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteGatewaySMBUserRequest::~DeleteGatewaySMBUserRequest() +{} + +std::string DeleteGatewaySMBUserRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteGatewaySMBUserRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DeleteGatewaySMBUserRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DeleteGatewaySMBUserRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DeleteGatewaySMBUserRequest::getGatewayId()const +{ + return gatewayId_; +} + +void DeleteGatewaySMBUserRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + +std::string DeleteGatewaySMBUserRequest::getUsername()const +{ + return username_; +} + +void DeleteGatewaySMBUserRequest::setUsername(const std::string& username) +{ + username_ = username; + setParameter("Username", username); +} + diff --git a/sgw/src/model/DeleteGatewaySMBUserResult.cc b/sgw/src/model/DeleteGatewaySMBUserResult.cc new file mode 100644 index 000000000..b3b1a79ca --- /dev/null +++ b/sgw/src/model/DeleteGatewaySMBUserResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DeleteGatewaySMBUserResult::DeleteGatewaySMBUserResult() : + ServiceResult() +{} + +DeleteGatewaySMBUserResult::DeleteGatewaySMBUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteGatewaySMBUserResult::~DeleteGatewaySMBUserResult() +{} + +void DeleteGatewaySMBUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + +} + +std::string DeleteGatewaySMBUserResult::getTaskId()const +{ + return taskId_; +} + +std::string DeleteGatewaySMBUserResult::getMessage()const +{ + return message_; +} + +std::string DeleteGatewaySMBUserResult::getCode()const +{ + return code_; +} + +bool DeleteGatewaySMBUserResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DeleteStorageBundleRequest.cc b/sgw/src/model/DeleteStorageBundleRequest.cc new file mode 100644 index 000000000..20bb28a59 --- /dev/null +++ b/sgw/src/model/DeleteStorageBundleRequest.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::Sgw::Model::DeleteStorageBundleRequest; + +DeleteStorageBundleRequest::DeleteStorageBundleRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DeleteStorageBundle") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteStorageBundleRequest::~DeleteStorageBundleRequest() +{} + +std::string DeleteStorageBundleRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteStorageBundleRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DeleteStorageBundleRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DeleteStorageBundleRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DeleteStorageBundleRequest::getStorageBundleId()const +{ + return storageBundleId_; +} + +void DeleteStorageBundleRequest::setStorageBundleId(const std::string& storageBundleId) +{ + storageBundleId_ = storageBundleId; + setParameter("StorageBundleId", storageBundleId); +} + diff --git a/sgw/src/model/DeleteStorageBundleResult.cc b/sgw/src/model/DeleteStorageBundleResult.cc new file mode 100644 index 000000000..67b961c1d --- /dev/null +++ b/sgw/src/model/DeleteStorageBundleResult.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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DeleteStorageBundleResult::DeleteStorageBundleResult() : + ServiceResult() +{} + +DeleteStorageBundleResult::DeleteStorageBundleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteStorageBundleResult::~DeleteStorageBundleResult() +{} + +void DeleteStorageBundleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DeleteStorageBundleResult::getMessage()const +{ + return message_; +} + +std::string DeleteStorageBundleResult::getCode()const +{ + return code_; +} + +bool DeleteStorageBundleResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DeployCacheDiskRequest.cc b/sgw/src/model/DeployCacheDiskRequest.cc new file mode 100644 index 000000000..3f23b1616 --- /dev/null +++ b/sgw/src/model/DeployCacheDiskRequest.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::Sgw::Model::DeployCacheDiskRequest; + +DeployCacheDiskRequest::DeployCacheDiskRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DeployCacheDisk") +{ + setMethod(HttpRequest::Method::Post); +} + +DeployCacheDiskRequest::~DeployCacheDiskRequest() +{} + +int DeployCacheDiskRequest::getSizeInGB()const +{ + return sizeInGB_; +} + +void DeployCacheDiskRequest::setSizeInGB(int sizeInGB) +{ + sizeInGB_ = sizeInGB; + setParameter("SizeInGB", std::to_string(sizeInGB)); +} + +std::string DeployCacheDiskRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeployCacheDiskRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DeployCacheDiskRequest::getCacheConfig()const +{ + return cacheConfig_; +} + +void DeployCacheDiskRequest::setCacheConfig(const std::string& cacheConfig) +{ + cacheConfig_ = cacheConfig; + setParameter("CacheConfig", cacheConfig); +} + +std::string DeployCacheDiskRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DeployCacheDiskRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DeployCacheDiskRequest::getDiskCategory()const +{ + return diskCategory_; +} + +void DeployCacheDiskRequest::setDiskCategory(const std::string& diskCategory) +{ + diskCategory_ = diskCategory; + setParameter("DiskCategory", diskCategory); +} + +std::string DeployCacheDiskRequest::getGatewayId()const +{ + return gatewayId_; +} + +void DeployCacheDiskRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/DeployCacheDiskResult.cc b/sgw/src/model/DeployCacheDiskResult.cc new file mode 100644 index 000000000..7219ce788 --- /dev/null +++ b/sgw/src/model/DeployCacheDiskResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DeployCacheDiskResult::DeployCacheDiskResult() : + ServiceResult() +{} + +DeployCacheDiskResult::DeployCacheDiskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeployCacheDiskResult::~DeployCacheDiskResult() +{} + +void DeployCacheDiskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + +} + +std::string DeployCacheDiskResult::getTaskId()const +{ + return taskId_; +} + +std::string DeployCacheDiskResult::getMessage()const +{ + return message_; +} + +std::string DeployCacheDiskResult::getCode()const +{ + return code_; +} + +bool DeployCacheDiskResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DeployGatewayRequest.cc b/sgw/src/model/DeployGatewayRequest.cc new file mode 100644 index 000000000..c9125e89d --- /dev/null +++ b/sgw/src/model/DeployGatewayRequest.cc @@ -0,0 +1,112 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Sgw::Model::DeployGatewayRequest; + +DeployGatewayRequest::DeployGatewayRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DeployGateway") +{ + setMethod(HttpRequest::Method::Post); +} + +DeployGatewayRequest::~DeployGatewayRequest() +{} + +std::string DeployGatewayRequest::getGatewayClass()const +{ + return gatewayClass_; +} + +void DeployGatewayRequest::setGatewayClass(const std::string& gatewayClass) +{ + gatewayClass_ = gatewayClass; + setParameter("GatewayClass", gatewayClass); +} + +std::string DeployGatewayRequest::getGatewayVersion()const +{ + return gatewayVersion_; +} + +void DeployGatewayRequest::setGatewayVersion(const std::string& gatewayVersion) +{ + gatewayVersion_ = gatewayVersion; + setParameter("GatewayVersion", gatewayVersion); +} + +std::vector DeployGatewayRequest::getDataDisk()const +{ + return dataDisk_; +} + +void DeployGatewayRequest::setDataDisk(const std::vector& dataDisk) +{ + dataDisk_ = dataDisk; + for(int dep1 = 0; dep1!= dataDisk.size(); dep1++) { + auto dataDiskObj = dataDisk.at(dep1); + std::string dataDiskObjStr = "DataDisk." + std::to_string(dep1 + 1); + setParameter(dataDiskObjStr + ".Size", std::to_string(dataDiskObj.size)); + setParameter(dataDiskObjStr + ".Category", dataDiskObj.category); + setParameter(dataDiskObjStr + ".CacheConfig", dataDiskObj.cacheConfig); + } +} + +std::string DeployGatewayRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeployGatewayRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DeployGatewayRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void DeployGatewayRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setParameter("VSwitchId", vSwitchId); +} + +std::string DeployGatewayRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DeployGatewayRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DeployGatewayRequest::getGatewayId()const +{ + return gatewayId_; +} + +void DeployGatewayRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/DeployGatewayResult.cc b/sgw/src/model/DeployGatewayResult.cc new file mode 100644 index 000000000..f144da1cd --- /dev/null +++ b/sgw/src/model/DeployGatewayResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DeployGatewayResult::DeployGatewayResult() : + ServiceResult() +{} + +DeployGatewayResult::DeployGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeployGatewayResult::~DeployGatewayResult() +{} + +void DeployGatewayResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + +} + +std::string DeployGatewayResult::getTaskId()const +{ + return taskId_; +} + +std::string DeployGatewayResult::getMessage()const +{ + return message_; +} + +std::string DeployGatewayResult::getCode()const +{ + return code_; +} + +bool DeployGatewayResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DescribeAccountConfigRequest.cc b/sgw/src/model/DescribeAccountConfigRequest.cc new file mode 100644 index 000000000..66fe4bcc2 --- /dev/null +++ b/sgw/src/model/DescribeAccountConfigRequest.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::Sgw::Model::DescribeAccountConfigRequest; + +DescribeAccountConfigRequest::DescribeAccountConfigRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeAccountConfig") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeAccountConfigRequest::~DescribeAccountConfigRequest() +{} + +std::string DescribeAccountConfigRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeAccountConfigRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeAccountConfigRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeAccountConfigRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeAccountConfigRequest::getGatewayId()const +{ + return gatewayId_; +} + +void DescribeAccountConfigRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/DescribeAccountConfigResult.cc b/sgw/src/model/DescribeAccountConfigResult.cc new file mode 100644 index 000000000..abf0e193d --- /dev/null +++ b/sgw/src/model/DescribeAccountConfigResult.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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeAccountConfigResult::DescribeAccountConfigResult() : + ServiceResult() +{} + +DescribeAccountConfigResult::DescribeAccountConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAccountConfigResult::~DescribeAccountConfigResult() +{} + +void DescribeAccountConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["IsSupportServerSideEncryption"].isNull()) + isSupportServerSideEncryption_ = value["IsSupportServerSideEncryption"].asString() == "true"; + if(!value["IsSupportClientSideEncryption"].isNull()) + isSupportClientSideEncryption_ = value["IsSupportClientSideEncryption"].asString() == "true"; + if(!value["IsSupportGatewayLogging"].isNull()) + isSupportGatewayLogging_ = value["IsSupportGatewayLogging"].asString() == "true"; + if(!value["IsSupportElasticGatewayBeta"].isNull()) + isSupportElasticGatewayBeta_ = value["IsSupportElasticGatewayBeta"].asString() == "true"; + +} + +std::string DescribeAccountConfigResult::getMessage()const +{ + return message_; +} + +bool DescribeAccountConfigResult::getIsSupportServerSideEncryption()const +{ + return isSupportServerSideEncryption_; +} + +bool DescribeAccountConfigResult::getIsSupportClientSideEncryption()const +{ + return isSupportClientSideEncryption_; +} + +std::string DescribeAccountConfigResult::getCode()const +{ + return code_; +} + +bool DescribeAccountConfigResult::getIsSupportGatewayLogging()const +{ + return isSupportGatewayLogging_; +} + +bool DescribeAccountConfigResult::getSuccess()const +{ + return success_; +} + +bool DescribeAccountConfigResult::getIsSupportElasticGatewayBeta()const +{ + return isSupportElasticGatewayBeta_; +} + diff --git a/sgw/src/model/DescribeBlockVolumeSnapshotsRequest.cc b/sgw/src/model/DescribeBlockVolumeSnapshotsRequest.cc new file mode 100644 index 000000000..b3630b8cd --- /dev/null +++ b/sgw/src/model/DescribeBlockVolumeSnapshotsRequest.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::Sgw::Model::DescribeBlockVolumeSnapshotsRequest; + +DescribeBlockVolumeSnapshotsRequest::DescribeBlockVolumeSnapshotsRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeBlockVolumeSnapshots") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeBlockVolumeSnapshotsRequest::~DescribeBlockVolumeSnapshotsRequest() +{} + +int DescribeBlockVolumeSnapshotsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeBlockVolumeSnapshotsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeBlockVolumeSnapshotsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeBlockVolumeSnapshotsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeBlockVolumeSnapshotsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeBlockVolumeSnapshotsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +int DescribeBlockVolumeSnapshotsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeBlockVolumeSnapshotsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeBlockVolumeSnapshotsRequest::getIndexId()const +{ + return indexId_; +} + +void DescribeBlockVolumeSnapshotsRequest::setIndexId(const std::string& indexId) +{ + indexId_ = indexId; + setParameter("IndexId", indexId); +} + +std::string DescribeBlockVolumeSnapshotsRequest::getGatewayId()const +{ + return gatewayId_; +} + +void DescribeBlockVolumeSnapshotsRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/DescribeBlockVolumeSnapshotsResult.cc b/sgw/src/model/DescribeBlockVolumeSnapshotsResult.cc new file mode 100644 index 000000000..990521a24 --- /dev/null +++ b/sgw/src/model/DescribeBlockVolumeSnapshotsResult.cc @@ -0,0 +1,103 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeBlockVolumeSnapshotsResult::DescribeBlockVolumeSnapshotsResult() : + ServiceResult() +{} + +DescribeBlockVolumeSnapshotsResult::DescribeBlockVolumeSnapshotsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeBlockVolumeSnapshotsResult::~DescribeBlockVolumeSnapshotsResult() +{} + +void DescribeBlockVolumeSnapshotsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSnapshotsNode = value["Snapshots"]["Snapshot"]; + for (auto valueSnapshotsSnapshot : allSnapshotsNode) + { + Snapshot snapshotsObject; + if(!valueSnapshotsSnapshot["SnapshotName"].isNull()) + snapshotsObject.snapshotName = valueSnapshotsSnapshot["SnapshotName"].asString(); + if(!valueSnapshotsSnapshot["CreateTime"].isNull()) + snapshotsObject.createTime = std::stol(valueSnapshotsSnapshot["CreateTime"].asString()); + if(!valueSnapshotsSnapshot["Size"].isNull()) + snapshotsObject.size = std::stol(valueSnapshotsSnapshot["Size"].asString()); + snapshots_.push_back(snapshotsObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeBlockVolumeSnapshotsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string DescribeBlockVolumeSnapshotsResult::getMessage()const +{ + return message_; +} + +int DescribeBlockVolumeSnapshotsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeBlockVolumeSnapshotsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeBlockVolumeSnapshotsResult::getSnapshots()const +{ + return snapshots_; +} + +std::string DescribeBlockVolumeSnapshotsResult::getCode()const +{ + return code_; +} + +bool DescribeBlockVolumeSnapshotsResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DescribeDashboardRequest.cc b/sgw/src/model/DescribeDashboardRequest.cc new file mode 100644 index 000000000..a2959aa69 --- /dev/null +++ b/sgw/src/model/DescribeDashboardRequest.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::Sgw::Model::DescribeDashboardRequest; + +DescribeDashboardRequest::DescribeDashboardRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeDashboard") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeDashboardRequest::~DescribeDashboardRequest() +{} + +std::string DescribeDashboardRequest::getBackendBucketRegionId()const +{ + return backendBucketRegionId_; +} + +void DescribeDashboardRequest::setBackendBucketRegionId(const std::string& backendBucketRegionId) +{ + backendBucketRegionId_ = backendBucketRegionId; + setParameter("BackendBucketRegionId", backendBucketRegionId); +} + +std::string DescribeDashboardRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDashboardRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeDashboardRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void DescribeDashboardRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string DescribeDashboardRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeDashboardRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + diff --git a/sgw/src/model/DescribeDashboardResult.cc b/sgw/src/model/DescribeDashboardResult.cc new file mode 100644 index 000000000..cdc26f8fa --- /dev/null +++ b/sgw/src/model/DescribeDashboardResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeDashboardResult::DescribeDashboardResult() : + ServiceResult() +{} + +DescribeDashboardResult::DescribeDashboardResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDashboardResult::~DescribeDashboardResult() +{} + +void DescribeDashboardResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Overview"].isNull()) + overview_ = value["Overview"].asString(); + +} + +std::string DescribeDashboardResult::getMessage()const +{ + return message_; +} + +std::string DescribeDashboardResult::getOverview()const +{ + return overview_; +} + +std::string DescribeDashboardResult::getCode()const +{ + return code_; +} + +bool DescribeDashboardResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DescribeExpireCachesRequest.cc b/sgw/src/model/DescribeExpireCachesRequest.cc new file mode 100644 index 000000000..1a3329815 --- /dev/null +++ b/sgw/src/model/DescribeExpireCachesRequest.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::Sgw::Model::DescribeExpireCachesRequest; + +DescribeExpireCachesRequest::DescribeExpireCachesRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeExpireCaches") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeExpireCachesRequest::~DescribeExpireCachesRequest() +{} + +std::string DescribeExpireCachesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeExpireCachesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeExpireCachesRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeExpireCachesRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeExpireCachesRequest::getGatewayId()const +{ + return gatewayId_; +} + +void DescribeExpireCachesRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/DescribeExpireCachesResult.cc b/sgw/src/model/DescribeExpireCachesResult.cc new file mode 100644 index 000000000..9b5f1e269 --- /dev/null +++ b/sgw/src/model/DescribeExpireCachesResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeExpireCachesResult::DescribeExpireCachesResult() : + ServiceResult() +{} + +DescribeExpireCachesResult::DescribeExpireCachesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeExpireCachesResult::~DescribeExpireCachesResult() +{} + +void DescribeExpireCachesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["CacheFilePaths"].isNull()) + cacheFilePaths_ = value["CacheFilePaths"].asString(); + +} + +std::string DescribeExpireCachesResult::getMessage()const +{ + return message_; +} + +std::string DescribeExpireCachesResult::getCacheFilePaths()const +{ + return cacheFilePaths_; +} + +std::string DescribeExpireCachesResult::getCode()const +{ + return code_; +} + +bool DescribeExpireCachesResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DescribeExpressSyncSharesRequest.cc b/sgw/src/model/DescribeExpressSyncSharesRequest.cc new file mode 100644 index 000000000..89f6872c5 --- /dev/null +++ b/sgw/src/model/DescribeExpressSyncSharesRequest.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::Sgw::Model::DescribeExpressSyncSharesRequest; + +DescribeExpressSyncSharesRequest::DescribeExpressSyncSharesRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeExpressSyncShares") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeExpressSyncSharesRequest::~DescribeExpressSyncSharesRequest() +{} + +bool DescribeExpressSyncSharesRequest::getIsExternal()const +{ + return isExternal_; +} + +void DescribeExpressSyncSharesRequest::setIsExternal(bool isExternal) +{ + isExternal_ = isExternal; + setParameter("IsExternal", isExternal ? "true" : "false"); +} + +std::string DescribeExpressSyncSharesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeExpressSyncSharesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeExpressSyncSharesRequest::getExpressSyncIds()const +{ + return expressSyncIds_; +} + +void DescribeExpressSyncSharesRequest::setExpressSyncIds(const std::string& expressSyncIds) +{ + expressSyncIds_ = expressSyncIds; + setParameter("ExpressSyncIds", expressSyncIds); +} + +bool DescribeExpressSyncSharesRequest::getIsCrossRegion()const +{ + return isCrossRegion_; +} + +void DescribeExpressSyncSharesRequest::setIsCrossRegion(bool isCrossRegion) +{ + isCrossRegion_ = isCrossRegion; + setParameter("IsCrossRegion", isCrossRegion ? "true" : "false"); +} + +std::string DescribeExpressSyncSharesRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeExpressSyncSharesRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + diff --git a/sgw/src/model/DescribeExpressSyncSharesResult.cc b/sgw/src/model/DescribeExpressSyncSharesResult.cc new file mode 100644 index 000000000..863efff64 --- /dev/null +++ b/sgw/src/model/DescribeExpressSyncSharesResult.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeExpressSyncSharesResult::DescribeExpressSyncSharesResult() : + ServiceResult() +{} + +DescribeExpressSyncSharesResult::DescribeExpressSyncSharesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeExpressSyncSharesResult::~DescribeExpressSyncSharesResult() +{} + +void DescribeExpressSyncSharesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSharesNode = value["Shares"]["Share"]; + for (auto valueSharesShare : allSharesNode) + { + Share sharesObject; + if(!valueSharesShare["GatewayId"].isNull()) + sharesObject.gatewayId = valueSharesShare["GatewayId"].asString(); + if(!valueSharesShare["StorageBundleId"].isNull()) + sharesObject.storageBundleId = valueSharesShare["StorageBundleId"].asString(); + if(!valueSharesShare["GatewayName"].isNull()) + sharesObject.gatewayName = valueSharesShare["GatewayName"].asString(); + if(!valueSharesShare["GatewayRegion"].isNull()) + sharesObject.gatewayRegion = valueSharesShare["GatewayRegion"].asString(); + if(!valueSharesShare["ShareName"].isNull()) + sharesObject.shareName = valueSharesShare["ShareName"].asString(); + if(!valueSharesShare["ExpressSyncState"].isNull()) + sharesObject.expressSyncState = valueSharesShare["ExpressSyncState"].asString(); + if(!valueSharesShare["ExpressSyncId"].isNull()) + sharesObject.expressSyncId = valueSharesShare["ExpressSyncId"].asString(); + if(!valueSharesShare["MnsQueue"].isNull()) + sharesObject.mnsQueue = valueSharesShare["MnsQueue"].asString(); + if(!valueSharesShare["SyncProgress"].isNull()) + sharesObject.syncProgress = std::stoi(valueSharesShare["SyncProgress"].asString()); + shares_.push_back(sharesObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribeExpressSyncSharesResult::getMessage()const +{ + return message_; +} + +std::vector DescribeExpressSyncSharesResult::getShares()const +{ + return shares_; +} + +std::string DescribeExpressSyncSharesResult::getCode()const +{ + return code_; +} + +bool DescribeExpressSyncSharesResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DescribeExpressSyncsRequest.cc b/sgw/src/model/DescribeExpressSyncsRequest.cc new file mode 100644 index 000000000..91d5ec748 --- /dev/null +++ b/sgw/src/model/DescribeExpressSyncsRequest.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::Sgw::Model::DescribeExpressSyncsRequest; + +DescribeExpressSyncsRequest::DescribeExpressSyncsRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeExpressSyncs") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeExpressSyncsRequest::~DescribeExpressSyncsRequest() +{} + +std::string DescribeExpressSyncsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeExpressSyncsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeExpressSyncsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeExpressSyncsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeExpressSyncsRequest::getBucketName()const +{ + return bucketName_; +} + +void DescribeExpressSyncsRequest::setBucketName(const std::string& bucketName) +{ + bucketName_ = bucketName; + setParameter("BucketName", bucketName); +} + +std::string DescribeExpressSyncsRequest::getBucketPrefix()const +{ + return bucketPrefix_; +} + +void DescribeExpressSyncsRequest::setBucketPrefix(const std::string& bucketPrefix) +{ + bucketPrefix_ = bucketPrefix; + setParameter("BucketPrefix", bucketPrefix); +} + diff --git a/sgw/src/model/DescribeExpressSyncsResult.cc b/sgw/src/model/DescribeExpressSyncsResult.cc new file mode 100644 index 000000000..895b940c1 --- /dev/null +++ b/sgw/src/model/DescribeExpressSyncsResult.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeExpressSyncsResult::DescribeExpressSyncsResult() : + ServiceResult() +{} + +DescribeExpressSyncsResult::DescribeExpressSyncsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeExpressSyncsResult::~DescribeExpressSyncsResult() +{} + +void DescribeExpressSyncsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allExpressSyncsNode = value["ExpressSyncs"]["ExpressSync"]; + for (auto valueExpressSyncsExpressSync : allExpressSyncsNode) + { + ExpressSync expressSyncsObject; + if(!valueExpressSyncsExpressSync["ExpressSyncId"].isNull()) + expressSyncsObject.expressSyncId = valueExpressSyncsExpressSync["ExpressSyncId"].asString(); + if(!valueExpressSyncsExpressSync["Name"].isNull()) + expressSyncsObject.name = valueExpressSyncsExpressSync["Name"].asString(); + if(!valueExpressSyncsExpressSync["Description"].isNull()) + expressSyncsObject.description = valueExpressSyncsExpressSync["Description"].asString(); + if(!valueExpressSyncsExpressSync["BucketRegion"].isNull()) + expressSyncsObject.bucketRegion = valueExpressSyncsExpressSync["BucketRegion"].asString(); + if(!valueExpressSyncsExpressSync["BucketName"].isNull()) + expressSyncsObject.bucketName = valueExpressSyncsExpressSync["BucketName"].asString(); + if(!valueExpressSyncsExpressSync["BucketPrefix"].isNull()) + expressSyncsObject.bucketPrefix = valueExpressSyncsExpressSync["BucketPrefix"].asString(); + if(!valueExpressSyncsExpressSync["MnsTopic"].isNull()) + expressSyncsObject.mnsTopic = valueExpressSyncsExpressSync["MnsTopic"].asString(); + expressSyncs_.push_back(expressSyncsObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::vector DescribeExpressSyncsResult::getExpressSyncs()const +{ + return expressSyncs_; +} + +std::string DescribeExpressSyncsResult::getMessage()const +{ + return message_; +} + +std::string DescribeExpressSyncsResult::getCode()const +{ + return code_; +} + +bool DescribeExpressSyncsResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DescribeGatewayADInfoRequest.cc b/sgw/src/model/DescribeGatewayADInfoRequest.cc new file mode 100644 index 000000000..9596622d8 --- /dev/null +++ b/sgw/src/model/DescribeGatewayADInfoRequest.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::Sgw::Model::DescribeGatewayADInfoRequest; + +DescribeGatewayADInfoRequest::DescribeGatewayADInfoRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeGatewayADInfo") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeGatewayADInfoRequest::~DescribeGatewayADInfoRequest() +{} + +std::string DescribeGatewayADInfoRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeGatewayADInfoRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeGatewayADInfoRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeGatewayADInfoRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeGatewayADInfoRequest::getGatewayId()const +{ + return gatewayId_; +} + +void DescribeGatewayADInfoRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/DescribeGatewayADInfoResult.cc b/sgw/src/model/DescribeGatewayADInfoResult.cc new file mode 100644 index 000000000..d0e1dc52a --- /dev/null +++ b/sgw/src/model/DescribeGatewayADInfoResult.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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeGatewayADInfoResult::DescribeGatewayADInfoResult() : + ServiceResult() +{} + +DescribeGatewayADInfoResult::DescribeGatewayADInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGatewayADInfoResult::~DescribeGatewayADInfoResult() +{} + +void DescribeGatewayADInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Username"].isNull()) + username_ = value["Username"].asString(); + if(!value["ServerIp"].isNull()) + serverIp_ = value["ServerIp"].asString(); + if(!value["DomainName"].isNull()) + domainName_ = value["DomainName"].asString(); + if(!value["IsEnabled"].isNull()) + isEnabled_ = value["IsEnabled"].asString() == "true"; + +} + +std::string DescribeGatewayADInfoResult::getMessage()const +{ + return message_; +} + +std::string DescribeGatewayADInfoResult::getUsername()const +{ + return username_; +} + +std::string DescribeGatewayADInfoResult::getDomainName()const +{ + return domainName_; +} + +bool DescribeGatewayADInfoResult::getIsEnabled()const +{ + return isEnabled_; +} + +std::string DescribeGatewayADInfoResult::getServerIp()const +{ + return serverIp_; +} + +std::string DescribeGatewayADInfoResult::getCode()const +{ + return code_; +} + +bool DescribeGatewayADInfoResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DescribeGatewayActionsRequest.cc b/sgw/src/model/DescribeGatewayActionsRequest.cc new file mode 100644 index 000000000..bc626b09c --- /dev/null +++ b/sgw/src/model/DescribeGatewayActionsRequest.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::Sgw::Model::DescribeGatewayActionsRequest; + +DescribeGatewayActionsRequest::DescribeGatewayActionsRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeGatewayActions") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeGatewayActionsRequest::~DescribeGatewayActionsRequest() +{} + +std::string DescribeGatewayActionsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeGatewayActionsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeGatewayActionsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeGatewayActionsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeGatewayActionsRequest::getGatewayId()const +{ + return gatewayId_; +} + +void DescribeGatewayActionsRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/DescribeGatewayActionsResult.cc b/sgw/src/model/DescribeGatewayActionsResult.cc new file mode 100644 index 000000000..e8850c961 --- /dev/null +++ b/sgw/src/model/DescribeGatewayActionsResult.cc @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeGatewayActionsResult::DescribeGatewayActionsResult() : + ServiceResult() +{} + +DescribeGatewayActionsResult::DescribeGatewayActionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGatewayActionsResult::~DescribeGatewayActionsResult() +{} + +void DescribeGatewayActionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allActionsNode = value["Actions"]["Action"]; + for (auto valueActionsAction : allActionsNode) + { + Action actionsObject; + if(!valueActionsAction["GatewayId"].isNull()) + actionsObject.gatewayId = valueActionsAction["GatewayId"].asString(); + if(!valueActionsAction["Self"].isNull()) + actionsObject.self = valueActionsAction["Self"].asString(); + if(!valueActionsAction["Monitor"].isNull()) + actionsObject.monitor = valueActionsAction["Monitor"].asString(); + if(!valueActionsAction["Disk"].isNull()) + actionsObject.disk = valueActionsAction["Disk"].asString(); + if(!valueActionsAction["Cache"].isNull()) + actionsObject.cache = valueActionsAction["Cache"].asString(); + if(!valueActionsAction["SmbUser"].isNull()) + actionsObject.smbUser = valueActionsAction["SmbUser"].asString(); + if(!valueActionsAction["AdLdap"].isNull()) + actionsObject.adLdap = valueActionsAction["AdLdap"].asString(); + if(!valueActionsAction["Target"].isNull()) + actionsObject.target = valueActionsAction["Target"].asString(); + actions_.push_back(actionsObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribeGatewayActionsResult::getMessage()const +{ + return message_; +} + +std::vector DescribeGatewayActionsResult::getActions()const +{ + return actions_; +} + +std::string DescribeGatewayActionsResult::getCode()const +{ + return code_; +} + +bool DescribeGatewayActionsResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DescribeGatewayAuthInfoRequest.cc b/sgw/src/model/DescribeGatewayAuthInfoRequest.cc new file mode 100644 index 000000000..6d160b333 --- /dev/null +++ b/sgw/src/model/DescribeGatewayAuthInfoRequest.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::Sgw::Model::DescribeGatewayAuthInfoRequest; + +DescribeGatewayAuthInfoRequest::DescribeGatewayAuthInfoRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeGatewayAuthInfo") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeGatewayAuthInfoRequest::~DescribeGatewayAuthInfoRequest() +{} + +std::string DescribeGatewayAuthInfoRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeGatewayAuthInfoRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeGatewayAuthInfoRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeGatewayAuthInfoRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeGatewayAuthInfoRequest::getGatewayId()const +{ + return gatewayId_; +} + +void DescribeGatewayAuthInfoRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/DescribeGatewayAuthInfoResult.cc b/sgw/src/model/DescribeGatewayAuthInfoResult.cc new file mode 100644 index 000000000..9f0544cd7 --- /dev/null +++ b/sgw/src/model/DescribeGatewayAuthInfoResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeGatewayAuthInfoResult::DescribeGatewayAuthInfoResult() : + ServiceResult() +{} + +DescribeGatewayAuthInfoResult::DescribeGatewayAuthInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGatewayAuthInfoResult::~DescribeGatewayAuthInfoResult() +{} + +void DescribeGatewayAuthInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["PublicIp"].isNull()) + publicIp_ = value["PublicIp"].asString(); + if(!value["Username"].isNull()) + username_ = value["Username"].asString(); + if(!value["Password"].isNull()) + password_ = value["Password"].asString(); + +} + +std::string DescribeGatewayAuthInfoResult::getMessage()const +{ + return message_; +} + +std::string DescribeGatewayAuthInfoResult::getPublicIp()const +{ + return publicIp_; +} + +std::string DescribeGatewayAuthInfoResult::getUsername()const +{ + return username_; +} + +std::string DescribeGatewayAuthInfoResult::getCode()const +{ + return code_; +} + +bool DescribeGatewayAuthInfoResult::getSuccess()const +{ + return success_; +} + +std::string DescribeGatewayAuthInfoResult::getPassword()const +{ + return password_; +} + diff --git a/sgw/src/model/DescribeGatewayBlockVolumesRequest.cc b/sgw/src/model/DescribeGatewayBlockVolumesRequest.cc new file mode 100644 index 000000000..8e2af925b --- /dev/null +++ b/sgw/src/model/DescribeGatewayBlockVolumesRequest.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::Sgw::Model::DescribeGatewayBlockVolumesRequest; + +DescribeGatewayBlockVolumesRequest::DescribeGatewayBlockVolumesRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeGatewayBlockVolumes") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeGatewayBlockVolumesRequest::~DescribeGatewayBlockVolumesRequest() +{} + +bool DescribeGatewayBlockVolumesRequest::getRefresh()const +{ + return refresh_; +} + +void DescribeGatewayBlockVolumesRequest::setRefresh(bool refresh) +{ + refresh_ = refresh; + setParameter("Refresh", refresh ? "true" : "false"); +} + +std::string DescribeGatewayBlockVolumesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeGatewayBlockVolumesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeGatewayBlockVolumesRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeGatewayBlockVolumesRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeGatewayBlockVolumesRequest::getIndexId()const +{ + return indexId_; +} + +void DescribeGatewayBlockVolumesRequest::setIndexId(const std::string& indexId) +{ + indexId_ = indexId; + setParameter("IndexId", indexId); +} + +std::string DescribeGatewayBlockVolumesRequest::getGatewayId()const +{ + return gatewayId_; +} + +void DescribeGatewayBlockVolumesRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/DescribeGatewayBlockVolumesResult.cc b/sgw/src/model/DescribeGatewayBlockVolumesResult.cc new file mode 100644 index 000000000..5f16db2f7 --- /dev/null +++ b/sgw/src/model/DescribeGatewayBlockVolumesResult.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 +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeGatewayBlockVolumesResult::DescribeGatewayBlockVolumesResult() : + ServiceResult() +{} + +DescribeGatewayBlockVolumesResult::DescribeGatewayBlockVolumesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGatewayBlockVolumesResult::~DescribeGatewayBlockVolumesResult() +{} + +void DescribeGatewayBlockVolumesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allBlockVolumesNode = value["BlockVolumes"]["BlockVolume"]; + for (auto valueBlockVolumesBlockVolume : allBlockVolumesNode) + { + BlockVolume blockVolumesObject; + if(!valueBlockVolumesBlockVolume["Name"].isNull()) + blockVolumesObject.name = valueBlockVolumesBlockVolume["Name"].asString(); + if(!valueBlockVolumesBlockVolume["DiskId"].isNull()) + blockVolumesObject.diskId = valueBlockVolumesBlockVolume["DiskId"].asString(); + if(!valueBlockVolumesBlockVolume["DiskType"].isNull()) + blockVolumesObject.diskType = valueBlockVolumesBlockVolume["DiskType"].asString(); + if(!valueBlockVolumesBlockVolume["Protocol"].isNull()) + blockVolumesObject.protocol = valueBlockVolumesBlockVolume["Protocol"].asString(); + if(!valueBlockVolumesBlockVolume["Size"].isNull()) + blockVolumesObject.size = std::stol(valueBlockVolumesBlockVolume["Size"].asString()); + if(!valueBlockVolumesBlockVolume["Enabled"].isNull()) + blockVolumesObject.enabled = valueBlockVolumesBlockVolume["Enabled"].asString() == "true"; + if(!valueBlockVolumesBlockVolume["State"].isNull()) + blockVolumesObject.state = valueBlockVolumesBlockVolume["State"].asString(); + if(!valueBlockVolumesBlockVolume["TotalUpload"].isNull()) + blockVolumesObject.totalUpload = std::stol(valueBlockVolumesBlockVolume["TotalUpload"].asString()); + if(!valueBlockVolumesBlockVolume["TotalDownload"].isNull()) + blockVolumesObject.totalDownload = std::stol(valueBlockVolumesBlockVolume["TotalDownload"].asString()); + if(!valueBlockVolumesBlockVolume["OssBucketName"].isNull()) + blockVolumesObject.ossBucketName = valueBlockVolumesBlockVolume["OssBucketName"].asString(); + if(!valueBlockVolumesBlockVolume["OssEndpoint"].isNull()) + blockVolumesObject.ossEndpoint = valueBlockVolumesBlockVolume["OssEndpoint"].asString(); + if(!valueBlockVolumesBlockVolume["OssBucketSsl"].isNull()) + blockVolumesObject.ossBucketSsl = valueBlockVolumesBlockVolume["OssBucketSsl"].asString() == "true"; + if(!valueBlockVolumesBlockVolume["LocalPath"].isNull()) + blockVolumesObject.localPath = valueBlockVolumesBlockVolume["LocalPath"].asString(); + if(!valueBlockVolumesBlockVolume["ChunkSize"].isNull()) + blockVolumesObject.chunkSize = std::stoi(valueBlockVolumesBlockVolume["ChunkSize"].asString()); + if(!valueBlockVolumesBlockVolume["CacheMode"].isNull()) + blockVolumesObject.cacheMode = valueBlockVolumesBlockVolume["CacheMode"].asString(); + if(!valueBlockVolumesBlockVolume["Address"].isNull()) + blockVolumesObject.address = valueBlockVolumesBlockVolume["Address"].asString(); + if(!valueBlockVolumesBlockVolume["SerialNumber"].isNull()) + blockVolumesObject.serialNumber = valueBlockVolumesBlockVolume["SerialNumber"].asString(); + if(!valueBlockVolumesBlockVolume["IndexId"].isNull()) + blockVolumesObject.indexId = valueBlockVolumesBlockVolume["IndexId"].asString(); + if(!valueBlockVolumesBlockVolume["Target"].isNull()) + blockVolumesObject.target = valueBlockVolumesBlockVolume["Target"].asString(); + if(!valueBlockVolumesBlockVolume["Port"].isNull()) + blockVolumesObject.port = std::stoi(valueBlockVolumesBlockVolume["Port"].asString()); + if(!valueBlockVolumesBlockVolume["LunId"].isNull()) + blockVolumesObject.lunId = std::stoi(valueBlockVolumesBlockVolume["LunId"].asString()); + if(!valueBlockVolumesBlockVolume["ChapEnabled"].isNull()) + blockVolumesObject.chapEnabled = valueBlockVolumesBlockVolume["ChapEnabled"].asString() == "true"; + if(!valueBlockVolumesBlockVolume["ChapInUser"].isNull()) + blockVolumesObject.chapInUser = valueBlockVolumesBlockVolume["ChapInUser"].asString(); + if(!valueBlockVolumesBlockVolume["ChapOutUser"].isNull()) + blockVolumesObject.chapOutUser = valueBlockVolumesBlockVolume["ChapOutUser"].asString(); + if(!valueBlockVolumesBlockVolume["Status"].isNull()) + blockVolumesObject.status = std::stoi(valueBlockVolumesBlockVolume["Status"].asString()); + if(!valueBlockVolumesBlockVolume["VolumeState"].isNull()) + blockVolumesObject.volumeState = std::stoi(valueBlockVolumesBlockVolume["VolumeState"].asString()); + blockVolumes_.push_back(blockVolumesObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::vector DescribeGatewayBlockVolumesResult::getBlockVolumes()const +{ + return blockVolumes_; +} + +std::string DescribeGatewayBlockVolumesResult::getMessage()const +{ + return message_; +} + +std::string DescribeGatewayBlockVolumesResult::getCode()const +{ + return code_; +} + +bool DescribeGatewayBlockVolumesResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DescribeGatewayBucketCachesRequest.cc b/sgw/src/model/DescribeGatewayBucketCachesRequest.cc new file mode 100644 index 000000000..888d4c247 --- /dev/null +++ b/sgw/src/model/DescribeGatewayBucketCachesRequest.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::Sgw::Model::DescribeGatewayBucketCachesRequest; + +DescribeGatewayBucketCachesRequest::DescribeGatewayBucketCachesRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeGatewayBucketCaches") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeGatewayBucketCachesRequest::~DescribeGatewayBucketCachesRequest() +{} + +int DescribeGatewayBucketCachesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeGatewayBucketCachesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeGatewayBucketCachesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeGatewayBucketCachesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeGatewayBucketCachesRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeGatewayBucketCachesRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeGatewayBucketCachesRequest::getBucketName()const +{ + return bucketName_; +} + +void DescribeGatewayBucketCachesRequest::setBucketName(const std::string& bucketName) +{ + bucketName_ = bucketName; + setParameter("BucketName", bucketName); +} + +int DescribeGatewayBucketCachesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeGatewayBucketCachesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + diff --git a/sgw/src/model/DescribeGatewayBucketCachesResult.cc b/sgw/src/model/DescribeGatewayBucketCachesResult.cc new file mode 100644 index 000000000..6bfee36ef --- /dev/null +++ b/sgw/src/model/DescribeGatewayBucketCachesResult.cc @@ -0,0 +1,125 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeGatewayBucketCachesResult::DescribeGatewayBucketCachesResult() : + ServiceResult() +{} + +DescribeGatewayBucketCachesResult::DescribeGatewayBucketCachesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGatewayBucketCachesResult::~DescribeGatewayBucketCachesResult() +{} + +void DescribeGatewayBucketCachesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allBucketCachesNode = value["BucketCaches"]["BucketCache"]; + for (auto valueBucketCachesBucketCache : allBucketCachesNode) + { + BucketCache bucketCachesObject; + if(!valueBucketCachesBucketCache["GatewayId"].isNull()) + bucketCachesObject.gatewayId = valueBucketCachesBucketCache["GatewayId"].asString(); + if(!valueBucketCachesBucketCache["GatewayName"].isNull()) + bucketCachesObject.gatewayName = valueBucketCachesBucketCache["GatewayName"].asString(); + if(!valueBucketCachesBucketCache["RegionId"].isNull()) + bucketCachesObject.regionId = valueBucketCachesBucketCache["RegionId"].asString(); + if(!valueBucketCachesBucketCache["Location"].isNull()) + bucketCachesObject.location = valueBucketCachesBucketCache["Location"].asString(); + if(!valueBucketCachesBucketCache["Category"].isNull()) + bucketCachesObject.category = valueBucketCachesBucketCache["Category"].asString(); + if(!valueBucketCachesBucketCache["Type"].isNull()) + bucketCachesObject.type = valueBucketCachesBucketCache["Type"].asString(); + if(!valueBucketCachesBucketCache["BucketName"].isNull()) + bucketCachesObject.bucketName = valueBucketCachesBucketCache["BucketName"].asString(); + if(!valueBucketCachesBucketCache["Protocol"].isNull()) + bucketCachesObject.protocol = valueBucketCachesBucketCache["Protocol"].asString(); + if(!valueBucketCachesBucketCache["CacheMode"].isNull()) + bucketCachesObject.cacheMode = valueBucketCachesBucketCache["CacheMode"].asString(); + if(!valueBucketCachesBucketCache["CacheStats"].isNull()) + bucketCachesObject.cacheStats = valueBucketCachesBucketCache["CacheStats"].asString(); + if(!valueBucketCachesBucketCache["ShareName"].isNull()) + bucketCachesObject.shareName = valueBucketCachesBucketCache["ShareName"].asString(); + if(!valueBucketCachesBucketCache["VpcId"].isNull()) + bucketCachesObject.vpcId = valueBucketCachesBucketCache["VpcId"].asString(); + if(!valueBucketCachesBucketCache["VpcCidr"].isNull()) + bucketCachesObject.vpcCidr = valueBucketCachesBucketCache["VpcCidr"].asString(); + if(!valueBucketCachesBucketCache["MountPoint"].isNull()) + bucketCachesObject.mountPoint = valueBucketCachesBucketCache["MountPoint"].asString(); + bucketCaches_.push_back(bucketCachesObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeGatewayBucketCachesResult::getTotalCount()const +{ + return totalCount_; +} + +std::string DescribeGatewayBucketCachesResult::getMessage()const +{ + return message_; +} + +int DescribeGatewayBucketCachesResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeGatewayBucketCachesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeGatewayBucketCachesResult::getBucketCaches()const +{ + return bucketCaches_; +} + +std::string DescribeGatewayBucketCachesResult::getCode()const +{ + return code_; +} + +bool DescribeGatewayBucketCachesResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DescribeGatewayCachesRequest.cc b/sgw/src/model/DescribeGatewayCachesRequest.cc new file mode 100644 index 000000000..e52c1f36c --- /dev/null +++ b/sgw/src/model/DescribeGatewayCachesRequest.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::Sgw::Model::DescribeGatewayCachesRequest; + +DescribeGatewayCachesRequest::DescribeGatewayCachesRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeGatewayCaches") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeGatewayCachesRequest::~DescribeGatewayCachesRequest() +{} + +std::string DescribeGatewayCachesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeGatewayCachesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeGatewayCachesRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeGatewayCachesRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeGatewayCachesRequest::getGatewayId()const +{ + return gatewayId_; +} + +void DescribeGatewayCachesRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/DescribeGatewayCachesResult.cc b/sgw/src/model/DescribeGatewayCachesResult.cc new file mode 100644 index 000000000..3a4e6a916 --- /dev/null +++ b/sgw/src/model/DescribeGatewayCachesResult.cc @@ -0,0 +1,98 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeGatewayCachesResult::DescribeGatewayCachesResult() : + ServiceResult() +{} + +DescribeGatewayCachesResult::DescribeGatewayCachesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGatewayCachesResult::~DescribeGatewayCachesResult() +{} + +void DescribeGatewayCachesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allCachesNode = value["Caches"]["Cache"]; + for (auto valueCachesCache : allCachesNode) + { + Cache cachesObject; + if(!valueCachesCache["SizeInGB"].isNull()) + cachesObject.sizeInGB = std::stol(valueCachesCache["SizeInGB"].asString()); + if(!valueCachesCache["Iops"].isNull()) + cachesObject.iops = std::stol(valueCachesCache["Iops"].asString()); + if(!valueCachesCache["CacheId"].isNull()) + cachesObject.cacheId = valueCachesCache["CacheId"].asString(); + if(!valueCachesCache["CacheType"].isNull()) + cachesObject.cacheType = valueCachesCache["CacheType"].asString(); + if(!valueCachesCache["IsUsed"].isNull()) + cachesObject.isUsed = valueCachesCache["IsUsed"].asString() == "true"; + if(!valueCachesCache["LocalFilePath"].isNull()) + cachesObject.localFilePath = valueCachesCache["LocalFilePath"].asString(); + if(!valueCachesCache["RenewURL"].isNull()) + cachesObject.renewURL = valueCachesCache["RenewURL"].asString(); + if(!valueCachesCache["ExpiredTime"].isNull()) + cachesObject.expiredTime = std::stol(valueCachesCache["ExpiredTime"].asString()); + if(!valueCachesCache["ExpireStatus"].isNull()) + cachesObject.expireStatus = std::stoi(valueCachesCache["ExpireStatus"].asString()); + if(!valueCachesCache["PerformanceLevel"].isNull()) + cachesObject.performanceLevel = valueCachesCache["PerformanceLevel"].asString(); + if(!valueCachesCache["BuyURL"].isNull()) + cachesObject.buyURL = valueCachesCache["BuyURL"].asString(); + caches_.push_back(cachesObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribeGatewayCachesResult::getMessage()const +{ + return message_; +} + +std::vector DescribeGatewayCachesResult::getCaches()const +{ + return caches_; +} + +std::string DescribeGatewayCachesResult::getCode()const +{ + return code_; +} + +bool DescribeGatewayCachesResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DescribeGatewayCapacityLimitRequest.cc b/sgw/src/model/DescribeGatewayCapacityLimitRequest.cc new file mode 100644 index 000000000..3b37fa6c3 --- /dev/null +++ b/sgw/src/model/DescribeGatewayCapacityLimitRequest.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::Sgw::Model::DescribeGatewayCapacityLimitRequest; + +DescribeGatewayCapacityLimitRequest::DescribeGatewayCapacityLimitRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeGatewayCapacityLimit") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeGatewayCapacityLimitRequest::~DescribeGatewayCapacityLimitRequest() +{} + +long DescribeGatewayCapacityLimitRequest::getSizeInGB()const +{ + return sizeInGB_; +} + +void DescribeGatewayCapacityLimitRequest::setSizeInGB(long sizeInGB) +{ + sizeInGB_ = sizeInGB; + setParameter("SizeInGB", std::to_string(sizeInGB)); +} + +std::string DescribeGatewayCapacityLimitRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeGatewayCapacityLimitRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeGatewayCapacityLimitRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeGatewayCapacityLimitRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeGatewayCapacityLimitRequest::getGatewayId()const +{ + return gatewayId_; +} + +void DescribeGatewayCapacityLimitRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/DescribeGatewayCapacityLimitResult.cc b/sgw/src/model/DescribeGatewayCapacityLimitResult.cc new file mode 100644 index 000000000..3bdb9afe8 --- /dev/null +++ b/sgw/src/model/DescribeGatewayCapacityLimitResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeGatewayCapacityLimitResult::DescribeGatewayCapacityLimitResult() : + ServiceResult() +{} + +DescribeGatewayCapacityLimitResult::DescribeGatewayCapacityLimitResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGatewayCapacityLimitResult::~DescribeGatewayCapacityLimitResult() +{} + +void DescribeGatewayCapacityLimitResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["FileNumber"].isNull()) + fileNumber_ = std::stol(value["FileNumber"].asString()); + if(!value["FileSystemSizeInTB"].isNull()) + fileSystemSizeInTB_ = std::stol(value["FileSystemSizeInTB"].asString()); + if(!value["IsMetadataSeparate"].isNull()) + isMetadataSeparate_ = value["IsMetadataSeparate"].asString() == "true"; + +} + +long DescribeGatewayCapacityLimitResult::getFileSystemSizeInTB()const +{ + return fileSystemSizeInTB_; +} + +std::string DescribeGatewayCapacityLimitResult::getMessage()const +{ + return message_; +} + +std::string DescribeGatewayCapacityLimitResult::getCode()const +{ + return code_; +} + +long DescribeGatewayCapacityLimitResult::getFileNumber()const +{ + return fileNumber_; +} + +bool DescribeGatewayCapacityLimitResult::getIsMetadataSeparate()const +{ + return isMetadataSeparate_; +} + +bool DescribeGatewayCapacityLimitResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DescribeGatewayCategoriesRequest.cc b/sgw/src/model/DescribeGatewayCategoriesRequest.cc new file mode 100644 index 000000000..3b5e81bc5 --- /dev/null +++ b/sgw/src/model/DescribeGatewayCategoriesRequest.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::Sgw::Model::DescribeGatewayCategoriesRequest; + +DescribeGatewayCategoriesRequest::DescribeGatewayCategoriesRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeGatewayCategories") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeGatewayCategoriesRequest::~DescribeGatewayCategoriesRequest() +{} + +std::string DescribeGatewayCategoriesRequest::getGatewayLocation()const +{ + return gatewayLocation_; +} + +void DescribeGatewayCategoriesRequest::setGatewayLocation(const std::string& gatewayLocation) +{ + gatewayLocation_ = gatewayLocation; + setParameter("GatewayLocation", gatewayLocation); +} + +std::string DescribeGatewayCategoriesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeGatewayCategoriesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeGatewayCategoriesRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeGatewayCategoriesRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + diff --git a/sgw/src/model/DescribeGatewayCategoriesResult.cc b/sgw/src/model/DescribeGatewayCategoriesResult.cc new file mode 100644 index 000000000..2aa924c5d --- /dev/null +++ b/sgw/src/model/DescribeGatewayCategoriesResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeGatewayCategoriesResult::DescribeGatewayCategoriesResult() : + ServiceResult() +{} + +DescribeGatewayCategoriesResult::DescribeGatewayCategoriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGatewayCategoriesResult::~DescribeGatewayCategoriesResult() +{} + +void DescribeGatewayCategoriesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Categories"].isNull()) + categories_ = value["Categories"].asString(); + +} + +std::string DescribeGatewayCategoriesResult::getMessage()const +{ + return message_; +} + +std::string DescribeGatewayCategoriesResult::getCategories()const +{ + return categories_; +} + +std::string DescribeGatewayCategoriesResult::getCode()const +{ + return code_; +} + +bool DescribeGatewayCategoriesResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DescribeGatewayClassesRequest.cc b/sgw/src/model/DescribeGatewayClassesRequest.cc new file mode 100644 index 000000000..9fe9596b3 --- /dev/null +++ b/sgw/src/model/DescribeGatewayClassesRequest.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 + +using AlibabaCloud::Sgw::Model::DescribeGatewayClassesRequest; + +DescribeGatewayClassesRequest::DescribeGatewayClassesRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeGatewayClasses") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeGatewayClassesRequest::~DescribeGatewayClassesRequest() +{} + +std::string DescribeGatewayClassesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeGatewayClassesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeGatewayClassesRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeGatewayClassesRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + diff --git a/sgw/src/model/DescribeGatewayClassesResult.cc b/sgw/src/model/DescribeGatewayClassesResult.cc new file mode 100644 index 000000000..3278e2e05 --- /dev/null +++ b/sgw/src/model/DescribeGatewayClassesResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeGatewayClassesResult::DescribeGatewayClassesResult() : + ServiceResult() +{} + +DescribeGatewayClassesResult::DescribeGatewayClassesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGatewayClassesResult::~DescribeGatewayClassesResult() +{} + +void DescribeGatewayClassesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Classes"].isNull()) + classes_ = value["Classes"].asString(); + +} + +std::string DescribeGatewayClassesResult::getMessage()const +{ + return message_; +} + +std::string DescribeGatewayClassesResult::getCode()const +{ + return code_; +} + +bool DescribeGatewayClassesResult::getSuccess()const +{ + return success_; +} + +std::string DescribeGatewayClassesResult::getClasses()const +{ + return classes_; +} + diff --git a/sgw/src/model/DescribeGatewayCredentialRequest.cc b/sgw/src/model/DescribeGatewayCredentialRequest.cc new file mode 100644 index 000000000..15ee21263 --- /dev/null +++ b/sgw/src/model/DescribeGatewayCredentialRequest.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::Sgw::Model::DescribeGatewayCredentialRequest; + +DescribeGatewayCredentialRequest::DescribeGatewayCredentialRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeGatewayCredential") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeGatewayCredentialRequest::~DescribeGatewayCredentialRequest() +{} + +std::string DescribeGatewayCredentialRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeGatewayCredentialRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeGatewayCredentialRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeGatewayCredentialRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeGatewayCredentialRequest::getGatewayId()const +{ + return gatewayId_; +} + +void DescribeGatewayCredentialRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/DescribeGatewayCredentialResult.cc b/sgw/src/model/DescribeGatewayCredentialResult.cc new file mode 100644 index 000000000..3074c54ab --- /dev/null +++ b/sgw/src/model/DescribeGatewayCredentialResult.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeGatewayCredentialResult::DescribeGatewayCredentialResult() : + ServiceResult() +{} + +DescribeGatewayCredentialResult::DescribeGatewayCredentialResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGatewayCredentialResult::~DescribeGatewayCredentialResult() +{} + +void DescribeGatewayCredentialResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["EcsIp"].isNull()) + ecsIp_ = value["EcsIp"].asString(); + if(!value["EcsPassword"].isNull()) + ecsPassword_ = value["EcsPassword"].asString(); + if(!value["ConsoleUsername"].isNull()) + consoleUsername_ = value["ConsoleUsername"].asString(); + if(!value["ConsolePassword"].isNull()) + consolePassword_ = value["ConsolePassword"].asString(); + if(!value["VpcId"].isNull()) + vpcId_ = value["VpcId"].asString(); + if(!value["VSwitchId"].isNull()) + vSwitchId_ = value["VSwitchId"].asString(); + +} + +std::string DescribeGatewayCredentialResult::getMessage()const +{ + return message_; +} + +std::string DescribeGatewayCredentialResult::getVpcId()const +{ + return vpcId_; +} + +std::string DescribeGatewayCredentialResult::getEcsIp()const +{ + return ecsIp_; +} + +std::string DescribeGatewayCredentialResult::getConsoleUsername()const +{ + return consoleUsername_; +} + +std::string DescribeGatewayCredentialResult::getVSwitchId()const +{ + return vSwitchId_; +} + +std::string DescribeGatewayCredentialResult::getConsolePassword()const +{ + return consolePassword_; +} + +std::string DescribeGatewayCredentialResult::getEcsPassword()const +{ + return ecsPassword_; +} + +std::string DescribeGatewayCredentialResult::getCode()const +{ + return code_; +} + +bool DescribeGatewayCredentialResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DescribeGatewayDNSRequest.cc b/sgw/src/model/DescribeGatewayDNSRequest.cc new file mode 100644 index 000000000..b99881014 --- /dev/null +++ b/sgw/src/model/DescribeGatewayDNSRequest.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::Sgw::Model::DescribeGatewayDNSRequest; + +DescribeGatewayDNSRequest::DescribeGatewayDNSRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeGatewayDNS") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeGatewayDNSRequest::~DescribeGatewayDNSRequest() +{} + +std::string DescribeGatewayDNSRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeGatewayDNSRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeGatewayDNSRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeGatewayDNSRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeGatewayDNSRequest::getGatewayId()const +{ + return gatewayId_; +} + +void DescribeGatewayDNSRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/DescribeGatewayDNSResult.cc b/sgw/src/model/DescribeGatewayDNSResult.cc new file mode 100644 index 000000000..984c9dd76 --- /dev/null +++ b/sgw/src/model/DescribeGatewayDNSResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeGatewayDNSResult::DescribeGatewayDNSResult() : + ServiceResult() +{} + +DescribeGatewayDNSResult::DescribeGatewayDNSResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGatewayDNSResult::~DescribeGatewayDNSResult() +{} + +void DescribeGatewayDNSResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DnsServer"].isNull()) + dnsServer_ = value["DnsServer"].asString(); + +} + +std::string DescribeGatewayDNSResult::getMessage()const +{ + return message_; +} + +std::string DescribeGatewayDNSResult::getCode()const +{ + return code_; +} + +bool DescribeGatewayDNSResult::getSuccess()const +{ + return success_; +} + +std::string DescribeGatewayDNSResult::getDnsServer()const +{ + return dnsServer_; +} + diff --git a/sgw/src/model/DescribeGatewayFileSharesRequest.cc b/sgw/src/model/DescribeGatewayFileSharesRequest.cc new file mode 100644 index 000000000..f312c0ae0 --- /dev/null +++ b/sgw/src/model/DescribeGatewayFileSharesRequest.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::Sgw::Model::DescribeGatewayFileSharesRequest; + +DescribeGatewayFileSharesRequest::DescribeGatewayFileSharesRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeGatewayFileShares") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeGatewayFileSharesRequest::~DescribeGatewayFileSharesRequest() +{} + +bool DescribeGatewayFileSharesRequest::getRefresh()const +{ + return refresh_; +} + +void DescribeGatewayFileSharesRequest::setRefresh(bool refresh) +{ + refresh_ = refresh; + setParameter("Refresh", refresh ? "true" : "false"); +} + +std::string DescribeGatewayFileSharesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeGatewayFileSharesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeGatewayFileSharesRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeGatewayFileSharesRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeGatewayFileSharesRequest::getIndexId()const +{ + return indexId_; +} + +void DescribeGatewayFileSharesRequest::setIndexId(const std::string& indexId) +{ + indexId_ = indexId; + setParameter("IndexId", indexId); +} + +std::string DescribeGatewayFileSharesRequest::getGatewayId()const +{ + return gatewayId_; +} + +void DescribeGatewayFileSharesRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/DescribeGatewayFileSharesResult.cc b/sgw/src/model/DescribeGatewayFileSharesResult.cc new file mode 100644 index 000000000..59e2bb5ff --- /dev/null +++ b/sgw/src/model/DescribeGatewayFileSharesResult.cc @@ -0,0 +1,206 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeGatewayFileSharesResult::DescribeGatewayFileSharesResult() : + ServiceResult() +{} + +DescribeGatewayFileSharesResult::DescribeGatewayFileSharesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGatewayFileSharesResult::~DescribeGatewayFileSharesResult() +{} + +void DescribeGatewayFileSharesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allFileSharesNode = value["FileShares"]["FileShare"]; + for (auto valueFileSharesFileShare : allFileSharesNode) + { + FileShare fileSharesObject; + if(!valueFileSharesFileShare["Name"].isNull()) + fileSharesObject.name = valueFileSharesFileShare["Name"].asString(); + if(!valueFileSharesFileShare["DiskId"].isNull()) + fileSharesObject.diskId = valueFileSharesFileShare["DiskId"].asString(); + if(!valueFileSharesFileShare["DiskType"].isNull()) + fileSharesObject.diskType = valueFileSharesFileShare["DiskType"].asString(); + if(!valueFileSharesFileShare["Protocol"].isNull()) + fileSharesObject.protocol = valueFileSharesFileShare["Protocol"].asString(); + if(!valueFileSharesFileShare["Size"].isNull()) + fileSharesObject.size = std::stol(valueFileSharesFileShare["Size"].asString()); + if(!valueFileSharesFileShare["Enabled"].isNull()) + fileSharesObject.enabled = valueFileSharesFileShare["Enabled"].asString() == "true"; + if(!valueFileSharesFileShare["State"].isNull()) + fileSharesObject.state = valueFileSharesFileShare["State"].asString(); + if(!valueFileSharesFileShare["TotalUpload"].isNull()) + fileSharesObject.totalUpload = std::stol(valueFileSharesFileShare["TotalUpload"].asString()); + if(!valueFileSharesFileShare["TotalDownload"].isNull()) + fileSharesObject.totalDownload = std::stol(valueFileSharesFileShare["TotalDownload"].asString()); + if(!valueFileSharesFileShare["OssBucketName"].isNull()) + fileSharesObject.ossBucketName = valueFileSharesFileShare["OssBucketName"].asString(); + if(!valueFileSharesFileShare["OssEndpoint"].isNull()) + fileSharesObject.ossEndpoint = valueFileSharesFileShare["OssEndpoint"].asString(); + if(!valueFileSharesFileShare["OssBucketSsl"].isNull()) + fileSharesObject.ossBucketSsl = valueFileSharesFileShare["OssBucketSsl"].asString() == "true"; + if(!valueFileSharesFileShare["LocalPath"].isNull()) + fileSharesObject.localPath = valueFileSharesFileShare["LocalPath"].asString(); + if(!valueFileSharesFileShare["CacheMode"].isNull()) + fileSharesObject.cacheMode = valueFileSharesFileShare["CacheMode"].asString(); + if(!valueFileSharesFileShare["Address"].isNull()) + fileSharesObject.address = valueFileSharesFileShare["Address"].asString(); + if(!valueFileSharesFileShare["SerialNumber"].isNull()) + fileSharesObject.serialNumber = valueFileSharesFileShare["SerialNumber"].asString(); + if(!valueFileSharesFileShare["IndexId"].isNull()) + fileSharesObject.indexId = valueFileSharesFileShare["IndexId"].asString(); + if(!valueFileSharesFileShare["RemoteSync"].isNull()) + fileSharesObject.remoteSync = valueFileSharesFileShare["RemoteSync"].asString() == "true"; + if(!valueFileSharesFileShare["PollingInterval"].isNull()) + fileSharesObject.pollingInterval = std::stoi(valueFileSharesFileShare["PollingInterval"].asString()); + if(!valueFileSharesFileShare["IgnoreDelete"].isNull()) + fileSharesObject.ignoreDelete = valueFileSharesFileShare["IgnoreDelete"].asString() == "true"; + if(!valueFileSharesFileShare["FeLimit"].isNull()) + fileSharesObject.feLimit = std::stoi(valueFileSharesFileShare["FeLimit"].asString()); + if(!valueFileSharesFileShare["BeLimit"].isNull()) + fileSharesObject.beLimit = std::stoi(valueFileSharesFileShare["BeLimit"].asString()); + if(!valueFileSharesFileShare["InPlace"].isNull()) + fileSharesObject.inPlace = valueFileSharesFileShare["InPlace"].asString() == "true"; + if(!valueFileSharesFileShare["Browsable"].isNull()) + fileSharesObject.browsable = valueFileSharesFileShare["Browsable"].asString() == "true"; + if(!valueFileSharesFileShare["Squash"].isNull()) + fileSharesObject.squash = valueFileSharesFileShare["Squash"].asString(); + if(!valueFileSharesFileShare["RwUserList"].isNull()) + fileSharesObject.rwUserList = valueFileSharesFileShare["RwUserList"].asString(); + if(!valueFileSharesFileShare["RoUserList"].isNull()) + fileSharesObject.roUserList = valueFileSharesFileShare["RoUserList"].asString(); + if(!valueFileSharesFileShare["RwClientList"].isNull()) + fileSharesObject.rwClientList = valueFileSharesFileShare["RwClientList"].asString(); + if(!valueFileSharesFileShare["RoClientList"].isNull()) + fileSharesObject.roClientList = valueFileSharesFileShare["RoClientList"].asString(); + if(!valueFileSharesFileShare["OssUsed"].isNull()) + fileSharesObject.ossUsed = std::stol(valueFileSharesFileShare["OssUsed"].asString()); + if(!valueFileSharesFileShare["Used"].isNull()) + fileSharesObject.used = std::stol(valueFileSharesFileShare["Used"].asString()); + if(!valueFileSharesFileShare["InRate"].isNull()) + fileSharesObject.inRate = std::stol(valueFileSharesFileShare["InRate"].asString()); + if(!valueFileSharesFileShare["OutRate"].isNull()) + fileSharesObject.outRate = std::stol(valueFileSharesFileShare["OutRate"].asString()); + if(!valueFileSharesFileShare["LagPeriod"].isNull()) + fileSharesObject.lagPeriod = std::stol(valueFileSharesFileShare["LagPeriod"].asString()); + if(!valueFileSharesFileShare["DirectIO"].isNull()) + fileSharesObject.directIO = valueFileSharesFileShare["DirectIO"].asString() == "true"; + if(!valueFileSharesFileShare["NfsFullPath"].isNull()) + fileSharesObject.nfsFullPath = valueFileSharesFileShare["NfsFullPath"].asString(); + if(!valueFileSharesFileShare["FileNumLimit"].isNull()) + fileSharesObject.fileNumLimit = std::stol(valueFileSharesFileShare["FileNumLimit"].asString()); + if(!valueFileSharesFileShare["FsSizeLimit"].isNull()) + fileSharesObject.fsSizeLimit = std::stol(valueFileSharesFileShare["FsSizeLimit"].asString()); + if(!valueFileSharesFileShare["ServerSideEncryption"].isNull()) + fileSharesObject.serverSideEncryption = valueFileSharesFileShare["ServerSideEncryption"].asString() == "true"; + if(!valueFileSharesFileShare["ServerSideCmk"].isNull()) + fileSharesObject.serverSideCmk = valueFileSharesFileShare["ServerSideCmk"].asString(); + if(!valueFileSharesFileShare["ClientSideEncryption"].isNull()) + fileSharesObject.clientSideEncryption = valueFileSharesFileShare["ClientSideEncryption"].asString() == "true"; + if(!valueFileSharesFileShare["ClientSideCmk"].isNull()) + fileSharesObject.clientSideCmk = valueFileSharesFileShare["ClientSideCmk"].asString(); + if(!valueFileSharesFileShare["KmsRotatePeriod"].isNull()) + fileSharesObject.kmsRotatePeriod = valueFileSharesFileShare["KmsRotatePeriod"].asString(); + if(!valueFileSharesFileShare["OssHealth"].isNull()) + fileSharesObject.ossHealth = valueFileSharesFileShare["OssHealth"].asString(); + if(!valueFileSharesFileShare["PathPrefix"].isNull()) + fileSharesObject.pathPrefix = valueFileSharesFileShare["PathPrefix"].asString(); + if(!valueFileSharesFileShare["FastReclaim"].isNull()) + fileSharesObject.fastReclaim = valueFileSharesFileShare["FastReclaim"].asString() == "true"; + if(!valueFileSharesFileShare["SupportArchive"].isNull()) + fileSharesObject.supportArchive = valueFileSharesFileShare["SupportArchive"].asString() == "true"; + if(!valueFileSharesFileShare["RemainingMetaSpace"].isNull()) + fileSharesObject.remainingMetaSpace = std::stol(valueFileSharesFileShare["RemainingMetaSpace"].asString()); + if(!valueFileSharesFileShare["MnsHealth"].isNull()) + fileSharesObject.mnsHealth = valueFileSharesFileShare["MnsHealth"].asString(); + if(!valueFileSharesFileShare["ExpressSyncId"].isNull()) + fileSharesObject.expressSyncId = valueFileSharesFileShare["ExpressSyncId"].asString(); + if(!valueFileSharesFileShare["WindowsAcl"].isNull()) + fileSharesObject.windowsAcl = valueFileSharesFileShare["WindowsAcl"].asString() == "true"; + if(!valueFileSharesFileShare["AccessBasedEnumeration"].isNull()) + fileSharesObject.accessBasedEnumeration = valueFileSharesFileShare["AccessBasedEnumeration"].asString() == "true"; + if(!valueFileSharesFileShare["NfsV4Optimization"].isNull()) + fileSharesObject.nfsV4Optimization = valueFileSharesFileShare["NfsV4Optimization"].asString() == "true"; + if(!valueFileSharesFileShare["BucketsStub"].isNull()) + fileSharesObject.bucketsStub = valueFileSharesFileShare["BucketsStub"].asString() == "true"; + if(!valueFileSharesFileShare["BucketInfos"].isNull()) + fileSharesObject.bucketInfos = valueFileSharesFileShare["BucketInfos"].asString(); + if(!valueFileSharesFileShare["ObsoleteBuckets"].isNull()) + fileSharesObject.obsoleteBuckets = valueFileSharesFileShare["ObsoleteBuckets"].asString(); + if(!valueFileSharesFileShare["TransferAcceleration"].isNull()) + fileSharesObject.transferAcceleration = valueFileSharesFileShare["TransferAcceleration"].asString() == "true"; + if(!valueFileSharesFileShare["DownloadLimit"].isNull()) + fileSharesObject.downloadLimit = std::stoi(valueFileSharesFileShare["DownloadLimit"].asString()); + if(!valueFileSharesFileShare["RemoteSyncDownload"].isNull()) + fileSharesObject.remoteSyncDownload = valueFileSharesFileShare["RemoteSyncDownload"].asString() == "true"; + if(!valueFileSharesFileShare["PartialSyncPaths"].isNull()) + fileSharesObject.partialSyncPaths = valueFileSharesFileShare["PartialSyncPaths"].asString(); + if(!valueFileSharesFileShare["SyncProgress"].isNull()) + fileSharesObject.syncProgress = std::stoi(valueFileSharesFileShare["SyncProgress"].asString()); + if(!valueFileSharesFileShare["UploadQueue"].isNull()) + fileSharesObject.uploadQueue = std::stol(valueFileSharesFileShare["UploadQueue"].asString()); + if(!valueFileSharesFileShare["DownloadQueue"].isNull()) + fileSharesObject.downloadQueue = std::stol(valueFileSharesFileShare["DownloadQueue"].asString()); + if(!valueFileSharesFileShare["DownloadRate"].isNull()) + fileSharesObject.downloadRate = std::stol(valueFileSharesFileShare["DownloadRate"].asString()); + if(!valueFileSharesFileShare["ActiveMessages"].isNull()) + fileSharesObject.activeMessages = std::stol(valueFileSharesFileShare["ActiveMessages"].asString()); + fileShares_.push_back(fileSharesObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::vector DescribeGatewayFileSharesResult::getFileShares()const +{ + return fileShares_; +} + +std::string DescribeGatewayFileSharesResult::getMessage()const +{ + return message_; +} + +std::string DescribeGatewayFileSharesResult::getCode()const +{ + return code_; +} + +bool DescribeGatewayFileSharesResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DescribeGatewayFileStatusRequest.cc b/sgw/src/model/DescribeGatewayFileStatusRequest.cc new file mode 100644 index 000000000..1ef8740c6 --- /dev/null +++ b/sgw/src/model/DescribeGatewayFileStatusRequest.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::Sgw::Model::DescribeGatewayFileStatusRequest; + +DescribeGatewayFileStatusRequest::DescribeGatewayFileStatusRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeGatewayFileStatus") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeGatewayFileStatusRequest::~DescribeGatewayFileStatusRequest() +{} + +std::string DescribeGatewayFileStatusRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeGatewayFileStatusRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeGatewayFileStatusRequest::getFilePath()const +{ + return filePath_; +} + +void DescribeGatewayFileStatusRequest::setFilePath(const std::string& filePath) +{ + filePath_ = filePath; + setParameter("FilePath", filePath); +} + +std::string DescribeGatewayFileStatusRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeGatewayFileStatusRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeGatewayFileStatusRequest::getIndexId()const +{ + return indexId_; +} + +void DescribeGatewayFileStatusRequest::setIndexId(const std::string& indexId) +{ + indexId_ = indexId; + setParameter("IndexId", indexId); +} + +std::string DescribeGatewayFileStatusRequest::getGatewayId()const +{ + return gatewayId_; +} + +void DescribeGatewayFileStatusRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/DescribeGatewayFileStatusResult.cc b/sgw/src/model/DescribeGatewayFileStatusResult.cc new file mode 100644 index 000000000..cfad2f1cd --- /dev/null +++ b/sgw/src/model/DescribeGatewayFileStatusResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeGatewayFileStatusResult::DescribeGatewayFileStatusResult() : + ServiceResult() +{} + +DescribeGatewayFileStatusResult::DescribeGatewayFileStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGatewayFileStatusResult::~DescribeGatewayFileStatusResult() +{} + +void DescribeGatewayFileStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + +} + +std::string DescribeGatewayFileStatusResult::getStatus()const +{ + return status_; +} + +std::string DescribeGatewayFileStatusResult::getMessage()const +{ + return message_; +} + +std::string DescribeGatewayFileStatusResult::getCode()const +{ + return code_; +} + +bool DescribeGatewayFileStatusResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DescribeGatewayImagesRequest.cc b/sgw/src/model/DescribeGatewayImagesRequest.cc new file mode 100644 index 000000000..3769ef6fc --- /dev/null +++ b/sgw/src/model/DescribeGatewayImagesRequest.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::Sgw::Model::DescribeGatewayImagesRequest; + +DescribeGatewayImagesRequest::DescribeGatewayImagesRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeGatewayImages") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeGatewayImagesRequest::~DescribeGatewayImagesRequest() +{} + +std::string DescribeGatewayImagesRequest::getType()const +{ + return type_; +} + +void DescribeGatewayImagesRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + +std::string DescribeGatewayImagesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeGatewayImagesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeGatewayImagesRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeGatewayImagesRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeGatewayImagesRequest::getCategory()const +{ + return category_; +} + +void DescribeGatewayImagesRequest::setCategory(const std::string& category) +{ + category_ = category; + setParameter("Category", category); +} + diff --git a/sgw/src/model/DescribeGatewayImagesResult.cc b/sgw/src/model/DescribeGatewayImagesResult.cc new file mode 100644 index 000000000..5c37e920e --- /dev/null +++ b/sgw/src/model/DescribeGatewayImagesResult.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeGatewayImagesResult::DescribeGatewayImagesResult() : + ServiceResult() +{} + +DescribeGatewayImagesResult::DescribeGatewayImagesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGatewayImagesResult::~DescribeGatewayImagesResult() +{} + +void DescribeGatewayImagesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allImagesNode = value["Images"]["Image"]; + for (auto valueImagesImage : allImagesNode) + { + Image imagesObject; + if(!valueImagesImage["Name"].isNull()) + imagesObject.name = valueImagesImage["Name"].asString(); + if(!valueImagesImage["Description"].isNull()) + imagesObject.description = valueImagesImage["Description"].asString(); + if(!valueImagesImage["Size"].isNull()) + imagesObject.size = std::stol(valueImagesImage["Size"].asString()); + if(!valueImagesImage["ModifiedDate"].isNull()) + imagesObject.modifiedDate = valueImagesImage["ModifiedDate"].asString(); + if(!valueImagesImage["Version"].isNull()) + imagesObject.version = valueImagesImage["Version"].asString(); + if(!valueImagesImage["Title"].isNull()) + imagesObject.title = valueImagesImage["Title"].asString(); + if(!valueImagesImage["Type"].isNull()) + imagesObject.type = valueImagesImage["Type"].asString(); + if(!valueImagesImage["MD5"].isNull()) + imagesObject.mD5 = valueImagesImage["MD5"].asString(); + if(!valueImagesImage["Url"].isNull()) + imagesObject.url = valueImagesImage["Url"].asString(); + images_.push_back(imagesObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribeGatewayImagesResult::getMessage()const +{ + return message_; +} + +std::vector DescribeGatewayImagesResult::getImages()const +{ + return images_; +} + +std::string DescribeGatewayImagesResult::getCode()const +{ + return code_; +} + +bool DescribeGatewayImagesResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DescribeGatewayInfoRequest.cc b/sgw/src/model/DescribeGatewayInfoRequest.cc new file mode 100644 index 000000000..10209de3f --- /dev/null +++ b/sgw/src/model/DescribeGatewayInfoRequest.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::Sgw::Model::DescribeGatewayInfoRequest; + +DescribeGatewayInfoRequest::DescribeGatewayInfoRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeGatewayInfo") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeGatewayInfoRequest::~DescribeGatewayInfoRequest() +{} + +std::string DescribeGatewayInfoRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeGatewayInfoRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeGatewayInfoRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeGatewayInfoRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeGatewayInfoRequest::getGatewayId()const +{ + return gatewayId_; +} + +void DescribeGatewayInfoRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/DescribeGatewayInfoResult.cc b/sgw/src/model/DescribeGatewayInfoResult.cc new file mode 100644 index 000000000..2c138fd86 --- /dev/null +++ b/sgw/src/model/DescribeGatewayInfoResult.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeGatewayInfoResult::DescribeGatewayInfoResult() : + ServiceResult() +{} + +DescribeGatewayInfoResult::DescribeGatewayInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGatewayInfoResult::~DescribeGatewayInfoResult() +{} + +void DescribeGatewayInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allGatewayInfosNode = value["GatewayInfos"]["GatewayInfo"]; + for (auto valueGatewayInfosGatewayInfo : allGatewayInfosNode) + { + GatewayInfo gatewayInfosObject; + if(!valueGatewayInfosGatewayInfo["Time"].isNull()) + gatewayInfosObject.time = std::stol(valueGatewayInfosGatewayInfo["Time"].asString()); + if(!valueGatewayInfosGatewayInfo["Info"].isNull()) + gatewayInfosObject.info = valueGatewayInfosGatewayInfo["Info"].asString(); + gatewayInfos_.push_back(gatewayInfosObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribeGatewayInfoResult::getMessage()const +{ + return message_; +} + +std::string DescribeGatewayInfoResult::getCode()const +{ + return code_; +} + +bool DescribeGatewayInfoResult::getSuccess()const +{ + return success_; +} + +std::vector DescribeGatewayInfoResult::getGatewayInfos()const +{ + return gatewayInfos_; +} + diff --git a/sgw/src/model/DescribeGatewayLDAPInfoRequest.cc b/sgw/src/model/DescribeGatewayLDAPInfoRequest.cc new file mode 100644 index 000000000..46a187a13 --- /dev/null +++ b/sgw/src/model/DescribeGatewayLDAPInfoRequest.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::Sgw::Model::DescribeGatewayLDAPInfoRequest; + +DescribeGatewayLDAPInfoRequest::DescribeGatewayLDAPInfoRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeGatewayLDAPInfo") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeGatewayLDAPInfoRequest::~DescribeGatewayLDAPInfoRequest() +{} + +std::string DescribeGatewayLDAPInfoRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeGatewayLDAPInfoRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeGatewayLDAPInfoRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeGatewayLDAPInfoRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeGatewayLDAPInfoRequest::getGatewayId()const +{ + return gatewayId_; +} + +void DescribeGatewayLDAPInfoRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/DescribeGatewayLDAPInfoResult.cc b/sgw/src/model/DescribeGatewayLDAPInfoResult.cc new file mode 100644 index 000000000..024dc90c5 --- /dev/null +++ b/sgw/src/model/DescribeGatewayLDAPInfoResult.cc @@ -0,0 +1,100 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeGatewayLDAPInfoResult::DescribeGatewayLDAPInfoResult() : + ServiceResult() +{} + +DescribeGatewayLDAPInfoResult::DescribeGatewayLDAPInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGatewayLDAPInfoResult::~DescribeGatewayLDAPInfoResult() +{} + +void DescribeGatewayLDAPInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["BaseDN"].isNull()) + baseDN_ = value["BaseDN"].asString(); + if(!value["RootDN"].isNull()) + rootDN_ = value["RootDN"].asString(); + if(!value["ServerIp"].isNull()) + serverIp_ = value["ServerIp"].asString(); + if(!value["IsTls"].isNull()) + isTls_ = value["IsTls"].asString() == "true"; + if(!value["IsEnabled"].isNull()) + isEnabled_ = value["IsEnabled"].asString() == "true"; + +} + +std::string DescribeGatewayLDAPInfoResult::getRootDN()const +{ + return rootDN_; +} + +std::string DescribeGatewayLDAPInfoResult::getMessage()const +{ + return message_; +} + +bool DescribeGatewayLDAPInfoResult::getIsEnabled()const +{ + return isEnabled_; +} + +std::string DescribeGatewayLDAPInfoResult::getBaseDN()const +{ + return baseDN_; +} + +std::string DescribeGatewayLDAPInfoResult::getServerIp()const +{ + return serverIp_; +} + +bool DescribeGatewayLDAPInfoResult::getIsTls()const +{ + return isTls_; +} + +std::string DescribeGatewayLDAPInfoResult::getCode()const +{ + return code_; +} + +bool DescribeGatewayLDAPInfoResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DescribeGatewayLocationsRequest.cc b/sgw/src/model/DescribeGatewayLocationsRequest.cc new file mode 100644 index 000000000..7e488c4ac --- /dev/null +++ b/sgw/src/model/DescribeGatewayLocationsRequest.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 + +using AlibabaCloud::Sgw::Model::DescribeGatewayLocationsRequest; + +DescribeGatewayLocationsRequest::DescribeGatewayLocationsRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeGatewayLocations") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeGatewayLocationsRequest::~DescribeGatewayLocationsRequest() +{} + +std::string DescribeGatewayLocationsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeGatewayLocationsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeGatewayLocationsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeGatewayLocationsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + diff --git a/sgw/src/model/DescribeGatewayLocationsResult.cc b/sgw/src/model/DescribeGatewayLocationsResult.cc new file mode 100644 index 000000000..bc0321cbc --- /dev/null +++ b/sgw/src/model/DescribeGatewayLocationsResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeGatewayLocationsResult::DescribeGatewayLocationsResult() : + ServiceResult() +{} + +DescribeGatewayLocationsResult::DescribeGatewayLocationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGatewayLocationsResult::~DescribeGatewayLocationsResult() +{} + +void DescribeGatewayLocationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Locations"].isNull()) + locations_ = value["Locations"].asString(); + +} + +std::string DescribeGatewayLocationsResult::getMessage()const +{ + return message_; +} + +std::string DescribeGatewayLocationsResult::getLocations()const +{ + return locations_; +} + +std::string DescribeGatewayLocationsResult::getCode()const +{ + return code_; +} + +bool DescribeGatewayLocationsResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DescribeGatewayLoggingRequest.cc b/sgw/src/model/DescribeGatewayLoggingRequest.cc new file mode 100644 index 000000000..84db3207a --- /dev/null +++ b/sgw/src/model/DescribeGatewayLoggingRequest.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::Sgw::Model::DescribeGatewayLoggingRequest; + +DescribeGatewayLoggingRequest::DescribeGatewayLoggingRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeGatewayLogging") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeGatewayLoggingRequest::~DescribeGatewayLoggingRequest() +{} + +std::string DescribeGatewayLoggingRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeGatewayLoggingRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeGatewayLoggingRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeGatewayLoggingRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeGatewayLoggingRequest::getGatewayId()const +{ + return gatewayId_; +} + +void DescribeGatewayLoggingRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/DescribeGatewayLoggingResult.cc b/sgw/src/model/DescribeGatewayLoggingResult.cc new file mode 100644 index 000000000..71e4f409a --- /dev/null +++ b/sgw/src/model/DescribeGatewayLoggingResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeGatewayLoggingResult::DescribeGatewayLoggingResult() : + ServiceResult() +{} + +DescribeGatewayLoggingResult::DescribeGatewayLoggingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGatewayLoggingResult::~DescribeGatewayLoggingResult() +{} + +void DescribeGatewayLoggingResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["GatewayLoggingStatus"].isNull()) + gatewayLoggingStatus_ = value["GatewayLoggingStatus"].asString(); + if(!value["SlsProject"].isNull()) + slsProject_ = value["SlsProject"].asString(); + if(!value["SlsLogstore"].isNull()) + slsLogstore_ = value["SlsLogstore"].asString(); + +} + +std::string DescribeGatewayLoggingResult::getSlsProject()const +{ + return slsProject_; +} + +std::string DescribeGatewayLoggingResult::getMessage()const +{ + return message_; +} + +std::string DescribeGatewayLoggingResult::getGatewayLoggingStatus()const +{ + return gatewayLoggingStatus_; +} + +std::string DescribeGatewayLoggingResult::getCode()const +{ + return code_; +} + +std::string DescribeGatewayLoggingResult::getSlsLogstore()const +{ + return slsLogstore_; +} + +bool DescribeGatewayLoggingResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DescribeGatewayLogsRequest.cc b/sgw/src/model/DescribeGatewayLogsRequest.cc new file mode 100644 index 000000000..32c96e4da --- /dev/null +++ b/sgw/src/model/DescribeGatewayLogsRequest.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::Sgw::Model::DescribeGatewayLogsRequest; + +DescribeGatewayLogsRequest::DescribeGatewayLogsRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeGatewayLogs") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeGatewayLogsRequest::~DescribeGatewayLogsRequest() +{} + +std::string DescribeGatewayLogsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeGatewayLogsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeGatewayLogsRequest::getLogFilePath()const +{ + return logFilePath_; +} + +void DescribeGatewayLogsRequest::setLogFilePath(const std::string& logFilePath) +{ + logFilePath_ = logFilePath; + setParameter("LogFilePath", logFilePath); +} + +std::string DescribeGatewayLogsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeGatewayLogsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeGatewayLogsRequest::getGatewayId()const +{ + return gatewayId_; +} + +void DescribeGatewayLogsRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/DescribeGatewayLogsResult.cc b/sgw/src/model/DescribeGatewayLogsResult.cc new file mode 100644 index 000000000..89b1fbece --- /dev/null +++ b/sgw/src/model/DescribeGatewayLogsResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeGatewayLogsResult::DescribeGatewayLogsResult() : + ServiceResult() +{} + +DescribeGatewayLogsResult::DescribeGatewayLogsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGatewayLogsResult::~DescribeGatewayLogsResult() +{} + +void DescribeGatewayLogsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["LogFilePaths"].isNull()) + logFilePaths_ = value["LogFilePaths"].asString(); + +} + +std::string DescribeGatewayLogsResult::getMessage()const +{ + return message_; +} + +std::string DescribeGatewayLogsResult::getLogFilePaths()const +{ + return logFilePaths_; +} + +std::string DescribeGatewayLogsResult::getCode()const +{ + return code_; +} + +bool DescribeGatewayLogsResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DescribeGatewayModificationClassesRequest.cc b/sgw/src/model/DescribeGatewayModificationClassesRequest.cc new file mode 100644 index 000000000..6926cf422 --- /dev/null +++ b/sgw/src/model/DescribeGatewayModificationClassesRequest.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::Sgw::Model::DescribeGatewayModificationClassesRequest; + +DescribeGatewayModificationClassesRequest::DescribeGatewayModificationClassesRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeGatewayModificationClasses") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeGatewayModificationClassesRequest::~DescribeGatewayModificationClassesRequest() +{} + +std::string DescribeGatewayModificationClassesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeGatewayModificationClassesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeGatewayModificationClassesRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeGatewayModificationClassesRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeGatewayModificationClassesRequest::getGatewayId()const +{ + return gatewayId_; +} + +void DescribeGatewayModificationClassesRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/DescribeGatewayModificationClassesResult.cc b/sgw/src/model/DescribeGatewayModificationClassesResult.cc new file mode 100644 index 000000000..c2a05d0f5 --- /dev/null +++ b/sgw/src/model/DescribeGatewayModificationClassesResult.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeGatewayModificationClassesResult::DescribeGatewayModificationClassesResult() : + ServiceResult() +{} + +DescribeGatewayModificationClassesResult::DescribeGatewayModificationClassesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGatewayModificationClassesResult::~DescribeGatewayModificationClassesResult() +{} + +void DescribeGatewayModificationClassesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTargetGatewayClassesNode = value["TargetGatewayClasses"]["TargetGatewayClass"]; + for (auto valueTargetGatewayClassesTargetGatewayClass : allTargetGatewayClassesNode) + { + TargetGatewayClass targetGatewayClassesObject; + if(!valueTargetGatewayClassesTargetGatewayClass["GatewayClass"].isNull()) + targetGatewayClassesObject.gatewayClass = valueTargetGatewayClassesTargetGatewayClass["GatewayClass"].asString(); + if(!valueTargetGatewayClassesTargetGatewayClass["IsAvailable"].isNull()) + targetGatewayClassesObject.isAvailable = valueTargetGatewayClassesTargetGatewayClass["IsAvailable"].asString() == "true"; + targetGatewayClasses_.push_back(targetGatewayClassesObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribeGatewayModificationClassesResult::getMessage()const +{ + return message_; +} + +std::string DescribeGatewayModificationClassesResult::getCode()const +{ + return code_; +} + +bool DescribeGatewayModificationClassesResult::getSuccess()const +{ + return success_; +} + +std::vector DescribeGatewayModificationClassesResult::getTargetGatewayClasses()const +{ + return targetGatewayClasses_; +} + diff --git a/sgw/src/model/DescribeGatewayRequest.cc b/sgw/src/model/DescribeGatewayRequest.cc new file mode 100644 index 000000000..4a3e27c3e --- /dev/null +++ b/sgw/src/model/DescribeGatewayRequest.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::Sgw::Model::DescribeGatewayRequest; + +DescribeGatewayRequest::DescribeGatewayRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeGateway") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeGatewayRequest::~DescribeGatewayRequest() +{} + +std::string DescribeGatewayRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeGatewayRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeGatewayRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeGatewayRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeGatewayRequest::getGatewayId()const +{ + return gatewayId_; +} + +void DescribeGatewayRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/DescribeGatewayResult.cc b/sgw/src/model/DescribeGatewayResult.cc new file mode 100644 index 000000000..fbfed469e --- /dev/null +++ b/sgw/src/model/DescribeGatewayResult.cc @@ -0,0 +1,318 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeGatewayResult::DescribeGatewayResult() : + ServiceResult() +{} + +DescribeGatewayResult::DescribeGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGatewayResult::~DescribeGatewayResult() +{} + +void DescribeGatewayResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allElasticNodes = value["ElasticNodes"]["ElasticNode"]; + for (const auto &item : allElasticNodes) + elasticNodes_.push_back(item.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["GatewayId"].isNull()) + gatewayId_ = value["GatewayId"].asString(); + if(!value["StorageBundleId"].isNull()) + storageBundleId_ = value["StorageBundleId"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["Location"].isNull()) + location_ = value["Location"].asString(); + if(!value["Category"].isNull()) + category_ = value["Category"].asString(); + if(!value["Type"].isNull()) + type_ = value["Type"].asString(); + if(!value["GatewayClass"].isNull()) + gatewayClass_ = value["GatewayClass"].asString(); + if(!value["Model"].isNull()) + model_ = value["Model"].asString(); + if(!value["SerialNumber"].isNull()) + serialNumber_ = value["SerialNumber"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["EcsInstanceId"].isNull()) + ecsInstanceId_ = value["EcsInstanceId"].asString(); + if(!value["VpcId"].isNull()) + vpcId_ = value["VpcId"].asString(); + if(!value["VSwitchId"].isNull()) + vSwitchId_ = value["VSwitchId"].asString(); + if(!value["Ip"].isNull()) + ip_ = value["Ip"].asString(); + if(!value["InnerIp"].isNull()) + innerIp_ = value["InnerIp"].asString(); + if(!value["CreatedTime"].isNull()) + createdTime_ = std::stol(value["CreatedTime"].asString()); + if(!value["ActivatedTime"].isNull()) + activatedTime_ = std::stol(value["ActivatedTime"].asString()); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + if(!value["GatewayVersion"].isNull()) + gatewayVersion_ = value["GatewayVersion"].asString(); + if(!value["BuyURL"].isNull()) + buyURL_ = value["BuyURL"].asString(); + if(!value["RenewURL"].isNull()) + renewURL_ = value["RenewURL"].asString(); + if(!value["IsPostPaid"].isNull()) + isPostPaid_ = value["IsPostPaid"].asString() == "true"; + if(!value["IsReleaseAfterExpiration"].isNull()) + isReleaseAfterExpiration_ = value["IsReleaseAfterExpiration"].asString() == "true"; + if(!value["ExpiredTime"].isNull()) + expiredTime_ = std::stol(value["ExpiredTime"].asString()); + if(!value["ExpireStatus"].isNull()) + expireStatus_ = std::stoi(value["ExpireStatus"].asString()); + if(!value["CommonBuyInstanceId"].isNull()) + commonBuyInstanceId_ = value["CommonBuyInstanceId"].asString(); + if(!value["PublicNetworkBandwidth"].isNull()) + publicNetworkBandwidth_ = std::stoi(value["PublicNetworkBandwidth"].asString()); + if(!value["GatewayType"].isNull()) + gatewayType_ = value["GatewayType"].asString(); + if(!value["ElasticGateway"].isNull()) + elasticGateway_ = value["ElasticGateway"].asString() == "true"; + if(!value["MaxThroughput"].isNull()) + maxThroughput_ = std::stoi(value["MaxThroughput"].asString()); + if(!value["Capacity"].isNull()) + capacity_ = std::stoi(value["Capacity"].asString()); + if(!value["DataLoadType"].isNull()) + dataLoadType_ = value["DataLoadType"].asString(); + if(!value["DataLoadInterval"].isNull()) + dataLoadInterval_ = std::stoi(value["DataLoadInterval"].asString()); + if(!value["LastErrorKey"].isNull()) + lastErrorKey_ = value["LastErrorKey"].asString(); + +} + +std::string DescribeGatewayResult::getDescription()const +{ + return description_; +} + +std::string DescribeGatewayResult::getCategory()const +{ + return category_; +} + +long DescribeGatewayResult::getCreatedTime()const +{ + return createdTime_; +} + +std::string DescribeGatewayResult::getTaskId()const +{ + return taskId_; +} + +int DescribeGatewayResult::getPublicNetworkBandwidth()const +{ + return publicNetworkBandwidth_; +} + +std::string DescribeGatewayResult::getDataLoadType()const +{ + return dataLoadType_; +} + +std::string DescribeGatewayResult::getMessage()const +{ + return message_; +} + +std::string DescribeGatewayResult::getIp()const +{ + return ip_; +} + +int DescribeGatewayResult::getExpireStatus()const +{ + return expireStatus_; +} + +std::string DescribeGatewayResult::getStorageBundleId()const +{ + return storageBundleId_; +} + +std::string DescribeGatewayResult::getGatewayType()const +{ + return gatewayType_; +} + +std::string DescribeGatewayResult::getGatewayClass()const +{ + return gatewayClass_; +} + +bool DescribeGatewayResult::getSuccess()const +{ + return success_; +} + +std::string DescribeGatewayResult::getName()const +{ + return name_; +} + +bool DescribeGatewayResult::getIsPostPaid()const +{ + return isPostPaid_; +} + +int DescribeGatewayResult::getCapacity()const +{ + return capacity_; +} + +long DescribeGatewayResult::getExpiredTime()const +{ + return expiredTime_; +} + +std::string DescribeGatewayResult::getGatewayVersion()const +{ + return gatewayVersion_; +} + +bool DescribeGatewayResult::getIsReleaseAfterExpiration()const +{ + return isReleaseAfterExpiration_; +} + +std::string DescribeGatewayResult::getStatus()const +{ + return status_; +} + +std::string DescribeGatewayResult::getBuyURL()const +{ + return buyURL_; +} + +int DescribeGatewayResult::getMaxThroughput()const +{ + return maxThroughput_; +} + +int DescribeGatewayResult::getDataLoadInterval()const +{ + return dataLoadInterval_; +} + +std::string DescribeGatewayResult::getInnerIp()const +{ + return innerIp_; +} + +std::string DescribeGatewayResult::getVSwitchId()const +{ + return vSwitchId_; +} + +std::vector DescribeGatewayResult::getElasticNodes()const +{ + return elasticNodes_; +} + +std::string DescribeGatewayResult::getGatewayId()const +{ + return gatewayId_; +} + +std::string DescribeGatewayResult::getCode()const +{ + return code_; +} + +std::string DescribeGatewayResult::getEcsInstanceId()const +{ + return ecsInstanceId_; +} + +std::string DescribeGatewayResult::getType()const +{ + return type_; +} + +std::string DescribeGatewayResult::getRenewURL()const +{ + return renewURL_; +} + +std::string DescribeGatewayResult::getSerialNumber()const +{ + return serialNumber_; +} + +std::string DescribeGatewayResult::getVpcId()const +{ + return vpcId_; +} + +long DescribeGatewayResult::getActivatedTime()const +{ + return activatedTime_; +} + +bool DescribeGatewayResult::getElasticGateway()const +{ + return elasticGateway_; +} + +std::string DescribeGatewayResult::getCommonBuyInstanceId()const +{ + return commonBuyInstanceId_; +} + +std::string DescribeGatewayResult::getModel()const +{ + return model_; +} + +std::string DescribeGatewayResult::getLastErrorKey()const +{ + return lastErrorKey_; +} + +std::string DescribeGatewayResult::getLocation()const +{ + return location_; +} + diff --git a/sgw/src/model/DescribeGatewaySMBUsersRequest.cc b/sgw/src/model/DescribeGatewaySMBUsersRequest.cc new file mode 100644 index 000000000..509954cb3 --- /dev/null +++ b/sgw/src/model/DescribeGatewaySMBUsersRequest.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::Sgw::Model::DescribeGatewaySMBUsersRequest; + +DescribeGatewaySMBUsersRequest::DescribeGatewaySMBUsersRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeGatewaySMBUsers") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeGatewaySMBUsersRequest::~DescribeGatewaySMBUsersRequest() +{} + +std::string DescribeGatewaySMBUsersRequest::getPattern()const +{ + return pattern_; +} + +void DescribeGatewaySMBUsersRequest::setPattern(const std::string& pattern) +{ + pattern_ = pattern; + setParameter("Pattern", pattern); +} + +int DescribeGatewaySMBUsersRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeGatewaySMBUsersRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeGatewaySMBUsersRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeGatewaySMBUsersRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeGatewaySMBUsersRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeGatewaySMBUsersRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +int DescribeGatewaySMBUsersRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeGatewaySMBUsersRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeGatewaySMBUsersRequest::getGatewayId()const +{ + return gatewayId_; +} + +void DescribeGatewaySMBUsersRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/DescribeGatewaySMBUsersResult.cc b/sgw/src/model/DescribeGatewaySMBUsersResult.cc new file mode 100644 index 000000000..87122115e --- /dev/null +++ b/sgw/src/model/DescribeGatewaySMBUsersResult.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeGatewaySMBUsersResult::DescribeGatewaySMBUsersResult() : + ServiceResult() +{} + +DescribeGatewaySMBUsersResult::DescribeGatewaySMBUsersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGatewaySMBUsersResult::~DescribeGatewaySMBUsersResult() +{} + +void DescribeGatewaySMBUsersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allUsersNode = value["Users"]["User"]; + for (auto valueUsersUser : allUsersNode) + { + User usersObject; + if(!valueUsersUser["Username"].isNull()) + usersObject.username = valueUsersUser["Username"].asString(); + users_.push_back(usersObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeGatewaySMBUsersResult::getTotalCount()const +{ + return totalCount_; +} + +std::string DescribeGatewaySMBUsersResult::getMessage()const +{ + return message_; +} + +int DescribeGatewaySMBUsersResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeGatewaySMBUsersResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeGatewaySMBUsersResult::getUsers()const +{ + return users_; +} + +std::string DescribeGatewaySMBUsersResult::getCode()const +{ + return code_; +} + +bool DescribeGatewaySMBUsersResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DescribeGatewayStatisticsRequest.cc b/sgw/src/model/DescribeGatewayStatisticsRequest.cc new file mode 100644 index 000000000..b50949af6 --- /dev/null +++ b/sgw/src/model/DescribeGatewayStatisticsRequest.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::Sgw::Model::DescribeGatewayStatisticsRequest; + +DescribeGatewayStatisticsRequest::DescribeGatewayStatisticsRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeGatewayStatistics") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeGatewayStatisticsRequest::~DescribeGatewayStatisticsRequest() +{} + +std::string DescribeGatewayStatisticsRequest::getGatewayCategory()const +{ + return gatewayCategory_; +} + +void DescribeGatewayStatisticsRequest::setGatewayCategory(const std::string& gatewayCategory) +{ + gatewayCategory_ = gatewayCategory; + setParameter("GatewayCategory", gatewayCategory); +} + +std::string DescribeGatewayStatisticsRequest::getGatewayLocation()const +{ + return gatewayLocation_; +} + +void DescribeGatewayStatisticsRequest::setGatewayLocation(const std::string& gatewayLocation) +{ + gatewayLocation_ = gatewayLocation; + setParameter("GatewayLocation", gatewayLocation); +} + +long DescribeGatewayStatisticsRequest::getStartTimestamp()const +{ + return startTimestamp_; +} + +void DescribeGatewayStatisticsRequest::setStartTimestamp(long startTimestamp) +{ + startTimestamp_ = startTimestamp; + setParameter("StartTimestamp", std::to_string(startTimestamp)); +} + +std::string DescribeGatewayStatisticsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeGatewayStatisticsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +long DescribeGatewayStatisticsRequest::getEndTimestamp()const +{ + return endTimestamp_; +} + +void DescribeGatewayStatisticsRequest::setEndTimestamp(long endTimestamp) +{ + endTimestamp_ = endTimestamp; + setParameter("EndTimestamp", std::to_string(endTimestamp)); +} + +std::string DescribeGatewayStatisticsRequest::getTargetAccountId()const +{ + return targetAccountId_; +} + +void DescribeGatewayStatisticsRequest::setTargetAccountId(const std::string& targetAccountId) +{ + targetAccountId_ = targetAccountId; + setParameter("TargetAccountId", targetAccountId); +} + +std::string DescribeGatewayStatisticsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeGatewayStatisticsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + diff --git a/sgw/src/model/DescribeGatewayStatisticsResult.cc b/sgw/src/model/DescribeGatewayStatisticsResult.cc new file mode 100644 index 000000000..18b1a6699 --- /dev/null +++ b/sgw/src/model/DescribeGatewayStatisticsResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeGatewayStatisticsResult::DescribeGatewayStatisticsResult() : + ServiceResult() +{} + +DescribeGatewayStatisticsResult::DescribeGatewayStatisticsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGatewayStatisticsResult::~DescribeGatewayStatisticsResult() +{} + +void DescribeGatewayStatisticsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Result"].isNull()) + result_ = value["Result"].asString(); + +} + +std::string DescribeGatewayStatisticsResult::getMessage()const +{ + return message_; +} + +std::string DescribeGatewayStatisticsResult::getCode()const +{ + return code_; +} + +bool DescribeGatewayStatisticsResult::getSuccess()const +{ + return success_; +} + +std::string DescribeGatewayStatisticsResult::getResult()const +{ + return result_; +} + diff --git a/sgw/src/model/DescribeGatewayStockRequest.cc b/sgw/src/model/DescribeGatewayStockRequest.cc new file mode 100644 index 000000000..d3d30b230 --- /dev/null +++ b/sgw/src/model/DescribeGatewayStockRequest.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::Sgw::Model::DescribeGatewayStockRequest; + +DescribeGatewayStockRequest::DescribeGatewayStockRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeGatewayStock") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeGatewayStockRequest::~DescribeGatewayStockRequest() +{} + +std::string DescribeGatewayStockRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeGatewayStockRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeGatewayStockRequest::getGatewayRegionId()const +{ + return gatewayRegionId_; +} + +void DescribeGatewayStockRequest::setGatewayRegionId(const std::string& gatewayRegionId) +{ + gatewayRegionId_ = gatewayRegionId; + setParameter("GatewayRegionId", gatewayRegionId); +} + +std::string DescribeGatewayStockRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeGatewayStockRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + diff --git a/sgw/src/model/DescribeGatewayStockResult.cc b/sgw/src/model/DescribeGatewayStockResult.cc new file mode 100644 index 000000000..13515dcd9 --- /dev/null +++ b/sgw/src/model/DescribeGatewayStockResult.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeGatewayStockResult::DescribeGatewayStockResult() : + ServiceResult() +{} + +DescribeGatewayStockResult::DescribeGatewayStockResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGatewayStockResult::~DescribeGatewayStockResult() +{} + +void DescribeGatewayStockResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allStocksNode = value["Stocks"]["Stock"]; + for (auto valueStocksStock : allStocksNode) + { + Stock stocksObject; + if(!valueStocksStock["ZoneId"].isNull()) + stocksObject.zoneId = valueStocksStock["ZoneId"].asString(); + if(!valueStocksStock["StockInfo"].isNull()) + stocksObject.stockInfo = valueStocksStock["StockInfo"].asString(); + stocks_.push_back(stocksObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribeGatewayStockResult::getMessage()const +{ + return message_; +} + +std::vector DescribeGatewayStockResult::getStocks()const +{ + return stocks_; +} + +std::string DescribeGatewayStockResult::getCode()const +{ + return code_; +} + +bool DescribeGatewayStockResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DescribeGatewayTypesRequest.cc b/sgw/src/model/DescribeGatewayTypesRequest.cc new file mode 100644 index 000000000..f9a233bab --- /dev/null +++ b/sgw/src/model/DescribeGatewayTypesRequest.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::Sgw::Model::DescribeGatewayTypesRequest; + +DescribeGatewayTypesRequest::DescribeGatewayTypesRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeGatewayTypes") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeGatewayTypesRequest::~DescribeGatewayTypesRequest() +{} + +std::string DescribeGatewayTypesRequest::getGatewayCategory()const +{ + return gatewayCategory_; +} + +void DescribeGatewayTypesRequest::setGatewayCategory(const std::string& gatewayCategory) +{ + gatewayCategory_ = gatewayCategory; + setParameter("GatewayCategory", gatewayCategory); +} + +std::string DescribeGatewayTypesRequest::getGatewayLocation()const +{ + return gatewayLocation_; +} + +void DescribeGatewayTypesRequest::setGatewayLocation(const std::string& gatewayLocation) +{ + gatewayLocation_ = gatewayLocation; + setParameter("GatewayLocation", gatewayLocation); +} + +std::string DescribeGatewayTypesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeGatewayTypesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeGatewayTypesRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeGatewayTypesRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + diff --git a/sgw/src/model/DescribeGatewayTypesResult.cc b/sgw/src/model/DescribeGatewayTypesResult.cc new file mode 100644 index 000000000..721fb18eb --- /dev/null +++ b/sgw/src/model/DescribeGatewayTypesResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeGatewayTypesResult::DescribeGatewayTypesResult() : + ServiceResult() +{} + +DescribeGatewayTypesResult::DescribeGatewayTypesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGatewayTypesResult::~DescribeGatewayTypesResult() +{} + +void DescribeGatewayTypesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Types"].isNull()) + types_ = value["Types"].asString(); + +} + +std::string DescribeGatewayTypesResult::getTypes()const +{ + return types_; +} + +std::string DescribeGatewayTypesResult::getMessage()const +{ + return message_; +} + +std::string DescribeGatewayTypesResult::getCode()const +{ + return code_; +} + +bool DescribeGatewayTypesResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DescribeGatewaysForCmsRequest.cc b/sgw/src/model/DescribeGatewaysForCmsRequest.cc new file mode 100644 index 000000000..e5583a168 --- /dev/null +++ b/sgw/src/model/DescribeGatewaysForCmsRequest.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::Sgw::Model::DescribeGatewaysForCmsRequest; + +DescribeGatewaysForCmsRequest::DescribeGatewaysForCmsRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeGatewaysForCms") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeGatewaysForCmsRequest::~DescribeGatewaysForCmsRequest() +{} + +int DescribeGatewaysForCmsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeGatewaysForCmsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeGatewaysForCmsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeGatewaysForCmsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeGatewaysForCmsRequest::getGatewayRegionId()const +{ + return gatewayRegionId_; +} + +void DescribeGatewaysForCmsRequest::setGatewayRegionId(const std::string& gatewayRegionId) +{ + gatewayRegionId_ = gatewayRegionId; + setParameter("GatewayRegionId", gatewayRegionId); +} + +std::string DescribeGatewaysForCmsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeGatewaysForCmsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +int DescribeGatewaysForCmsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeGatewaysForCmsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + diff --git a/sgw/src/model/DescribeGatewaysForCmsResult.cc b/sgw/src/model/DescribeGatewaysForCmsResult.cc new file mode 100644 index 000000000..938ee3221 --- /dev/null +++ b/sgw/src/model/DescribeGatewaysForCmsResult.cc @@ -0,0 +1,103 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeGatewaysForCmsResult::DescribeGatewaysForCmsResult() : + ServiceResult() +{} + +DescribeGatewaysForCmsResult::DescribeGatewaysForCmsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGatewaysForCmsResult::~DescribeGatewaysForCmsResult() +{} + +void DescribeGatewaysForCmsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allGatewaysNode = value["Gateways"]["Gateway"]; + for (auto valueGatewaysGateway : allGatewaysNode) + { + Gateway gatewaysObject; + if(!valueGatewaysGateway["GatewayId"].isNull()) + gatewaysObject.gatewayId = valueGatewaysGateway["GatewayId"].asString(); + if(!valueGatewaysGateway["Name"].isNull()) + gatewaysObject.name = valueGatewaysGateway["Name"].asString(); + if(!valueGatewaysGateway["Description"].isNull()) + gatewaysObject.description = valueGatewaysGateway["Description"].asString(); + gateways_.push_back(gatewaysObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeGatewaysForCmsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string DescribeGatewaysForCmsResult::getMessage()const +{ + return message_; +} + +int DescribeGatewaysForCmsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeGatewaysForCmsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeGatewaysForCmsResult::getGateways()const +{ + return gateways_; +} + +std::string DescribeGatewaysForCmsResult::getCode()const +{ + return code_; +} + +bool DescribeGatewaysForCmsResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DescribeGatewaysRequest.cc b/sgw/src/model/DescribeGatewaysRequest.cc new file mode 100644 index 000000000..176fa9d81 --- /dev/null +++ b/sgw/src/model/DescribeGatewaysRequest.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::Sgw::Model::DescribeGatewaysRequest; + +DescribeGatewaysRequest::DescribeGatewaysRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeGateways") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeGatewaysRequest::~DescribeGatewaysRequest() +{} + +std::string DescribeGatewaysRequest::getEcsInstanceIds()const +{ + return ecsInstanceIds_; +} + +void DescribeGatewaysRequest::setEcsInstanceIds(const std::string& ecsInstanceIds) +{ + ecsInstanceIds_ = ecsInstanceIds; + setParameter("EcsInstanceIds", ecsInstanceIds); +} + +int DescribeGatewaysRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeGatewaysRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeGatewaysRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeGatewaysRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeGatewaysRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeGatewaysRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +int DescribeGatewaysRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeGatewaysRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeGatewaysRequest::getStorageBundleId()const +{ + return storageBundleId_; +} + +void DescribeGatewaysRequest::setStorageBundleId(const std::string& storageBundleId) +{ + storageBundleId_ = storageBundleId; + setParameter("StorageBundleId", storageBundleId); +} + diff --git a/sgw/src/model/DescribeGatewaysResult.cc b/sgw/src/model/DescribeGatewaysResult.cc new file mode 100644 index 000000000..6133998f1 --- /dev/null +++ b/sgw/src/model/DescribeGatewaysResult.cc @@ -0,0 +1,170 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeGatewaysResult::DescribeGatewaysResult() : + ServiceResult() +{} + +DescribeGatewaysResult::DescribeGatewaysResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGatewaysResult::~DescribeGatewaysResult() +{} + +void DescribeGatewaysResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allGatewaysNode = value["Gateways"]["Gateway"]; + for (auto valueGatewaysGateway : allGatewaysNode) + { + Gateway gatewaysObject; + if(!valueGatewaysGateway["GatewayId"].isNull()) + gatewaysObject.gatewayId = valueGatewaysGateway["GatewayId"].asString(); + if(!valueGatewaysGateway["StorageBundleId"].isNull()) + gatewaysObject.storageBundleId = valueGatewaysGateway["StorageBundleId"].asString(); + if(!valueGatewaysGateway["Name"].isNull()) + gatewaysObject.name = valueGatewaysGateway["Name"].asString(); + if(!valueGatewaysGateway["Description"].isNull()) + gatewaysObject.description = valueGatewaysGateway["Description"].asString(); + if(!valueGatewaysGateway["Location"].isNull()) + gatewaysObject.location = valueGatewaysGateway["Location"].asString(); + if(!valueGatewaysGateway["Category"].isNull()) + gatewaysObject.category = valueGatewaysGateway["Category"].asString(); + if(!valueGatewaysGateway["Type"].isNull()) + gatewaysObject.type = valueGatewaysGateway["Type"].asString(); + if(!valueGatewaysGateway["GatewayClass"].isNull()) + gatewaysObject.gatewayClass = valueGatewaysGateway["GatewayClass"].asString(); + if(!valueGatewaysGateway["Model"].isNull()) + gatewaysObject.model = valueGatewaysGateway["Model"].asString(); + if(!valueGatewaysGateway["SerialNumber"].isNull()) + gatewaysObject.serialNumber = valueGatewaysGateway["SerialNumber"].asString(); + if(!valueGatewaysGateway["Status"].isNull()) + gatewaysObject.status = valueGatewaysGateway["Status"].asString(); + if(!valueGatewaysGateway["EcsInstanceId"].isNull()) + gatewaysObject.ecsInstanceId = valueGatewaysGateway["EcsInstanceId"].asString(); + if(!valueGatewaysGateway["VpcId"].isNull()) + gatewaysObject.vpcId = valueGatewaysGateway["VpcId"].asString(); + if(!valueGatewaysGateway["VSwitchId"].isNull()) + gatewaysObject.vSwitchId = valueGatewaysGateway["VSwitchId"].asString(); + if(!valueGatewaysGateway["Ip"].isNull()) + gatewaysObject.ip = valueGatewaysGateway["Ip"].asString(); + if(!valueGatewaysGateway["InnerIp"].isNull()) + gatewaysObject.innerIp = valueGatewaysGateway["InnerIp"].asString(); + if(!valueGatewaysGateway["CreatedTime"].isNull()) + gatewaysObject.createdTime = std::stol(valueGatewaysGateway["CreatedTime"].asString()); + if(!valueGatewaysGateway["ActivatedTime"].isNull()) + gatewaysObject.activatedTime = std::stol(valueGatewaysGateway["ActivatedTime"].asString()); + if(!valueGatewaysGateway["TaskId"].isNull()) + gatewaysObject.taskId = valueGatewaysGateway["TaskId"].asString(); + if(!valueGatewaysGateway["GatewayVersion"].isNull()) + gatewaysObject.gatewayVersion = valueGatewaysGateway["GatewayVersion"].asString(); + if(!valueGatewaysGateway["BuyURL"].isNull()) + gatewaysObject.buyURL = valueGatewaysGateway["BuyURL"].asString(); + if(!valueGatewaysGateway["RenewURL"].isNull()) + gatewaysObject.renewURL = valueGatewaysGateway["RenewURL"].asString(); + if(!valueGatewaysGateway["IsPostPaid"].isNull()) + gatewaysObject.isPostPaid = valueGatewaysGateway["IsPostPaid"].asString() == "true"; + if(!valueGatewaysGateway["IsReleaseAfterExpiration"].isNull()) + gatewaysObject.isReleaseAfterExpiration = valueGatewaysGateway["IsReleaseAfterExpiration"].asString() == "true"; + if(!valueGatewaysGateway["ExpiredTime"].isNull()) + gatewaysObject.expiredTime = std::stol(valueGatewaysGateway["ExpiredTime"].asString()); + if(!valueGatewaysGateway["ExpireStatus"].isNull()) + gatewaysObject.expireStatus = std::stoi(valueGatewaysGateway["ExpireStatus"].asString()); + if(!valueGatewaysGateway["CommonBuyInstanceId"].isNull()) + gatewaysObject.commonBuyInstanceId = valueGatewaysGateway["CommonBuyInstanceId"].asString(); + if(!valueGatewaysGateway["PublicNetworkBandwidth"].isNull()) + gatewaysObject.publicNetworkBandwidth = std::stoi(valueGatewaysGateway["PublicNetworkBandwidth"].asString()); + if(!valueGatewaysGateway["GatewayType"].isNull()) + gatewaysObject.gatewayType = valueGatewaysGateway["GatewayType"].asString(); + if(!valueGatewaysGateway["ElasticGateway"].isNull()) + gatewaysObject.elasticGateway = valueGatewaysGateway["ElasticGateway"].asString() == "true"; + if(!valueGatewaysGateway["MaxThroughput"].isNull()) + gatewaysObject.maxThroughput = std::stoi(valueGatewaysGateway["MaxThroughput"].asString()); + if(!valueGatewaysGateway["Capacity"].isNull()) + gatewaysObject.capacity = std::stoi(valueGatewaysGateway["Capacity"].asString()); + if(!valueGatewaysGateway["DataLoadType"].isNull()) + gatewaysObject.dataLoadType = valueGatewaysGateway["DataLoadType"].asString(); + if(!valueGatewaysGateway["DataLoadInterval"].isNull()) + gatewaysObject.dataLoadInterval = std::stoi(valueGatewaysGateway["DataLoadInterval"].asString()); + if(!valueGatewaysGateway["LastErrorKey"].isNull()) + gatewaysObject.lastErrorKey = valueGatewaysGateway["LastErrorKey"].asString(); + auto allElasticNodes = value["ElasticNodes"]["ElasticNode"]; + for (auto value : allElasticNodes) + gatewaysObject.elasticNodes.push_back(value.asString()); + gateways_.push_back(gatewaysObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeGatewaysResult::getTotalCount()const +{ + return totalCount_; +} + +std::string DescribeGatewaysResult::getMessage()const +{ + return message_; +} + +int DescribeGatewaysResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeGatewaysResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeGatewaysResult::getGateways()const +{ + return gateways_; +} + +std::string DescribeGatewaysResult::getCode()const +{ + return code_; +} + +bool DescribeGatewaysResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DescribeGatewaysTagsRequest.cc b/sgw/src/model/DescribeGatewaysTagsRequest.cc new file mode 100644 index 000000000..f730b04ff --- /dev/null +++ b/sgw/src/model/DescribeGatewaysTagsRequest.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::Sgw::Model::DescribeGatewaysTagsRequest; + +DescribeGatewaysTagsRequest::DescribeGatewaysTagsRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeGatewaysTags") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeGatewaysTagsRequest::~DescribeGatewaysTagsRequest() +{} + +std::string DescribeGatewaysTagsRequest::getGatewayIds()const +{ + return gatewayIds_; +} + +void DescribeGatewaysTagsRequest::setGatewayIds(const std::string& gatewayIds) +{ + gatewayIds_ = gatewayIds; + setParameter("GatewayIds", gatewayIds); +} + +std::string DescribeGatewaysTagsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeGatewaysTagsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeGatewaysTagsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeGatewaysTagsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeGatewaysTagsRequest::getTagCategory()const +{ + return tagCategory_; +} + +void DescribeGatewaysTagsRequest::setTagCategory(const std::string& tagCategory) +{ + tagCategory_ = tagCategory; + setParameter("TagCategory", tagCategory); +} + +std::string DescribeGatewaysTagsRequest::getStorageBundleId()const +{ + return storageBundleId_; +} + +void DescribeGatewaysTagsRequest::setStorageBundleId(const std::string& storageBundleId) +{ + storageBundleId_ = storageBundleId; + setParameter("StorageBundleId", storageBundleId); +} + diff --git a/sgw/src/model/DescribeGatewaysTagsResult.cc b/sgw/src/model/DescribeGatewaysTagsResult.cc new file mode 100644 index 000000000..eb63b3528 --- /dev/null +++ b/sgw/src/model/DescribeGatewaysTagsResult.cc @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeGatewaysTagsResult::DescribeGatewaysTagsResult() : + ServiceResult() +{} + +DescribeGatewaysTagsResult::DescribeGatewaysTagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGatewaysTagsResult::~DescribeGatewaysTagsResult() +{} + +void DescribeGatewaysTagsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allGatewayTagsNode = value["GatewayTags"]["GatewayTag"]; + for (auto valueGatewayTagsGatewayTag : allGatewayTagsNode) + { + GatewayTag gatewayTagsObject; + if(!valueGatewayTagsGatewayTag["GatewayId"].isNull()) + gatewayTagsObject.gatewayId = valueGatewayTagsGatewayTag["GatewayId"].asString(); + auto allTagsNode = allGatewayTagsNode["Tags"]["Tag"]; + for (auto allGatewayTagsNodeTagsTag : allTagsNode) + { + GatewayTag::Tag tagsObject; + if(!allGatewayTagsNodeTagsTag["TagKey"].isNull()) + tagsObject.tagKey = allGatewayTagsNodeTagsTag["TagKey"].asString(); + if(!allGatewayTagsNodeTagsTag["TagValue"].isNull()) + tagsObject.tagValue = allGatewayTagsNodeTagsTag["TagValue"].asString(); + gatewayTagsObject.tags.push_back(tagsObject); + } + gatewayTags_.push_back(gatewayTagsObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribeGatewaysTagsResult::getMessage()const +{ + return message_; +} + +std::vector DescribeGatewaysTagsResult::getGatewayTags()const +{ + return gatewayTags_; +} + +std::string DescribeGatewaysTagsResult::getCode()const +{ + return code_; +} + +bool DescribeGatewaysTagsResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DescribeKmsKeyRequest.cc b/sgw/src/model/DescribeKmsKeyRequest.cc new file mode 100644 index 000000000..dcbcff16f --- /dev/null +++ b/sgw/src/model/DescribeKmsKeyRequest.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::Sgw::Model::DescribeKmsKeyRequest; + +DescribeKmsKeyRequest::DescribeKmsKeyRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeKmsKey") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeKmsKeyRequest::~DescribeKmsKeyRequest() +{} + +std::string DescribeKmsKeyRequest::getKmsKey()const +{ + return kmsKey_; +} + +void DescribeKmsKeyRequest::setKmsKey(const std::string& kmsKey) +{ + kmsKey_ = kmsKey; + setParameter("KmsKey", kmsKey); +} + +std::string DescribeKmsKeyRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeKmsKeyRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeKmsKeyRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeKmsKeyRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeKmsKeyRequest::getGatewayId()const +{ + return gatewayId_; +} + +void DescribeKmsKeyRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/DescribeKmsKeyResult.cc b/sgw/src/model/DescribeKmsKeyResult.cc new file mode 100644 index 000000000..dbd27e51b --- /dev/null +++ b/sgw/src/model/DescribeKmsKeyResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeKmsKeyResult::DescribeKmsKeyResult() : + ServiceResult() +{} + +DescribeKmsKeyResult::DescribeKmsKeyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeKmsKeyResult::~DescribeKmsKeyResult() +{} + +void DescribeKmsKeyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["IsValid"].isNull()) + isValid_ = value["IsValid"].asString() == "true"; + +} + +std::string DescribeKmsKeyResult::getMessage()const +{ + return message_; +} + +std::string DescribeKmsKeyResult::getCode()const +{ + return code_; +} + +bool DescribeKmsKeyResult::getSuccess()const +{ + return success_; +} + +bool DescribeKmsKeyResult::getIsValid()const +{ + return isValid_; +} + diff --git a/sgw/src/model/DescribeMqttConfigRequest.cc b/sgw/src/model/DescribeMqttConfigRequest.cc new file mode 100644 index 000000000..a9a801902 --- /dev/null +++ b/sgw/src/model/DescribeMqttConfigRequest.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::Sgw::Model::DescribeMqttConfigRequest; + +DescribeMqttConfigRequest::DescribeMqttConfigRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeMqttConfig") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeMqttConfigRequest::~DescribeMqttConfigRequest() +{} + +std::string DescribeMqttConfigRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeMqttConfigRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeMqttConfigRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeMqttConfigRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeMqttConfigRequest::getGatewayId()const +{ + return gatewayId_; +} + +void DescribeMqttConfigRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/DescribeMqttConfigResult.cc b/sgw/src/model/DescribeMqttConfigResult.cc new file mode 100644 index 000000000..94e3d113d --- /dev/null +++ b/sgw/src/model/DescribeMqttConfigResult.cc @@ -0,0 +1,135 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeMqttConfigResult::DescribeMqttConfigResult() : + ServiceResult() +{} + +DescribeMqttConfigResult::DescribeMqttConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeMqttConfigResult::~DescribeMqttConfigResult() +{} + +void DescribeMqttConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["IsEnabled"].isNull()) + isEnabled_ = value["IsEnabled"].asString() == "true"; + if(!value["BrokerUrl"].isNull()) + brokerUrl_ = value["BrokerUrl"].asString(); + if(!value["InternalBrokerUrl"].isNull()) + internalBrokerUrl_ = value["InternalBrokerUrl"].asString(); + if(!value["PublishTopic"].isNull()) + publishTopic_ = value["PublishTopic"].asString(); + if(!value["SubscribeTopic"].isNull()) + subscribeTopic_ = value["SubscribeTopic"].asString(); + if(!value["GroupId"].isNull()) + groupId_ = value["GroupId"].asString(); + if(!value["MqttInstanceId"].isNull()) + mqttInstanceId_ = value["MqttInstanceId"].asString(); + if(!value["AuthType"].isNull()) + authType_ = value["AuthType"].asString(); + if(!value["Username"].isNull()) + username_ = value["Username"].asString(); + if(!value["Password"].isNull()) + password_ = value["Password"].asString(); + +} + +std::string DescribeMqttConfigResult::getMessage()const +{ + return message_; +} + +bool DescribeMqttConfigResult::getIsEnabled()const +{ + return isEnabled_; +} + +std::string DescribeMqttConfigResult::getCode()const +{ + return code_; +} + +std::string DescribeMqttConfigResult::getInternalBrokerUrl()const +{ + return internalBrokerUrl_; +} + +bool DescribeMqttConfigResult::getSuccess()const +{ + return success_; +} + +std::string DescribeMqttConfigResult::getBrokerUrl()const +{ + return brokerUrl_; +} + +std::string DescribeMqttConfigResult::getGroupId()const +{ + return groupId_; +} + +std::string DescribeMqttConfigResult::getMqttInstanceId()const +{ + return mqttInstanceId_; +} + +std::string DescribeMqttConfigResult::getUsername()const +{ + return username_; +} + +std::string DescribeMqttConfigResult::getSubscribeTopic()const +{ + return subscribeTopic_; +} + +std::string DescribeMqttConfigResult::getPublishTopic()const +{ + return publishTopic_; +} + +std::string DescribeMqttConfigResult::getAuthType()const +{ + return authType_; +} + +std::string DescribeMqttConfigResult::getPassword()const +{ + return password_; +} + diff --git a/sgw/src/model/DescribeOssBucketInfoRequest.cc b/sgw/src/model/DescribeOssBucketInfoRequest.cc new file mode 100644 index 000000000..1bd87a241 --- /dev/null +++ b/sgw/src/model/DescribeOssBucketInfoRequest.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::Sgw::Model::DescribeOssBucketInfoRequest; + +DescribeOssBucketInfoRequest::DescribeOssBucketInfoRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeOssBucketInfo") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeOssBucketInfoRequest::~DescribeOssBucketInfoRequest() +{} + +std::string DescribeOssBucketInfoRequest::getBucketEndpoint()const +{ + return bucketEndpoint_; +} + +void DescribeOssBucketInfoRequest::setBucketEndpoint(const std::string& bucketEndpoint) +{ + bucketEndpoint_ = bucketEndpoint; + setParameter("BucketEndpoint", bucketEndpoint); +} + +std::string DescribeOssBucketInfoRequest::getType()const +{ + return type_; +} + +void DescribeOssBucketInfoRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + +std::string DescribeOssBucketInfoRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeOssBucketInfoRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeOssBucketInfoRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeOssBucketInfoRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeOssBucketInfoRequest::getBucketName()const +{ + return bucketName_; +} + +void DescribeOssBucketInfoRequest::setBucketName(const std::string& bucketName) +{ + bucketName_ = bucketName; + setParameter("BucketName", bucketName); +} + +std::string DescribeOssBucketInfoRequest::getGatewayId()const +{ + return gatewayId_; +} + +void DescribeOssBucketInfoRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/DescribeOssBucketInfoResult.cc b/sgw/src/model/DescribeOssBucketInfoResult.cc new file mode 100644 index 000000000..6fb3dd8c5 --- /dev/null +++ b/sgw/src/model/DescribeOssBucketInfoResult.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeOssBucketInfoResult::DescribeOssBucketInfoResult() : + ServiceResult() +{} + +DescribeOssBucketInfoResult::DescribeOssBucketInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeOssBucketInfoResult::~DescribeOssBucketInfoResult() +{} + +void DescribeOssBucketInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["IsArchive"].isNull()) + isArchive_ = value["IsArchive"].asString() == "true"; + if(!value["IsBackToResource"].isNull()) + isBackToResource_ = value["IsBackToResource"].asString() == "true"; + if(!value["PollingInterval"].isNull()) + pollingInterval_ = std::stoi(value["PollingInterval"].asString()); + if(!value["IsSupportServerSideEncryption"].isNull()) + isSupportServerSideEncryption_ = value["IsSupportServerSideEncryption"].asString() == "true"; + if(!value["IsFresh"].isNull()) + isFresh_ = value["IsFresh"].asString() == "true"; + if(!value["StorageSize"].isNull()) + storageSize_ = std::stol(value["StorageSize"].asString()); + +} + +std::string DescribeOssBucketInfoResult::getMessage()const +{ + return message_; +} + +bool DescribeOssBucketInfoResult::getIsArchive()const +{ + return isArchive_; +} + +bool DescribeOssBucketInfoResult::getIsFresh()const +{ + return isFresh_; +} + +bool DescribeOssBucketInfoResult::getIsSupportServerSideEncryption()const +{ + return isSupportServerSideEncryption_; +} + +long DescribeOssBucketInfoResult::getStorageSize()const +{ + return storageSize_; +} + +bool DescribeOssBucketInfoResult::getIsBackToResource()const +{ + return isBackToResource_; +} + +int DescribeOssBucketInfoResult::getPollingInterval()const +{ + return pollingInterval_; +} + +std::string DescribeOssBucketInfoResult::getCode()const +{ + return code_; +} + +bool DescribeOssBucketInfoResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DescribeOssBucketsRequest.cc b/sgw/src/model/DescribeOssBucketsRequest.cc new file mode 100644 index 000000000..d4b7eb72f --- /dev/null +++ b/sgw/src/model/DescribeOssBucketsRequest.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::Sgw::Model::DescribeOssBucketsRequest; + +DescribeOssBucketsRequest::DescribeOssBucketsRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeOssBuckets") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeOssBucketsRequest::~DescribeOssBucketsRequest() +{} + +std::string DescribeOssBucketsRequest::getBucketEndpoint()const +{ + return bucketEndpoint_; +} + +void DescribeOssBucketsRequest::setBucketEndpoint(const std::string& bucketEndpoint) +{ + bucketEndpoint_ = bucketEndpoint; + setParameter("BucketEndpoint", bucketEndpoint); +} + +std::string DescribeOssBucketsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeOssBucketsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeOssBucketsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeOssBucketsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + diff --git a/sgw/src/model/DescribeOssBucketsResult.cc b/sgw/src/model/DescribeOssBucketsResult.cc new file mode 100644 index 000000000..06a4acf9e --- /dev/null +++ b/sgw/src/model/DescribeOssBucketsResult.cc @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeOssBucketsResult::DescribeOssBucketsResult() : + ServiceResult() +{} + +DescribeOssBucketsResult::DescribeOssBucketsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeOssBucketsResult::~DescribeOssBucketsResult() +{} + +void DescribeOssBucketsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allBucketsNode = value["Buckets"]["Bucket"]; + for (auto valueBucketsBucket : allBucketsNode) + { + Bucket bucketsObject; + if(!valueBucketsBucket["Name"].isNull()) + bucketsObject.name = valueBucketsBucket["Name"].asString(); + buckets_.push_back(bucketsObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribeOssBucketsResult::getMessage()const +{ + return message_; +} + +std::string DescribeOssBucketsResult::getCode()const +{ + return code_; +} + +std::vector DescribeOssBucketsResult::getBuckets()const +{ + return buckets_; +} + +bool DescribeOssBucketsResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DescribePayAsYouGoPriceRequest.cc b/sgw/src/model/DescribePayAsYouGoPriceRequest.cc new file mode 100644 index 000000000..ad6d74761 --- /dev/null +++ b/sgw/src/model/DescribePayAsYouGoPriceRequest.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::Sgw::Model::DescribePayAsYouGoPriceRequest; + +DescribePayAsYouGoPriceRequest::DescribePayAsYouGoPriceRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribePayAsYouGoPrice") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribePayAsYouGoPriceRequest::~DescribePayAsYouGoPriceRequest() +{} + +std::string DescribePayAsYouGoPriceRequest::getGatewayClass()const +{ + return gatewayClass_; +} + +void DescribePayAsYouGoPriceRequest::setGatewayClass(const std::string& gatewayClass) +{ + gatewayClass_ = gatewayClass; + setParameter("GatewayClass", gatewayClass); +} + +std::string DescribePayAsYouGoPriceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribePayAsYouGoPriceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribePayAsYouGoPriceRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribePayAsYouGoPriceRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribePayAsYouGoPriceRequest::getRegionId()const +{ + return regionId_; +} + +void DescribePayAsYouGoPriceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/sgw/src/model/DescribePayAsYouGoPriceResult.cc b/sgw/src/model/DescribePayAsYouGoPriceResult.cc new file mode 100644 index 000000000..48d1bb56a --- /dev/null +++ b/sgw/src/model/DescribePayAsYouGoPriceResult.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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribePayAsYouGoPriceResult::DescribePayAsYouGoPriceResult() : + ServiceResult() +{} + +DescribePayAsYouGoPriceResult::DescribePayAsYouGoPriceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePayAsYouGoPriceResult::~DescribePayAsYouGoPriceResult() +{} + +void DescribePayAsYouGoPriceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Currency"].isNull()) + currency_ = value["Currency"].asString(); + if(!value["GatewayClassPrice"].isNull()) + gatewayClassPrice_ = std::stof(value["GatewayClassPrice"].asString()); + if(!value["CacheCloudEfficiencySizePrice"].isNull()) + cacheCloudEfficiencySizePrice_ = std::stof(value["CacheCloudEfficiencySizePrice"].asString()); + if(!value["CacheCloudSSDSizePrice"].isNull()) + cacheCloudSSDSizePrice_ = std::stof(value["CacheCloudSSDSizePrice"].asString()); + +} + +std::string DescribePayAsYouGoPriceResult::getMessage()const +{ + return message_; +} + +std::string DescribePayAsYouGoPriceResult::getCurrency()const +{ + return currency_; +} + +float DescribePayAsYouGoPriceResult::getGatewayClassPrice()const +{ + return gatewayClassPrice_; +} + +float DescribePayAsYouGoPriceResult::getCacheCloudEfficiencySizePrice()const +{ + return cacheCloudEfficiencySizePrice_; +} + +std::string DescribePayAsYouGoPriceResult::getCode()const +{ + return code_; +} + +bool DescribePayAsYouGoPriceResult::getSuccess()const +{ + return success_; +} + +float DescribePayAsYouGoPriceResult::getCacheCloudSSDSizePrice()const +{ + return cacheCloudSSDSizePrice_; +} + diff --git a/sgw/src/model/DescribeRegionsRequest.cc b/sgw/src/model/DescribeRegionsRequest.cc new file mode 100644 index 000000000..f021ed14f --- /dev/null +++ b/sgw/src/model/DescribeRegionsRequest.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 + +using AlibabaCloud::Sgw::Model::DescribeRegionsRequest; + +DescribeRegionsRequest::DescribeRegionsRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeRegions") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeRegionsRequest::~DescribeRegionsRequest() +{} + +std::string DescribeRegionsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeRegionsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeRegionsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeRegionsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + diff --git a/sgw/src/model/DescribeRegionsResult.cc b/sgw/src/model/DescribeRegionsResult.cc new file mode 100644 index 000000000..c56a47215 --- /dev/null +++ b/sgw/src/model/DescribeRegionsResult.cc @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeRegionsResult::DescribeRegionsResult() : + ServiceResult() +{} + +DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRegionsResult::~DescribeRegionsResult() +{} + +void DescribeRegionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRegionsNode = value["Regions"]["Region"]; + for (auto valueRegionsRegion : allRegionsNode) + { + Region regionsObject; + if(!valueRegionsRegion["RegionId"].isNull()) + regionsObject.regionId = valueRegionsRegion["RegionId"].asString(); + regions_.push_back(regionsObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribeRegionsResult::getMessage()const +{ + return message_; +} + +std::vector DescribeRegionsResult::getRegions()const +{ + return regions_; +} + +std::string DescribeRegionsResult::getCode()const +{ + return code_; +} + +bool DescribeRegionsResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DescribeSharesBucketInfoForExpressSyncRequest.cc b/sgw/src/model/DescribeSharesBucketInfoForExpressSyncRequest.cc new file mode 100644 index 000000000..f8556c0b8 --- /dev/null +++ b/sgw/src/model/DescribeSharesBucketInfoForExpressSyncRequest.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::Sgw::Model::DescribeSharesBucketInfoForExpressSyncRequest; + +DescribeSharesBucketInfoForExpressSyncRequest::DescribeSharesBucketInfoForExpressSyncRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeSharesBucketInfoForExpressSync") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeSharesBucketInfoForExpressSyncRequest::~DescribeSharesBucketInfoForExpressSyncRequest() +{} + +std::string DescribeSharesBucketInfoForExpressSyncRequest::getBucketRegion()const +{ + return bucketRegion_; +} + +void DescribeSharesBucketInfoForExpressSyncRequest::setBucketRegion(const std::string& bucketRegion) +{ + bucketRegion_ = bucketRegion; + setParameter("BucketRegion", bucketRegion); +} + +std::string DescribeSharesBucketInfoForExpressSyncRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeSharesBucketInfoForExpressSyncRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeSharesBucketInfoForExpressSyncRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeSharesBucketInfoForExpressSyncRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeSharesBucketInfoForExpressSyncRequest::getBucketName()const +{ + return bucketName_; +} + +void DescribeSharesBucketInfoForExpressSyncRequest::setBucketName(const std::string& bucketName) +{ + bucketName_ = bucketName; + setParameter("BucketName", bucketName); +} + diff --git a/sgw/src/model/DescribeSharesBucketInfoForExpressSyncResult.cc b/sgw/src/model/DescribeSharesBucketInfoForExpressSyncResult.cc new file mode 100644 index 000000000..dcbd869fa --- /dev/null +++ b/sgw/src/model/DescribeSharesBucketInfoForExpressSyncResult.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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeSharesBucketInfoForExpressSyncResult::DescribeSharesBucketInfoForExpressSyncResult() : + ServiceResult() +{} + +DescribeSharesBucketInfoForExpressSyncResult::DescribeSharesBucketInfoForExpressSyncResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSharesBucketInfoForExpressSyncResult::~DescribeSharesBucketInfoForExpressSyncResult() +{} + +void DescribeSharesBucketInfoForExpressSyncResult::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["BucketRegion"].isNull()) + bucketInfosObject.bucketRegion = valueBucketInfosBucketInfo["BucketRegion"].asString(); + if(!valueBucketInfosBucketInfo["BucketName"].isNull()) + bucketInfosObject.bucketName = valueBucketInfosBucketInfo["BucketName"].asString(); + if(!valueBucketInfosBucketInfo["BucketPrefix"].isNull()) + bucketInfosObject.bucketPrefix = valueBucketInfosBucketInfo["BucketPrefix"].asString(); + bucketInfos_.push_back(bucketInfosObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::vector DescribeSharesBucketInfoForExpressSyncResult::getBucketInfos()const +{ + return bucketInfos_; +} + +std::string DescribeSharesBucketInfoForExpressSyncResult::getMessage()const +{ + return message_; +} + +std::string DescribeSharesBucketInfoForExpressSyncResult::getCode()const +{ + return code_; +} + +bool DescribeSharesBucketInfoForExpressSyncResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DescribeStorageBundleRequest.cc b/sgw/src/model/DescribeStorageBundleRequest.cc new file mode 100644 index 000000000..de181b11b --- /dev/null +++ b/sgw/src/model/DescribeStorageBundleRequest.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::Sgw::Model::DescribeStorageBundleRequest; + +DescribeStorageBundleRequest::DescribeStorageBundleRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeStorageBundle") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeStorageBundleRequest::~DescribeStorageBundleRequest() +{} + +std::string DescribeStorageBundleRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeStorageBundleRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeStorageBundleRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeStorageBundleRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeStorageBundleRequest::getStorageBundleId()const +{ + return storageBundleId_; +} + +void DescribeStorageBundleRequest::setStorageBundleId(const std::string& storageBundleId) +{ + storageBundleId_ = storageBundleId; + setParameter("StorageBundleId", storageBundleId); +} + diff --git a/sgw/src/model/DescribeStorageBundleResult.cc b/sgw/src/model/DescribeStorageBundleResult.cc new file mode 100644 index 000000000..19fc71b33 --- /dev/null +++ b/sgw/src/model/DescribeStorageBundleResult.cc @@ -0,0 +1,114 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeStorageBundleResult::DescribeStorageBundleResult() : + ServiceResult() +{} + +DescribeStorageBundleResult::DescribeStorageBundleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeStorageBundleResult::~DescribeStorageBundleResult() +{} + +void DescribeStorageBundleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["StorageBundleId"].isNull()) + storageBundleId_ = value["StorageBundleId"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["BackendBucketRegionId"].isNull()) + backendBucketRegionId_ = value["BackendBucketRegionId"].asString(); + if(!value["Location"].isNull()) + location_ = value["Location"].asString(); + if(!value["CreatedTime"].isNull()) + createdTime_ = std::stol(value["CreatedTime"].asString()); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); + +} + +std::string DescribeStorageBundleResult::getDescription()const +{ + return description_; +} + +long DescribeStorageBundleResult::getCreatedTime()const +{ + return createdTime_; +} + +std::string DescribeStorageBundleResult::getMessage()const +{ + return message_; +} + +std::string DescribeStorageBundleResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + +std::string DescribeStorageBundleResult::getStorageBundleId()const +{ + return storageBundleId_; +} + +std::string DescribeStorageBundleResult::getCode()const +{ + return code_; +} + +std::string DescribeStorageBundleResult::getBackendBucketRegionId()const +{ + return backendBucketRegionId_; +} + +bool DescribeStorageBundleResult::getSuccess()const +{ + return success_; +} + +std::string DescribeStorageBundleResult::getName()const +{ + return name_; +} + +std::string DescribeStorageBundleResult::getLocation()const +{ + return location_; +} + diff --git a/sgw/src/model/DescribeStorageBundlesRequest.cc b/sgw/src/model/DescribeStorageBundlesRequest.cc new file mode 100644 index 000000000..4e007b37c --- /dev/null +++ b/sgw/src/model/DescribeStorageBundlesRequest.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::Sgw::Model::DescribeStorageBundlesRequest; + +DescribeStorageBundlesRequest::DescribeStorageBundlesRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeStorageBundles") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeStorageBundlesRequest::~DescribeStorageBundlesRequest() +{} + +std::string DescribeStorageBundlesRequest::getBackendBucketRegionId()const +{ + return backendBucketRegionId_; +} + +void DescribeStorageBundlesRequest::setBackendBucketRegionId(const std::string& backendBucketRegionId) +{ + backendBucketRegionId_ = backendBucketRegionId; + setParameter("BackendBucketRegionId", backendBucketRegionId); +} + +int DescribeStorageBundlesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeStorageBundlesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeStorageBundlesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeStorageBundlesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeStorageBundlesRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void DescribeStorageBundlesRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string DescribeStorageBundlesRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeStorageBundlesRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +int DescribeStorageBundlesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeStorageBundlesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + diff --git a/sgw/src/model/DescribeStorageBundlesResult.cc b/sgw/src/model/DescribeStorageBundlesResult.cc new file mode 100644 index 000000000..fc37d95f7 --- /dev/null +++ b/sgw/src/model/DescribeStorageBundlesResult.cc @@ -0,0 +1,111 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeStorageBundlesResult::DescribeStorageBundlesResult() : + ServiceResult() +{} + +DescribeStorageBundlesResult::DescribeStorageBundlesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeStorageBundlesResult::~DescribeStorageBundlesResult() +{} + +void DescribeStorageBundlesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allStorageBundlesNode = value["StorageBundles"]["StorageBundle"]; + for (auto valueStorageBundlesStorageBundle : allStorageBundlesNode) + { + StorageBundle storageBundlesObject; + if(!valueStorageBundlesStorageBundle["StorageBundleId"].isNull()) + storageBundlesObject.storageBundleId = valueStorageBundlesStorageBundle["StorageBundleId"].asString(); + if(!valueStorageBundlesStorageBundle["Name"].isNull()) + storageBundlesObject.name = valueStorageBundlesStorageBundle["Name"].asString(); + if(!valueStorageBundlesStorageBundle["Description"].isNull()) + storageBundlesObject.description = valueStorageBundlesStorageBundle["Description"].asString(); + if(!valueStorageBundlesStorageBundle["BackendBucketRegionId"].isNull()) + storageBundlesObject.backendBucketRegionId = valueStorageBundlesStorageBundle["BackendBucketRegionId"].asString(); + if(!valueStorageBundlesStorageBundle["Location"].isNull()) + storageBundlesObject.location = valueStorageBundlesStorageBundle["Location"].asString(); + if(!valueStorageBundlesStorageBundle["CreatedTime"].isNull()) + storageBundlesObject.createdTime = std::stol(valueStorageBundlesStorageBundle["CreatedTime"].asString()); + if(!valueStorageBundlesStorageBundle["ResourceGroupId"].isNull()) + storageBundlesObject.resourceGroupId = valueStorageBundlesStorageBundle["ResourceGroupId"].asString(); + storageBundles_.push_back(storageBundlesObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeStorageBundlesResult::getTotalCount()const +{ + return totalCount_; +} + +std::string DescribeStorageBundlesResult::getMessage()const +{ + return message_; +} + +int DescribeStorageBundlesResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeStorageBundlesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string DescribeStorageBundlesResult::getCode()const +{ + return code_; +} + +std::vector DescribeStorageBundlesResult::getStorageBundles()const +{ + return storageBundles_; +} + +bool DescribeStorageBundlesResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DescribeSubscriptionPriceRequest.cc b/sgw/src/model/DescribeSubscriptionPriceRequest.cc new file mode 100644 index 000000000..f4f530225 --- /dev/null +++ b/sgw/src/model/DescribeSubscriptionPriceRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sgw::Model::DescribeSubscriptionPriceRequest; + +DescribeSubscriptionPriceRequest::DescribeSubscriptionPriceRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeSubscriptionPrice") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeSubscriptionPriceRequest::~DescribeSubscriptionPriceRequest() +{} + +std::string DescribeSubscriptionPriceRequest::getGatewayClass()const +{ + return gatewayClass_; +} + +void DescribeSubscriptionPriceRequest::setGatewayClass(const std::string& gatewayClass) +{ + gatewayClass_ = gatewayClass; + setParameter("GatewayClass", gatewayClass); +} + +long DescribeSubscriptionPriceRequest::getCacheSSDSize()const +{ + return cacheSSDSize_; +} + +void DescribeSubscriptionPriceRequest::setCacheSSDSize(long cacheSSDSize) +{ + cacheSSDSize_ = cacheSSDSize; + setParameter("CacheSSDSize", std::to_string(cacheSSDSize)); +} + +std::string DescribeSubscriptionPriceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeSubscriptionPriceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeSubscriptionPriceRequest::getPeriodUnit()const +{ + return periodUnit_; +} + +void DescribeSubscriptionPriceRequest::setPeriodUnit(const std::string& periodUnit) +{ + periodUnit_ = periodUnit; + setParameter("PeriodUnit", periodUnit); +} + +int DescribeSubscriptionPriceRequest::getPeriodQuantity()const +{ + return periodQuantity_; +} + +void DescribeSubscriptionPriceRequest::setPeriodQuantity(int periodQuantity) +{ + periodQuantity_ = periodQuantity; + setParameter("PeriodQuantity", std::to_string(periodQuantity)); +} + +std::string DescribeSubscriptionPriceRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeSubscriptionPriceRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeSubscriptionPriceRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeSubscriptionPriceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +long DescribeSubscriptionPriceRequest::getCacheCloudEfficiencySize()const +{ + return cacheCloudEfficiencySize_; +} + +void DescribeSubscriptionPriceRequest::setCacheCloudEfficiencySize(long cacheCloudEfficiencySize) +{ + cacheCloudEfficiencySize_ = cacheCloudEfficiencySize; + setParameter("CacheCloudEfficiencySize", std::to_string(cacheCloudEfficiencySize)); +} + diff --git a/sgw/src/model/DescribeSubscriptionPriceResult.cc b/sgw/src/model/DescribeSubscriptionPriceResult.cc new file mode 100644 index 000000000..f5f7197b5 --- /dev/null +++ b/sgw/src/model/DescribeSubscriptionPriceResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeSubscriptionPriceResult::DescribeSubscriptionPriceResult() : + ServiceResult() +{} + +DescribeSubscriptionPriceResult::DescribeSubscriptionPriceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSubscriptionPriceResult::~DescribeSubscriptionPriceResult() +{} + +void DescribeSubscriptionPriceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Currency"].isNull()) + currency_ = value["Currency"].asString(); + if(!value["TradePrice"].isNull()) + tradePrice_ = std::stof(value["TradePrice"].asString()); + +} + +std::string DescribeSubscriptionPriceResult::getMessage()const +{ + return message_; +} + +std::string DescribeSubscriptionPriceResult::getCurrency()const +{ + return currency_; +} + +float DescribeSubscriptionPriceResult::getTradePrice()const +{ + return tradePrice_; +} + +std::string DescribeSubscriptionPriceResult::getCode()const +{ + return code_; +} + +bool DescribeSubscriptionPriceResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DescribeTasksRequest.cc b/sgw/src/model/DescribeTasksRequest.cc new file mode 100644 index 000000000..4eea1f71d --- /dev/null +++ b/sgw/src/model/DescribeTasksRequest.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::Sgw::Model::DescribeTasksRequest; + +DescribeTasksRequest::DescribeTasksRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeTasks") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeTasksRequest::~DescribeTasksRequest() +{} + +std::string DescribeTasksRequest::getTargetId()const +{ + return targetId_; +} + +void DescribeTasksRequest::setTargetId(const std::string& targetId) +{ + targetId_ = targetId; + setParameter("TargetId", targetId); +} + +int DescribeTasksRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeTasksRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeTasksRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeTasksRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeTasksRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeTasksRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +int DescribeTasksRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeTasksRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeTasksRequest::getTaskId()const +{ + return taskId_; +} + +void DescribeTasksRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setParameter("TaskId", taskId); +} + diff --git a/sgw/src/model/DescribeTasksResult.cc b/sgw/src/model/DescribeTasksResult.cc new file mode 100644 index 000000000..602f0dc3c --- /dev/null +++ b/sgw/src/model/DescribeTasksResult.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeTasksResult::DescribeTasksResult() : + ServiceResult() +{} + +DescribeTasksResult::DescribeTasksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeTasksResult::~DescribeTasksResult() +{} + +void DescribeTasksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTasksNode = value["Tasks"]["SimpleTask"]; + for (auto valueTasksSimpleTask : allTasksNode) + { + SimpleTask tasksObject; + if(!valueTasksSimpleTask["TaskId"].isNull()) + tasksObject.taskId = valueTasksSimpleTask["TaskId"].asString(); + if(!valueTasksSimpleTask["Name"].isNull()) + tasksObject.name = valueTasksSimpleTask["Name"].asString(); + if(!valueTasksSimpleTask["CreatedTime"].isNull()) + tasksObject.createdTime = std::stol(valueTasksSimpleTask["CreatedTime"].asString()); + if(!valueTasksSimpleTask["UpdatedTime"].isNull()) + tasksObject.updatedTime = std::stol(valueTasksSimpleTask["UpdatedTime"].asString()); + if(!valueTasksSimpleTask["Progress"].isNull()) + tasksObject.progress = std::stoi(valueTasksSimpleTask["Progress"].asString()); + if(!valueTasksSimpleTask["StateCode"].isNull()) + tasksObject.stateCode = valueTasksSimpleTask["StateCode"].asString(); + if(!valueTasksSimpleTask["StageCode"].isNull()) + tasksObject.stageCode = valueTasksSimpleTask["StageCode"].asString(); + if(!valueTasksSimpleTask["MessageKey"].isNull()) + tasksObject.messageKey = valueTasksSimpleTask["MessageKey"].asString(); + if(!valueTasksSimpleTask["MessageParams"].isNull()) + tasksObject.messageParams = valueTasksSimpleTask["MessageParams"].asString(); + tasks_.push_back(tasksObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeTasksResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector DescribeTasksResult::getTasks()const +{ + return tasks_; +} + +std::string DescribeTasksResult::getMessage()const +{ + return message_; +} + +int DescribeTasksResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeTasksResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string DescribeTasksResult::getCode()const +{ + return code_; +} + +bool DescribeTasksResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DescribeUserBusinessStatusRequest.cc b/sgw/src/model/DescribeUserBusinessStatusRequest.cc new file mode 100644 index 000000000..83bf85d34 --- /dev/null +++ b/sgw/src/model/DescribeUserBusinessStatusRequest.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 + +using AlibabaCloud::Sgw::Model::DescribeUserBusinessStatusRequest; + +DescribeUserBusinessStatusRequest::DescribeUserBusinessStatusRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeUserBusinessStatus") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeUserBusinessStatusRequest::~DescribeUserBusinessStatusRequest() +{} + +std::string DescribeUserBusinessStatusRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeUserBusinessStatusRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeUserBusinessStatusRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeUserBusinessStatusRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + diff --git a/sgw/src/model/DescribeUserBusinessStatusResult.cc b/sgw/src/model/DescribeUserBusinessStatusResult.cc new file mode 100644 index 000000000..1920cc20b --- /dev/null +++ b/sgw/src/model/DescribeUserBusinessStatusResult.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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeUserBusinessStatusResult::DescribeUserBusinessStatusResult() : + ServiceResult() +{} + +DescribeUserBusinessStatusResult::DescribeUserBusinessStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeUserBusinessStatusResult::~DescribeUserBusinessStatusResult() +{} + +void DescribeUserBusinessStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["IsEnabled"].isNull()) + isEnabled_ = value["IsEnabled"].asString() == "true"; + if(!value["IsIndebted"].isNull()) + isIndebted_ = value["IsIndebted"].asString() == "true"; + if(!value["IsIndebtedOverdue"].isNull()) + isIndebtedOverdue_ = value["IsIndebtedOverdue"].asString() == "true"; + if(!value["IsRiskControl"].isNull()) + isRiskControl_ = value["IsRiskControl"].asString() == "true"; + +} + +bool DescribeUserBusinessStatusResult::getIsIndebtedOverdue()const +{ + return isIndebtedOverdue_; +} + +bool DescribeUserBusinessStatusResult::getIsRiskControl()const +{ + return isRiskControl_; +} + +std::string DescribeUserBusinessStatusResult::getMessage()const +{ + return message_; +} + +bool DescribeUserBusinessStatusResult::getIsEnabled()const +{ + return isEnabled_; +} + +bool DescribeUserBusinessStatusResult::getIsIndebted()const +{ + return isIndebted_; +} + +std::string DescribeUserBusinessStatusResult::getCode()const +{ + return code_; +} + +bool DescribeUserBusinessStatusResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DescribeVSwitchesRequest.cc b/sgw/src/model/DescribeVSwitchesRequest.cc new file mode 100644 index 000000000..31420c9c6 --- /dev/null +++ b/sgw/src/model/DescribeVSwitchesRequest.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::Sgw::Model::DescribeVSwitchesRequest; + +DescribeVSwitchesRequest::DescribeVSwitchesRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeVSwitches") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeVSwitchesRequest::~DescribeVSwitchesRequest() +{} + +int DescribeVSwitchesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeVSwitchesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeVSwitchesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeVSwitchesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeVSwitchesRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void DescribeVSwitchesRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setParameter("VSwitchId", vSwitchId); +} + +std::string DescribeVSwitchesRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeVSwitchesRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeVSwitchesRequest::getVpcId()const +{ + return vpcId_; +} + +void DescribeVSwitchesRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + +int DescribeVSwitchesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeVSwitchesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeVSwitchesRequest::getStorageBundleId()const +{ + return storageBundleId_; +} + +void DescribeVSwitchesRequest::setStorageBundleId(const std::string& storageBundleId) +{ + storageBundleId_ = storageBundleId; + setParameter("StorageBundleId", storageBundleId); +} + diff --git a/sgw/src/model/DescribeVSwitchesResult.cc b/sgw/src/model/DescribeVSwitchesResult.cc new file mode 100644 index 000000000..f866d855b --- /dev/null +++ b/sgw/src/model/DescribeVSwitchesResult.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeVSwitchesResult::DescribeVSwitchesResult() : + ServiceResult() +{} + +DescribeVSwitchesResult::DescribeVSwitchesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVSwitchesResult::~DescribeVSwitchesResult() +{} + +void DescribeVSwitchesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allVSwitchesNode = value["VSwitches"]["VSwitch"]; + for (auto valueVSwitchesVSwitch : allVSwitchesNode) + { + VSwitch vSwitchesObject; + if(!valueVSwitchesVSwitch["Name"].isNull()) + vSwitchesObject.name = valueVSwitchesVSwitch["Name"].asString(); + if(!valueVSwitchesVSwitch["Id"].isNull()) + vSwitchesObject.id = valueVSwitchesVSwitch["Id"].asString(); + if(!valueVSwitchesVSwitch["IsDefault"].isNull()) + vSwitchesObject.isDefault = valueVSwitchesVSwitch["IsDefault"].asString() == "true"; + if(!valueVSwitchesVSwitch["ZoneId"].isNull()) + vSwitchesObject.zoneId = valueVSwitchesVSwitch["ZoneId"].asString(); + if(!valueVSwitchesVSwitch["AvailableSelectionInfo"].isNull()) + vSwitchesObject.availableSelectionInfo = valueVSwitchesVSwitch["AvailableSelectionInfo"].asString(); + vSwitches_.push_back(vSwitchesObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeVSwitchesResult::getTotalCount()const +{ + return totalCount_; +} + +std::string DescribeVSwitchesResult::getMessage()const +{ + return message_; +} + +int DescribeVSwitchesResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeVSwitchesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeVSwitchesResult::getVSwitches()const +{ + return vSwitches_; +} + +std::string DescribeVSwitchesResult::getCode()const +{ + return code_; +} + +bool DescribeVSwitchesResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DescribeVpcsRequest.cc b/sgw/src/model/DescribeVpcsRequest.cc new file mode 100644 index 000000000..b94e0699b --- /dev/null +++ b/sgw/src/model/DescribeVpcsRequest.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::Sgw::Model::DescribeVpcsRequest; + +DescribeVpcsRequest::DescribeVpcsRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeVpcs") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeVpcsRequest::~DescribeVpcsRequest() +{} + +int DescribeVpcsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeVpcsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeVpcsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeVpcsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeVpcsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeVpcsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeVpcsRequest::getVpcId()const +{ + return vpcId_; +} + +void DescribeVpcsRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + +int DescribeVpcsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeVpcsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeVpcsRequest::getStorageBundleId()const +{ + return storageBundleId_; +} + +void DescribeVpcsRequest::setStorageBundleId(const std::string& storageBundleId) +{ + storageBundleId_ = storageBundleId; + setParameter("StorageBundleId", storageBundleId); +} + diff --git a/sgw/src/model/DescribeVpcsResult.cc b/sgw/src/model/DescribeVpcsResult.cc new file mode 100644 index 000000000..9909c951c --- /dev/null +++ b/sgw/src/model/DescribeVpcsResult.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeVpcsResult::DescribeVpcsResult() : + ServiceResult() +{} + +DescribeVpcsResult::DescribeVpcsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVpcsResult::~DescribeVpcsResult() +{} + +void DescribeVpcsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allVpcsNode = value["Vpcs"]["Vpc"]; + for (auto valueVpcsVpc : allVpcsNode) + { + Vpc vpcsObject; + if(!valueVpcsVpc["Name"].isNull()) + vpcsObject.name = valueVpcsVpc["Name"].asString(); + if(!valueVpcsVpc["Id"].isNull()) + vpcsObject.id = valueVpcsVpc["Id"].asString(); + if(!valueVpcsVpc["IsDefault"].isNull()) + vpcsObject.isDefault = valueVpcsVpc["IsDefault"].asString() == "true"; + if(!valueVpcsVpc["CidrBlock"].isNull()) + vpcsObject.cidrBlock = valueVpcsVpc["CidrBlock"].asString(); + vpcs_.push_back(vpcsObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +std::vector DescribeVpcsResult::getVpcs()const +{ + return vpcs_; +} + +int DescribeVpcsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string DescribeVpcsResult::getMessage()const +{ + return message_; +} + +int DescribeVpcsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeVpcsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string DescribeVpcsResult::getCode()const +{ + return code_; +} + +bool DescribeVpcsResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/DescribeZonesRequest.cc b/sgw/src/model/DescribeZonesRequest.cc new file mode 100644 index 000000000..cb0b58a27 --- /dev/null +++ b/sgw/src/model/DescribeZonesRequest.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::Sgw::Model::DescribeZonesRequest; + +DescribeZonesRequest::DescribeZonesRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DescribeZones") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeZonesRequest::~DescribeZonesRequest() +{} + +std::string DescribeZonesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeZonesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeZonesRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeZonesRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeZonesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeZonesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/sgw/src/model/DescribeZonesResult.cc b/sgw/src/model/DescribeZonesResult.cc new file mode 100644 index 000000000..940e94bcb --- /dev/null +++ b/sgw/src/model/DescribeZonesResult.cc @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DescribeZonesResult::DescribeZonesResult() : + ServiceResult() +{} + +DescribeZonesResult::DescribeZonesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeZonesResult::~DescribeZonesResult() +{} + +void DescribeZonesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allZonesNode = value["Zones"]["Zone"]; + for (auto valueZonesZone : allZonesNode) + { + Zone zonesObject; + if(!valueZonesZone["ZoneId"].isNull()) + zonesObject.zoneId = valueZonesZone["ZoneId"].asString(); + zones_.push_back(zonesObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribeZonesResult::getMessage()const +{ + return message_; +} + +std::string DescribeZonesResult::getCode()const +{ + return code_; +} + +bool DescribeZonesResult::getSuccess()const +{ + return success_; +} + +std::vector DescribeZonesResult::getZones()const +{ + return zones_; +} + diff --git a/sgw/src/model/DisableGatewayLoggingRequest.cc b/sgw/src/model/DisableGatewayLoggingRequest.cc new file mode 100644 index 000000000..15798c954 --- /dev/null +++ b/sgw/src/model/DisableGatewayLoggingRequest.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::Sgw::Model::DisableGatewayLoggingRequest; + +DisableGatewayLoggingRequest::DisableGatewayLoggingRequest() : + RpcServiceRequest("sgw", "2018-05-11", "DisableGatewayLogging") +{ + setMethod(HttpRequest::Method::Post); +} + +DisableGatewayLoggingRequest::~DisableGatewayLoggingRequest() +{} + +std::string DisableGatewayLoggingRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DisableGatewayLoggingRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DisableGatewayLoggingRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DisableGatewayLoggingRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DisableGatewayLoggingRequest::getGatewayId()const +{ + return gatewayId_; +} + +void DisableGatewayLoggingRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/DisableGatewayLoggingResult.cc b/sgw/src/model/DisableGatewayLoggingResult.cc new file mode 100644 index 000000000..9dac6df40 --- /dev/null +++ b/sgw/src/model/DisableGatewayLoggingResult.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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +DisableGatewayLoggingResult::DisableGatewayLoggingResult() : + ServiceResult() +{} + +DisableGatewayLoggingResult::DisableGatewayLoggingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DisableGatewayLoggingResult::~DisableGatewayLoggingResult() +{} + +void DisableGatewayLoggingResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DisableGatewayLoggingResult::getMessage()const +{ + return message_; +} + +std::string DisableGatewayLoggingResult::getCode()const +{ + return code_; +} + +bool DisableGatewayLoggingResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/EnableGatewayLoggingRequest.cc b/sgw/src/model/EnableGatewayLoggingRequest.cc new file mode 100644 index 000000000..2fab7b553 --- /dev/null +++ b/sgw/src/model/EnableGatewayLoggingRequest.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::Sgw::Model::EnableGatewayLoggingRequest; + +EnableGatewayLoggingRequest::EnableGatewayLoggingRequest() : + RpcServiceRequest("sgw", "2018-05-11", "EnableGatewayLogging") +{ + setMethod(HttpRequest::Method::Post); +} + +EnableGatewayLoggingRequest::~EnableGatewayLoggingRequest() +{} + +std::string EnableGatewayLoggingRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void EnableGatewayLoggingRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string EnableGatewayLoggingRequest::getSecurityToken()const +{ + return securityToken_; +} + +void EnableGatewayLoggingRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string EnableGatewayLoggingRequest::getGatewayId()const +{ + return gatewayId_; +} + +void EnableGatewayLoggingRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/EnableGatewayLoggingResult.cc b/sgw/src/model/EnableGatewayLoggingResult.cc new file mode 100644 index 000000000..2a8fe6188 --- /dev/null +++ b/sgw/src/model/EnableGatewayLoggingResult.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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +EnableGatewayLoggingResult::EnableGatewayLoggingResult() : + ServiceResult() +{} + +EnableGatewayLoggingResult::EnableGatewayLoggingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EnableGatewayLoggingResult::~EnableGatewayLoggingResult() +{} + +void EnableGatewayLoggingResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string EnableGatewayLoggingResult::getMessage()const +{ + return message_; +} + +std::string EnableGatewayLoggingResult::getCode()const +{ + return code_; +} + +bool EnableGatewayLoggingResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/ExpandCacheDiskRequest.cc b/sgw/src/model/ExpandCacheDiskRequest.cc new file mode 100644 index 000000000..43e5d8701 --- /dev/null +++ b/sgw/src/model/ExpandCacheDiskRequest.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::Sgw::Model::ExpandCacheDiskRequest; + +ExpandCacheDiskRequest::ExpandCacheDiskRequest() : + RpcServiceRequest("sgw", "2018-05-11", "ExpandCacheDisk") +{ + setMethod(HttpRequest::Method::Post); +} + +ExpandCacheDiskRequest::~ExpandCacheDiskRequest() +{} + +std::string ExpandCacheDiskRequest::getLocalFilePath()const +{ + return localFilePath_; +} + +void ExpandCacheDiskRequest::setLocalFilePath(const std::string& localFilePath) +{ + localFilePath_ = localFilePath; + setParameter("LocalFilePath", localFilePath); +} + +std::string ExpandCacheDiskRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ExpandCacheDiskRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +int ExpandCacheDiskRequest::getNewSizeInGB()const +{ + return newSizeInGB_; +} + +void ExpandCacheDiskRequest::setNewSizeInGB(int newSizeInGB) +{ + newSizeInGB_ = newSizeInGB; + setParameter("NewSizeInGB", std::to_string(newSizeInGB)); +} + +std::string ExpandCacheDiskRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ExpandCacheDiskRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string ExpandCacheDiskRequest::getGatewayId()const +{ + return gatewayId_; +} + +void ExpandCacheDiskRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/ExpandCacheDiskResult.cc b/sgw/src/model/ExpandCacheDiskResult.cc new file mode 100644 index 000000000..1c83b0a4e --- /dev/null +++ b/sgw/src/model/ExpandCacheDiskResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +ExpandCacheDiskResult::ExpandCacheDiskResult() : + ServiceResult() +{} + +ExpandCacheDiskResult::ExpandCacheDiskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ExpandCacheDiskResult::~ExpandCacheDiskResult() +{} + +void ExpandCacheDiskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + if(!value["BuyURL"].isNull()) + buyURL_ = value["BuyURL"].asString(); + +} + +std::string ExpandCacheDiskResult::getBuyURL()const +{ + return buyURL_; +} + +std::string ExpandCacheDiskResult::getTaskId()const +{ + return taskId_; +} + +std::string ExpandCacheDiskResult::getMessage()const +{ + return message_; +} + +std::string ExpandCacheDiskResult::getCode()const +{ + return code_; +} + +bool ExpandCacheDiskResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/ExpandGatewayNetworkBandwidthRequest.cc b/sgw/src/model/ExpandGatewayNetworkBandwidthRequest.cc new file mode 100644 index 000000000..8accef499 --- /dev/null +++ b/sgw/src/model/ExpandGatewayNetworkBandwidthRequest.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::Sgw::Model::ExpandGatewayNetworkBandwidthRequest; + +ExpandGatewayNetworkBandwidthRequest::ExpandGatewayNetworkBandwidthRequest() : + RpcServiceRequest("sgw", "2018-05-11", "ExpandGatewayNetworkBandwidth") +{ + setMethod(HttpRequest::Method::Post); +} + +ExpandGatewayNetworkBandwidthRequest::~ExpandGatewayNetworkBandwidthRequest() +{} + +int ExpandGatewayNetworkBandwidthRequest::getNewNetworkBandwidth()const +{ + return newNetworkBandwidth_; +} + +void ExpandGatewayNetworkBandwidthRequest::setNewNetworkBandwidth(int newNetworkBandwidth) +{ + newNetworkBandwidth_ = newNetworkBandwidth; + setParameter("NewNetworkBandwidth", std::to_string(newNetworkBandwidth)); +} + +std::string ExpandGatewayNetworkBandwidthRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ExpandGatewayNetworkBandwidthRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ExpandGatewayNetworkBandwidthRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ExpandGatewayNetworkBandwidthRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string ExpandGatewayNetworkBandwidthRequest::getGatewayId()const +{ + return gatewayId_; +} + +void ExpandGatewayNetworkBandwidthRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/ExpandGatewayNetworkBandwidthResult.cc b/sgw/src/model/ExpandGatewayNetworkBandwidthResult.cc new file mode 100644 index 000000000..2bf556b24 --- /dev/null +++ b/sgw/src/model/ExpandGatewayNetworkBandwidthResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +ExpandGatewayNetworkBandwidthResult::ExpandGatewayNetworkBandwidthResult() : + ServiceResult() +{} + +ExpandGatewayNetworkBandwidthResult::ExpandGatewayNetworkBandwidthResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ExpandGatewayNetworkBandwidthResult::~ExpandGatewayNetworkBandwidthResult() +{} + +void ExpandGatewayNetworkBandwidthResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + if(!value["BuyURL"].isNull()) + buyURL_ = value["BuyURL"].asString(); + +} + +std::string ExpandGatewayNetworkBandwidthResult::getBuyURL()const +{ + return buyURL_; +} + +std::string ExpandGatewayNetworkBandwidthResult::getTaskId()const +{ + return taskId_; +} + +std::string ExpandGatewayNetworkBandwidthResult::getMessage()const +{ + return message_; +} + +std::string ExpandGatewayNetworkBandwidthResult::getCode()const +{ + return code_; +} + +bool ExpandGatewayNetworkBandwidthResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/GenerateGatewayTokenRequest.cc b/sgw/src/model/GenerateGatewayTokenRequest.cc new file mode 100644 index 000000000..681929849 --- /dev/null +++ b/sgw/src/model/GenerateGatewayTokenRequest.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::Sgw::Model::GenerateGatewayTokenRequest; + +GenerateGatewayTokenRequest::GenerateGatewayTokenRequest() : + RpcServiceRequest("sgw", "2018-05-11", "GenerateGatewayToken") +{ + setMethod(HttpRequest::Method::Post); +} + +GenerateGatewayTokenRequest::~GenerateGatewayTokenRequest() +{} + +std::string GenerateGatewayTokenRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GenerateGatewayTokenRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string GenerateGatewayTokenRequest::getSecurityToken()const +{ + return securityToken_; +} + +void GenerateGatewayTokenRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string GenerateGatewayTokenRequest::getGatewayId()const +{ + return gatewayId_; +} + +void GenerateGatewayTokenRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/GenerateGatewayTokenResult.cc b/sgw/src/model/GenerateGatewayTokenResult.cc new file mode 100644 index 000000000..255d62c3e --- /dev/null +++ b/sgw/src/model/GenerateGatewayTokenResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +GenerateGatewayTokenResult::GenerateGatewayTokenResult() : + ServiceResult() +{} + +GenerateGatewayTokenResult::GenerateGatewayTokenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GenerateGatewayTokenResult::~GenerateGatewayTokenResult() +{} + +void GenerateGatewayTokenResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Token"].isNull()) + token_ = value["Token"].asString(); + +} + +std::string GenerateGatewayTokenResult::getMessage()const +{ + return message_; +} + +std::string GenerateGatewayTokenResult::getToken()const +{ + return token_; +} + +std::string GenerateGatewayTokenResult::getCode()const +{ + return code_; +} + +bool GenerateGatewayTokenResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/GenerateMqttTokenRequest.cc b/sgw/src/model/GenerateMqttTokenRequest.cc new file mode 100644 index 000000000..e7ff0a915 --- /dev/null +++ b/sgw/src/model/GenerateMqttTokenRequest.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::Sgw::Model::GenerateMqttTokenRequest; + +GenerateMqttTokenRequest::GenerateMqttTokenRequest() : + RpcServiceRequest("sgw", "2018-05-11", "GenerateMqttToken") +{ + setMethod(HttpRequest::Method::Post); +} + +GenerateMqttTokenRequest::~GenerateMqttTokenRequest() +{} + +std::string GenerateMqttTokenRequest::getClientUUID()const +{ + return clientUUID_; +} + +void GenerateMqttTokenRequest::setClientUUID(const std::string& clientUUID) +{ + clientUUID_ = clientUUID; + setParameter("ClientUUID", clientUUID); +} + +std::string GenerateMqttTokenRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GenerateMqttTokenRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string GenerateMqttTokenRequest::getSecurityToken()const +{ + return securityToken_; +} + +void GenerateMqttTokenRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string GenerateMqttTokenRequest::getGatewayId()const +{ + return gatewayId_; +} + +void GenerateMqttTokenRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/GenerateMqttTokenResult.cc b/sgw/src/model/GenerateMqttTokenResult.cc new file mode 100644 index 000000000..697e6779d --- /dev/null +++ b/sgw/src/model/GenerateMqttTokenResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +GenerateMqttTokenResult::GenerateMqttTokenResult() : + ServiceResult() +{} + +GenerateMqttTokenResult::GenerateMqttTokenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GenerateMqttTokenResult::~GenerateMqttTokenResult() +{} + +void GenerateMqttTokenResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["MqttToken"].isNull()) + mqttToken_ = value["MqttToken"].asString(); + +} + +std::string GenerateMqttTokenResult::getMessage()const +{ + return message_; +} + +std::string GenerateMqttTokenResult::getMqttToken()const +{ + return mqttToken_; +} + +std::string GenerateMqttTokenResult::getCode()const +{ + return code_; +} + +bool GenerateMqttTokenResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/GenerateStsTokenRequest.cc b/sgw/src/model/GenerateStsTokenRequest.cc new file mode 100644 index 000000000..4601c3a87 --- /dev/null +++ b/sgw/src/model/GenerateStsTokenRequest.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::Sgw::Model::GenerateStsTokenRequest; + +GenerateStsTokenRequest::GenerateStsTokenRequest() : + RpcServiceRequest("sgw", "2018-05-11", "GenerateStsToken") +{ + setMethod(HttpRequest::Method::Post); +} + +GenerateStsTokenRequest::~GenerateStsTokenRequest() +{} + +std::string GenerateStsTokenRequest::getTokenType()const +{ + return tokenType_; +} + +void GenerateStsTokenRequest::setTokenType(const std::string& tokenType) +{ + tokenType_ = tokenType; + setParameter("TokenType", tokenType); +} + +std::string GenerateStsTokenRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GenerateStsTokenRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +long GenerateStsTokenRequest::getExpireInSeconds()const +{ + return expireInSeconds_; +} + +void GenerateStsTokenRequest::setExpireInSeconds(long expireInSeconds) +{ + expireInSeconds_ = expireInSeconds; + setParameter("ExpireInSeconds", std::to_string(expireInSeconds)); +} + +std::string GenerateStsTokenRequest::getSecurityToken()const +{ + return securityToken_; +} + +void GenerateStsTokenRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string GenerateStsTokenRequest::getGatewayId()const +{ + return gatewayId_; +} + +void GenerateStsTokenRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/GenerateStsTokenResult.cc b/sgw/src/model/GenerateStsTokenResult.cc new file mode 100644 index 000000000..58f2d14e6 --- /dev/null +++ b/sgw/src/model/GenerateStsTokenResult.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +GenerateStsTokenResult::GenerateStsTokenResult() : + ServiceResult() +{} + +GenerateStsTokenResult::GenerateStsTokenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GenerateStsTokenResult::~GenerateStsTokenResult() +{} + +void GenerateStsTokenResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["AccessKeyId"].isNull()) + accessKeyId_ = value["AccessKeyId"].asString(); + if(!value["AccessKeySecret"].isNull()) + accessKeySecret_ = value["AccessKeySecret"].asString(); + if(!value["Expiration"].isNull()) + expiration_ = value["Expiration"].asString(); + if(!value["SecurityToken"].isNull()) + securityToken_ = value["SecurityToken"].asString(); + if(!value["SupportBundleTarget"].isNull()) + supportBundleTarget_ = value["SupportBundleTarget"].asString(); + if(!value["Environment"].isNull()) + environment_ = value["Environment"].asString(); + +} + +std::string GenerateStsTokenResult::getSecurityToken()const +{ + return securityToken_; +} + +std::string GenerateStsTokenResult::getMessage()const +{ + return message_; +} + +std::string GenerateStsTokenResult::getSupportBundleTarget()const +{ + return supportBundleTarget_; +} + +std::string GenerateStsTokenResult::getAccessKeyId()const +{ + return accessKeyId_; +} + +std::string GenerateStsTokenResult::getAccessKeySecret()const +{ + return accessKeySecret_; +} + +std::string GenerateStsTokenResult::getExpiration()const +{ + return expiration_; +} + +std::string GenerateStsTokenResult::getEnvironment()const +{ + return environment_; +} + +std::string GenerateStsTokenResult::getCode()const +{ + return code_; +} + +bool GenerateStsTokenResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/ListTagResourcesRequest.cc b/sgw/src/model/ListTagResourcesRequest.cc new file mode 100644 index 000000000..df33c5dd3 --- /dev/null +++ b/sgw/src/model/ListTagResourcesRequest.cc @@ -0,0 +1,113 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Sgw::Model::ListTagResourcesRequest; + +ListTagResourcesRequest::ListTagResourcesRequest() : + RpcServiceRequest("sgw", "2018-05-11", "ListTagResources") +{ + setMethod(HttpRequest::Method::Post); +} + +ListTagResourcesRequest::~ListTagResourcesRequest() +{} + +std::vector ListTagResourcesRequest::getResourceId()const +{ + return resourceId_; +} + +void ListTagResourcesRequest::setResourceId(const std::vector& resourceId) +{ + resourceId_ = resourceId; + for(int dep1 = 0; dep1!= resourceId.size(); dep1++) { + setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1)); + } +} + +std::string ListTagResourcesRequest::getResourceType()const +{ + return resourceType_; +} + +void ListTagResourcesRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setParameter("ResourceType", resourceType); +} + +std::string ListTagResourcesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListTagResourcesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ListTagResourcesRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ListTagResourcesRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string ListTagResourcesRequest::getRegionId()const +{ + return regionId_; +} + +void ListTagResourcesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListTagResourcesRequest::getNextToken()const +{ + return nextToken_; +} + +void ListTagResourcesRequest::setNextToken(const std::string& nextToken) +{ + nextToken_ = nextToken; + setParameter("NextToken", nextToken); +} + +std::vector ListTagResourcesRequest::getTag()const +{ + return tag_; +} + +void ListTagResourcesRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + for(int dep1 = 0; dep1!= tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + diff --git a/sgw/src/model/ListTagResourcesResult.cc b/sgw/src/model/ListTagResourcesResult.cc new file mode 100644 index 000000000..13a44253b --- /dev/null +++ b/sgw/src/model/ListTagResourcesResult.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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +ListTagResourcesResult::ListTagResourcesResult() : + ServiceResult() +{} + +ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTagResourcesResult::~ListTagResourcesResult() +{} + +void ListTagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTagResourcesNode = value["TagResources"]["TagResource"]; + for (auto valueTagResourcesTagResource : allTagResourcesNode) + { + TagResource tagResourcesObject; + if(!valueTagResourcesTagResource["TagKey"].isNull()) + tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString(); + if(!valueTagResourcesTagResource["TagValue"].isNull()) + tagResourcesObject.tagValue = valueTagResourcesTagResource["TagValue"].asString(); + if(!valueTagResourcesTagResource["ResourceId"].isNull()) + tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString(); + if(!valueTagResourcesTagResource["ResourceType"].isNull()) + tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].asString(); + tagResources_.push_back(tagResourcesObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string ListTagResourcesResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListTagResourcesResult::getTagResources()const +{ + return tagResources_; +} + diff --git a/sgw/src/model/ModifyGatewayBlockVolumeRequest.cc b/sgw/src/model/ModifyGatewayBlockVolumeRequest.cc new file mode 100644 index 000000000..e63119649 --- /dev/null +++ b/sgw/src/model/ModifyGatewayBlockVolumeRequest.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::Sgw::Model::ModifyGatewayBlockVolumeRequest; + +ModifyGatewayBlockVolumeRequest::ModifyGatewayBlockVolumeRequest() : + RpcServiceRequest("sgw", "2018-05-11", "ModifyGatewayBlockVolume") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifyGatewayBlockVolumeRequest::~ModifyGatewayBlockVolumeRequest() +{} + +std::string ModifyGatewayBlockVolumeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyGatewayBlockVolumeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ModifyGatewayBlockVolumeRequest::getCacheConfig()const +{ + return cacheConfig_; +} + +void ModifyGatewayBlockVolumeRequest::setCacheConfig(const std::string& cacheConfig) +{ + cacheConfig_ = cacheConfig; + setParameter("CacheConfig", cacheConfig); +} + +std::string ModifyGatewayBlockVolumeRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyGatewayBlockVolumeRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string ModifyGatewayBlockVolumeRequest::getIndexId()const +{ + return indexId_; +} + +void ModifyGatewayBlockVolumeRequest::setIndexId(const std::string& indexId) +{ + indexId_ = indexId; + setParameter("IndexId", indexId); +} + +std::string ModifyGatewayBlockVolumeRequest::getGatewayId()const +{ + return gatewayId_; +} + +void ModifyGatewayBlockVolumeRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/ModifyGatewayBlockVolumeResult.cc b/sgw/src/model/ModifyGatewayBlockVolumeResult.cc new file mode 100644 index 000000000..650d18688 --- /dev/null +++ b/sgw/src/model/ModifyGatewayBlockVolumeResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +ModifyGatewayBlockVolumeResult::ModifyGatewayBlockVolumeResult() : + ServiceResult() +{} + +ModifyGatewayBlockVolumeResult::ModifyGatewayBlockVolumeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyGatewayBlockVolumeResult::~ModifyGatewayBlockVolumeResult() +{} + +void ModifyGatewayBlockVolumeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + +} + +std::string ModifyGatewayBlockVolumeResult::getTaskId()const +{ + return taskId_; +} + +std::string ModifyGatewayBlockVolumeResult::getMessage()const +{ + return message_; +} + +std::string ModifyGatewayBlockVolumeResult::getCode()const +{ + return code_; +} + +bool ModifyGatewayBlockVolumeResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/ModifyGatewayClassRequest.cc b/sgw/src/model/ModifyGatewayClassRequest.cc new file mode 100644 index 000000000..68e3ecc8d --- /dev/null +++ b/sgw/src/model/ModifyGatewayClassRequest.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::Sgw::Model::ModifyGatewayClassRequest; + +ModifyGatewayClassRequest::ModifyGatewayClassRequest() : + RpcServiceRequest("sgw", "2018-05-11", "ModifyGatewayClass") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifyGatewayClassRequest::~ModifyGatewayClassRequest() +{} + +std::string ModifyGatewayClassRequest::getGatewayClass()const +{ + return gatewayClass_; +} + +void ModifyGatewayClassRequest::setGatewayClass(const std::string& gatewayClass) +{ + gatewayClass_ = gatewayClass; + setParameter("GatewayClass", gatewayClass); +} + +std::string ModifyGatewayClassRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyGatewayClassRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ModifyGatewayClassRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyGatewayClassRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string ModifyGatewayClassRequest::getGatewayId()const +{ + return gatewayId_; +} + +void ModifyGatewayClassRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/ModifyGatewayClassResult.cc b/sgw/src/model/ModifyGatewayClassResult.cc new file mode 100644 index 000000000..b00697b92 --- /dev/null +++ b/sgw/src/model/ModifyGatewayClassResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +ModifyGatewayClassResult::ModifyGatewayClassResult() : + ServiceResult() +{} + +ModifyGatewayClassResult::ModifyGatewayClassResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyGatewayClassResult::~ModifyGatewayClassResult() +{} + +void ModifyGatewayClassResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + if(!value["BuyURL"].isNull()) + buyURL_ = value["BuyURL"].asString(); + +} + +std::string ModifyGatewayClassResult::getBuyURL()const +{ + return buyURL_; +} + +std::string ModifyGatewayClassResult::getTaskId()const +{ + return taskId_; +} + +std::string ModifyGatewayClassResult::getMessage()const +{ + return message_; +} + +std::string ModifyGatewayClassResult::getCode()const +{ + return code_; +} + +bool ModifyGatewayClassResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/ModifyGatewayFileShareRequest.cc b/sgw/src/model/ModifyGatewayFileShareRequest.cc new file mode 100644 index 000000000..1d52c555d --- /dev/null +++ b/sgw/src/model/ModifyGatewayFileShareRequest.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::Sgw::Model::ModifyGatewayFileShareRequest; + +ModifyGatewayFileShareRequest::ModifyGatewayFileShareRequest() : + RpcServiceRequest("sgw", "2018-05-11", "ModifyGatewayFileShare") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifyGatewayFileShareRequest::~ModifyGatewayFileShareRequest() +{} + +std::string ModifyGatewayFileShareRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyGatewayFileShareRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ModifyGatewayFileShareRequest::getCacheConfig()const +{ + return cacheConfig_; +} + +void ModifyGatewayFileShareRequest::setCacheConfig(const std::string& cacheConfig) +{ + cacheConfig_ = cacheConfig; + setParameter("CacheConfig", cacheConfig); +} + +std::string ModifyGatewayFileShareRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyGatewayFileShareRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string ModifyGatewayFileShareRequest::getIndexId()const +{ + return indexId_; +} + +void ModifyGatewayFileShareRequest::setIndexId(const std::string& indexId) +{ + indexId_ = indexId; + setParameter("IndexId", indexId); +} + +std::string ModifyGatewayFileShareRequest::getGatewayId()const +{ + return gatewayId_; +} + +void ModifyGatewayFileShareRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/ModifyGatewayFileShareResult.cc b/sgw/src/model/ModifyGatewayFileShareResult.cc new file mode 100644 index 000000000..bb3711a42 --- /dev/null +++ b/sgw/src/model/ModifyGatewayFileShareResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +ModifyGatewayFileShareResult::ModifyGatewayFileShareResult() : + ServiceResult() +{} + +ModifyGatewayFileShareResult::ModifyGatewayFileShareResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyGatewayFileShareResult::~ModifyGatewayFileShareResult() +{} + +void ModifyGatewayFileShareResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + +} + +std::string ModifyGatewayFileShareResult::getTaskId()const +{ + return taskId_; +} + +std::string ModifyGatewayFileShareResult::getMessage()const +{ + return message_; +} + +std::string ModifyGatewayFileShareResult::getCode()const +{ + return code_; +} + +bool ModifyGatewayFileShareResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/ModifyGatewayRequest.cc b/sgw/src/model/ModifyGatewayRequest.cc new file mode 100644 index 000000000..43df0ff76 --- /dev/null +++ b/sgw/src/model/ModifyGatewayRequest.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::Sgw::Model::ModifyGatewayRequest; + +ModifyGatewayRequest::ModifyGatewayRequest() : + RpcServiceRequest("sgw", "2018-05-11", "ModifyGateway") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifyGatewayRequest::~ModifyGatewayRequest() +{} + +std::string ModifyGatewayRequest::getDescription()const +{ + return description_; +} + +void ModifyGatewayRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string ModifyGatewayRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyGatewayRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ModifyGatewayRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyGatewayRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string ModifyGatewayRequest::getName()const +{ + return name_; +} + +void ModifyGatewayRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string ModifyGatewayRequest::getGatewayId()const +{ + return gatewayId_; +} + +void ModifyGatewayRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/ModifyGatewayResult.cc b/sgw/src/model/ModifyGatewayResult.cc new file mode 100644 index 000000000..ae0a4a7f4 --- /dev/null +++ b/sgw/src/model/ModifyGatewayResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +ModifyGatewayResult::ModifyGatewayResult() : + ServiceResult() +{} + +ModifyGatewayResult::ModifyGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyGatewayResult::~ModifyGatewayResult() +{} + +void ModifyGatewayResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["GatewayId"].isNull()) + gatewayId_ = value["GatewayId"].asString(); + +} + +std::string ModifyGatewayResult::getMessage()const +{ + return message_; +} + +std::string ModifyGatewayResult::getGatewayId()const +{ + return gatewayId_; +} + +std::string ModifyGatewayResult::getCode()const +{ + return code_; +} + +bool ModifyGatewayResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/ModifyStorageBundleRequest.cc b/sgw/src/model/ModifyStorageBundleRequest.cc new file mode 100644 index 000000000..b08c6523f --- /dev/null +++ b/sgw/src/model/ModifyStorageBundleRequest.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::Sgw::Model::ModifyStorageBundleRequest; + +ModifyStorageBundleRequest::ModifyStorageBundleRequest() : + RpcServiceRequest("sgw", "2018-05-11", "ModifyStorageBundle") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifyStorageBundleRequest::~ModifyStorageBundleRequest() +{} + +std::string ModifyStorageBundleRequest::getDescription()const +{ + return description_; +} + +void ModifyStorageBundleRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string ModifyStorageBundleRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyStorageBundleRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ModifyStorageBundleRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyStorageBundleRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string ModifyStorageBundleRequest::getName()const +{ + return name_; +} + +void ModifyStorageBundleRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string ModifyStorageBundleRequest::getStorageBundleId()const +{ + return storageBundleId_; +} + +void ModifyStorageBundleRequest::setStorageBundleId(const std::string& storageBundleId) +{ + storageBundleId_ = storageBundleId; + setParameter("StorageBundleId", storageBundleId); +} + diff --git a/sgw/src/model/ModifyStorageBundleResult.cc b/sgw/src/model/ModifyStorageBundleResult.cc new file mode 100644 index 000000000..164cb38a0 --- /dev/null +++ b/sgw/src/model/ModifyStorageBundleResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +ModifyStorageBundleResult::ModifyStorageBundleResult() : + ServiceResult() +{} + +ModifyStorageBundleResult::ModifyStorageBundleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyStorageBundleResult::~ModifyStorageBundleResult() +{} + +void ModifyStorageBundleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["StorageBundleId"].isNull()) + storageBundleId_ = value["StorageBundleId"].asString(); + +} + +std::string ModifyStorageBundleResult::getMessage()const +{ + return message_; +} + +std::string ModifyStorageBundleResult::getStorageBundleId()const +{ + return storageBundleId_; +} + +std::string ModifyStorageBundleResult::getCode()const +{ + return code_; +} + +bool ModifyStorageBundleResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/OperateGatewayRequest.cc b/sgw/src/model/OperateGatewayRequest.cc new file mode 100644 index 000000000..a292f2d1d --- /dev/null +++ b/sgw/src/model/OperateGatewayRequest.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::Sgw::Model::OperateGatewayRequest; + +OperateGatewayRequest::OperateGatewayRequest() : + RpcServiceRequest("sgw", "2018-05-11", "OperateGateway") +{ + setMethod(HttpRequest::Method::Post); +} + +OperateGatewayRequest::~OperateGatewayRequest() +{} + +std::string OperateGatewayRequest::getOperateAction()const +{ + return operateAction_; +} + +void OperateGatewayRequest::setOperateAction(const std::string& operateAction) +{ + operateAction_ = operateAction; + setParameter("OperateAction", operateAction); +} + +std::string OperateGatewayRequest::getParams()const +{ + return params_; +} + +void OperateGatewayRequest::setParams(const std::string& params) +{ + params_ = params; + setParameter("Params", params); +} + +std::string OperateGatewayRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void OperateGatewayRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string OperateGatewayRequest::getSecurityToken()const +{ + return securityToken_; +} + +void OperateGatewayRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string OperateGatewayRequest::getGatewayId()const +{ + return gatewayId_; +} + +void OperateGatewayRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/OperateGatewayResult.cc b/sgw/src/model/OperateGatewayResult.cc new file mode 100644 index 000000000..4c227af81 --- /dev/null +++ b/sgw/src/model/OperateGatewayResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +OperateGatewayResult::OperateGatewayResult() : + ServiceResult() +{} + +OperateGatewayResult::OperateGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OperateGatewayResult::~OperateGatewayResult() +{} + +void OperateGatewayResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + if(!value["BuyURL"].isNull()) + buyURL_ = value["BuyURL"].asString(); + +} + +std::string OperateGatewayResult::getBuyURL()const +{ + return buyURL_; +} + +std::string OperateGatewayResult::getTaskId()const +{ + return taskId_; +} + +std::string OperateGatewayResult::getMessage()const +{ + return message_; +} + +std::string OperateGatewayResult::getCode()const +{ + return code_; +} + +bool OperateGatewayResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/ReleaseServiceRequest.cc b/sgw/src/model/ReleaseServiceRequest.cc new file mode 100644 index 000000000..88d229257 --- /dev/null +++ b/sgw/src/model/ReleaseServiceRequest.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 + +using AlibabaCloud::Sgw::Model::ReleaseServiceRequest; + +ReleaseServiceRequest::ReleaseServiceRequest() : + RpcServiceRequest("sgw", "2018-05-11", "ReleaseService") +{ + setMethod(HttpRequest::Method::Post); +} + +ReleaseServiceRequest::~ReleaseServiceRequest() +{} + +std::string ReleaseServiceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ReleaseServiceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ReleaseServiceRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ReleaseServiceRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + diff --git a/sgw/src/model/ReleaseServiceResult.cc b/sgw/src/model/ReleaseServiceResult.cc new file mode 100644 index 000000000..e8a9933b2 --- /dev/null +++ b/sgw/src/model/ReleaseServiceResult.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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +ReleaseServiceResult::ReleaseServiceResult() : + ServiceResult() +{} + +ReleaseServiceResult::ReleaseServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReleaseServiceResult::~ReleaseServiceResult() +{} + +void ReleaseServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ReleaseServiceResult::getMessage()const +{ + return message_; +} + +std::string ReleaseServiceResult::getCode()const +{ + return code_; +} + +bool ReleaseServiceResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/RemoveSharesFromExpressSyncRequest.cc b/sgw/src/model/RemoveSharesFromExpressSyncRequest.cc new file mode 100644 index 000000000..903182256 --- /dev/null +++ b/sgw/src/model/RemoveSharesFromExpressSyncRequest.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::Sgw::Model::RemoveSharesFromExpressSyncRequest; + +RemoveSharesFromExpressSyncRequest::RemoveSharesFromExpressSyncRequest() : + RpcServiceRequest("sgw", "2018-05-11", "RemoveSharesFromExpressSync") +{ + setMethod(HttpRequest::Method::Post); +} + +RemoveSharesFromExpressSyncRequest::~RemoveSharesFromExpressSyncRequest() +{} + +std::string RemoveSharesFromExpressSyncRequest::getExpressSyncId()const +{ + return expressSyncId_; +} + +void RemoveSharesFromExpressSyncRequest::setExpressSyncId(const std::string& expressSyncId) +{ + expressSyncId_ = expressSyncId; + setParameter("ExpressSyncId", expressSyncId); +} + +std::string RemoveSharesFromExpressSyncRequest::getGatewayShares()const +{ + return gatewayShares_; +} + +void RemoveSharesFromExpressSyncRequest::setGatewayShares(const std::string& gatewayShares) +{ + gatewayShares_ = gatewayShares; + setParameter("GatewayShares", gatewayShares); +} + +std::string RemoveSharesFromExpressSyncRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void RemoveSharesFromExpressSyncRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string RemoveSharesFromExpressSyncRequest::getSecurityToken()const +{ + return securityToken_; +} + +void RemoveSharesFromExpressSyncRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + diff --git a/sgw/src/model/RemoveSharesFromExpressSyncResult.cc b/sgw/src/model/RemoveSharesFromExpressSyncResult.cc new file mode 100644 index 000000000..659679289 --- /dev/null +++ b/sgw/src/model/RemoveSharesFromExpressSyncResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +RemoveSharesFromExpressSyncResult::RemoveSharesFromExpressSyncResult() : + ServiceResult() +{} + +RemoveSharesFromExpressSyncResult::RemoveSharesFromExpressSyncResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveSharesFromExpressSyncResult::~RemoveSharesFromExpressSyncResult() +{} + +void RemoveSharesFromExpressSyncResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + +} + +std::string RemoveSharesFromExpressSyncResult::getTaskId()const +{ + return taskId_; +} + +std::string RemoveSharesFromExpressSyncResult::getMessage()const +{ + return message_; +} + +std::string RemoveSharesFromExpressSyncResult::getCode()const +{ + return code_; +} + +bool RemoveSharesFromExpressSyncResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/RemoveTagsFromGatewayRequest.cc b/sgw/src/model/RemoveTagsFromGatewayRequest.cc new file mode 100644 index 000000000..f32d1604d --- /dev/null +++ b/sgw/src/model/RemoveTagsFromGatewayRequest.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::Sgw::Model::RemoveTagsFromGatewayRequest; + +RemoveTagsFromGatewayRequest::RemoveTagsFromGatewayRequest() : + RpcServiceRequest("sgw", "2018-05-11", "RemoveTagsFromGateway") +{ + setMethod(HttpRequest::Method::Post); +} + +RemoveTagsFromGatewayRequest::~RemoveTagsFromGatewayRequest() +{} + +std::string RemoveTagsFromGatewayRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void RemoveTagsFromGatewayRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string RemoveTagsFromGatewayRequest::getTags()const +{ + return tags_; +} + +void RemoveTagsFromGatewayRequest::setTags(const std::string& tags) +{ + tags_ = tags; + setParameter("Tags", tags); +} + +std::string RemoveTagsFromGatewayRequest::getSecurityToken()const +{ + return securityToken_; +} + +void RemoveTagsFromGatewayRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string RemoveTagsFromGatewayRequest::getGatewayId()const +{ + return gatewayId_; +} + +void RemoveTagsFromGatewayRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/RemoveTagsFromGatewayResult.cc b/sgw/src/model/RemoveTagsFromGatewayResult.cc new file mode 100644 index 000000000..fee5e87cd --- /dev/null +++ b/sgw/src/model/RemoveTagsFromGatewayResult.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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +RemoveTagsFromGatewayResult::RemoveTagsFromGatewayResult() : + ServiceResult() +{} + +RemoveTagsFromGatewayResult::RemoveTagsFromGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveTagsFromGatewayResult::~RemoveTagsFromGatewayResult() +{} + +void RemoveTagsFromGatewayResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string RemoveTagsFromGatewayResult::getMessage()const +{ + return message_; +} + +std::string RemoveTagsFromGatewayResult::getCode()const +{ + return code_; +} + +bool RemoveTagsFromGatewayResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/ReportBlockVolumesRequest.cc b/sgw/src/model/ReportBlockVolumesRequest.cc new file mode 100644 index 000000000..23d1bc826 --- /dev/null +++ b/sgw/src/model/ReportBlockVolumesRequest.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::Sgw::Model::ReportBlockVolumesRequest; + +ReportBlockVolumesRequest::ReportBlockVolumesRequest() : + RpcServiceRequest("sgw", "2018-05-11", "ReportBlockVolumes") +{ + setMethod(HttpRequest::Method::Post); +} + +ReportBlockVolumesRequest::~ReportBlockVolumesRequest() +{} + +std::string ReportBlockVolumesRequest::getClientUUID()const +{ + return clientUUID_; +} + +void ReportBlockVolumesRequest::setClientUUID(const std::string& clientUUID) +{ + clientUUID_ = clientUUID; + setParameter("ClientUUID", clientUUID); +} + +std::string ReportBlockVolumesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ReportBlockVolumesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ReportBlockVolumesRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ReportBlockVolumesRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string ReportBlockVolumesRequest::getGatewayId()const +{ + return gatewayId_; +} + +void ReportBlockVolumesRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + +std::string ReportBlockVolumesRequest::getInfo()const +{ + return info_; +} + +void ReportBlockVolumesRequest::setInfo(const std::string& info) +{ + info_ = info; + setParameter("Info", info); +} + diff --git a/sgw/src/model/ReportBlockVolumesResult.cc b/sgw/src/model/ReportBlockVolumesResult.cc new file mode 100644 index 000000000..5fb0ae1a9 --- /dev/null +++ b/sgw/src/model/ReportBlockVolumesResult.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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +ReportBlockVolumesResult::ReportBlockVolumesResult() : + ServiceResult() +{} + +ReportBlockVolumesResult::ReportBlockVolumesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReportBlockVolumesResult::~ReportBlockVolumesResult() +{} + +void ReportBlockVolumesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ReportBlockVolumesResult::getMessage()const +{ + return message_; +} + +std::string ReportBlockVolumesResult::getCode()const +{ + return code_; +} + +bool ReportBlockVolumesResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/ReportFileSharesRequest.cc b/sgw/src/model/ReportFileSharesRequest.cc new file mode 100644 index 000000000..149778781 --- /dev/null +++ b/sgw/src/model/ReportFileSharesRequest.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::Sgw::Model::ReportFileSharesRequest; + +ReportFileSharesRequest::ReportFileSharesRequest() : + RpcServiceRequest("sgw", "2018-05-11", "ReportFileShares") +{ + setMethod(HttpRequest::Method::Post); +} + +ReportFileSharesRequest::~ReportFileSharesRequest() +{} + +std::string ReportFileSharesRequest::getClientUUID()const +{ + return clientUUID_; +} + +void ReportFileSharesRequest::setClientUUID(const std::string& clientUUID) +{ + clientUUID_ = clientUUID; + setParameter("ClientUUID", clientUUID); +} + +std::string ReportFileSharesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ReportFileSharesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ReportFileSharesRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ReportFileSharesRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string ReportFileSharesRequest::getGatewayId()const +{ + return gatewayId_; +} + +void ReportFileSharesRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + +std::string ReportFileSharesRequest::getInfo()const +{ + return info_; +} + +void ReportFileSharesRequest::setInfo(const std::string& info) +{ + info_ = info; + setParameter("Info", info); +} + diff --git a/sgw/src/model/ReportFileSharesResult.cc b/sgw/src/model/ReportFileSharesResult.cc new file mode 100644 index 000000000..87091445c --- /dev/null +++ b/sgw/src/model/ReportFileSharesResult.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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +ReportFileSharesResult::ReportFileSharesResult() : + ServiceResult() +{} + +ReportFileSharesResult::ReportFileSharesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReportFileSharesResult::~ReportFileSharesResult() +{} + +void ReportFileSharesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ReportFileSharesResult::getMessage()const +{ + return message_; +} + +std::string ReportFileSharesResult::getCode()const +{ + return code_; +} + +bool ReportFileSharesResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/ReportGatewayInfoRequest.cc b/sgw/src/model/ReportGatewayInfoRequest.cc new file mode 100644 index 000000000..6f4f48c83 --- /dev/null +++ b/sgw/src/model/ReportGatewayInfoRequest.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::Sgw::Model::ReportGatewayInfoRequest; + +ReportGatewayInfoRequest::ReportGatewayInfoRequest() : + RpcServiceRequest("sgw", "2018-05-11", "ReportGatewayInfo") +{ + setMethod(HttpRequest::Method::Post); +} + +ReportGatewayInfoRequest::~ReportGatewayInfoRequest() +{} + +std::string ReportGatewayInfoRequest::getClientUUID()const +{ + return clientUUID_; +} + +void ReportGatewayInfoRequest::setClientUUID(const std::string& clientUUID) +{ + clientUUID_ = clientUUID; + setParameter("ClientUUID", clientUUID); +} + +std::string ReportGatewayInfoRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ReportGatewayInfoRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ReportGatewayInfoRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ReportGatewayInfoRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string ReportGatewayInfoRequest::getGatewayStatus()const +{ + return gatewayStatus_; +} + +void ReportGatewayInfoRequest::setGatewayStatus(const std::string& gatewayStatus) +{ + gatewayStatus_ = gatewayStatus; + setParameter("GatewayStatus", gatewayStatus); +} + +long ReportGatewayInfoRequest::getTime()const +{ + return time_; +} + +void ReportGatewayInfoRequest::setTime(long time) +{ + time_ = time; + setParameter("Time", std::to_string(time)); +} + +std::string ReportGatewayInfoRequest::getGatewayId()const +{ + return gatewayId_; +} + +void ReportGatewayInfoRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + +std::string ReportGatewayInfoRequest::getInfo()const +{ + return info_; +} + +void ReportGatewayInfoRequest::setInfo(const std::string& info) +{ + info_ = info; + setParameter("Info", info); +} + diff --git a/sgw/src/model/ReportGatewayInfoResult.cc b/sgw/src/model/ReportGatewayInfoResult.cc new file mode 100644 index 000000000..7f3bf1aba --- /dev/null +++ b/sgw/src/model/ReportGatewayInfoResult.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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +ReportGatewayInfoResult::ReportGatewayInfoResult() : + ServiceResult() +{} + +ReportGatewayInfoResult::ReportGatewayInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReportGatewayInfoResult::~ReportGatewayInfoResult() +{} + +void ReportGatewayInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ReportGatewayInfoResult::getMessage()const +{ + return message_; +} + +std::string ReportGatewayInfoResult::getCode()const +{ + return code_; +} + +bool ReportGatewayInfoResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/ReportGatewayUsageRequest.cc b/sgw/src/model/ReportGatewayUsageRequest.cc new file mode 100644 index 000000000..85160db80 --- /dev/null +++ b/sgw/src/model/ReportGatewayUsageRequest.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::Sgw::Model::ReportGatewayUsageRequest; + +ReportGatewayUsageRequest::ReportGatewayUsageRequest() : + RpcServiceRequest("sgw", "2018-05-11", "ReportGatewayUsage") +{ + setMethod(HttpRequest::Method::Post); +} + +ReportGatewayUsageRequest::~ReportGatewayUsageRequest() +{} + +std::string ReportGatewayUsageRequest::getClientUUID()const +{ + return clientUUID_; +} + +void ReportGatewayUsageRequest::setClientUUID(const std::string& clientUUID) +{ + clientUUID_ = clientUUID; + setParameter("ClientUUID", clientUUID); +} + +std::string ReportGatewayUsageRequest::getUsage()const +{ + return usage_; +} + +void ReportGatewayUsageRequest::setUsage(const std::string& usage) +{ + usage_ = usage; + setParameter("Usage", usage); +} + +std::string ReportGatewayUsageRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ReportGatewayUsageRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ReportGatewayUsageRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ReportGatewayUsageRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string ReportGatewayUsageRequest::getGatewayId()const +{ + return gatewayId_; +} + +void ReportGatewayUsageRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/ReportGatewayUsageResult.cc b/sgw/src/model/ReportGatewayUsageResult.cc new file mode 100644 index 000000000..d3e9b9227 --- /dev/null +++ b/sgw/src/model/ReportGatewayUsageResult.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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +ReportGatewayUsageResult::ReportGatewayUsageResult() : + ServiceResult() +{} + +ReportGatewayUsageResult::ReportGatewayUsageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReportGatewayUsageResult::~ReportGatewayUsageResult() +{} + +void ReportGatewayUsageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ReportGatewayUsageResult::getMessage()const +{ + return message_; +} + +std::string ReportGatewayUsageResult::getCode()const +{ + return code_; +} + +bool ReportGatewayUsageResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/ResetGatewayPasswordRequest.cc b/sgw/src/model/ResetGatewayPasswordRequest.cc new file mode 100644 index 000000000..6616fb32b --- /dev/null +++ b/sgw/src/model/ResetGatewayPasswordRequest.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::Sgw::Model::ResetGatewayPasswordRequest; + +ResetGatewayPasswordRequest::ResetGatewayPasswordRequest() : + RpcServiceRequest("sgw", "2018-05-11", "ResetGatewayPassword") +{ + setMethod(HttpRequest::Method::Post); +} + +ResetGatewayPasswordRequest::~ResetGatewayPasswordRequest() +{} + +std::string ResetGatewayPasswordRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ResetGatewayPasswordRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ResetGatewayPasswordRequest::getPassword()const +{ + return password_; +} + +void ResetGatewayPasswordRequest::setPassword(const std::string& password) +{ + password_ = password; + setParameter("Password", password); +} + +std::string ResetGatewayPasswordRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ResetGatewayPasswordRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string ResetGatewayPasswordRequest::getGatewayId()const +{ + return gatewayId_; +} + +void ResetGatewayPasswordRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + +std::string ResetGatewayPasswordRequest::getUsername()const +{ + return username_; +} + +void ResetGatewayPasswordRequest::setUsername(const std::string& username) +{ + username_ = username; + setParameter("Username", username); +} + diff --git a/sgw/src/model/ResetGatewayPasswordResult.cc b/sgw/src/model/ResetGatewayPasswordResult.cc new file mode 100644 index 000000000..2e9a6cbc6 --- /dev/null +++ b/sgw/src/model/ResetGatewayPasswordResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +ResetGatewayPasswordResult::ResetGatewayPasswordResult() : + ServiceResult() +{} + +ResetGatewayPasswordResult::ResetGatewayPasswordResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResetGatewayPasswordResult::~ResetGatewayPasswordResult() +{} + +void ResetGatewayPasswordResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + +} + +std::string ResetGatewayPasswordResult::getTaskId()const +{ + return taskId_; +} + +std::string ResetGatewayPasswordResult::getMessage()const +{ + return message_; +} + +std::string ResetGatewayPasswordResult::getCode()const +{ + return code_; +} + +bool ResetGatewayPasswordResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/RestartFileSharesRequest.cc b/sgw/src/model/RestartFileSharesRequest.cc new file mode 100644 index 000000000..f9799b586 --- /dev/null +++ b/sgw/src/model/RestartFileSharesRequest.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::Sgw::Model::RestartFileSharesRequest; + +RestartFileSharesRequest::RestartFileSharesRequest() : + RpcServiceRequest("sgw", "2018-05-11", "RestartFileShares") +{ + setMethod(HttpRequest::Method::Post); +} + +RestartFileSharesRequest::~RestartFileSharesRequest() +{} + +std::string RestartFileSharesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void RestartFileSharesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string RestartFileSharesRequest::getSecurityToken()const +{ + return securityToken_; +} + +void RestartFileSharesRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string RestartFileSharesRequest::getShareProtocol()const +{ + return shareProtocol_; +} + +void RestartFileSharesRequest::setShareProtocol(const std::string& shareProtocol) +{ + shareProtocol_ = shareProtocol; + setParameter("ShareProtocol", shareProtocol); +} + +std::string RestartFileSharesRequest::getGatewayId()const +{ + return gatewayId_; +} + +void RestartFileSharesRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/RestartFileSharesResult.cc b/sgw/src/model/RestartFileSharesResult.cc new file mode 100644 index 000000000..ecf322421 --- /dev/null +++ b/sgw/src/model/RestartFileSharesResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +RestartFileSharesResult::RestartFileSharesResult() : + ServiceResult() +{} + +RestartFileSharesResult::RestartFileSharesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RestartFileSharesResult::~RestartFileSharesResult() +{} + +void RestartFileSharesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + +} + +std::string RestartFileSharesResult::getTaskId()const +{ + return taskId_; +} + +std::string RestartFileSharesResult::getMessage()const +{ + return message_; +} + +std::string RestartFileSharesResult::getCode()const +{ + return code_; +} + +bool RestartFileSharesResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/SetGatewayADInfoRequest.cc b/sgw/src/model/SetGatewayADInfoRequest.cc new file mode 100644 index 000000000..47b765ec4 --- /dev/null +++ b/sgw/src/model/SetGatewayADInfoRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sgw::Model::SetGatewayADInfoRequest; + +SetGatewayADInfoRequest::SetGatewayADInfoRequest() : + RpcServiceRequest("sgw", "2018-05-11", "SetGatewayADInfo") +{ + setMethod(HttpRequest::Method::Post); +} + +SetGatewayADInfoRequest::~SetGatewayADInfoRequest() +{} + +std::string SetGatewayADInfoRequest::getDomainName()const +{ + return domainName_; +} + +void SetGatewayADInfoRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setParameter("DomainName", domainName); +} + +std::string SetGatewayADInfoRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void SetGatewayADInfoRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string SetGatewayADInfoRequest::getPassword()const +{ + return password_; +} + +void SetGatewayADInfoRequest::setPassword(const std::string& password) +{ + password_ = password; + setParameter("Password", password); +} + +std::string SetGatewayADInfoRequest::getSecurityToken()const +{ + return securityToken_; +} + +void SetGatewayADInfoRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string SetGatewayADInfoRequest::getServerIp()const +{ + return serverIp_; +} + +void SetGatewayADInfoRequest::setServerIp(const std::string& serverIp) +{ + serverIp_ = serverIp; + setParameter("ServerIp", serverIp); +} + +std::string SetGatewayADInfoRequest::getGatewayId()const +{ + return gatewayId_; +} + +void SetGatewayADInfoRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + +std::string SetGatewayADInfoRequest::getUsername()const +{ + return username_; +} + +void SetGatewayADInfoRequest::setUsername(const std::string& username) +{ + username_ = username; + setParameter("Username", username); +} + +bool SetGatewayADInfoRequest::getIsEnabled()const +{ + return isEnabled_; +} + +void SetGatewayADInfoRequest::setIsEnabled(bool isEnabled) +{ + isEnabled_ = isEnabled; + setParameter("IsEnabled", isEnabled ? "true" : "false"); +} + diff --git a/sgw/src/model/SetGatewayADInfoResult.cc b/sgw/src/model/SetGatewayADInfoResult.cc new file mode 100644 index 000000000..cf3460401 --- /dev/null +++ b/sgw/src/model/SetGatewayADInfoResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +SetGatewayADInfoResult::SetGatewayADInfoResult() : + ServiceResult() +{} + +SetGatewayADInfoResult::SetGatewayADInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetGatewayADInfoResult::~SetGatewayADInfoResult() +{} + +void SetGatewayADInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + +} + +std::string SetGatewayADInfoResult::getTaskId()const +{ + return taskId_; +} + +std::string SetGatewayADInfoResult::getMessage()const +{ + return message_; +} + +std::string SetGatewayADInfoResult::getCode()const +{ + return code_; +} + +bool SetGatewayADInfoResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/SetGatewayDNSRequest.cc b/sgw/src/model/SetGatewayDNSRequest.cc new file mode 100644 index 000000000..975c9bf57 --- /dev/null +++ b/sgw/src/model/SetGatewayDNSRequest.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::Sgw::Model::SetGatewayDNSRequest; + +SetGatewayDNSRequest::SetGatewayDNSRequest() : + RpcServiceRequest("sgw", "2018-05-11", "SetGatewayDNS") +{ + setMethod(HttpRequest::Method::Post); +} + +SetGatewayDNSRequest::~SetGatewayDNSRequest() +{} + +std::string SetGatewayDNSRequest::getDnsServer()const +{ + return dnsServer_; +} + +void SetGatewayDNSRequest::setDnsServer(const std::string& dnsServer) +{ + dnsServer_ = dnsServer; + setParameter("DnsServer", dnsServer); +} + +std::string SetGatewayDNSRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void SetGatewayDNSRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string SetGatewayDNSRequest::getSecurityToken()const +{ + return securityToken_; +} + +void SetGatewayDNSRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string SetGatewayDNSRequest::getGatewayId()const +{ + return gatewayId_; +} + +void SetGatewayDNSRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/SetGatewayDNSResult.cc b/sgw/src/model/SetGatewayDNSResult.cc new file mode 100644 index 000000000..224016351 --- /dev/null +++ b/sgw/src/model/SetGatewayDNSResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +SetGatewayDNSResult::SetGatewayDNSResult() : + ServiceResult() +{} + +SetGatewayDNSResult::SetGatewayDNSResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetGatewayDNSResult::~SetGatewayDNSResult() +{} + +void SetGatewayDNSResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + +} + +std::string SetGatewayDNSResult::getTaskId()const +{ + return taskId_; +} + +std::string SetGatewayDNSResult::getMessage()const +{ + return message_; +} + +std::string SetGatewayDNSResult::getCode()const +{ + return code_; +} + +bool SetGatewayDNSResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/SetGatewayLDAPInfoRequest.cc b/sgw/src/model/SetGatewayLDAPInfoRequest.cc new file mode 100644 index 000000000..a068209d3 --- /dev/null +++ b/sgw/src/model/SetGatewayLDAPInfoRequest.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::Sgw::Model::SetGatewayLDAPInfoRequest; + +SetGatewayLDAPInfoRequest::SetGatewayLDAPInfoRequest() : + RpcServiceRequest("sgw", "2018-05-11", "SetGatewayLDAPInfo") +{ + setMethod(HttpRequest::Method::Post); +} + +SetGatewayLDAPInfoRequest::~SetGatewayLDAPInfoRequest() +{} + +bool SetGatewayLDAPInfoRequest::getIsTls()const +{ + return isTls_; +} + +void SetGatewayLDAPInfoRequest::setIsTls(bool isTls) +{ + isTls_ = isTls; + setParameter("IsTls", isTls ? "true" : "false"); +} + +std::string SetGatewayLDAPInfoRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void SetGatewayLDAPInfoRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string SetGatewayLDAPInfoRequest::getPassword()const +{ + return password_; +} + +void SetGatewayLDAPInfoRequest::setPassword(const std::string& password) +{ + password_ = password; + setParameter("Password", password); +} + +std::string SetGatewayLDAPInfoRequest::getRootDN()const +{ + return rootDN_; +} + +void SetGatewayLDAPInfoRequest::setRootDN(const std::string& rootDN) +{ + rootDN_ = rootDN; + setParameter("RootDN", rootDN); +} + +std::string SetGatewayLDAPInfoRequest::getSecurityToken()const +{ + return securityToken_; +} + +void SetGatewayLDAPInfoRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string SetGatewayLDAPInfoRequest::getServerIp()const +{ + return serverIp_; +} + +void SetGatewayLDAPInfoRequest::setServerIp(const std::string& serverIp) +{ + serverIp_ = serverIp; + setParameter("ServerIp", serverIp); +} + +std::string SetGatewayLDAPInfoRequest::getBaseDN()const +{ + return baseDN_; +} + +void SetGatewayLDAPInfoRequest::setBaseDN(const std::string& baseDN) +{ + baseDN_ = baseDN; + setParameter("BaseDN", baseDN); +} + +std::string SetGatewayLDAPInfoRequest::getGatewayId()const +{ + return gatewayId_; +} + +void SetGatewayLDAPInfoRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + +bool SetGatewayLDAPInfoRequest::getIsEnabled()const +{ + return isEnabled_; +} + +void SetGatewayLDAPInfoRequest::setIsEnabled(bool isEnabled) +{ + isEnabled_ = isEnabled; + setParameter("IsEnabled", isEnabled ? "true" : "false"); +} + diff --git a/sgw/src/model/SetGatewayLDAPInfoResult.cc b/sgw/src/model/SetGatewayLDAPInfoResult.cc new file mode 100644 index 000000000..fa875d509 --- /dev/null +++ b/sgw/src/model/SetGatewayLDAPInfoResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +SetGatewayLDAPInfoResult::SetGatewayLDAPInfoResult() : + ServiceResult() +{} + +SetGatewayLDAPInfoResult::SetGatewayLDAPInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetGatewayLDAPInfoResult::~SetGatewayLDAPInfoResult() +{} + +void SetGatewayLDAPInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + +} + +std::string SetGatewayLDAPInfoResult::getTaskId()const +{ + return taskId_; +} + +std::string SetGatewayLDAPInfoResult::getMessage()const +{ + return message_; +} + +std::string SetGatewayLDAPInfoResult::getCode()const +{ + return code_; +} + +bool SetGatewayLDAPInfoResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/SwitchGatewayExpirationPolicyRequest.cc b/sgw/src/model/SwitchGatewayExpirationPolicyRequest.cc new file mode 100644 index 000000000..f8f15e0d0 --- /dev/null +++ b/sgw/src/model/SwitchGatewayExpirationPolicyRequest.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::Sgw::Model::SwitchGatewayExpirationPolicyRequest; + +SwitchGatewayExpirationPolicyRequest::SwitchGatewayExpirationPolicyRequest() : + RpcServiceRequest("sgw", "2018-05-11", "SwitchGatewayExpirationPolicy") +{ + setMethod(HttpRequest::Method::Post); +} + +SwitchGatewayExpirationPolicyRequest::~SwitchGatewayExpirationPolicyRequest() +{} + +std::string SwitchGatewayExpirationPolicyRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void SwitchGatewayExpirationPolicyRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string SwitchGatewayExpirationPolicyRequest::getSecurityToken()const +{ + return securityToken_; +} + +void SwitchGatewayExpirationPolicyRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string SwitchGatewayExpirationPolicyRequest::getGatewayId()const +{ + return gatewayId_; +} + +void SwitchGatewayExpirationPolicyRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/SwitchGatewayExpirationPolicyResult.cc b/sgw/src/model/SwitchGatewayExpirationPolicyResult.cc new file mode 100644 index 000000000..d1233a216 --- /dev/null +++ b/sgw/src/model/SwitchGatewayExpirationPolicyResult.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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +SwitchGatewayExpirationPolicyResult::SwitchGatewayExpirationPolicyResult() : + ServiceResult() +{} + +SwitchGatewayExpirationPolicyResult::SwitchGatewayExpirationPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SwitchGatewayExpirationPolicyResult::~SwitchGatewayExpirationPolicyResult() +{} + +void SwitchGatewayExpirationPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string SwitchGatewayExpirationPolicyResult::getMessage()const +{ + return message_; +} + +std::string SwitchGatewayExpirationPolicyResult::getCode()const +{ + return code_; +} + +bool SwitchGatewayExpirationPolicyResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/SwitchToSubscriptionRequest.cc b/sgw/src/model/SwitchToSubscriptionRequest.cc new file mode 100644 index 000000000..2047885e9 --- /dev/null +++ b/sgw/src/model/SwitchToSubscriptionRequest.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::Sgw::Model::SwitchToSubscriptionRequest; + +SwitchToSubscriptionRequest::SwitchToSubscriptionRequest() : + RpcServiceRequest("sgw", "2018-05-11", "SwitchToSubscription") +{ + setMethod(HttpRequest::Method::Post); +} + +SwitchToSubscriptionRequest::~SwitchToSubscriptionRequest() +{} + +std::string SwitchToSubscriptionRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void SwitchToSubscriptionRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string SwitchToSubscriptionRequest::getSecurityToken()const +{ + return securityToken_; +} + +void SwitchToSubscriptionRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string SwitchToSubscriptionRequest::getGatewayId()const +{ + return gatewayId_; +} + +void SwitchToSubscriptionRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/SwitchToSubscriptionResult.cc b/sgw/src/model/SwitchToSubscriptionResult.cc new file mode 100644 index 000000000..e393cb86c --- /dev/null +++ b/sgw/src/model/SwitchToSubscriptionResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +SwitchToSubscriptionResult::SwitchToSubscriptionResult() : + ServiceResult() +{} + +SwitchToSubscriptionResult::SwitchToSubscriptionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SwitchToSubscriptionResult::~SwitchToSubscriptionResult() +{} + +void SwitchToSubscriptionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["SubscriptionURL"].isNull()) + subscriptionURL_ = value["SubscriptionURL"].asString(); + +} + +std::string SwitchToSubscriptionResult::getSubscriptionURL()const +{ + return subscriptionURL_; +} + +std::string SwitchToSubscriptionResult::getMessage()const +{ + return message_; +} + +std::string SwitchToSubscriptionResult::getCode()const +{ + return code_; +} + +bool SwitchToSubscriptionResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/TagResourcesRequest.cc b/sgw/src/model/TagResourcesRequest.cc new file mode 100644 index 000000000..8847926ff --- /dev/null +++ b/sgw/src/model/TagResourcesRequest.cc @@ -0,0 +1,102 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Sgw::Model::TagResourcesRequest; + +TagResourcesRequest::TagResourcesRequest() : + RpcServiceRequest("sgw", "2018-05-11", "TagResources") +{ + setMethod(HttpRequest::Method::Post); +} + +TagResourcesRequest::~TagResourcesRequest() +{} + +std::vector TagResourcesRequest::getResourceId()const +{ + return resourceId_; +} + +void TagResourcesRequest::setResourceId(const std::vector& resourceId) +{ + resourceId_ = resourceId; + for(int dep1 = 0; dep1!= resourceId.size(); dep1++) { + setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1)); + } +} + +std::string TagResourcesRequest::getResourceType()const +{ + return resourceType_; +} + +void TagResourcesRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setParameter("ResourceType", resourceType); +} + +std::string TagResourcesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void TagResourcesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string TagResourcesRequest::getSecurityToken()const +{ + return securityToken_; +} + +void TagResourcesRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string TagResourcesRequest::getRegionId()const +{ + return regionId_; +} + +void TagResourcesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::vector TagResourcesRequest::getTag()const +{ + return tag_; +} + +void TagResourcesRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + for(int dep1 = 0; dep1!= tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + diff --git a/sgw/src/model/TagResourcesResult.cc b/sgw/src/model/TagResourcesResult.cc new file mode 100644 index 000000000..b2542831e --- /dev/null +++ b/sgw/src/model/TagResourcesResult.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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +TagResourcesResult::TagResourcesResult() : + ServiceResult() +{} + +TagResourcesResult::TagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TagResourcesResult::~TagResourcesResult() +{} + +void TagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sgw/src/model/UntagResourcesRequest.cc b/sgw/src/model/UntagResourcesRequest.cc new file mode 100644 index 000000000..beef94769 --- /dev/null +++ b/sgw/src/model/UntagResourcesRequest.cc @@ -0,0 +1,110 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Sgw::Model::UntagResourcesRequest; + +UntagResourcesRequest::UntagResourcesRequest() : + RpcServiceRequest("sgw", "2018-05-11", "UntagResources") +{ + setMethod(HttpRequest::Method::Post); +} + +UntagResourcesRequest::~UntagResourcesRequest() +{} + +bool UntagResourcesRequest::getAll()const +{ + return all_; +} + +void UntagResourcesRequest::setAll(bool all) +{ + all_ = all; + setParameter("All", all ? "true" : "false"); +} + +std::vector UntagResourcesRequest::getResourceId()const +{ + return resourceId_; +} + +void UntagResourcesRequest::setResourceId(const std::vector& resourceId) +{ + resourceId_ = resourceId; + for(int dep1 = 0; dep1!= resourceId.size(); dep1++) { + setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1)); + } +} + +std::string UntagResourcesRequest::getResourceType()const +{ + return resourceType_; +} + +void UntagResourcesRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setParameter("ResourceType", resourceType); +} + +std::string UntagResourcesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UntagResourcesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string UntagResourcesRequest::getSecurityToken()const +{ + return securityToken_; +} + +void UntagResourcesRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string UntagResourcesRequest::getRegionId()const +{ + return regionId_; +} + +void UntagResourcesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::vector UntagResourcesRequest::getTagKey()const +{ + return tagKey_; +} + +void UntagResourcesRequest::setTagKey(const std::vector& tagKey) +{ + tagKey_ = tagKey; + for(int dep1 = 0; dep1!= tagKey.size(); dep1++) { + setParameter("TagKey."+ std::to_string(dep1), tagKey.at(dep1)); + } +} + diff --git a/sgw/src/model/UntagResourcesResult.cc b/sgw/src/model/UntagResourcesResult.cc new file mode 100644 index 000000000..e50268cbe --- /dev/null +++ b/sgw/src/model/UntagResourcesResult.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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +UntagResourcesResult::UntagResourcesResult() : + ServiceResult() +{} + +UntagResourcesResult::UntagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UntagResourcesResult::~UntagResourcesResult() +{} + +void UntagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sgw/src/model/UpdateGatewayBlockVolumeRequest.cc b/sgw/src/model/UpdateGatewayBlockVolumeRequest.cc new file mode 100644 index 000000000..7d99fd4cc --- /dev/null +++ b/sgw/src/model/UpdateGatewayBlockVolumeRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sgw::Model::UpdateGatewayBlockVolumeRequest; + +UpdateGatewayBlockVolumeRequest::UpdateGatewayBlockVolumeRequest() : + RpcServiceRequest("sgw", "2018-05-11", "UpdateGatewayBlockVolume") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateGatewayBlockVolumeRequest::~UpdateGatewayBlockVolumeRequest() +{} + +bool UpdateGatewayBlockVolumeRequest::getChapEnabled()const +{ + return chapEnabled_; +} + +void UpdateGatewayBlockVolumeRequest::setChapEnabled(bool chapEnabled) +{ + chapEnabled_ = chapEnabled; + setParameter("ChapEnabled", chapEnabled ? "true" : "false"); +} + +std::string UpdateGatewayBlockVolumeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UpdateGatewayBlockVolumeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +long UpdateGatewayBlockVolumeRequest::getSize()const +{ + return size_; +} + +void UpdateGatewayBlockVolumeRequest::setSize(long size) +{ + size_ = size; + setParameter("Size", std::to_string(size)); +} + +std::string UpdateGatewayBlockVolumeRequest::getSecurityToken()const +{ + return securityToken_; +} + +void UpdateGatewayBlockVolumeRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string UpdateGatewayBlockVolumeRequest::getChapInUser()const +{ + return chapInUser_; +} + +void UpdateGatewayBlockVolumeRequest::setChapInUser(const std::string& chapInUser) +{ + chapInUser_ = chapInUser; + setParameter("ChapInUser", chapInUser); +} + +std::string UpdateGatewayBlockVolumeRequest::getIndexId()const +{ + return indexId_; +} + +void UpdateGatewayBlockVolumeRequest::setIndexId(const std::string& indexId) +{ + indexId_ = indexId; + setParameter("IndexId", indexId); +} + +std::string UpdateGatewayBlockVolumeRequest::getChapInPassword()const +{ + return chapInPassword_; +} + +void UpdateGatewayBlockVolumeRequest::setChapInPassword(const std::string& chapInPassword) +{ + chapInPassword_ = chapInPassword; + setParameter("ChapInPassword", chapInPassword); +} + +std::string UpdateGatewayBlockVolumeRequest::getGatewayId()const +{ + return gatewayId_; +} + +void UpdateGatewayBlockVolumeRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/UpdateGatewayBlockVolumeResult.cc b/sgw/src/model/UpdateGatewayBlockVolumeResult.cc new file mode 100644 index 000000000..984cfd70d --- /dev/null +++ b/sgw/src/model/UpdateGatewayBlockVolumeResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +UpdateGatewayBlockVolumeResult::UpdateGatewayBlockVolumeResult() : + ServiceResult() +{} + +UpdateGatewayBlockVolumeResult::UpdateGatewayBlockVolumeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateGatewayBlockVolumeResult::~UpdateGatewayBlockVolumeResult() +{} + +void UpdateGatewayBlockVolumeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + +} + +std::string UpdateGatewayBlockVolumeResult::getTaskId()const +{ + return taskId_; +} + +std::string UpdateGatewayBlockVolumeResult::getMessage()const +{ + return message_; +} + +std::string UpdateGatewayBlockVolumeResult::getCode()const +{ + return code_; +} + +bool UpdateGatewayBlockVolumeResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/UpdateGatewayFileShareRequest.cc b/sgw/src/model/UpdateGatewayFileShareRequest.cc new file mode 100644 index 000000000..1570d8282 --- /dev/null +++ b/sgw/src/model/UpdateGatewayFileShareRequest.cc @@ -0,0 +1,381 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Sgw::Model::UpdateGatewayFileShareRequest; + +UpdateGatewayFileShareRequest::UpdateGatewayFileShareRequest() : + RpcServiceRequest("sgw", "2018-05-11", "UpdateGatewayFileShare") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateGatewayFileShareRequest::~UpdateGatewayFileShareRequest() +{} + +std::string UpdateGatewayFileShareRequest::getClientSideCmk()const +{ + return clientSideCmk_; +} + +void UpdateGatewayFileShareRequest::setClientSideCmk(const std::string& clientSideCmk) +{ + clientSideCmk_ = clientSideCmk; + setParameter("ClientSideCmk", clientSideCmk); +} + +bool UpdateGatewayFileShareRequest::getInPlace()const +{ + return inPlace_; +} + +void UpdateGatewayFileShareRequest::setInPlace(bool inPlace) +{ + inPlace_ = inPlace; + setParameter("InPlace", inPlace ? "true" : "false"); +} + +bool UpdateGatewayFileShareRequest::getBrowsable()const +{ + return browsable_; +} + +void UpdateGatewayFileShareRequest::setBrowsable(bool browsable) +{ + browsable_ = browsable; + setParameter("Browsable", browsable ? "true" : "false"); +} + +std::string UpdateGatewayFileShareRequest::getReadWriteUserList()const +{ + return readWriteUserList_; +} + +void UpdateGatewayFileShareRequest::setReadWriteUserList(const std::string& readWriteUserList) +{ + readWriteUserList_ = readWriteUserList; + setParameter("ReadWriteUserList", readWriteUserList); +} + +int UpdateGatewayFileShareRequest::getPollingInterval()const +{ + return pollingInterval_; +} + +void UpdateGatewayFileShareRequest::setPollingInterval(int pollingInterval) +{ + pollingInterval_ = pollingInterval; + setParameter("PollingInterval", std::to_string(pollingInterval)); +} + +std::string UpdateGatewayFileShareRequest::getReadWriteClientList()const +{ + return readWriteClientList_; +} + +void UpdateGatewayFileShareRequest::setReadWriteClientList(const std::string& readWriteClientList) +{ + readWriteClientList_ = readWriteClientList; + setParameter("ReadWriteClientList", readWriteClientList); +} + +std::string UpdateGatewayFileShareRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UpdateGatewayFileShareRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +int UpdateGatewayFileShareRequest::getBackendLimit()const +{ + return backendLimit_; +} + +void UpdateGatewayFileShareRequest::setBackendLimit(int backendLimit) +{ + backendLimit_ = backendLimit; + setParameter("BackendLimit", std::to_string(backendLimit)); +} + +std::string UpdateGatewayFileShareRequest::getSquash()const +{ + return squash_; +} + +void UpdateGatewayFileShareRequest::setSquash(const std::string& squash) +{ + squash_ = squash; + setParameter("Squash", squash); +} + +std::string UpdateGatewayFileShareRequest::getReadOnlyClientList()const +{ + return readOnlyClientList_; +} + +void UpdateGatewayFileShareRequest::setReadOnlyClientList(const std::string& readOnlyClientList) +{ + readOnlyClientList_ = readOnlyClientList; + setParameter("ReadOnlyClientList", readOnlyClientList); +} + +std::string UpdateGatewayFileShareRequest::getServerSideCmk()const +{ + return serverSideCmk_; +} + +void UpdateGatewayFileShareRequest::setServerSideCmk(const std::string& serverSideCmk) +{ + serverSideCmk_ = serverSideCmk; + setParameter("ServerSideCmk", serverSideCmk); +} + +std::string UpdateGatewayFileShareRequest::getSecurityToken()const +{ + return securityToken_; +} + +void UpdateGatewayFileShareRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +long UpdateGatewayFileShareRequest::getKmsRotatePeriod()const +{ + return kmsRotatePeriod_; +} + +void UpdateGatewayFileShareRequest::setKmsRotatePeriod(long kmsRotatePeriod) +{ + kmsRotatePeriod_ = kmsRotatePeriod; + setParameter("KmsRotatePeriod", std::to_string(kmsRotatePeriod)); +} + +bool UpdateGatewayFileShareRequest::getRemoteSyncDownload()const +{ + return remoteSyncDownload_; +} + +void UpdateGatewayFileShareRequest::setRemoteSyncDownload(bool remoteSyncDownload) +{ + remoteSyncDownload_ = remoteSyncDownload; + setParameter("RemoteSyncDownload", remoteSyncDownload ? "true" : "false"); +} + +bool UpdateGatewayFileShareRequest::getServerSideEncryption()const +{ + return serverSideEncryption_; +} + +void UpdateGatewayFileShareRequest::setServerSideEncryption(bool serverSideEncryption) +{ + serverSideEncryption_ = serverSideEncryption; + setParameter("ServerSideEncryption", serverSideEncryption ? "true" : "false"); +} + +bool UpdateGatewayFileShareRequest::getNfsV4Optimization()const +{ + return nfsV4Optimization_; +} + +void UpdateGatewayFileShareRequest::setNfsV4Optimization(bool nfsV4Optimization) +{ + nfsV4Optimization_ = nfsV4Optimization; + setParameter("NfsV4Optimization", nfsV4Optimization ? "true" : "false"); +} + +bool UpdateGatewayFileShareRequest::getAccessBasedEnumeration()const +{ + return accessBasedEnumeration_; +} + +void UpdateGatewayFileShareRequest::setAccessBasedEnumeration(bool accessBasedEnumeration) +{ + accessBasedEnumeration_ = accessBasedEnumeration; + setParameter("AccessBasedEnumeration", accessBasedEnumeration ? "true" : "false"); +} + +std::string UpdateGatewayFileShareRequest::getGatewayId()const +{ + return gatewayId_; +} + +void UpdateGatewayFileShareRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + +bool UpdateGatewayFileShareRequest::getIgnoreDelete()const +{ + return ignoreDelete_; +} + +void UpdateGatewayFileShareRequest::setIgnoreDelete(bool ignoreDelete) +{ + ignoreDelete_ = ignoreDelete; + setParameter("IgnoreDelete", ignoreDelete ? "true" : "false"); +} + +long UpdateGatewayFileShareRequest::getLagPeriod()const +{ + return lagPeriod_; +} + +void UpdateGatewayFileShareRequest::setLagPeriod(long lagPeriod) +{ + lagPeriod_ = lagPeriod; + setParameter("LagPeriod", std::to_string(lagPeriod)); +} + +bool UpdateGatewayFileShareRequest::getDirectIO()const +{ + return directIO_; +} + +void UpdateGatewayFileShareRequest::setDirectIO(bool directIO) +{ + directIO_ = directIO; + setParameter("DirectIO", directIO ? "true" : "false"); +} + +bool UpdateGatewayFileShareRequest::getClientSideEncryption()const +{ + return clientSideEncryption_; +} + +void UpdateGatewayFileShareRequest::setClientSideEncryption(bool clientSideEncryption) +{ + clientSideEncryption_ = clientSideEncryption; + setParameter("ClientSideEncryption", clientSideEncryption ? "true" : "false"); +} + +std::string UpdateGatewayFileShareRequest::getCacheMode()const +{ + return cacheMode_; +} + +void UpdateGatewayFileShareRequest::setCacheMode(const std::string& cacheMode) +{ + cacheMode_ = cacheMode; + setParameter("CacheMode", cacheMode); +} + +int UpdateGatewayFileShareRequest::getDownloadLimit()const +{ + return downloadLimit_; +} + +void UpdateGatewayFileShareRequest::setDownloadLimit(int downloadLimit) +{ + downloadLimit_ = downloadLimit; + setParameter("DownloadLimit", std::to_string(downloadLimit)); +} + +std::string UpdateGatewayFileShareRequest::getReadOnlyUserList()const +{ + return readOnlyUserList_; +} + +void UpdateGatewayFileShareRequest::setReadOnlyUserList(const std::string& readOnlyUserList) +{ + readOnlyUserList_ = readOnlyUserList; + setParameter("ReadOnlyUserList", readOnlyUserList); +} + +bool UpdateGatewayFileShareRequest::getFastReclaim()const +{ + return fastReclaim_; +} + +void UpdateGatewayFileShareRequest::setFastReclaim(bool fastReclaim) +{ + fastReclaim_ = fastReclaim; + setParameter("FastReclaim", fastReclaim ? "true" : "false"); +} + +bool UpdateGatewayFileShareRequest::getWindowsAcl()const +{ + return windowsAcl_; +} + +void UpdateGatewayFileShareRequest::setWindowsAcl(bool windowsAcl) +{ + windowsAcl_ = windowsAcl; + setParameter("WindowsAcl", windowsAcl ? "true" : "false"); +} + +std::string UpdateGatewayFileShareRequest::getName()const +{ + return name_; +} + +void UpdateGatewayFileShareRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string UpdateGatewayFileShareRequest::getIndexId()const +{ + return indexId_; +} + +void UpdateGatewayFileShareRequest::setIndexId(const std::string& indexId) +{ + indexId_ = indexId; + setParameter("IndexId", indexId); +} + +bool UpdateGatewayFileShareRequest::getTransferAcceleration()const +{ + return transferAcceleration_; +} + +void UpdateGatewayFileShareRequest::setTransferAcceleration(bool transferAcceleration) +{ + transferAcceleration_ = transferAcceleration; + setParameter("TransferAcceleration", transferAcceleration ? "true" : "false"); +} + +bool UpdateGatewayFileShareRequest::getRemoteSync()const +{ + return remoteSync_; +} + +void UpdateGatewayFileShareRequest::setRemoteSync(bool remoteSync) +{ + remoteSync_ = remoteSync; + setParameter("RemoteSync", remoteSync ? "true" : "false"); +} + +int UpdateGatewayFileShareRequest::getFrontendLimit()const +{ + return frontendLimit_; +} + +void UpdateGatewayFileShareRequest::setFrontendLimit(int frontendLimit) +{ + frontendLimit_ = frontendLimit; + setParameter("FrontendLimit", std::to_string(frontendLimit)); +} + diff --git a/sgw/src/model/UpdateGatewayFileShareResult.cc b/sgw/src/model/UpdateGatewayFileShareResult.cc new file mode 100644 index 000000000..781ae06bc --- /dev/null +++ b/sgw/src/model/UpdateGatewayFileShareResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +UpdateGatewayFileShareResult::UpdateGatewayFileShareResult() : + ServiceResult() +{} + +UpdateGatewayFileShareResult::UpdateGatewayFileShareResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateGatewayFileShareResult::~UpdateGatewayFileShareResult() +{} + +void UpdateGatewayFileShareResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + +} + +std::string UpdateGatewayFileShareResult::getTaskId()const +{ + return taskId_; +} + +std::string UpdateGatewayFileShareResult::getMessage()const +{ + return message_; +} + +std::string UpdateGatewayFileShareResult::getCode()const +{ + return code_; +} + +bool UpdateGatewayFileShareResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/UpgradeGatewayRequest.cc b/sgw/src/model/UpgradeGatewayRequest.cc new file mode 100644 index 000000000..ae5868e41 --- /dev/null +++ b/sgw/src/model/UpgradeGatewayRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Sgw::Model::UpgradeGatewayRequest; + +UpgradeGatewayRequest::UpgradeGatewayRequest() : + RpcServiceRequest("sgw", "2018-05-11", "UpgradeGateway") +{ + setMethod(HttpRequest::Method::Post); +} + +UpgradeGatewayRequest::~UpgradeGatewayRequest() +{} + +std::string UpgradeGatewayRequest::getGatewayId()const +{ + return gatewayId_; +} + +void UpgradeGatewayRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/UpgradeGatewayResult.cc b/sgw/src/model/UpgradeGatewayResult.cc new file mode 100644 index 000000000..7dc8d56d4 --- /dev/null +++ b/sgw/src/model/UpgradeGatewayResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +UpgradeGatewayResult::UpgradeGatewayResult() : + ServiceResult() +{} + +UpgradeGatewayResult::UpgradeGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpgradeGatewayResult::~UpgradeGatewayResult() +{} + +void UpgradeGatewayResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + +} + +std::string UpgradeGatewayResult::getTaskId()const +{ + return taskId_; +} + +std::string UpgradeGatewayResult::getMessage()const +{ + return message_; +} + +std::string UpgradeGatewayResult::getCode()const +{ + return code_; +} + +bool UpgradeGatewayResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/UploadGatewayLogRequest.cc b/sgw/src/model/UploadGatewayLogRequest.cc new file mode 100644 index 000000000..4ed2efebc --- /dev/null +++ b/sgw/src/model/UploadGatewayLogRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Sgw::Model::UploadGatewayLogRequest; + +UploadGatewayLogRequest::UploadGatewayLogRequest() : + RpcServiceRequest("sgw", "2018-05-11", "UploadGatewayLog") +{ + setMethod(HttpRequest::Method::Post); +} + +UploadGatewayLogRequest::~UploadGatewayLogRequest() +{} + +std::string UploadGatewayLogRequest::getGatewayId()const +{ + return gatewayId_; +} + +void UploadGatewayLogRequest::setGatewayId(const std::string& gatewayId) +{ + gatewayId_ = gatewayId; + setParameter("GatewayId", gatewayId); +} + diff --git a/sgw/src/model/UploadGatewayLogResult.cc b/sgw/src/model/UploadGatewayLogResult.cc new file mode 100644 index 000000000..d2f910fc2 --- /dev/null +++ b/sgw/src/model/UploadGatewayLogResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +UploadGatewayLogResult::UploadGatewayLogResult() : + ServiceResult() +{} + +UploadGatewayLogResult::UploadGatewayLogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UploadGatewayLogResult::~UploadGatewayLogResult() +{} + +void UploadGatewayLogResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + +} + +std::string UploadGatewayLogResult::getTaskId()const +{ + return taskId_; +} + +std::string UploadGatewayLogResult::getMessage()const +{ + return message_; +} + +std::string UploadGatewayLogResult::getCode()const +{ + return code_; +} + +bool UploadGatewayLogResult::getSuccess()const +{ + return success_; +} + diff --git a/sgw/src/model/ValidateExpressSyncConfigRequest.cc b/sgw/src/model/ValidateExpressSyncConfigRequest.cc new file mode 100644 index 000000000..06158b53c --- /dev/null +++ b/sgw/src/model/ValidateExpressSyncConfigRequest.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::Sgw::Model::ValidateExpressSyncConfigRequest; + +ValidateExpressSyncConfigRequest::ValidateExpressSyncConfigRequest() : + RpcServiceRequest("sgw", "2018-05-11", "ValidateExpressSyncConfig") +{ + setMethod(HttpRequest::Method::Post); +} + +ValidateExpressSyncConfigRequest::~ValidateExpressSyncConfigRequest() +{} + +std::string ValidateExpressSyncConfigRequest::getBucketRegion()const +{ + return bucketRegion_; +} + +void ValidateExpressSyncConfigRequest::setBucketRegion(const std::string& bucketRegion) +{ + bucketRegion_ = bucketRegion; + setParameter("BucketRegion", bucketRegion); +} + +std::string ValidateExpressSyncConfigRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ValidateExpressSyncConfigRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ValidateExpressSyncConfigRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ValidateExpressSyncConfigRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string ValidateExpressSyncConfigRequest::getBucketName()const +{ + return bucketName_; +} + +void ValidateExpressSyncConfigRequest::setBucketName(const std::string& bucketName) +{ + bucketName_ = bucketName; + setParameter("BucketName", bucketName); +} + +std::string ValidateExpressSyncConfigRequest::getName()const +{ + return name_; +} + +void ValidateExpressSyncConfigRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string ValidateExpressSyncConfigRequest::getBucketPrefix()const +{ + return bucketPrefix_; +} + +void ValidateExpressSyncConfigRequest::setBucketPrefix(const std::string& bucketPrefix) +{ + bucketPrefix_ = bucketPrefix; + setParameter("BucketPrefix", bucketPrefix); +} + diff --git a/sgw/src/model/ValidateExpressSyncConfigResult.cc b/sgw/src/model/ValidateExpressSyncConfigResult.cc new file mode 100644 index 000000000..f17d555fe --- /dev/null +++ b/sgw/src/model/ValidateExpressSyncConfigResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +ValidateExpressSyncConfigResult::ValidateExpressSyncConfigResult() : + ServiceResult() +{} + +ValidateExpressSyncConfigResult::ValidateExpressSyncConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ValidateExpressSyncConfigResult::~ValidateExpressSyncConfigResult() +{} + +void ValidateExpressSyncConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["IsValid"].isNull()) + isValid_ = value["IsValid"].asString() == "true"; + if(!value["ValidateMessage"].isNull()) + validateMessage_ = value["ValidateMessage"].asString(); + +} + +std::string ValidateExpressSyncConfigResult::getMessage()const +{ + return message_; +} + +std::string ValidateExpressSyncConfigResult::getValidateMessage()const +{ + return validateMessage_; +} + +std::string ValidateExpressSyncConfigResult::getCode()const +{ + return code_; +} + +bool ValidateExpressSyncConfigResult::getSuccess()const +{ + return success_; +} + +bool ValidateExpressSyncConfigResult::getIsValid()const +{ + return isValid_; +} + diff --git a/sgw/src/model/ValidateGatewayNameRequest.cc b/sgw/src/model/ValidateGatewayNameRequest.cc new file mode 100644 index 000000000..e40980f22 --- /dev/null +++ b/sgw/src/model/ValidateGatewayNameRequest.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 + +using AlibabaCloud::Sgw::Model::ValidateGatewayNameRequest; + +ValidateGatewayNameRequest::ValidateGatewayNameRequest() : + RpcServiceRequest("sgw", "2018-05-11", "ValidateGatewayName") +{ + setMethod(HttpRequest::Method::Post); +} + +ValidateGatewayNameRequest::~ValidateGatewayNameRequest() +{} + +std::string ValidateGatewayNameRequest::getName()const +{ + return name_; +} + +void ValidateGatewayNameRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string ValidateGatewayNameRequest::getStorageBundleId()const +{ + return storageBundleId_; +} + +void ValidateGatewayNameRequest::setStorageBundleId(const std::string& storageBundleId) +{ + storageBundleId_ = storageBundleId; + setParameter("StorageBundleId", storageBundleId); +} + diff --git a/sgw/src/model/ValidateGatewayNameResult.cc b/sgw/src/model/ValidateGatewayNameResult.cc new file mode 100644 index 000000000..badda5bcc --- /dev/null +++ b/sgw/src/model/ValidateGatewayNameResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sgw; +using namespace AlibabaCloud::Sgw::Model; + +ValidateGatewayNameResult::ValidateGatewayNameResult() : + ServiceResult() +{} + +ValidateGatewayNameResult::ValidateGatewayNameResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ValidateGatewayNameResult::~ValidateGatewayNameResult() +{} + +void ValidateGatewayNameResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["IsValid"].isNull()) + isValid_ = value["IsValid"].asString() == "true"; + +} + +std::string ValidateGatewayNameResult::getMessage()const +{ + return message_; +} + +std::string ValidateGatewayNameResult::getCode()const +{ + return code_; +} + +bool ValidateGatewayNameResult::getSuccess()const +{ + return success_; +} + +bool ValidateGatewayNameResult::getIsValid()const +{ + return isValid_; +} +