From 28e491ccfdc28afb646f197820dcfd3fc0aea21f Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 12 Nov 2020 02:39:00 +0000 Subject: [PATCH] Support OpenAPI. --- CHANGELOG | 3 + openanalytics-open/CMakeLists.txt | 370 +++ .../Openanalytics_openClient.h | 622 ++++ .../Openanalytics_openExport.h | 32 + .../model/AddAccountRequest.h | 69 + .../model/AddAccountResult.h | 58 + .../model/AddEndPointRequest.h | 63 + .../model/AddEndPointResult.h | 67 + .../model/AddPartitionsRequest.h | 48 + .../model/AddPartitionsResult.h | 57 + .../model/AlterDatabaseRequest.h | 60 + .../model/AlterDatabaseResult.h | 57 + .../model/AlterTableRequest.h | 63 + .../model/AlterTableResult.h | 57 + .../model/BindingRamUidToDlaAccountRequest.h | 60 + .../model/BindingRamUidToDlaAccountResult.h | 51 + .../model/CreateDatabaseRequest.h | 57 + .../model/CreateDatabaseResult.h | 57 + .../model/CreateInstanceRequest.h | 57 + .../model/CreateInstanceResult.h | 57 + .../model/CreateServiceLinkedRoleRequest.h | 48 + .../model/CreateServiceLinkedRoleResult.h | 64 + .../model/CreateTableRequest.h | 69 + .../model/CreateTableResult.h | 57 + .../model/CreateUserNetConfigRequest.h | 54 + .../model/CreateUserNetConfigResult.h | 49 + .../CreateVirtualClusterForSparkRequest.h | 69 + .../CreateVirtualClusterForSparkResult.h | 49 + .../model/DecodeStsTokenRequest.h | 54 + .../model/DecodeStsTokenResult.h | 70 + .../model/DeleteAccountRequest.h | 57 + .../model/DeleteAccountResult.h | 51 + .../model/DeleteUserNetConfigRequest.h | 48 + .../model/DeleteUserNetConfigResult.h | 49 + .../model/DescribeCapacityRequest.h | 51 + .../model/DescribeCapacityResult.h | 53 + .../DescribeDataLakeAnalyticsServiceRequest.h | 51 + .../DescribeDataLakeAnalyticsServiceResult.h | 57 + .../model/DescribeRegionListRequest.h | 45 + .../model/DescribeRegionListResult.h | 57 + .../model/DescribeVirtualClusterRequest.h | 48 + .../model/DescribeVirtualClusterResult.h | 68 + .../model/DescribeVirtualClusterV2Request.h | 48 + .../model/DescribeVirtualClusterV2Result.h | 78 + .../model/DestroyVirtualClusterRequest.h | 48 + .../model/DestroyVirtualClusterResult.h | 49 + .../model/DropDatabaseRequest.h | 51 + .../model/DropDatabaseResult.h | 57 + .../model/DropPartitionRequest.h | 54 + .../model/DropPartitionResult.h | 57 + .../model/DropTableRequest.h | 51 + .../model/DropTableResult.h | 57 + ...maticMetaSyncAsIntegrationAccountRequest.h | 48 + ...omaticMetaSyncAsIntegrationAccountResult.h | 51 + .../model/GetAllDatabasesRequest.h | 45 + .../model/GetAllDatabasesResult.h | 57 + .../model/GetAllTablesRequest.h | 48 + .../model/GetAllTablesResult.h | 57 + .../model/GetAllowIPRequest.h | 54 + .../model/GetAllowIPResult.h | 53 + .../model/GetConsolePermissionRequest.h | 48 + .../model/GetConsolePermissionResult.h | 53 + .../model/GetDLAServiceStatusRequest.h | 57 + .../model/GetDLAServiceStatusResult.h | 59 + .../model/GetDatabaseRequest.h | 48 + .../model/GetDatabaseResult.h | 66 + .../model/GetEndPointByDomainRequest.h | 51 + .../model/GetEndPointByDomainResult.h | 67 + .../model/GetEndPointRequest.h | 51 + .../model/GetEndPointResult.h | 67 + .../model/GetJobDetailRequest.h | 51 + .../model/GetJobDetailResult.h | 69 + .../model/GetJobLogRequest.h | 51 + .../model/GetJobLogResult.h | 51 + .../model/GetJobStatusRequest.h | 51 + .../model/GetJobStatusResult.h | 51 + .../model/GetPartitionRequest.h | 54 + .../model/GetPartitionResult.h | 87 + .../model/GetPartitionsRequest.h | 54 + .../model/GetPartitionsResult.h | 87 + .../model/GetRegionStatusRequest.h | 57 + .../model/GetRegionStatusResult.h | 53 + .../model/GetServiceLinkedRoleStatusRequest.h | 48 + .../model/GetServiceLinkedRoleStatusResult.h | 53 + .../model/GetTableRequest.h | 51 + .../openanalytics-open/model/GetTableResult.h | 98 + .../model/GrantPrivilegesRequest.h | 48 + .../model/GrantPrivilegesResult.h | 57 + .../model/InitializeDLAServiceRequest.h | 66 + .../model/InitializeDLAServiceResult.h | 58 + .../model/InitializeRegionRequest.h | 66 + .../model/InitializeRegionResult.h | 58 + .../model/KillSparkJobRequest.h | 51 + .../model/KillSparkJobResult.h | 51 + .../model/ListAlreadyBingingRamUidRequest.h | 48 + .../model/ListAlreadyBingingRamUidResult.h | 53 + .../model/ListModulesReleaseRequest.h | 45 + .../model/ListModulesReleaseResult.h | 58 + .../model/ListResourcesSpecRequest.h | 48 + .../model/ListResourcesSpecResult.h | 56 + .../model/ListSparkJobRequest.h | 54 + .../model/ListSparkJobResult.h | 76 + .../model/ListVirtualClustersRequest.h | 48 + .../model/ListVirtualClustersResult.h | 63 + .../ModifyVirtualClusterForSparkRequest.h | 69 + .../ModifyVirtualClusterForSparkResult.h | 49 + .../model/ModifyVirtualClusterRequest.h | 63 + .../model/ModifyVirtualClusterResult.h | 49 + .../OpenDataLakeAnalyticsServiceRequest.h | 51 + .../OpenDataLakeAnalyticsServiceResult.h | 57 + .../model/QueryAccountListRequest.h | 54 + .../model/QueryAccountListResult.h | 67 + .../model/QueryDataSourceDefRequest.h | 48 + .../model/QueryDataSourceDefResult.h | 59 + .../model/QueryDiscountListRequest.h | 54 + .../model/QueryDiscountListResult.h | 77 + .../model/QueryEndPointListRequest.h | 48 + .../model/QueryEndPointListResult.h | 67 + .../model/QueryServiceAccountListRequest.h | 48 + .../model/QueryServiceAccountListResult.h | 59 + .../model/QueryTaskSumRequest.h | 57 + .../model/QueryTaskSumResult.h | 69 + .../model/ReleaseInstanceRequest.h | 51 + .../model/ReleaseInstanceResult.h | 57 + .../model/RemoveEndPointRequest.h | 51 + .../model/RemoveEndPointResult.h | 51 + .../model/ResetMainPasswordRequest.h | 66 + .../model/ResetMainPasswordResult.h | 58 + .../model/RevokePrivilegesRequest.h | 48 + .../model/RevokePrivilegesResult.h | 57 + .../model/SetAllowIPRequest.h | 60 + .../model/SetAllowIPResult.h | 51 + .../model/SetCapacityLimitPolicyRequest.h | 54 + .../model/SetCapacityLimitPolicyResult.h | 51 + .../model/SetRelationWithBizRequest.h | 57 + .../model/SetRelationWithBizResult.h | 51 + .../model/SetTrafficLimitPolicyRequest.h | 54 + .../model/SetTrafficLimitPolicyResult.h | 51 + .../model/StartVirtualClusterRequest.h | 48 + .../model/StartVirtualClusterResult.h | 49 + .../model/StopVirtualClusterRequest.h | 48 + .../model/StopVirtualClusterResult.h | 49 + .../model/SubmitSparkJobRequest.h | 51 + .../model/SubmitSparkJobResult.h | 51 + .../model/UnSubscribeRegionRequest.h | 48 + .../model/UnSubscribeRegionResult.h | 51 + .../model/UpdateAccountPasswordRequest.h | 63 + .../model/UpdateAccountPasswordResult.h | 58 + .../src/Openanalytics-openClient.cc | 2645 +++++++++++++++++ .../src/model/AddAccountRequest.cc | 117 + .../src/model/AddAccountResult.cc | 61 + .../src/model/AddEndPointRequest.cc | 95 + .../src/model/AddEndPointResult.cc | 79 + .../src/model/AddPartitionsRequest.cc | 40 + .../src/model/AddPartitionsResult.cc | 72 + .../src/model/AlterDatabaseRequest.cc | 84 + .../src/model/AlterDatabaseResult.cc | 72 + .../src/model/AlterTableRequest.cc | 95 + .../src/model/AlterTableResult.cc | 72 + .../model/BindingRamUidToDlaAccountRequest.cc | 84 + .../model/BindingRamUidToDlaAccountResult.cc | 51 + .../src/model/CreateDatabaseRequest.cc | 73 + .../src/model/CreateDatabaseResult.cc | 72 + .../src/model/CreateInstanceRequest.cc | 73 + .../src/model/CreateInstanceResult.cc | 72 + .../model/CreateServiceLinkedRoleRequest.cc | 40 + .../model/CreateServiceLinkedRoleResult.cc | 78 + .../src/model/CreateTableRequest.cc | 117 + .../src/model/CreateTableResult.cc | 72 + .../src/model/CreateUserNetConfigRequest.cc | 62 + .../src/model/CreateUserNetConfigResult.cc | 44 + .../CreateVirtualClusterForSparkRequest.cc | 117 + .../CreateVirtualClusterForSparkResult.cc | 44 + .../src/model/DecodeStsTokenRequest.cc | 62 + .../src/model/DecodeStsTokenResult.cc | 85 + .../src/model/DeleteAccountRequest.cc | 73 + .../src/model/DeleteAccountResult.cc | 51 + .../src/model/DeleteUserNetConfigRequest.cc | 40 + .../src/model/DeleteUserNetConfigResult.cc | 44 + .../src/model/DescribeCapacityRequest.cc | 51 + .../src/model/DescribeCapacityResult.cc | 58 + ...DescribeDataLakeAnalyticsServiceRequest.cc | 51 + .../DescribeDataLakeAnalyticsServiceResult.cc | 72 + .../src/model/DescribeRegionListRequest.cc | 29 + .../src/model/DescribeRegionListResult.cc | 64 + .../model/DescribeVirtualClusterRequest.cc | 40 + .../src/model/DescribeVirtualClusterResult.cc | 83 + .../model/DescribeVirtualClusterV2Request.cc | 40 + .../model/DescribeVirtualClusterV2Result.cc | 94 + .../src/model/DestroyVirtualClusterRequest.cc | 40 + .../src/model/DestroyVirtualClusterResult.cc | 44 + .../src/model/DropDatabaseRequest.cc | 51 + .../src/model/DropDatabaseResult.cc | 72 + .../src/model/DropPartitionRequest.cc | 62 + .../src/model/DropPartitionResult.cc | 72 + .../src/model/DropTableRequest.cc | 51 + .../src/model/DropTableResult.cc | 72 + ...aticMetaSyncAsIntegrationAccountRequest.cc | 40 + ...maticMetaSyncAsIntegrationAccountResult.cc | 51 + .../src/model/GetAllDatabasesRequest.cc | 29 + .../src/model/GetAllDatabasesResult.cc | 73 + .../src/model/GetAllTablesRequest.cc | 40 + .../src/model/GetAllTablesResult.cc | 73 + .../src/model/GetAllowIPRequest.cc | 62 + .../src/model/GetAllowIPResult.cc | 58 + .../src/model/GetConsolePermissionRequest.cc | 40 + .../src/model/GetConsolePermissionResult.cc | 58 + .../src/model/GetDLAServiceStatusRequest.cc | 73 + .../src/model/GetDLAServiceStatusResult.cc | 63 + .../src/model/GetDatabaseRequest.cc | 40 + .../src/model/GetDatabaseResult.cc | 83 + .../src/model/GetEndPointByDomainRequest.cc | 51 + .../src/model/GetEndPointByDomainResult.cc | 79 + .../src/model/GetEndPointRequest.cc | 51 + .../src/model/GetEndPointResult.cc | 79 + .../src/model/GetJobDetailRequest.cc | 51 + .../src/model/GetJobDetailResult.cc | 80 + .../src/model/GetJobLogRequest.cc | 51 + .../src/model/GetJobLogResult.cc | 51 + .../src/model/GetJobStatusRequest.cc | 51 + .../src/model/GetJobStatusResult.cc | 51 + .../src/model/GetPartitionRequest.cc | 62 + .../src/model/GetPartitionResult.cc | 110 + .../src/model/GetPartitionsRequest.cc | 62 + .../src/model/GetPartitionsResult.cc | 115 + .../src/model/GetRegionStatusRequest.cc | 73 + .../src/model/GetRegionStatusResult.cc | 58 + .../GetServiceLinkedRoleStatusRequest.cc | 40 + .../model/GetServiceLinkedRoleStatusResult.cc | 58 + .../src/model/GetTableRequest.cc | 51 + .../src/model/GetTableResult.cc | 129 + .../src/model/GrantPrivilegesRequest.cc | 40 + .../src/model/GrantPrivilegesResult.cc | 72 + .../src/model/InitializeDLAServiceRequest.cc | 106 + .../src/model/InitializeDLAServiceResult.cc | 61 + .../src/model/InitializeRegionRequest.cc | 106 + .../src/model/InitializeRegionResult.cc | 61 + .../src/model/KillSparkJobRequest.cc | 51 + .../src/model/KillSparkJobResult.cc | 51 + .../model/ListAlreadyBingingRamUidRequest.cc | 40 + .../model/ListAlreadyBingingRamUidResult.cc | 59 + .../src/model/ListModulesReleaseRequest.cc | 29 + .../src/model/ListModulesReleaseResult.cc | 63 + .../src/model/ListResourcesSpecRequest.cc | 40 + .../src/model/ListResourcesSpecResult.cc | 59 + .../src/model/ListSparkJobRequest.cc | 62 + .../src/model/ListSparkJobResult.cc | 92 + .../src/model/ListVirtualClustersRequest.cc | 40 + .../src/model/ListVirtualClustersResult.cc | 73 + .../ModifyVirtualClusterForSparkRequest.cc | 117 + .../ModifyVirtualClusterForSparkResult.cc | 44 + .../src/model/ModifyVirtualClusterRequest.cc | 95 + .../src/model/ModifyVirtualClusterResult.cc | 44 + .../OpenDataLakeAnalyticsServiceRequest.cc | 51 + .../OpenDataLakeAnalyticsServiceResult.cc | 72 + .../src/model/QueryAccountListRequest.cc | 62 + .../src/model/QueryAccountListResult.cc | 93 + .../src/model/QueryDataSourceDefRequest.cc | 40 + .../src/model/QueryDataSourceDefResult.cc | 68 + .../src/model/QueryDiscountListRequest.cc | 62 + .../src/model/QueryDiscountListResult.cc | 113 + .../src/model/QueryEndPointListRequest.cc | 40 + .../src/model/QueryEndPointListResult.cc | 84 + .../model/QueryServiceAccountListRequest.cc | 40 + .../model/QueryServiceAccountListResult.cc | 68 + .../src/model/QueryTaskSumRequest.cc | 73 + .../src/model/QueryTaskSumResult.cc | 83 + .../src/model/ReleaseInstanceRequest.cc | 51 + .../src/model/ReleaseInstanceResult.cc | 72 + .../src/model/RemoveEndPointRequest.cc | 51 + .../src/model/RemoveEndPointResult.cc | 51 + .../src/model/ResetMainPasswordRequest.cc | 106 + .../src/model/ResetMainPasswordResult.cc | 61 + .../src/model/RevokePrivilegesRequest.cc | 40 + .../src/model/RevokePrivilegesResult.cc | 72 + .../src/model/SetAllowIPRequest.cc | 84 + .../src/model/SetAllowIPResult.cc | 51 + .../model/SetCapacityLimitPolicyRequest.cc | 62 + .../src/model/SetCapacityLimitPolicyResult.cc | 51 + .../src/model/SetRelationWithBizRequest.cc | 73 + .../src/model/SetRelationWithBizResult.cc | 51 + .../src/model/SetTrafficLimitPolicyRequest.cc | 62 + .../src/model/SetTrafficLimitPolicyResult.cc | 51 + .../src/model/StartVirtualClusterRequest.cc | 40 + .../src/model/StartVirtualClusterResult.cc | 44 + .../src/model/StopVirtualClusterRequest.cc | 40 + .../src/model/StopVirtualClusterResult.cc | 44 + .../src/model/SubmitSparkJobRequest.cc | 51 + .../src/model/SubmitSparkJobResult.cc | 51 + .../src/model/UnSubscribeRegionRequest.cc | 40 + .../src/model/UnSubscribeRegionResult.cc | 51 + .../src/model/UpdateAccountPasswordRequest.cc | 95 + .../src/model/UpdateAccountPasswordResult.cc | 61 + 293 files changed, 20940 insertions(+) create mode 100644 openanalytics-open/CMakeLists.txt create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/Openanalytics_openClient.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/Openanalytics_openExport.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/AddAccountRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/AddAccountResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/AddEndPointRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/AddEndPointResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/AddPartitionsRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/AddPartitionsResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/AlterDatabaseRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/AlterDatabaseResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/AlterTableRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/AlterTableResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/BindingRamUidToDlaAccountRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/BindingRamUidToDlaAccountResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateDatabaseRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateDatabaseResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateInstanceRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateInstanceResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateServiceLinkedRoleRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateServiceLinkedRoleResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateTableRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateTableResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateUserNetConfigRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateUserNetConfigResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateVirtualClusterForSparkRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateVirtualClusterForSparkResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/DecodeStsTokenRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/DecodeStsTokenResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/DeleteAccountRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/DeleteAccountResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/DeleteUserNetConfigRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/DeleteUserNetConfigResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeCapacityRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeCapacityResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeDataLakeAnalyticsServiceRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeDataLakeAnalyticsServiceResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeRegionListRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeRegionListResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeVirtualClusterRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeVirtualClusterResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeVirtualClusterV2Request.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeVirtualClusterV2Result.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/DestroyVirtualClusterRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/DestroyVirtualClusterResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/DropDatabaseRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/DropDatabaseResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/DropPartitionRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/DropPartitionResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/DropTableRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/DropTableResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/ForbidAutomaticMetaSyncAsIntegrationAccountRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/ForbidAutomaticMetaSyncAsIntegrationAccountResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/GetAllDatabasesRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/GetAllDatabasesResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/GetAllTablesRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/GetAllTablesResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/GetAllowIPRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/GetAllowIPResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/GetConsolePermissionRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/GetConsolePermissionResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/GetDLAServiceStatusRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/GetDLAServiceStatusResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/GetDatabaseRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/GetDatabaseResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/GetEndPointByDomainRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/GetEndPointByDomainResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/GetEndPointRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/GetEndPointResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/GetJobDetailRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/GetJobDetailResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/GetJobLogRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/GetJobLogResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/GetJobStatusRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/GetJobStatusResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/GetPartitionRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/GetPartitionResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/GetPartitionsRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/GetPartitionsResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/GetRegionStatusRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/GetRegionStatusResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/GetServiceLinkedRoleStatusRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/GetServiceLinkedRoleStatusResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/GetTableRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/GetTableResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/GrantPrivilegesRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/GrantPrivilegesResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/InitializeDLAServiceRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/InitializeDLAServiceResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/InitializeRegionRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/InitializeRegionResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/KillSparkJobRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/KillSparkJobResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/ListAlreadyBingingRamUidRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/ListAlreadyBingingRamUidResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/ListModulesReleaseRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/ListModulesReleaseResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/ListResourcesSpecRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/ListResourcesSpecResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/ListSparkJobRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/ListSparkJobResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/ListVirtualClustersRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/ListVirtualClustersResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/ModifyVirtualClusterForSparkRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/ModifyVirtualClusterForSparkResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/ModifyVirtualClusterRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/ModifyVirtualClusterResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/OpenDataLakeAnalyticsServiceRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/OpenDataLakeAnalyticsServiceResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryAccountListRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryAccountListResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryDataSourceDefRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryDataSourceDefResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryDiscountListRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryDiscountListResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryEndPointListRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryEndPointListResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryServiceAccountListRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryServiceAccountListResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryTaskSumRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryTaskSumResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/ReleaseInstanceRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/ReleaseInstanceResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/RemoveEndPointRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/RemoveEndPointResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/ResetMainPasswordRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/ResetMainPasswordResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/RevokePrivilegesRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/RevokePrivilegesResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/SetAllowIPRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/SetAllowIPResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/SetCapacityLimitPolicyRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/SetCapacityLimitPolicyResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/SetRelationWithBizRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/SetRelationWithBizResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/SetTrafficLimitPolicyRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/SetTrafficLimitPolicyResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/StartVirtualClusterRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/StartVirtualClusterResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/StopVirtualClusterRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/StopVirtualClusterResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/SubmitSparkJobRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/SubmitSparkJobResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/UnSubscribeRegionRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/UnSubscribeRegionResult.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/UpdateAccountPasswordRequest.h create mode 100644 openanalytics-open/include/alibabacloud/openanalytics-open/model/UpdateAccountPasswordResult.h create mode 100644 openanalytics-open/src/Openanalytics-openClient.cc create mode 100644 openanalytics-open/src/model/AddAccountRequest.cc create mode 100644 openanalytics-open/src/model/AddAccountResult.cc create mode 100644 openanalytics-open/src/model/AddEndPointRequest.cc create mode 100644 openanalytics-open/src/model/AddEndPointResult.cc create mode 100644 openanalytics-open/src/model/AddPartitionsRequest.cc create mode 100644 openanalytics-open/src/model/AddPartitionsResult.cc create mode 100644 openanalytics-open/src/model/AlterDatabaseRequest.cc create mode 100644 openanalytics-open/src/model/AlterDatabaseResult.cc create mode 100644 openanalytics-open/src/model/AlterTableRequest.cc create mode 100644 openanalytics-open/src/model/AlterTableResult.cc create mode 100644 openanalytics-open/src/model/BindingRamUidToDlaAccountRequest.cc create mode 100644 openanalytics-open/src/model/BindingRamUidToDlaAccountResult.cc create mode 100644 openanalytics-open/src/model/CreateDatabaseRequest.cc create mode 100644 openanalytics-open/src/model/CreateDatabaseResult.cc create mode 100644 openanalytics-open/src/model/CreateInstanceRequest.cc create mode 100644 openanalytics-open/src/model/CreateInstanceResult.cc create mode 100644 openanalytics-open/src/model/CreateServiceLinkedRoleRequest.cc create mode 100644 openanalytics-open/src/model/CreateServiceLinkedRoleResult.cc create mode 100644 openanalytics-open/src/model/CreateTableRequest.cc create mode 100644 openanalytics-open/src/model/CreateTableResult.cc create mode 100644 openanalytics-open/src/model/CreateUserNetConfigRequest.cc create mode 100644 openanalytics-open/src/model/CreateUserNetConfigResult.cc create mode 100644 openanalytics-open/src/model/CreateVirtualClusterForSparkRequest.cc create mode 100644 openanalytics-open/src/model/CreateVirtualClusterForSparkResult.cc create mode 100644 openanalytics-open/src/model/DecodeStsTokenRequest.cc create mode 100644 openanalytics-open/src/model/DecodeStsTokenResult.cc create mode 100644 openanalytics-open/src/model/DeleteAccountRequest.cc create mode 100644 openanalytics-open/src/model/DeleteAccountResult.cc create mode 100644 openanalytics-open/src/model/DeleteUserNetConfigRequest.cc create mode 100644 openanalytics-open/src/model/DeleteUserNetConfigResult.cc create mode 100644 openanalytics-open/src/model/DescribeCapacityRequest.cc create mode 100644 openanalytics-open/src/model/DescribeCapacityResult.cc create mode 100644 openanalytics-open/src/model/DescribeDataLakeAnalyticsServiceRequest.cc create mode 100644 openanalytics-open/src/model/DescribeDataLakeAnalyticsServiceResult.cc create mode 100644 openanalytics-open/src/model/DescribeRegionListRequest.cc create mode 100644 openanalytics-open/src/model/DescribeRegionListResult.cc create mode 100644 openanalytics-open/src/model/DescribeVirtualClusterRequest.cc create mode 100644 openanalytics-open/src/model/DescribeVirtualClusterResult.cc create mode 100644 openanalytics-open/src/model/DescribeVirtualClusterV2Request.cc create mode 100644 openanalytics-open/src/model/DescribeVirtualClusterV2Result.cc create mode 100644 openanalytics-open/src/model/DestroyVirtualClusterRequest.cc create mode 100644 openanalytics-open/src/model/DestroyVirtualClusterResult.cc create mode 100644 openanalytics-open/src/model/DropDatabaseRequest.cc create mode 100644 openanalytics-open/src/model/DropDatabaseResult.cc create mode 100644 openanalytics-open/src/model/DropPartitionRequest.cc create mode 100644 openanalytics-open/src/model/DropPartitionResult.cc create mode 100644 openanalytics-open/src/model/DropTableRequest.cc create mode 100644 openanalytics-open/src/model/DropTableResult.cc create mode 100644 openanalytics-open/src/model/ForbidAutomaticMetaSyncAsIntegrationAccountRequest.cc create mode 100644 openanalytics-open/src/model/ForbidAutomaticMetaSyncAsIntegrationAccountResult.cc create mode 100644 openanalytics-open/src/model/GetAllDatabasesRequest.cc create mode 100644 openanalytics-open/src/model/GetAllDatabasesResult.cc create mode 100644 openanalytics-open/src/model/GetAllTablesRequest.cc create mode 100644 openanalytics-open/src/model/GetAllTablesResult.cc create mode 100644 openanalytics-open/src/model/GetAllowIPRequest.cc create mode 100644 openanalytics-open/src/model/GetAllowIPResult.cc create mode 100644 openanalytics-open/src/model/GetConsolePermissionRequest.cc create mode 100644 openanalytics-open/src/model/GetConsolePermissionResult.cc create mode 100644 openanalytics-open/src/model/GetDLAServiceStatusRequest.cc create mode 100644 openanalytics-open/src/model/GetDLAServiceStatusResult.cc create mode 100644 openanalytics-open/src/model/GetDatabaseRequest.cc create mode 100644 openanalytics-open/src/model/GetDatabaseResult.cc create mode 100644 openanalytics-open/src/model/GetEndPointByDomainRequest.cc create mode 100644 openanalytics-open/src/model/GetEndPointByDomainResult.cc create mode 100644 openanalytics-open/src/model/GetEndPointRequest.cc create mode 100644 openanalytics-open/src/model/GetEndPointResult.cc create mode 100644 openanalytics-open/src/model/GetJobDetailRequest.cc create mode 100644 openanalytics-open/src/model/GetJobDetailResult.cc create mode 100644 openanalytics-open/src/model/GetJobLogRequest.cc create mode 100644 openanalytics-open/src/model/GetJobLogResult.cc create mode 100644 openanalytics-open/src/model/GetJobStatusRequest.cc create mode 100644 openanalytics-open/src/model/GetJobStatusResult.cc create mode 100644 openanalytics-open/src/model/GetPartitionRequest.cc create mode 100644 openanalytics-open/src/model/GetPartitionResult.cc create mode 100644 openanalytics-open/src/model/GetPartitionsRequest.cc create mode 100644 openanalytics-open/src/model/GetPartitionsResult.cc create mode 100644 openanalytics-open/src/model/GetRegionStatusRequest.cc create mode 100644 openanalytics-open/src/model/GetRegionStatusResult.cc create mode 100644 openanalytics-open/src/model/GetServiceLinkedRoleStatusRequest.cc create mode 100644 openanalytics-open/src/model/GetServiceLinkedRoleStatusResult.cc create mode 100644 openanalytics-open/src/model/GetTableRequest.cc create mode 100644 openanalytics-open/src/model/GetTableResult.cc create mode 100644 openanalytics-open/src/model/GrantPrivilegesRequest.cc create mode 100644 openanalytics-open/src/model/GrantPrivilegesResult.cc create mode 100644 openanalytics-open/src/model/InitializeDLAServiceRequest.cc create mode 100644 openanalytics-open/src/model/InitializeDLAServiceResult.cc create mode 100644 openanalytics-open/src/model/InitializeRegionRequest.cc create mode 100644 openanalytics-open/src/model/InitializeRegionResult.cc create mode 100644 openanalytics-open/src/model/KillSparkJobRequest.cc create mode 100644 openanalytics-open/src/model/KillSparkJobResult.cc create mode 100644 openanalytics-open/src/model/ListAlreadyBingingRamUidRequest.cc create mode 100644 openanalytics-open/src/model/ListAlreadyBingingRamUidResult.cc create mode 100644 openanalytics-open/src/model/ListModulesReleaseRequest.cc create mode 100644 openanalytics-open/src/model/ListModulesReleaseResult.cc create mode 100644 openanalytics-open/src/model/ListResourcesSpecRequest.cc create mode 100644 openanalytics-open/src/model/ListResourcesSpecResult.cc create mode 100644 openanalytics-open/src/model/ListSparkJobRequest.cc create mode 100644 openanalytics-open/src/model/ListSparkJobResult.cc create mode 100644 openanalytics-open/src/model/ListVirtualClustersRequest.cc create mode 100644 openanalytics-open/src/model/ListVirtualClustersResult.cc create mode 100644 openanalytics-open/src/model/ModifyVirtualClusterForSparkRequest.cc create mode 100644 openanalytics-open/src/model/ModifyVirtualClusterForSparkResult.cc create mode 100644 openanalytics-open/src/model/ModifyVirtualClusterRequest.cc create mode 100644 openanalytics-open/src/model/ModifyVirtualClusterResult.cc create mode 100644 openanalytics-open/src/model/OpenDataLakeAnalyticsServiceRequest.cc create mode 100644 openanalytics-open/src/model/OpenDataLakeAnalyticsServiceResult.cc create mode 100644 openanalytics-open/src/model/QueryAccountListRequest.cc create mode 100644 openanalytics-open/src/model/QueryAccountListResult.cc create mode 100644 openanalytics-open/src/model/QueryDataSourceDefRequest.cc create mode 100644 openanalytics-open/src/model/QueryDataSourceDefResult.cc create mode 100644 openanalytics-open/src/model/QueryDiscountListRequest.cc create mode 100644 openanalytics-open/src/model/QueryDiscountListResult.cc create mode 100644 openanalytics-open/src/model/QueryEndPointListRequest.cc create mode 100644 openanalytics-open/src/model/QueryEndPointListResult.cc create mode 100644 openanalytics-open/src/model/QueryServiceAccountListRequest.cc create mode 100644 openanalytics-open/src/model/QueryServiceAccountListResult.cc create mode 100644 openanalytics-open/src/model/QueryTaskSumRequest.cc create mode 100644 openanalytics-open/src/model/QueryTaskSumResult.cc create mode 100644 openanalytics-open/src/model/ReleaseInstanceRequest.cc create mode 100644 openanalytics-open/src/model/ReleaseInstanceResult.cc create mode 100644 openanalytics-open/src/model/RemoveEndPointRequest.cc create mode 100644 openanalytics-open/src/model/RemoveEndPointResult.cc create mode 100644 openanalytics-open/src/model/ResetMainPasswordRequest.cc create mode 100644 openanalytics-open/src/model/ResetMainPasswordResult.cc create mode 100644 openanalytics-open/src/model/RevokePrivilegesRequest.cc create mode 100644 openanalytics-open/src/model/RevokePrivilegesResult.cc create mode 100644 openanalytics-open/src/model/SetAllowIPRequest.cc create mode 100644 openanalytics-open/src/model/SetAllowIPResult.cc create mode 100644 openanalytics-open/src/model/SetCapacityLimitPolicyRequest.cc create mode 100644 openanalytics-open/src/model/SetCapacityLimitPolicyResult.cc create mode 100644 openanalytics-open/src/model/SetRelationWithBizRequest.cc create mode 100644 openanalytics-open/src/model/SetRelationWithBizResult.cc create mode 100644 openanalytics-open/src/model/SetTrafficLimitPolicyRequest.cc create mode 100644 openanalytics-open/src/model/SetTrafficLimitPolicyResult.cc create mode 100644 openanalytics-open/src/model/StartVirtualClusterRequest.cc create mode 100644 openanalytics-open/src/model/StartVirtualClusterResult.cc create mode 100644 openanalytics-open/src/model/StopVirtualClusterRequest.cc create mode 100644 openanalytics-open/src/model/StopVirtualClusterResult.cc create mode 100644 openanalytics-open/src/model/SubmitSparkJobRequest.cc create mode 100644 openanalytics-open/src/model/SubmitSparkJobResult.cc create mode 100644 openanalytics-open/src/model/UnSubscribeRegionRequest.cc create mode 100644 openanalytics-open/src/model/UnSubscribeRegionResult.cc create mode 100644 openanalytics-open/src/model/UpdateAccountPasswordRequest.cc create mode 100644 openanalytics-open/src/model/UpdateAccountPasswordResult.cc diff --git a/CHANGELOG b/CHANGELOG index 13198b86a..84b381a47 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2020-11-12 Version: patch +- Support OpenAPI. + 2020-11-12 Version: patch - Update DescribeTrails Response. diff --git a/openanalytics-open/CMakeLists.txt b/openanalytics-open/CMakeLists.txt new file mode 100644 index 000000000..a67dc954f --- /dev/null +++ b/openanalytics-open/CMakeLists.txt @@ -0,0 +1,370 @@ +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT 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(openanalytics-open_public_header + include/alibabacloud/openanalytics-open/Openanalytics_openClient.h + include/alibabacloud/openanalytics-open/Openanalytics_openExport.h ) + +set(openanalytics-open_public_header_model + include/alibabacloud/openanalytics-open/model/AddAccountRequest.h + include/alibabacloud/openanalytics-open/model/AddAccountResult.h + include/alibabacloud/openanalytics-open/model/AddEndPointRequest.h + include/alibabacloud/openanalytics-open/model/AddEndPointResult.h + include/alibabacloud/openanalytics-open/model/AddPartitionsRequest.h + include/alibabacloud/openanalytics-open/model/AddPartitionsResult.h + include/alibabacloud/openanalytics-open/model/AlterDatabaseRequest.h + include/alibabacloud/openanalytics-open/model/AlterDatabaseResult.h + include/alibabacloud/openanalytics-open/model/AlterTableRequest.h + include/alibabacloud/openanalytics-open/model/AlterTableResult.h + include/alibabacloud/openanalytics-open/model/BindingRamUidToDlaAccountRequest.h + include/alibabacloud/openanalytics-open/model/BindingRamUidToDlaAccountResult.h + include/alibabacloud/openanalytics-open/model/CreateDatabaseRequest.h + include/alibabacloud/openanalytics-open/model/CreateDatabaseResult.h + include/alibabacloud/openanalytics-open/model/CreateInstanceRequest.h + include/alibabacloud/openanalytics-open/model/CreateInstanceResult.h + include/alibabacloud/openanalytics-open/model/CreateServiceLinkedRoleRequest.h + include/alibabacloud/openanalytics-open/model/CreateServiceLinkedRoleResult.h + include/alibabacloud/openanalytics-open/model/CreateTableRequest.h + include/alibabacloud/openanalytics-open/model/CreateTableResult.h + include/alibabacloud/openanalytics-open/model/CreateUserNetConfigRequest.h + include/alibabacloud/openanalytics-open/model/CreateUserNetConfigResult.h + include/alibabacloud/openanalytics-open/model/CreateVirtualClusterForSparkRequest.h + include/alibabacloud/openanalytics-open/model/CreateVirtualClusterForSparkResult.h + include/alibabacloud/openanalytics-open/model/DecodeStsTokenRequest.h + include/alibabacloud/openanalytics-open/model/DecodeStsTokenResult.h + include/alibabacloud/openanalytics-open/model/DeleteAccountRequest.h + include/alibabacloud/openanalytics-open/model/DeleteAccountResult.h + include/alibabacloud/openanalytics-open/model/DeleteUserNetConfigRequest.h + include/alibabacloud/openanalytics-open/model/DeleteUserNetConfigResult.h + include/alibabacloud/openanalytics-open/model/DescribeCapacityRequest.h + include/alibabacloud/openanalytics-open/model/DescribeCapacityResult.h + include/alibabacloud/openanalytics-open/model/DescribeDataLakeAnalyticsServiceRequest.h + include/alibabacloud/openanalytics-open/model/DescribeDataLakeAnalyticsServiceResult.h + include/alibabacloud/openanalytics-open/model/DescribeRegionListRequest.h + include/alibabacloud/openanalytics-open/model/DescribeRegionListResult.h + include/alibabacloud/openanalytics-open/model/DescribeVirtualClusterRequest.h + include/alibabacloud/openanalytics-open/model/DescribeVirtualClusterResult.h + include/alibabacloud/openanalytics-open/model/DescribeVirtualClusterV2Request.h + include/alibabacloud/openanalytics-open/model/DescribeVirtualClusterV2Result.h + include/alibabacloud/openanalytics-open/model/DestroyVirtualClusterRequest.h + include/alibabacloud/openanalytics-open/model/DestroyVirtualClusterResult.h + include/alibabacloud/openanalytics-open/model/DropDatabaseRequest.h + include/alibabacloud/openanalytics-open/model/DropDatabaseResult.h + include/alibabacloud/openanalytics-open/model/DropPartitionRequest.h + include/alibabacloud/openanalytics-open/model/DropPartitionResult.h + include/alibabacloud/openanalytics-open/model/DropTableRequest.h + include/alibabacloud/openanalytics-open/model/DropTableResult.h + include/alibabacloud/openanalytics-open/model/ForbidAutomaticMetaSyncAsIntegrationAccountRequest.h + include/alibabacloud/openanalytics-open/model/ForbidAutomaticMetaSyncAsIntegrationAccountResult.h + include/alibabacloud/openanalytics-open/model/GetAllDatabasesRequest.h + include/alibabacloud/openanalytics-open/model/GetAllDatabasesResult.h + include/alibabacloud/openanalytics-open/model/GetAllTablesRequest.h + include/alibabacloud/openanalytics-open/model/GetAllTablesResult.h + include/alibabacloud/openanalytics-open/model/GetAllowIPRequest.h + include/alibabacloud/openanalytics-open/model/GetAllowIPResult.h + include/alibabacloud/openanalytics-open/model/GetConsolePermissionRequest.h + include/alibabacloud/openanalytics-open/model/GetConsolePermissionResult.h + include/alibabacloud/openanalytics-open/model/GetDLAServiceStatusRequest.h + include/alibabacloud/openanalytics-open/model/GetDLAServiceStatusResult.h + include/alibabacloud/openanalytics-open/model/GetDatabaseRequest.h + include/alibabacloud/openanalytics-open/model/GetDatabaseResult.h + include/alibabacloud/openanalytics-open/model/GetEndPointRequest.h + include/alibabacloud/openanalytics-open/model/GetEndPointResult.h + include/alibabacloud/openanalytics-open/model/GetEndPointByDomainRequest.h + include/alibabacloud/openanalytics-open/model/GetEndPointByDomainResult.h + include/alibabacloud/openanalytics-open/model/GetJobDetailRequest.h + include/alibabacloud/openanalytics-open/model/GetJobDetailResult.h + include/alibabacloud/openanalytics-open/model/GetJobLogRequest.h + include/alibabacloud/openanalytics-open/model/GetJobLogResult.h + include/alibabacloud/openanalytics-open/model/GetJobStatusRequest.h + include/alibabacloud/openanalytics-open/model/GetJobStatusResult.h + include/alibabacloud/openanalytics-open/model/GetPartitionRequest.h + include/alibabacloud/openanalytics-open/model/GetPartitionResult.h + include/alibabacloud/openanalytics-open/model/GetPartitionsRequest.h + include/alibabacloud/openanalytics-open/model/GetPartitionsResult.h + include/alibabacloud/openanalytics-open/model/GetRegionStatusRequest.h + include/alibabacloud/openanalytics-open/model/GetRegionStatusResult.h + include/alibabacloud/openanalytics-open/model/GetServiceLinkedRoleStatusRequest.h + include/alibabacloud/openanalytics-open/model/GetServiceLinkedRoleStatusResult.h + include/alibabacloud/openanalytics-open/model/GetTableRequest.h + include/alibabacloud/openanalytics-open/model/GetTableResult.h + include/alibabacloud/openanalytics-open/model/GrantPrivilegesRequest.h + include/alibabacloud/openanalytics-open/model/GrantPrivilegesResult.h + include/alibabacloud/openanalytics-open/model/InitializeDLAServiceRequest.h + include/alibabacloud/openanalytics-open/model/InitializeDLAServiceResult.h + include/alibabacloud/openanalytics-open/model/InitializeRegionRequest.h + include/alibabacloud/openanalytics-open/model/InitializeRegionResult.h + include/alibabacloud/openanalytics-open/model/KillSparkJobRequest.h + include/alibabacloud/openanalytics-open/model/KillSparkJobResult.h + include/alibabacloud/openanalytics-open/model/ListAlreadyBingingRamUidRequest.h + include/alibabacloud/openanalytics-open/model/ListAlreadyBingingRamUidResult.h + include/alibabacloud/openanalytics-open/model/ListModulesReleaseRequest.h + include/alibabacloud/openanalytics-open/model/ListModulesReleaseResult.h + include/alibabacloud/openanalytics-open/model/ListResourcesSpecRequest.h + include/alibabacloud/openanalytics-open/model/ListResourcesSpecResult.h + include/alibabacloud/openanalytics-open/model/ListSparkJobRequest.h + include/alibabacloud/openanalytics-open/model/ListSparkJobResult.h + include/alibabacloud/openanalytics-open/model/ListVirtualClustersRequest.h + include/alibabacloud/openanalytics-open/model/ListVirtualClustersResult.h + include/alibabacloud/openanalytics-open/model/ModifyVirtualClusterRequest.h + include/alibabacloud/openanalytics-open/model/ModifyVirtualClusterResult.h + include/alibabacloud/openanalytics-open/model/ModifyVirtualClusterForSparkRequest.h + include/alibabacloud/openanalytics-open/model/ModifyVirtualClusterForSparkResult.h + include/alibabacloud/openanalytics-open/model/OpenDataLakeAnalyticsServiceRequest.h + include/alibabacloud/openanalytics-open/model/OpenDataLakeAnalyticsServiceResult.h + include/alibabacloud/openanalytics-open/model/QueryAccountListRequest.h + include/alibabacloud/openanalytics-open/model/QueryAccountListResult.h + include/alibabacloud/openanalytics-open/model/QueryDataSourceDefRequest.h + include/alibabacloud/openanalytics-open/model/QueryDataSourceDefResult.h + include/alibabacloud/openanalytics-open/model/QueryDiscountListRequest.h + include/alibabacloud/openanalytics-open/model/QueryDiscountListResult.h + include/alibabacloud/openanalytics-open/model/QueryEndPointListRequest.h + include/alibabacloud/openanalytics-open/model/QueryEndPointListResult.h + include/alibabacloud/openanalytics-open/model/QueryServiceAccountListRequest.h + include/alibabacloud/openanalytics-open/model/QueryServiceAccountListResult.h + include/alibabacloud/openanalytics-open/model/QueryTaskSumRequest.h + include/alibabacloud/openanalytics-open/model/QueryTaskSumResult.h + include/alibabacloud/openanalytics-open/model/ReleaseInstanceRequest.h + include/alibabacloud/openanalytics-open/model/ReleaseInstanceResult.h + include/alibabacloud/openanalytics-open/model/RemoveEndPointRequest.h + include/alibabacloud/openanalytics-open/model/RemoveEndPointResult.h + include/alibabacloud/openanalytics-open/model/ResetMainPasswordRequest.h + include/alibabacloud/openanalytics-open/model/ResetMainPasswordResult.h + include/alibabacloud/openanalytics-open/model/RevokePrivilegesRequest.h + include/alibabacloud/openanalytics-open/model/RevokePrivilegesResult.h + include/alibabacloud/openanalytics-open/model/SetAllowIPRequest.h + include/alibabacloud/openanalytics-open/model/SetAllowIPResult.h + include/alibabacloud/openanalytics-open/model/SetCapacityLimitPolicyRequest.h + include/alibabacloud/openanalytics-open/model/SetCapacityLimitPolicyResult.h + include/alibabacloud/openanalytics-open/model/SetRelationWithBizRequest.h + include/alibabacloud/openanalytics-open/model/SetRelationWithBizResult.h + include/alibabacloud/openanalytics-open/model/SetTrafficLimitPolicyRequest.h + include/alibabacloud/openanalytics-open/model/SetTrafficLimitPolicyResult.h + include/alibabacloud/openanalytics-open/model/StartVirtualClusterRequest.h + include/alibabacloud/openanalytics-open/model/StartVirtualClusterResult.h + include/alibabacloud/openanalytics-open/model/StopVirtualClusterRequest.h + include/alibabacloud/openanalytics-open/model/StopVirtualClusterResult.h + include/alibabacloud/openanalytics-open/model/SubmitSparkJobRequest.h + include/alibabacloud/openanalytics-open/model/SubmitSparkJobResult.h + include/alibabacloud/openanalytics-open/model/UnSubscribeRegionRequest.h + include/alibabacloud/openanalytics-open/model/UnSubscribeRegionResult.h + include/alibabacloud/openanalytics-open/model/UpdateAccountPasswordRequest.h + include/alibabacloud/openanalytics-open/model/UpdateAccountPasswordResult.h ) + +set(openanalytics-open_src + src/Openanalytics-openClient.cc + src/model/AddAccountRequest.cc + src/model/AddAccountResult.cc + src/model/AddEndPointRequest.cc + src/model/AddEndPointResult.cc + src/model/AddPartitionsRequest.cc + src/model/AddPartitionsResult.cc + src/model/AlterDatabaseRequest.cc + src/model/AlterDatabaseResult.cc + src/model/AlterTableRequest.cc + src/model/AlterTableResult.cc + src/model/BindingRamUidToDlaAccountRequest.cc + src/model/BindingRamUidToDlaAccountResult.cc + src/model/CreateDatabaseRequest.cc + src/model/CreateDatabaseResult.cc + src/model/CreateInstanceRequest.cc + src/model/CreateInstanceResult.cc + src/model/CreateServiceLinkedRoleRequest.cc + src/model/CreateServiceLinkedRoleResult.cc + src/model/CreateTableRequest.cc + src/model/CreateTableResult.cc + src/model/CreateUserNetConfigRequest.cc + src/model/CreateUserNetConfigResult.cc + src/model/CreateVirtualClusterForSparkRequest.cc + src/model/CreateVirtualClusterForSparkResult.cc + src/model/DecodeStsTokenRequest.cc + src/model/DecodeStsTokenResult.cc + src/model/DeleteAccountRequest.cc + src/model/DeleteAccountResult.cc + src/model/DeleteUserNetConfigRequest.cc + src/model/DeleteUserNetConfigResult.cc + src/model/DescribeCapacityRequest.cc + src/model/DescribeCapacityResult.cc + src/model/DescribeDataLakeAnalyticsServiceRequest.cc + src/model/DescribeDataLakeAnalyticsServiceResult.cc + src/model/DescribeRegionListRequest.cc + src/model/DescribeRegionListResult.cc + src/model/DescribeVirtualClusterRequest.cc + src/model/DescribeVirtualClusterResult.cc + src/model/DescribeVirtualClusterV2Request.cc + src/model/DescribeVirtualClusterV2Result.cc + src/model/DestroyVirtualClusterRequest.cc + src/model/DestroyVirtualClusterResult.cc + src/model/DropDatabaseRequest.cc + src/model/DropDatabaseResult.cc + src/model/DropPartitionRequest.cc + src/model/DropPartitionResult.cc + src/model/DropTableRequest.cc + src/model/DropTableResult.cc + src/model/ForbidAutomaticMetaSyncAsIntegrationAccountRequest.cc + src/model/ForbidAutomaticMetaSyncAsIntegrationAccountResult.cc + src/model/GetAllDatabasesRequest.cc + src/model/GetAllDatabasesResult.cc + src/model/GetAllTablesRequest.cc + src/model/GetAllTablesResult.cc + src/model/GetAllowIPRequest.cc + src/model/GetAllowIPResult.cc + src/model/GetConsolePermissionRequest.cc + src/model/GetConsolePermissionResult.cc + src/model/GetDLAServiceStatusRequest.cc + src/model/GetDLAServiceStatusResult.cc + src/model/GetDatabaseRequest.cc + src/model/GetDatabaseResult.cc + src/model/GetEndPointRequest.cc + src/model/GetEndPointResult.cc + src/model/GetEndPointByDomainRequest.cc + src/model/GetEndPointByDomainResult.cc + src/model/GetJobDetailRequest.cc + src/model/GetJobDetailResult.cc + src/model/GetJobLogRequest.cc + src/model/GetJobLogResult.cc + src/model/GetJobStatusRequest.cc + src/model/GetJobStatusResult.cc + src/model/GetPartitionRequest.cc + src/model/GetPartitionResult.cc + src/model/GetPartitionsRequest.cc + src/model/GetPartitionsResult.cc + src/model/GetRegionStatusRequest.cc + src/model/GetRegionStatusResult.cc + src/model/GetServiceLinkedRoleStatusRequest.cc + src/model/GetServiceLinkedRoleStatusResult.cc + src/model/GetTableRequest.cc + src/model/GetTableResult.cc + src/model/GrantPrivilegesRequest.cc + src/model/GrantPrivilegesResult.cc + src/model/InitializeDLAServiceRequest.cc + src/model/InitializeDLAServiceResult.cc + src/model/InitializeRegionRequest.cc + src/model/InitializeRegionResult.cc + src/model/KillSparkJobRequest.cc + src/model/KillSparkJobResult.cc + src/model/ListAlreadyBingingRamUidRequest.cc + src/model/ListAlreadyBingingRamUidResult.cc + src/model/ListModulesReleaseRequest.cc + src/model/ListModulesReleaseResult.cc + src/model/ListResourcesSpecRequest.cc + src/model/ListResourcesSpecResult.cc + src/model/ListSparkJobRequest.cc + src/model/ListSparkJobResult.cc + src/model/ListVirtualClustersRequest.cc + src/model/ListVirtualClustersResult.cc + src/model/ModifyVirtualClusterRequest.cc + src/model/ModifyVirtualClusterResult.cc + src/model/ModifyVirtualClusterForSparkRequest.cc + src/model/ModifyVirtualClusterForSparkResult.cc + src/model/OpenDataLakeAnalyticsServiceRequest.cc + src/model/OpenDataLakeAnalyticsServiceResult.cc + src/model/QueryAccountListRequest.cc + src/model/QueryAccountListResult.cc + src/model/QueryDataSourceDefRequest.cc + src/model/QueryDataSourceDefResult.cc + src/model/QueryDiscountListRequest.cc + src/model/QueryDiscountListResult.cc + src/model/QueryEndPointListRequest.cc + src/model/QueryEndPointListResult.cc + src/model/QueryServiceAccountListRequest.cc + src/model/QueryServiceAccountListResult.cc + src/model/QueryTaskSumRequest.cc + src/model/QueryTaskSumResult.cc + src/model/ReleaseInstanceRequest.cc + src/model/ReleaseInstanceResult.cc + src/model/RemoveEndPointRequest.cc + src/model/RemoveEndPointResult.cc + src/model/ResetMainPasswordRequest.cc + src/model/ResetMainPasswordResult.cc + src/model/RevokePrivilegesRequest.cc + src/model/RevokePrivilegesResult.cc + src/model/SetAllowIPRequest.cc + src/model/SetAllowIPResult.cc + src/model/SetCapacityLimitPolicyRequest.cc + src/model/SetCapacityLimitPolicyResult.cc + src/model/SetRelationWithBizRequest.cc + src/model/SetRelationWithBizResult.cc + src/model/SetTrafficLimitPolicyRequest.cc + src/model/SetTrafficLimitPolicyResult.cc + src/model/StartVirtualClusterRequest.cc + src/model/StartVirtualClusterResult.cc + src/model/StopVirtualClusterRequest.cc + src/model/StopVirtualClusterResult.cc + src/model/SubmitSparkJobRequest.cc + src/model/SubmitSparkJobResult.cc + src/model/UnSubscribeRegionRequest.cc + src/model/UnSubscribeRegionResult.cc + src/model/UpdateAccountPasswordRequest.cc + src/model/UpdateAccountPasswordResult.cc ) + +add_library(openanalytics-open ${LIB_TYPE} + ${openanalytics-open_public_header} + ${openanalytics-open_public_header_model} + ${openanalytics-open_src}) + +set_target_properties(openanalytics-open + 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}openanalytics-open + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(openanalytics-open + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_OPENANALYTICS_OPEN_LIBRARY) +endif() + +target_include_directories(openanalytics-open + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(openanalytics-open + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(openanalytics-open + jsoncpp) + target_include_directories(openanalytics-open + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(openanalytics-open + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(openanalytics-open + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(openanalytics-open + PRIVATE /usr/include/jsoncpp) + target_link_libraries(openanalytics-open + jsoncpp) +endif() + +install(FILES ${openanalytics-open_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/openanalytics-open) +install(FILES ${openanalytics-open_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/openanalytics-open/model) +install(TARGETS openanalytics-open + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/Openanalytics_openClient.h b/openanalytics-open/include/alibabacloud/openanalytics-open/Openanalytics_openClient.h new file mode 100644 index 000000000..2bb796603 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/Openanalytics_openClient.h @@ -0,0 +1,622 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENANALYTICS_OPEN_OPENANALYTICS_OPENCLIENT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_OPENANALYTICS_OPENCLIENT_H_ + +#include +#include +#include +#include +#include "Openanalytics_openExport.h" +#include "model/AddAccountRequest.h" +#include "model/AddAccountResult.h" +#include "model/AddEndPointRequest.h" +#include "model/AddEndPointResult.h" +#include "model/AddPartitionsRequest.h" +#include "model/AddPartitionsResult.h" +#include "model/AlterDatabaseRequest.h" +#include "model/AlterDatabaseResult.h" +#include "model/AlterTableRequest.h" +#include "model/AlterTableResult.h" +#include "model/BindingRamUidToDlaAccountRequest.h" +#include "model/BindingRamUidToDlaAccountResult.h" +#include "model/CreateDatabaseRequest.h" +#include "model/CreateDatabaseResult.h" +#include "model/CreateInstanceRequest.h" +#include "model/CreateInstanceResult.h" +#include "model/CreateServiceLinkedRoleRequest.h" +#include "model/CreateServiceLinkedRoleResult.h" +#include "model/CreateTableRequest.h" +#include "model/CreateTableResult.h" +#include "model/CreateUserNetConfigRequest.h" +#include "model/CreateUserNetConfigResult.h" +#include "model/CreateVirtualClusterForSparkRequest.h" +#include "model/CreateVirtualClusterForSparkResult.h" +#include "model/DecodeStsTokenRequest.h" +#include "model/DecodeStsTokenResult.h" +#include "model/DeleteAccountRequest.h" +#include "model/DeleteAccountResult.h" +#include "model/DeleteUserNetConfigRequest.h" +#include "model/DeleteUserNetConfigResult.h" +#include "model/DescribeCapacityRequest.h" +#include "model/DescribeCapacityResult.h" +#include "model/DescribeDataLakeAnalyticsServiceRequest.h" +#include "model/DescribeDataLakeAnalyticsServiceResult.h" +#include "model/DescribeRegionListRequest.h" +#include "model/DescribeRegionListResult.h" +#include "model/DescribeVirtualClusterRequest.h" +#include "model/DescribeVirtualClusterResult.h" +#include "model/DescribeVirtualClusterV2Request.h" +#include "model/DescribeVirtualClusterV2Result.h" +#include "model/DestroyVirtualClusterRequest.h" +#include "model/DestroyVirtualClusterResult.h" +#include "model/DropDatabaseRequest.h" +#include "model/DropDatabaseResult.h" +#include "model/DropPartitionRequest.h" +#include "model/DropPartitionResult.h" +#include "model/DropTableRequest.h" +#include "model/DropTableResult.h" +#include "model/ForbidAutomaticMetaSyncAsIntegrationAccountRequest.h" +#include "model/ForbidAutomaticMetaSyncAsIntegrationAccountResult.h" +#include "model/GetAllDatabasesRequest.h" +#include "model/GetAllDatabasesResult.h" +#include "model/GetAllTablesRequest.h" +#include "model/GetAllTablesResult.h" +#include "model/GetAllowIPRequest.h" +#include "model/GetAllowIPResult.h" +#include "model/GetConsolePermissionRequest.h" +#include "model/GetConsolePermissionResult.h" +#include "model/GetDLAServiceStatusRequest.h" +#include "model/GetDLAServiceStatusResult.h" +#include "model/GetDatabaseRequest.h" +#include "model/GetDatabaseResult.h" +#include "model/GetEndPointRequest.h" +#include "model/GetEndPointResult.h" +#include "model/GetEndPointByDomainRequest.h" +#include "model/GetEndPointByDomainResult.h" +#include "model/GetJobDetailRequest.h" +#include "model/GetJobDetailResult.h" +#include "model/GetJobLogRequest.h" +#include "model/GetJobLogResult.h" +#include "model/GetJobStatusRequest.h" +#include "model/GetJobStatusResult.h" +#include "model/GetPartitionRequest.h" +#include "model/GetPartitionResult.h" +#include "model/GetPartitionsRequest.h" +#include "model/GetPartitionsResult.h" +#include "model/GetRegionStatusRequest.h" +#include "model/GetRegionStatusResult.h" +#include "model/GetServiceLinkedRoleStatusRequest.h" +#include "model/GetServiceLinkedRoleStatusResult.h" +#include "model/GetTableRequest.h" +#include "model/GetTableResult.h" +#include "model/GrantPrivilegesRequest.h" +#include "model/GrantPrivilegesResult.h" +#include "model/InitializeDLAServiceRequest.h" +#include "model/InitializeDLAServiceResult.h" +#include "model/InitializeRegionRequest.h" +#include "model/InitializeRegionResult.h" +#include "model/KillSparkJobRequest.h" +#include "model/KillSparkJobResult.h" +#include "model/ListAlreadyBingingRamUidRequest.h" +#include "model/ListAlreadyBingingRamUidResult.h" +#include "model/ListModulesReleaseRequest.h" +#include "model/ListModulesReleaseResult.h" +#include "model/ListResourcesSpecRequest.h" +#include "model/ListResourcesSpecResult.h" +#include "model/ListSparkJobRequest.h" +#include "model/ListSparkJobResult.h" +#include "model/ListVirtualClustersRequest.h" +#include "model/ListVirtualClustersResult.h" +#include "model/ModifyVirtualClusterRequest.h" +#include "model/ModifyVirtualClusterResult.h" +#include "model/ModifyVirtualClusterForSparkRequest.h" +#include "model/ModifyVirtualClusterForSparkResult.h" +#include "model/OpenDataLakeAnalyticsServiceRequest.h" +#include "model/OpenDataLakeAnalyticsServiceResult.h" +#include "model/QueryAccountListRequest.h" +#include "model/QueryAccountListResult.h" +#include "model/QueryDataSourceDefRequest.h" +#include "model/QueryDataSourceDefResult.h" +#include "model/QueryDiscountListRequest.h" +#include "model/QueryDiscountListResult.h" +#include "model/QueryEndPointListRequest.h" +#include "model/QueryEndPointListResult.h" +#include "model/QueryServiceAccountListRequest.h" +#include "model/QueryServiceAccountListResult.h" +#include "model/QueryTaskSumRequest.h" +#include "model/QueryTaskSumResult.h" +#include "model/ReleaseInstanceRequest.h" +#include "model/ReleaseInstanceResult.h" +#include "model/RemoveEndPointRequest.h" +#include "model/RemoveEndPointResult.h" +#include "model/ResetMainPasswordRequest.h" +#include "model/ResetMainPasswordResult.h" +#include "model/RevokePrivilegesRequest.h" +#include "model/RevokePrivilegesResult.h" +#include "model/SetAllowIPRequest.h" +#include "model/SetAllowIPResult.h" +#include "model/SetCapacityLimitPolicyRequest.h" +#include "model/SetCapacityLimitPolicyResult.h" +#include "model/SetRelationWithBizRequest.h" +#include "model/SetRelationWithBizResult.h" +#include "model/SetTrafficLimitPolicyRequest.h" +#include "model/SetTrafficLimitPolicyResult.h" +#include "model/StartVirtualClusterRequest.h" +#include "model/StartVirtualClusterResult.h" +#include "model/StopVirtualClusterRequest.h" +#include "model/StopVirtualClusterResult.h" +#include "model/SubmitSparkJobRequest.h" +#include "model/SubmitSparkJobResult.h" +#include "model/UnSubscribeRegionRequest.h" +#include "model/UnSubscribeRegionResult.h" +#include "model/UpdateAccountPasswordRequest.h" +#include "model/UpdateAccountPasswordResult.h" + + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT Openanalytics_openClient : public RpcServiceClient + { + public: + typedef Outcome AddAccountOutcome; + typedef std::future AddAccountOutcomeCallable; + typedef std::function&)> AddAccountAsyncHandler; + typedef Outcome AddEndPointOutcome; + typedef std::future AddEndPointOutcomeCallable; + typedef std::function&)> AddEndPointAsyncHandler; + typedef Outcome AddPartitionsOutcome; + typedef std::future AddPartitionsOutcomeCallable; + typedef std::function&)> AddPartitionsAsyncHandler; + typedef Outcome AlterDatabaseOutcome; + typedef std::future AlterDatabaseOutcomeCallable; + typedef std::function&)> AlterDatabaseAsyncHandler; + typedef Outcome AlterTableOutcome; + typedef std::future AlterTableOutcomeCallable; + typedef std::function&)> AlterTableAsyncHandler; + typedef Outcome BindingRamUidToDlaAccountOutcome; + typedef std::future BindingRamUidToDlaAccountOutcomeCallable; + typedef std::function&)> BindingRamUidToDlaAccountAsyncHandler; + typedef Outcome CreateDatabaseOutcome; + typedef std::future CreateDatabaseOutcomeCallable; + typedef std::function&)> CreateDatabaseAsyncHandler; + typedef Outcome CreateInstanceOutcome; + typedef std::future CreateInstanceOutcomeCallable; + typedef std::function&)> CreateInstanceAsyncHandler; + typedef Outcome CreateServiceLinkedRoleOutcome; + typedef std::future CreateServiceLinkedRoleOutcomeCallable; + typedef std::function&)> CreateServiceLinkedRoleAsyncHandler; + typedef Outcome CreateTableOutcome; + typedef std::future CreateTableOutcomeCallable; + typedef std::function&)> CreateTableAsyncHandler; + typedef Outcome CreateUserNetConfigOutcome; + typedef std::future CreateUserNetConfigOutcomeCallable; + typedef std::function&)> CreateUserNetConfigAsyncHandler; + typedef Outcome CreateVirtualClusterForSparkOutcome; + typedef std::future CreateVirtualClusterForSparkOutcomeCallable; + typedef std::function&)> CreateVirtualClusterForSparkAsyncHandler; + typedef Outcome DecodeStsTokenOutcome; + typedef std::future DecodeStsTokenOutcomeCallable; + typedef std::function&)> DecodeStsTokenAsyncHandler; + typedef Outcome DeleteAccountOutcome; + typedef std::future DeleteAccountOutcomeCallable; + typedef std::function&)> DeleteAccountAsyncHandler; + typedef Outcome DeleteUserNetConfigOutcome; + typedef std::future DeleteUserNetConfigOutcomeCallable; + typedef std::function&)> DeleteUserNetConfigAsyncHandler; + typedef Outcome DescribeCapacityOutcome; + typedef std::future DescribeCapacityOutcomeCallable; + typedef std::function&)> DescribeCapacityAsyncHandler; + typedef Outcome DescribeDataLakeAnalyticsServiceOutcome; + typedef std::future DescribeDataLakeAnalyticsServiceOutcomeCallable; + typedef std::function&)> DescribeDataLakeAnalyticsServiceAsyncHandler; + typedef Outcome DescribeRegionListOutcome; + typedef std::future DescribeRegionListOutcomeCallable; + typedef std::function&)> DescribeRegionListAsyncHandler; + typedef Outcome DescribeVirtualClusterOutcome; + typedef std::future DescribeVirtualClusterOutcomeCallable; + typedef std::function&)> DescribeVirtualClusterAsyncHandler; + typedef Outcome DescribeVirtualClusterV2Outcome; + typedef std::future DescribeVirtualClusterV2OutcomeCallable; + typedef std::function&)> DescribeVirtualClusterV2AsyncHandler; + typedef Outcome DestroyVirtualClusterOutcome; + typedef std::future DestroyVirtualClusterOutcomeCallable; + typedef std::function&)> DestroyVirtualClusterAsyncHandler; + typedef Outcome DropDatabaseOutcome; + typedef std::future DropDatabaseOutcomeCallable; + typedef std::function&)> DropDatabaseAsyncHandler; + typedef Outcome DropPartitionOutcome; + typedef std::future DropPartitionOutcomeCallable; + typedef std::function&)> DropPartitionAsyncHandler; + typedef Outcome DropTableOutcome; + typedef std::future DropTableOutcomeCallable; + typedef std::function&)> DropTableAsyncHandler; + typedef Outcome ForbidAutomaticMetaSyncAsIntegrationAccountOutcome; + typedef std::future ForbidAutomaticMetaSyncAsIntegrationAccountOutcomeCallable; + typedef std::function&)> ForbidAutomaticMetaSyncAsIntegrationAccountAsyncHandler; + typedef Outcome GetAllDatabasesOutcome; + typedef std::future GetAllDatabasesOutcomeCallable; + typedef std::function&)> GetAllDatabasesAsyncHandler; + typedef Outcome GetAllTablesOutcome; + typedef std::future GetAllTablesOutcomeCallable; + typedef std::function&)> GetAllTablesAsyncHandler; + typedef Outcome GetAllowIPOutcome; + typedef std::future GetAllowIPOutcomeCallable; + typedef std::function&)> GetAllowIPAsyncHandler; + typedef Outcome GetConsolePermissionOutcome; + typedef std::future GetConsolePermissionOutcomeCallable; + typedef std::function&)> GetConsolePermissionAsyncHandler; + typedef Outcome GetDLAServiceStatusOutcome; + typedef std::future GetDLAServiceStatusOutcomeCallable; + typedef std::function&)> GetDLAServiceStatusAsyncHandler; + typedef Outcome GetDatabaseOutcome; + typedef std::future GetDatabaseOutcomeCallable; + typedef std::function&)> GetDatabaseAsyncHandler; + typedef Outcome GetEndPointOutcome; + typedef std::future GetEndPointOutcomeCallable; + typedef std::function&)> GetEndPointAsyncHandler; + typedef Outcome GetEndPointByDomainOutcome; + typedef std::future GetEndPointByDomainOutcomeCallable; + typedef std::function&)> GetEndPointByDomainAsyncHandler; + typedef Outcome GetJobDetailOutcome; + typedef std::future GetJobDetailOutcomeCallable; + typedef std::function&)> GetJobDetailAsyncHandler; + typedef Outcome GetJobLogOutcome; + typedef std::future GetJobLogOutcomeCallable; + typedef std::function&)> GetJobLogAsyncHandler; + typedef Outcome GetJobStatusOutcome; + typedef std::future GetJobStatusOutcomeCallable; + typedef std::function&)> GetJobStatusAsyncHandler; + typedef Outcome GetPartitionOutcome; + typedef std::future GetPartitionOutcomeCallable; + typedef std::function&)> GetPartitionAsyncHandler; + typedef Outcome GetPartitionsOutcome; + typedef std::future GetPartitionsOutcomeCallable; + typedef std::function&)> GetPartitionsAsyncHandler; + typedef Outcome GetRegionStatusOutcome; + typedef std::future GetRegionStatusOutcomeCallable; + typedef std::function&)> GetRegionStatusAsyncHandler; + typedef Outcome GetServiceLinkedRoleStatusOutcome; + typedef std::future GetServiceLinkedRoleStatusOutcomeCallable; + typedef std::function&)> GetServiceLinkedRoleStatusAsyncHandler; + typedef Outcome GetTableOutcome; + typedef std::future GetTableOutcomeCallable; + typedef std::function&)> GetTableAsyncHandler; + typedef Outcome GrantPrivilegesOutcome; + typedef std::future GrantPrivilegesOutcomeCallable; + typedef std::function&)> GrantPrivilegesAsyncHandler; + typedef Outcome InitializeDLAServiceOutcome; + typedef std::future InitializeDLAServiceOutcomeCallable; + typedef std::function&)> InitializeDLAServiceAsyncHandler; + typedef Outcome InitializeRegionOutcome; + typedef std::future InitializeRegionOutcomeCallable; + typedef std::function&)> InitializeRegionAsyncHandler; + typedef Outcome KillSparkJobOutcome; + typedef std::future KillSparkJobOutcomeCallable; + typedef std::function&)> KillSparkJobAsyncHandler; + typedef Outcome ListAlreadyBingingRamUidOutcome; + typedef std::future ListAlreadyBingingRamUidOutcomeCallable; + typedef std::function&)> ListAlreadyBingingRamUidAsyncHandler; + typedef Outcome ListModulesReleaseOutcome; + typedef std::future ListModulesReleaseOutcomeCallable; + typedef std::function&)> ListModulesReleaseAsyncHandler; + typedef Outcome ListResourcesSpecOutcome; + typedef std::future ListResourcesSpecOutcomeCallable; + typedef std::function&)> ListResourcesSpecAsyncHandler; + typedef Outcome ListSparkJobOutcome; + typedef std::future ListSparkJobOutcomeCallable; + typedef std::function&)> ListSparkJobAsyncHandler; + typedef Outcome ListVirtualClustersOutcome; + typedef std::future ListVirtualClustersOutcomeCallable; + typedef std::function&)> ListVirtualClustersAsyncHandler; + typedef Outcome ModifyVirtualClusterOutcome; + typedef std::future ModifyVirtualClusterOutcomeCallable; + typedef std::function&)> ModifyVirtualClusterAsyncHandler; + typedef Outcome ModifyVirtualClusterForSparkOutcome; + typedef std::future ModifyVirtualClusterForSparkOutcomeCallable; + typedef std::function&)> ModifyVirtualClusterForSparkAsyncHandler; + typedef Outcome OpenDataLakeAnalyticsServiceOutcome; + typedef std::future OpenDataLakeAnalyticsServiceOutcomeCallable; + typedef std::function&)> OpenDataLakeAnalyticsServiceAsyncHandler; + typedef Outcome QueryAccountListOutcome; + typedef std::future QueryAccountListOutcomeCallable; + typedef std::function&)> QueryAccountListAsyncHandler; + typedef Outcome QueryDataSourceDefOutcome; + typedef std::future QueryDataSourceDefOutcomeCallable; + typedef std::function&)> QueryDataSourceDefAsyncHandler; + typedef Outcome QueryDiscountListOutcome; + typedef std::future QueryDiscountListOutcomeCallable; + typedef std::function&)> QueryDiscountListAsyncHandler; + typedef Outcome QueryEndPointListOutcome; + typedef std::future QueryEndPointListOutcomeCallable; + typedef std::function&)> QueryEndPointListAsyncHandler; + typedef Outcome QueryServiceAccountListOutcome; + typedef std::future QueryServiceAccountListOutcomeCallable; + typedef std::function&)> QueryServiceAccountListAsyncHandler; + typedef Outcome QueryTaskSumOutcome; + typedef std::future QueryTaskSumOutcomeCallable; + typedef std::function&)> QueryTaskSumAsyncHandler; + typedef Outcome ReleaseInstanceOutcome; + typedef std::future ReleaseInstanceOutcomeCallable; + typedef std::function&)> ReleaseInstanceAsyncHandler; + typedef Outcome RemoveEndPointOutcome; + typedef std::future RemoveEndPointOutcomeCallable; + typedef std::function&)> RemoveEndPointAsyncHandler; + typedef Outcome ResetMainPasswordOutcome; + typedef std::future ResetMainPasswordOutcomeCallable; + typedef std::function&)> ResetMainPasswordAsyncHandler; + typedef Outcome RevokePrivilegesOutcome; + typedef std::future RevokePrivilegesOutcomeCallable; + typedef std::function&)> RevokePrivilegesAsyncHandler; + typedef Outcome SetAllowIPOutcome; + typedef std::future SetAllowIPOutcomeCallable; + typedef std::function&)> SetAllowIPAsyncHandler; + typedef Outcome SetCapacityLimitPolicyOutcome; + typedef std::future SetCapacityLimitPolicyOutcomeCallable; + typedef std::function&)> SetCapacityLimitPolicyAsyncHandler; + typedef Outcome SetRelationWithBizOutcome; + typedef std::future SetRelationWithBizOutcomeCallable; + typedef std::function&)> SetRelationWithBizAsyncHandler; + typedef Outcome SetTrafficLimitPolicyOutcome; + typedef std::future SetTrafficLimitPolicyOutcomeCallable; + typedef std::function&)> SetTrafficLimitPolicyAsyncHandler; + typedef Outcome StartVirtualClusterOutcome; + typedef std::future StartVirtualClusterOutcomeCallable; + typedef std::function&)> StartVirtualClusterAsyncHandler; + typedef Outcome StopVirtualClusterOutcome; + typedef std::future StopVirtualClusterOutcomeCallable; + typedef std::function&)> StopVirtualClusterAsyncHandler; + typedef Outcome SubmitSparkJobOutcome; + typedef std::future SubmitSparkJobOutcomeCallable; + typedef std::function&)> SubmitSparkJobAsyncHandler; + typedef Outcome UnSubscribeRegionOutcome; + typedef std::future UnSubscribeRegionOutcomeCallable; + typedef std::function&)> UnSubscribeRegionAsyncHandler; + typedef Outcome UpdateAccountPasswordOutcome; + typedef std::future UpdateAccountPasswordOutcomeCallable; + typedef std::function&)> UpdateAccountPasswordAsyncHandler; + + Openanalytics_openClient(const Credentials &credentials, const ClientConfiguration &configuration); + Openanalytics_openClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + Openanalytics_openClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~Openanalytics_openClient(); + AddAccountOutcome addAccount(const Model::AddAccountRequest &request)const; + void addAccountAsync(const Model::AddAccountRequest& request, const AddAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddAccountOutcomeCallable addAccountCallable(const Model::AddAccountRequest& request) const; + AddEndPointOutcome addEndPoint(const Model::AddEndPointRequest &request)const; + void addEndPointAsync(const Model::AddEndPointRequest& request, const AddEndPointAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddEndPointOutcomeCallable addEndPointCallable(const Model::AddEndPointRequest& request) const; + AddPartitionsOutcome addPartitions(const Model::AddPartitionsRequest &request)const; + void addPartitionsAsync(const Model::AddPartitionsRequest& request, const AddPartitionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddPartitionsOutcomeCallable addPartitionsCallable(const Model::AddPartitionsRequest& request) const; + AlterDatabaseOutcome alterDatabase(const Model::AlterDatabaseRequest &request)const; + void alterDatabaseAsync(const Model::AlterDatabaseRequest& request, const AlterDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AlterDatabaseOutcomeCallable alterDatabaseCallable(const Model::AlterDatabaseRequest& request) const; + AlterTableOutcome alterTable(const Model::AlterTableRequest &request)const; + void alterTableAsync(const Model::AlterTableRequest& request, const AlterTableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AlterTableOutcomeCallable alterTableCallable(const Model::AlterTableRequest& request) const; + BindingRamUidToDlaAccountOutcome bindingRamUidToDlaAccount(const Model::BindingRamUidToDlaAccountRequest &request)const; + void bindingRamUidToDlaAccountAsync(const Model::BindingRamUidToDlaAccountRequest& request, const BindingRamUidToDlaAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BindingRamUidToDlaAccountOutcomeCallable bindingRamUidToDlaAccountCallable(const Model::BindingRamUidToDlaAccountRequest& request) const; + CreateDatabaseOutcome createDatabase(const Model::CreateDatabaseRequest &request)const; + void createDatabaseAsync(const Model::CreateDatabaseRequest& request, const CreateDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDatabaseOutcomeCallable createDatabaseCallable(const Model::CreateDatabaseRequest& request) const; + CreateInstanceOutcome createInstance(const Model::CreateInstanceRequest &request)const; + void createInstanceAsync(const Model::CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateInstanceOutcomeCallable createInstanceCallable(const Model::CreateInstanceRequest& request) const; + CreateServiceLinkedRoleOutcome createServiceLinkedRole(const Model::CreateServiceLinkedRoleRequest &request)const; + void createServiceLinkedRoleAsync(const Model::CreateServiceLinkedRoleRequest& request, const CreateServiceLinkedRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateServiceLinkedRoleOutcomeCallable createServiceLinkedRoleCallable(const Model::CreateServiceLinkedRoleRequest& request) const; + CreateTableOutcome createTable(const Model::CreateTableRequest &request)const; + void createTableAsync(const Model::CreateTableRequest& request, const CreateTableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateTableOutcomeCallable createTableCallable(const Model::CreateTableRequest& request) const; + CreateUserNetConfigOutcome createUserNetConfig(const Model::CreateUserNetConfigRequest &request)const; + void createUserNetConfigAsync(const Model::CreateUserNetConfigRequest& request, const CreateUserNetConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateUserNetConfigOutcomeCallable createUserNetConfigCallable(const Model::CreateUserNetConfigRequest& request) const; + CreateVirtualClusterForSparkOutcome createVirtualClusterForSpark(const Model::CreateVirtualClusterForSparkRequest &request)const; + void createVirtualClusterForSparkAsync(const Model::CreateVirtualClusterForSparkRequest& request, const CreateVirtualClusterForSparkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateVirtualClusterForSparkOutcomeCallable createVirtualClusterForSparkCallable(const Model::CreateVirtualClusterForSparkRequest& request) const; + DecodeStsTokenOutcome decodeStsToken(const Model::DecodeStsTokenRequest &request)const; + void decodeStsTokenAsync(const Model::DecodeStsTokenRequest& request, const DecodeStsTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DecodeStsTokenOutcomeCallable decodeStsTokenCallable(const Model::DecodeStsTokenRequest& request) const; + DeleteAccountOutcome deleteAccount(const Model::DeleteAccountRequest &request)const; + void deleteAccountAsync(const Model::DeleteAccountRequest& request, const DeleteAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAccountOutcomeCallable deleteAccountCallable(const Model::DeleteAccountRequest& request) const; + DeleteUserNetConfigOutcome deleteUserNetConfig(const Model::DeleteUserNetConfigRequest &request)const; + void deleteUserNetConfigAsync(const Model::DeleteUserNetConfigRequest& request, const DeleteUserNetConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteUserNetConfigOutcomeCallable deleteUserNetConfigCallable(const Model::DeleteUserNetConfigRequest& request) const; + DescribeCapacityOutcome describeCapacity(const Model::DescribeCapacityRequest &request)const; + void describeCapacityAsync(const Model::DescribeCapacityRequest& request, const DescribeCapacityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCapacityOutcomeCallable describeCapacityCallable(const Model::DescribeCapacityRequest& request) const; + DescribeDataLakeAnalyticsServiceOutcome describeDataLakeAnalyticsService(const Model::DescribeDataLakeAnalyticsServiceRequest &request)const; + void describeDataLakeAnalyticsServiceAsync(const Model::DescribeDataLakeAnalyticsServiceRequest& request, const DescribeDataLakeAnalyticsServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDataLakeAnalyticsServiceOutcomeCallable describeDataLakeAnalyticsServiceCallable(const Model::DescribeDataLakeAnalyticsServiceRequest& request) const; + DescribeRegionListOutcome describeRegionList(const Model::DescribeRegionListRequest &request)const; + void describeRegionListAsync(const Model::DescribeRegionListRequest& request, const DescribeRegionListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRegionListOutcomeCallable describeRegionListCallable(const Model::DescribeRegionListRequest& request) const; + DescribeVirtualClusterOutcome describeVirtualCluster(const Model::DescribeVirtualClusterRequest &request)const; + void describeVirtualClusterAsync(const Model::DescribeVirtualClusterRequest& request, const DescribeVirtualClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVirtualClusterOutcomeCallable describeVirtualClusterCallable(const Model::DescribeVirtualClusterRequest& request) const; + DescribeVirtualClusterV2Outcome describeVirtualClusterV2(const Model::DescribeVirtualClusterV2Request &request)const; + void describeVirtualClusterV2Async(const Model::DescribeVirtualClusterV2Request& request, const DescribeVirtualClusterV2AsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVirtualClusterV2OutcomeCallable describeVirtualClusterV2Callable(const Model::DescribeVirtualClusterV2Request& request) const; + DestroyVirtualClusterOutcome destroyVirtualCluster(const Model::DestroyVirtualClusterRequest &request)const; + void destroyVirtualClusterAsync(const Model::DestroyVirtualClusterRequest& request, const DestroyVirtualClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DestroyVirtualClusterOutcomeCallable destroyVirtualClusterCallable(const Model::DestroyVirtualClusterRequest& request) const; + DropDatabaseOutcome dropDatabase(const Model::DropDatabaseRequest &request)const; + void dropDatabaseAsync(const Model::DropDatabaseRequest& request, const DropDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DropDatabaseOutcomeCallable dropDatabaseCallable(const Model::DropDatabaseRequest& request) const; + DropPartitionOutcome dropPartition(const Model::DropPartitionRequest &request)const; + void dropPartitionAsync(const Model::DropPartitionRequest& request, const DropPartitionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DropPartitionOutcomeCallable dropPartitionCallable(const Model::DropPartitionRequest& request) const; + DropTableOutcome dropTable(const Model::DropTableRequest &request)const; + void dropTableAsync(const Model::DropTableRequest& request, const DropTableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DropTableOutcomeCallable dropTableCallable(const Model::DropTableRequest& request) const; + ForbidAutomaticMetaSyncAsIntegrationAccountOutcome forbidAutomaticMetaSyncAsIntegrationAccount(const Model::ForbidAutomaticMetaSyncAsIntegrationAccountRequest &request)const; + void forbidAutomaticMetaSyncAsIntegrationAccountAsync(const Model::ForbidAutomaticMetaSyncAsIntegrationAccountRequest& request, const ForbidAutomaticMetaSyncAsIntegrationAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ForbidAutomaticMetaSyncAsIntegrationAccountOutcomeCallable forbidAutomaticMetaSyncAsIntegrationAccountCallable(const Model::ForbidAutomaticMetaSyncAsIntegrationAccountRequest& request) const; + GetAllDatabasesOutcome getAllDatabases(const Model::GetAllDatabasesRequest &request)const; + void getAllDatabasesAsync(const Model::GetAllDatabasesRequest& request, const GetAllDatabasesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAllDatabasesOutcomeCallable getAllDatabasesCallable(const Model::GetAllDatabasesRequest& request) const; + GetAllTablesOutcome getAllTables(const Model::GetAllTablesRequest &request)const; + void getAllTablesAsync(const Model::GetAllTablesRequest& request, const GetAllTablesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAllTablesOutcomeCallable getAllTablesCallable(const Model::GetAllTablesRequest& request) const; + GetAllowIPOutcome getAllowIP(const Model::GetAllowIPRequest &request)const; + void getAllowIPAsync(const Model::GetAllowIPRequest& request, const GetAllowIPAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAllowIPOutcomeCallable getAllowIPCallable(const Model::GetAllowIPRequest& request) const; + GetConsolePermissionOutcome getConsolePermission(const Model::GetConsolePermissionRequest &request)const; + void getConsolePermissionAsync(const Model::GetConsolePermissionRequest& request, const GetConsolePermissionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetConsolePermissionOutcomeCallable getConsolePermissionCallable(const Model::GetConsolePermissionRequest& request) const; + GetDLAServiceStatusOutcome getDLAServiceStatus(const Model::GetDLAServiceStatusRequest &request)const; + void getDLAServiceStatusAsync(const Model::GetDLAServiceStatusRequest& request, const GetDLAServiceStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDLAServiceStatusOutcomeCallable getDLAServiceStatusCallable(const Model::GetDLAServiceStatusRequest& request) const; + GetDatabaseOutcome getDatabase(const Model::GetDatabaseRequest &request)const; + void getDatabaseAsync(const Model::GetDatabaseRequest& request, const GetDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDatabaseOutcomeCallable getDatabaseCallable(const Model::GetDatabaseRequest& request) const; + GetEndPointOutcome getEndPoint(const Model::GetEndPointRequest &request)const; + void getEndPointAsync(const Model::GetEndPointRequest& request, const GetEndPointAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetEndPointOutcomeCallable getEndPointCallable(const Model::GetEndPointRequest& request) const; + GetEndPointByDomainOutcome getEndPointByDomain(const Model::GetEndPointByDomainRequest &request)const; + void getEndPointByDomainAsync(const Model::GetEndPointByDomainRequest& request, const GetEndPointByDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetEndPointByDomainOutcomeCallable getEndPointByDomainCallable(const Model::GetEndPointByDomainRequest& request) const; + GetJobDetailOutcome getJobDetail(const Model::GetJobDetailRequest &request)const; + void getJobDetailAsync(const Model::GetJobDetailRequest& request, const GetJobDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetJobDetailOutcomeCallable getJobDetailCallable(const Model::GetJobDetailRequest& request) const; + GetJobLogOutcome getJobLog(const Model::GetJobLogRequest &request)const; + void getJobLogAsync(const Model::GetJobLogRequest& request, const GetJobLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetJobLogOutcomeCallable getJobLogCallable(const Model::GetJobLogRequest& request) const; + GetJobStatusOutcome getJobStatus(const Model::GetJobStatusRequest &request)const; + void getJobStatusAsync(const Model::GetJobStatusRequest& request, const GetJobStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetJobStatusOutcomeCallable getJobStatusCallable(const Model::GetJobStatusRequest& request) const; + GetPartitionOutcome getPartition(const Model::GetPartitionRequest &request)const; + void getPartitionAsync(const Model::GetPartitionRequest& request, const GetPartitionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPartitionOutcomeCallable getPartitionCallable(const Model::GetPartitionRequest& request) const; + GetPartitionsOutcome getPartitions(const Model::GetPartitionsRequest &request)const; + void getPartitionsAsync(const Model::GetPartitionsRequest& request, const GetPartitionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPartitionsOutcomeCallable getPartitionsCallable(const Model::GetPartitionsRequest& request) const; + GetRegionStatusOutcome getRegionStatus(const Model::GetRegionStatusRequest &request)const; + void getRegionStatusAsync(const Model::GetRegionStatusRequest& request, const GetRegionStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetRegionStatusOutcomeCallable getRegionStatusCallable(const Model::GetRegionStatusRequest& request) const; + GetServiceLinkedRoleStatusOutcome getServiceLinkedRoleStatus(const Model::GetServiceLinkedRoleStatusRequest &request)const; + void getServiceLinkedRoleStatusAsync(const Model::GetServiceLinkedRoleStatusRequest& request, const GetServiceLinkedRoleStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetServiceLinkedRoleStatusOutcomeCallable getServiceLinkedRoleStatusCallable(const Model::GetServiceLinkedRoleStatusRequest& request) const; + GetTableOutcome getTable(const Model::GetTableRequest &request)const; + void getTableAsync(const Model::GetTableRequest& request, const GetTableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTableOutcomeCallable getTableCallable(const Model::GetTableRequest& request) const; + GrantPrivilegesOutcome grantPrivileges(const Model::GrantPrivilegesRequest &request)const; + void grantPrivilegesAsync(const Model::GrantPrivilegesRequest& request, const GrantPrivilegesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GrantPrivilegesOutcomeCallable grantPrivilegesCallable(const Model::GrantPrivilegesRequest& request) const; + InitializeDLAServiceOutcome initializeDLAService(const Model::InitializeDLAServiceRequest &request)const; + void initializeDLAServiceAsync(const Model::InitializeDLAServiceRequest& request, const InitializeDLAServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + InitializeDLAServiceOutcomeCallable initializeDLAServiceCallable(const Model::InitializeDLAServiceRequest& request) const; + InitializeRegionOutcome initializeRegion(const Model::InitializeRegionRequest &request)const; + void initializeRegionAsync(const Model::InitializeRegionRequest& request, const InitializeRegionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + InitializeRegionOutcomeCallable initializeRegionCallable(const Model::InitializeRegionRequest& request) const; + KillSparkJobOutcome killSparkJob(const Model::KillSparkJobRequest &request)const; + void killSparkJobAsync(const Model::KillSparkJobRequest& request, const KillSparkJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + KillSparkJobOutcomeCallable killSparkJobCallable(const Model::KillSparkJobRequest& request) const; + ListAlreadyBingingRamUidOutcome listAlreadyBingingRamUid(const Model::ListAlreadyBingingRamUidRequest &request)const; + void listAlreadyBingingRamUidAsync(const Model::ListAlreadyBingingRamUidRequest& request, const ListAlreadyBingingRamUidAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAlreadyBingingRamUidOutcomeCallable listAlreadyBingingRamUidCallable(const Model::ListAlreadyBingingRamUidRequest& request) const; + ListModulesReleaseOutcome listModulesRelease(const Model::ListModulesReleaseRequest &request)const; + void listModulesReleaseAsync(const Model::ListModulesReleaseRequest& request, const ListModulesReleaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListModulesReleaseOutcomeCallable listModulesReleaseCallable(const Model::ListModulesReleaseRequest& request) const; + ListResourcesSpecOutcome listResourcesSpec(const Model::ListResourcesSpecRequest &request)const; + void listResourcesSpecAsync(const Model::ListResourcesSpecRequest& request, const ListResourcesSpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListResourcesSpecOutcomeCallable listResourcesSpecCallable(const Model::ListResourcesSpecRequest& request) const; + ListSparkJobOutcome listSparkJob(const Model::ListSparkJobRequest &request)const; + void listSparkJobAsync(const Model::ListSparkJobRequest& request, const ListSparkJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSparkJobOutcomeCallable listSparkJobCallable(const Model::ListSparkJobRequest& request) const; + ListVirtualClustersOutcome listVirtualClusters(const Model::ListVirtualClustersRequest &request)const; + void listVirtualClustersAsync(const Model::ListVirtualClustersRequest& request, const ListVirtualClustersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListVirtualClustersOutcomeCallable listVirtualClustersCallable(const Model::ListVirtualClustersRequest& request) const; + ModifyVirtualClusterOutcome modifyVirtualCluster(const Model::ModifyVirtualClusterRequest &request)const; + void modifyVirtualClusterAsync(const Model::ModifyVirtualClusterRequest& request, const ModifyVirtualClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyVirtualClusterOutcomeCallable modifyVirtualClusterCallable(const Model::ModifyVirtualClusterRequest& request) const; + ModifyVirtualClusterForSparkOutcome modifyVirtualClusterForSpark(const Model::ModifyVirtualClusterForSparkRequest &request)const; + void modifyVirtualClusterForSparkAsync(const Model::ModifyVirtualClusterForSparkRequest& request, const ModifyVirtualClusterForSparkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyVirtualClusterForSparkOutcomeCallable modifyVirtualClusterForSparkCallable(const Model::ModifyVirtualClusterForSparkRequest& request) const; + OpenDataLakeAnalyticsServiceOutcome openDataLakeAnalyticsService(const Model::OpenDataLakeAnalyticsServiceRequest &request)const; + void openDataLakeAnalyticsServiceAsync(const Model::OpenDataLakeAnalyticsServiceRequest& request, const OpenDataLakeAnalyticsServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OpenDataLakeAnalyticsServiceOutcomeCallable openDataLakeAnalyticsServiceCallable(const Model::OpenDataLakeAnalyticsServiceRequest& request) const; + QueryAccountListOutcome queryAccountList(const Model::QueryAccountListRequest &request)const; + void queryAccountListAsync(const Model::QueryAccountListRequest& request, const QueryAccountListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryAccountListOutcomeCallable queryAccountListCallable(const Model::QueryAccountListRequest& request) const; + QueryDataSourceDefOutcome queryDataSourceDef(const Model::QueryDataSourceDefRequest &request)const; + void queryDataSourceDefAsync(const Model::QueryDataSourceDefRequest& request, const QueryDataSourceDefAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryDataSourceDefOutcomeCallable queryDataSourceDefCallable(const Model::QueryDataSourceDefRequest& request) const; + QueryDiscountListOutcome queryDiscountList(const Model::QueryDiscountListRequest &request)const; + void queryDiscountListAsync(const Model::QueryDiscountListRequest& request, const QueryDiscountListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryDiscountListOutcomeCallable queryDiscountListCallable(const Model::QueryDiscountListRequest& request) const; + QueryEndPointListOutcome queryEndPointList(const Model::QueryEndPointListRequest &request)const; + void queryEndPointListAsync(const Model::QueryEndPointListRequest& request, const QueryEndPointListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryEndPointListOutcomeCallable queryEndPointListCallable(const Model::QueryEndPointListRequest& request) const; + QueryServiceAccountListOutcome queryServiceAccountList(const Model::QueryServiceAccountListRequest &request)const; + void queryServiceAccountListAsync(const Model::QueryServiceAccountListRequest& request, const QueryServiceAccountListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryServiceAccountListOutcomeCallable queryServiceAccountListCallable(const Model::QueryServiceAccountListRequest& request) const; + QueryTaskSumOutcome queryTaskSum(const Model::QueryTaskSumRequest &request)const; + void queryTaskSumAsync(const Model::QueryTaskSumRequest& request, const QueryTaskSumAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryTaskSumOutcomeCallable queryTaskSumCallable(const Model::QueryTaskSumRequest& request) const; + ReleaseInstanceOutcome releaseInstance(const Model::ReleaseInstanceRequest &request)const; + void releaseInstanceAsync(const Model::ReleaseInstanceRequest& request, const ReleaseInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReleaseInstanceOutcomeCallable releaseInstanceCallable(const Model::ReleaseInstanceRequest& request) const; + RemoveEndPointOutcome removeEndPoint(const Model::RemoveEndPointRequest &request)const; + void removeEndPointAsync(const Model::RemoveEndPointRequest& request, const RemoveEndPointAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveEndPointOutcomeCallable removeEndPointCallable(const Model::RemoveEndPointRequest& request) const; + ResetMainPasswordOutcome resetMainPassword(const Model::ResetMainPasswordRequest &request)const; + void resetMainPasswordAsync(const Model::ResetMainPasswordRequest& request, const ResetMainPasswordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResetMainPasswordOutcomeCallable resetMainPasswordCallable(const Model::ResetMainPasswordRequest& request) const; + RevokePrivilegesOutcome revokePrivileges(const Model::RevokePrivilegesRequest &request)const; + void revokePrivilegesAsync(const Model::RevokePrivilegesRequest& request, const RevokePrivilegesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RevokePrivilegesOutcomeCallable revokePrivilegesCallable(const Model::RevokePrivilegesRequest& request) const; + SetAllowIPOutcome setAllowIP(const Model::SetAllowIPRequest &request)const; + void setAllowIPAsync(const Model::SetAllowIPRequest& request, const SetAllowIPAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetAllowIPOutcomeCallable setAllowIPCallable(const Model::SetAllowIPRequest& request) const; + SetCapacityLimitPolicyOutcome setCapacityLimitPolicy(const Model::SetCapacityLimitPolicyRequest &request)const; + void setCapacityLimitPolicyAsync(const Model::SetCapacityLimitPolicyRequest& request, const SetCapacityLimitPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetCapacityLimitPolicyOutcomeCallable setCapacityLimitPolicyCallable(const Model::SetCapacityLimitPolicyRequest& request) const; + SetRelationWithBizOutcome setRelationWithBiz(const Model::SetRelationWithBizRequest &request)const; + void setRelationWithBizAsync(const Model::SetRelationWithBizRequest& request, const SetRelationWithBizAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetRelationWithBizOutcomeCallable setRelationWithBizCallable(const Model::SetRelationWithBizRequest& request) const; + SetTrafficLimitPolicyOutcome setTrafficLimitPolicy(const Model::SetTrafficLimitPolicyRequest &request)const; + void setTrafficLimitPolicyAsync(const Model::SetTrafficLimitPolicyRequest& request, const SetTrafficLimitPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetTrafficLimitPolicyOutcomeCallable setTrafficLimitPolicyCallable(const Model::SetTrafficLimitPolicyRequest& request) const; + StartVirtualClusterOutcome startVirtualCluster(const Model::StartVirtualClusterRequest &request)const; + void startVirtualClusterAsync(const Model::StartVirtualClusterRequest& request, const StartVirtualClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartVirtualClusterOutcomeCallable startVirtualClusterCallable(const Model::StartVirtualClusterRequest& request) const; + StopVirtualClusterOutcome stopVirtualCluster(const Model::StopVirtualClusterRequest &request)const; + void stopVirtualClusterAsync(const Model::StopVirtualClusterRequest& request, const StopVirtualClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopVirtualClusterOutcomeCallable stopVirtualClusterCallable(const Model::StopVirtualClusterRequest& request) const; + SubmitSparkJobOutcome submitSparkJob(const Model::SubmitSparkJobRequest &request)const; + void submitSparkJobAsync(const Model::SubmitSparkJobRequest& request, const SubmitSparkJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SubmitSparkJobOutcomeCallable submitSparkJobCallable(const Model::SubmitSparkJobRequest& request) const; + UnSubscribeRegionOutcome unSubscribeRegion(const Model::UnSubscribeRegionRequest &request)const; + void unSubscribeRegionAsync(const Model::UnSubscribeRegionRequest& request, const UnSubscribeRegionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnSubscribeRegionOutcomeCallable unSubscribeRegionCallable(const Model::UnSubscribeRegionRequest& request) const; + UpdateAccountPasswordOutcome updateAccountPassword(const Model::UpdateAccountPasswordRequest &request)const; + void updateAccountPasswordAsync(const Model::UpdateAccountPasswordRequest& request, const UpdateAccountPasswordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateAccountPasswordOutcomeCallable updateAccountPasswordCallable(const Model::UpdateAccountPasswordRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_OPENANALYTICS_OPENCLIENT_H_ diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/Openanalytics_openExport.h b/openanalytics-open/include/alibabacloud/openanalytics-open/Openanalytics_openExport.h new file mode 100644 index 000000000..6f7ba7c95 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/Openanalytics_openExport.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_OPENANALYTICS_OPEN_OPENANALYTICS_OPENEXPORT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_OPENANALYTICS_OPENEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_OPENANALYTICS_OPEN_LIBRARY) +# define ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT +#endif + +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_OPENANALYTICS_OPENEXPORT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/AddAccountRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/AddAccountRequest.h new file mode 100644 index 000000000..102c17d84 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/AddAccountRequest.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_OPENANALYTICS_OPEN_MODEL_ADDACCOUNTREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_ADDACCOUNTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT AddAccountRequest : public RpcServiceRequest + { + + public: + AddAccountRequest(); + ~AddAccountRequest(); + + std::string getRamUid()const; + void setRamUid(const std::string& ramUid); + bool getIsShort()const; + void setIsShort(bool isShort); + std::string getRemark()const; + void setRemark(const std::string& remark); + std::string getPassword()const; + void setPassword(const std::string& password); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getEnableKMS()const; + void setEnableKMS(bool enableKMS); + bool getUseRandomPassword()const; + void setUseRandomPassword(bool useRandomPassword); + + private: + std::string ramUid_; + bool isShort_; + std::string remark_; + std::string password_; + std::string accountName_; + std::string regionId_; + bool enableKMS_; + bool useRandomPassword_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_ADDACCOUNTREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/AddAccountResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/AddAccountResult.h new file mode 100644 index 000000000..18f587cd1 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/AddAccountResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_ADDACCOUNTRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_ADDACCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT AddAccountResult : public ServiceResult + { + public: + struct Account + { + std::string userName; + std::string password; + }; + + + AddAccountResult(); + explicit AddAccountResult(const std::string &payload); + ~AddAccountResult(); + Account getAccount()const; + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + Account account_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_ADDACCOUNTRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/AddEndPointRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/AddEndPointRequest.h new file mode 100644 index 000000000..b4f31836f --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/AddEndPointRequest.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_OPENANALYTICS_OPEN_MODEL_ADDENDPOINTREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_ADDENDPOINTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT AddEndPointRequest : public RpcServiceRequest + { + + public: + AddEndPointRequest(); + ~AddEndPointRequest(); + + std::string getProduct()const; + void setProduct(const std::string& product); + std::string getNetworkType()const; + void setNetworkType(const std::string& networkType); + std::string getVswitch()const; + void setVswitch(const std::string& vswitch); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getZone()const; + void setZone(const std::string& zone); + std::string getVpcID()const; + void setVpcID(const std::string& vpcID); + + private: + std::string product_; + std::string networkType_; + std::string vswitch_; + std::string regionId_; + std::string zone_; + std::string vpcID_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_ADDENDPOINTREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/AddEndPointResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/AddEndPointResult.h new file mode 100644 index 000000000..28a127750 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/AddEndPointResult.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_OPENANALYTICS_OPEN_MODEL_ADDENDPOINTRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_ADDENDPOINTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT AddEndPointResult : public ServiceResult + { + public: + struct EndPointInfo + { + std::string endPointID; + std::string status; + std::string vSwitch; + std::string domainURL; + std::string vpcID; + std::string networkType; + std::string zone; + std::string allowIP; + std::string port; + std::string product; + std::string host; + }; + + + AddEndPointResult(); + explicit AddEndPointResult(const std::string &payload); + ~AddEndPointResult(); + EndPointInfo getEndPointInfo()const; + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + EndPointInfo endPointInfo_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_ADDENDPOINTRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/AddPartitionsRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/AddPartitionsRequest.h new file mode 100644 index 000000000..da7756c29 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/AddPartitionsRequest.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_OPENANALYTICS_OPEN_MODEL_ADDPARTITIONSREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_ADDPARTITIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT AddPartitionsRequest : public RpcServiceRequest + { + + public: + AddPartitionsRequest(); + ~AddPartitionsRequest(); + + Array getPartition()const; + void setPartition(const Array& partition); + + private: + Array partition_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_ADDPARTITIONSREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/AddPartitionsResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/AddPartitionsResult.h new file mode 100644 index 000000000..5233150a2 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/AddPartitionsResult.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_OPENANALYTICS_OPEN_MODEL_ADDPARTITIONSRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_ADDPARTITIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT AddPartitionsResult : public ServiceResult + { + public: + + + AddPartitionsResult(); + explicit AddPartitionsResult(const std::string &payload); + ~AddPartitionsResult(); + std::string getMessage()const; + long getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_ADDPARTITIONSRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/AlterDatabaseRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/AlterDatabaseRequest.h new file mode 100644 index 000000000..e15848485 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/AlterDatabaseRequest.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_OPENANALYTICS_OPEN_MODEL_ALTERDATABASEREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_ALTERDATABASEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT AlterDatabaseRequest : public RpcServiceRequest + { + + public: + AlterDatabaseRequest(); + ~AlterDatabaseRequest(); + + std::string getOldDbName()const; + void setOldDbName(const std::string& oldDbName); + std::string getName()const; + void setName(const std::string& name); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getLocationUri()const; + void setLocationUri(const std::string& locationUri); + std::string getParameters()const; + void setParameters(const std::string& parameters); + + private: + std::string oldDbName_; + std::string name_; + std::string description_; + std::string locationUri_; + std::string parameters_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_ALTERDATABASEREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/AlterDatabaseResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/AlterDatabaseResult.h new file mode 100644 index 000000000..8ecfff81c --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/AlterDatabaseResult.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_OPENANALYTICS_OPEN_MODEL_ALTERDATABASERESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_ALTERDATABASERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT AlterDatabaseResult : public ServiceResult + { + public: + + + AlterDatabaseResult(); + explicit AlterDatabaseResult(const std::string &payload); + ~AlterDatabaseResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_ALTERDATABASERESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/AlterTableRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/AlterTableRequest.h new file mode 100644 index 000000000..51a2bbc18 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/AlterTableRequest.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_OPENANALYTICS_OPEN_MODEL_ALTERTABLEREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_ALTERTABLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT AlterTableRequest : public RpcServiceRequest + { + + public: + AlterTableRequest(); + ~AlterTableRequest(); + + std::string getNewTableName()const; + void setNewTableName(const std::string& newTableName); + Array getCol()const; + void setCol(const Array& col); + std::string getOldTableName()const; + void setOldTableName(const std::string& oldTableName); + std::string getOldDbName()const; + void setOldDbName(const std::string& oldDbName); + std::string getNewDbName()const; + void setNewDbName(const std::string& newDbName); + std::string getParameters()const; + void setParameters(const std::string& parameters); + + private: + std::string newTableName_; + Array col_; + std::string oldTableName_; + std::string oldDbName_; + std::string newDbName_; + std::string parameters_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_ALTERTABLEREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/AlterTableResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/AlterTableResult.h new file mode 100644 index 000000000..a5c51fe25 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/AlterTableResult.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_OPENANALYTICS_OPEN_MODEL_ALTERTABLERESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_ALTERTABLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT AlterTableResult : public ServiceResult + { + public: + + + AlterTableResult(); + explicit AlterTableResult(const std::string &payload); + ~AlterTableResult(); + std::string getMessage()const; + bool getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + bool data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_ALTERTABLERESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/BindingRamUidToDlaAccountRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/BindingRamUidToDlaAccountRequest.h new file mode 100644 index 000000000..911835fff --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/BindingRamUidToDlaAccountRequest.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_OPENANALYTICS_OPEN_MODEL_BINDINGRAMUIDTODLAACCOUNTREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_BINDINGRAMUIDTODLAACCOUNTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT BindingRamUidToDlaAccountRequest : public RpcServiceRequest + { + + public: + BindingRamUidToDlaAccountRequest(); + ~BindingRamUidToDlaAccountRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getRamUid()const; + void setRamUid(const std::string& ramUid); + bool getIsShort()const; + void setIsShort(bool isShort); + bool getIsServiceUser()const; + void setIsServiceUser(bool isServiceUser); + + private: + std::string regionId_; + std::string accountName_; + std::string ramUid_; + bool isShort_; + bool isServiceUser_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_BINDINGRAMUIDTODLAACCOUNTREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/BindingRamUidToDlaAccountResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/BindingRamUidToDlaAccountResult.h new file mode 100644 index 000000000..e8850d094 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/BindingRamUidToDlaAccountResult.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_OPENANALYTICS_OPEN_MODEL_BINDINGRAMUIDTODLAACCOUNTRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_BINDINGRAMUIDTODLAACCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT BindingRamUidToDlaAccountResult : public ServiceResult + { + public: + + + BindingRamUidToDlaAccountResult(); + explicit BindingRamUidToDlaAccountResult(const std::string &payload); + ~BindingRamUidToDlaAccountResult(); + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_BINDINGRAMUIDTODLAACCOUNTRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateDatabaseRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateDatabaseRequest.h new file mode 100644 index 000000000..aa3c13425 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateDatabaseRequest.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_OPENANALYTICS_OPEN_MODEL_CREATEDATABASEREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_CREATEDATABASEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT CreateDatabaseRequest : public RpcServiceRequest + { + + public: + CreateDatabaseRequest(); + ~CreateDatabaseRequest(); + + std::string getName()const; + void setName(const std::string& name); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getLocationUri()const; + void setLocationUri(const std::string& locationUri); + std::string getParameters()const; + void setParameters(const std::string& parameters); + + private: + std::string name_; + std::string description_; + std::string locationUri_; + std::string parameters_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_CREATEDATABASEREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateDatabaseResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateDatabaseResult.h new file mode 100644 index 000000000..6f7b7fa8d --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateDatabaseResult.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_OPENANALYTICS_OPEN_MODEL_CREATEDATABASERESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_CREATEDATABASERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT CreateDatabaseResult : public ServiceResult + { + public: + + + CreateDatabaseResult(); + explicit CreateDatabaseResult(const std::string &payload); + ~CreateDatabaseResult(); + std::string getMessage()const; + long getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_CREATEDATABASERESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateInstanceRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateInstanceRequest.h new file mode 100644 index 000000000..d90147601 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateInstanceRequest.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_OPENANALYTICS_OPEN_MODEL_CREATEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_CREATEINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT CreateInstanceRequest : public RpcServiceRequest + { + + public: + CreateInstanceRequest(); + ~CreateInstanceRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getChargeType()const; + void setChargeType(const std::string& chargeType); + std::string getInstanceType()const; + void setInstanceType(const std::string& instanceType); + std::string getComponent()const; + void setComponent(const std::string& component); + + private: + std::string regionId_; + std::string chargeType_; + std::string instanceType_; + std::string component_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_CREATEINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateInstanceResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateInstanceResult.h new file mode 100644 index 000000000..b65114148 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateInstanceResult.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_OPENANALYTICS_OPEN_MODEL_CREATEINSTANCERESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_CREATEINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT CreateInstanceResult : public ServiceResult + { + public: + + + CreateInstanceResult(); + explicit CreateInstanceResult(const std::string &payload); + ~CreateInstanceResult(); + std::string getErrorInfo()const; + std::string getErrorCode()const; + bool getSuccess()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorInfo_; + std::string errorCode_; + bool success_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_CREATEINSTANCERESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateServiceLinkedRoleRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateServiceLinkedRoleRequest.h new file mode 100644 index 000000000..16fcaee5c --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateServiceLinkedRoleRequest.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_OPENANALYTICS_OPEN_MODEL_CREATESERVICELINKEDROLEREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_CREATESERVICELINKEDROLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT CreateServiceLinkedRoleRequest : public RpcServiceRequest + { + + public: + CreateServiceLinkedRoleRequest(); + ~CreateServiceLinkedRoleRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_CREATESERVICELINKEDROLEREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateServiceLinkedRoleResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateServiceLinkedRoleResult.h new file mode 100644 index 000000000..c62d2bdf7 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateServiceLinkedRoleResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_CREATESERVICELINKEDROLERESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_CREATESERVICELINKEDROLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT CreateServiceLinkedRoleResult : public ServiceResult + { + public: + struct DataItem + { + std::string roleName; + std::string description; + std::string assumeRolePolicyDocument; + bool isServiceLinkRole; + std::string arn; + std::string createDate; + std::string roleId; + std::string rolePrincipalName; + }; + + + CreateServiceLinkedRoleResult(); + explicit CreateServiceLinkedRoleResult(const std::string &payload); + ~CreateServiceLinkedRoleResult(); + std::vector getData()const; + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_CREATESERVICELINKEDROLERESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateTableRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateTableRequest.h new file mode 100644 index 000000000..e01c694e5 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateTableRequest.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_OPENANALYTICS_OPEN_MODEL_CREATETABLEREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_CREATETABLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT CreateTableRequest : public RpcServiceRequest + { + + public: + CreateTableRequest(); + ~CreateTableRequest(); + + std::string getTableType()const; + void setTableType(const std::string& tableType); + std::string getViewOriginalText()const; + void setViewOriginalText(const std::string& viewOriginalText); + Struct getStorageDescriptor()const; + void setStorageDescriptor(const Struct& storageDescriptor); + Array getPartitionKeys()const; + void setPartitionKeys(const Array& partitionKeys); + std::string getDbName()const; + void setDbName(const std::string& dbName); + std::string getViewExpandedText()const; + void setViewExpandedText(const std::string& viewExpandedText); + std::string getTableName()const; + void setTableName(const std::string& tableName); + std::string getParameters()const; + void setParameters(const std::string& parameters); + + private: + std::string tableType_; + std::string viewOriginalText_; + Struct storageDescriptor_; + Array partitionKeys_; + std::string dbName_; + std::string viewExpandedText_; + std::string tableName_; + std::string parameters_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_CREATETABLEREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateTableResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateTableResult.h new file mode 100644 index 000000000..4f66bb515 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateTableResult.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_OPENANALYTICS_OPEN_MODEL_CREATETABLERESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_CREATETABLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT CreateTableResult : public ServiceResult + { + public: + + + CreateTableResult(); + explicit CreateTableResult(const std::string &payload); + ~CreateTableResult(); + std::string getMessage()const; + long getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_CREATETABLERESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateUserNetConfigRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateUserNetConfigRequest.h new file mode 100644 index 000000000..cab790b6c --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateUserNetConfigRequest.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_OPENANALYTICS_OPEN_MODEL_CREATEUSERNETCONFIGREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_CREATEUSERNETCONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT CreateUserNetConfigRequest : public RpcServiceRequest + { + + public: + CreateUserNetConfigRequest(); + ~CreateUserNetConfigRequest(); + + std::string getSwitchId()const; + void setSwitchId(const std::string& switchId); + std::string getSecurityGroupId()const; + void setSecurityGroupId(const std::string& securityGroupId); + std::string getVcName()const; + void setVcName(const std::string& vcName); + + private: + std::string switchId_; + std::string securityGroupId_; + std::string vcName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_CREATEUSERNETCONFIGREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateUserNetConfigResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateUserNetConfigResult.h new file mode 100644 index 000000000..39d0c82b6 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateUserNetConfigResult.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_OPENANALYTICS_OPEN_MODEL_CREATEUSERNETCONFIGRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_CREATEUSERNETCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT CreateUserNetConfigResult : public ServiceResult + { + public: + + + CreateUserNetConfigResult(); + explicit CreateUserNetConfigResult(const std::string &payload); + ~CreateUserNetConfigResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_CREATEUSERNETCONFIGRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateVirtualClusterForSparkRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateVirtualClusterForSparkRequest.h new file mode 100644 index 000000000..07397e225 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateVirtualClusterForSparkRequest.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_OPENANALYTICS_OPEN_MODEL_CREATEVIRTUALCLUSTERFORSPARKREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_CREATEVIRTUALCLUSTERFORSPARKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT CreateVirtualClusterForSparkRequest : public RpcServiceRequest + { + + public: + CreateVirtualClusterForSparkRequest(); + ~CreateVirtualClusterForSparkRequest(); + + std::string getDefaultExecutorSpecName()const; + void setDefaultExecutorSpecName(const std::string& defaultExecutorSpecName); + float getMaxMemory()const; + void setMaxMemory(float maxMemory); + std::string getSparkModuleReleaseName()const; + void setSparkModuleReleaseName(const std::string& sparkModuleReleaseName); + std::string getDescription()const; + void setDescription(const std::string& description); + long getDefaultExecutorNumbers()const; + void setDefaultExecutorNumbers(long defaultExecutorNumbers); + float getMaxCpu()const; + void setMaxCpu(float maxCpu); + std::string getName()const; + void setName(const std::string& name); + std::string getDefaultDriverSpecName()const; + void setDefaultDriverSpecName(const std::string& defaultDriverSpecName); + + private: + std::string defaultExecutorSpecName_; + float maxMemory_; + std::string sparkModuleReleaseName_; + std::string description_; + long defaultExecutorNumbers_; + float maxCpu_; + std::string name_; + std::string defaultDriverSpecName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_CREATEVIRTUALCLUSTERFORSPARKREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateVirtualClusterForSparkResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateVirtualClusterForSparkResult.h new file mode 100644 index 000000000..97c48c76d --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/CreateVirtualClusterForSparkResult.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_OPENANALYTICS_OPEN_MODEL_CREATEVIRTUALCLUSTERFORSPARKRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_CREATEVIRTUALCLUSTERFORSPARKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT CreateVirtualClusterForSparkResult : public ServiceResult + { + public: + + + CreateVirtualClusterForSparkResult(); + explicit CreateVirtualClusterForSparkResult(const std::string &payload); + ~CreateVirtualClusterForSparkResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_CREATEVIRTUALCLUSTERFORSPARKRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/DecodeStsTokenRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DecodeStsTokenRequest.h new file mode 100644 index 000000000..4181bb3a9 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DecodeStsTokenRequest.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_OPENANALYTICS_OPEN_MODEL_DECODESTSTOKENREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DECODESTSTOKENREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT DecodeStsTokenRequest : public RpcServiceRequest + { + + public: + DecodeStsTokenRequest(); + ~DecodeStsTokenRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getAccessKey()const; + void setAccessKey(const std::string& accessKey); + std::string getToken()const; + void setToken(const std::string& token); + + private: + std::string regionId_; + std::string accessKey_; + std::string token_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DECODESTSTOKENREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/DecodeStsTokenResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DecodeStsTokenResult.h new file mode 100644 index 000000000..00e3ad549 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DecodeStsTokenResult.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_OPENANALYTICS_OPEN_MODEL_DECODESTSTOKENRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DECODESTSTOKENRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT DecodeStsTokenResult : public ServiceResult + { + public: + struct Data + { + std::string policy; + bool mfaAuthenticated; + long expireDate; + long accountUid; + std::string akProxy; + std::string tokenPrincipalName; + long roleId; + std::string roleName; + std::string tokenType; + long grantorId; + std::string playerUid; + std::string tokenPrincipalId; + bool proxyTrustTransportInfo; + long accountBid; + }; + + + DecodeStsTokenResult(); + explicit DecodeStsTokenResult(const std::string &payload); + ~DecodeStsTokenResult(); + Data getData()const; + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DECODESTSTOKENRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/DeleteAccountRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DeleteAccountRequest.h new file mode 100644 index 000000000..5f238a7ef --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DeleteAccountRequest.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_OPENANALYTICS_OPEN_MODEL_DELETEACCOUNTREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DELETEACCOUNTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT DeleteAccountRequest : public RpcServiceRequest + { + + public: + DeleteAccountRequest(); + ~DeleteAccountRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + bool getIsShort()const; + void setIsShort(bool isShort); + bool getIsServiceUser()const; + void setIsServiceUser(bool isServiceUser); + + private: + std::string regionId_; + std::string accountName_; + bool isShort_; + bool isServiceUser_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DELETEACCOUNTREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/DeleteAccountResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DeleteAccountResult.h new file mode 100644 index 000000000..d0dc8cba3 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DeleteAccountResult.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_OPENANALYTICS_OPEN_MODEL_DELETEACCOUNTRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DELETEACCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT DeleteAccountResult : public ServiceResult + { + public: + + + DeleteAccountResult(); + explicit DeleteAccountResult(const std::string &payload); + ~DeleteAccountResult(); + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DELETEACCOUNTRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/DeleteUserNetConfigRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DeleteUserNetConfigRequest.h new file mode 100644 index 000000000..81ee06015 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DeleteUserNetConfigRequest.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_OPENANALYTICS_OPEN_MODEL_DELETEUSERNETCONFIGREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DELETEUSERNETCONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT DeleteUserNetConfigRequest : public RpcServiceRequest + { + + public: + DeleteUserNetConfigRequest(); + ~DeleteUserNetConfigRequest(); + + std::string getName()const; + void setName(const std::string& name); + + private: + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DELETEUSERNETCONFIGREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/DeleteUserNetConfigResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DeleteUserNetConfigResult.h new file mode 100644 index 000000000..5a453ae3c --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DeleteUserNetConfigResult.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_OPENANALYTICS_OPEN_MODEL_DELETEUSERNETCONFIGRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DELETEUSERNETCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT DeleteUserNetConfigResult : public ServiceResult + { + public: + + + DeleteUserNetConfigResult(); + explicit DeleteUserNetConfigResult(const std::string &payload); + ~DeleteUserNetConfigResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DELETEUSERNETCONFIGRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeCapacityRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeCapacityRequest.h new file mode 100644 index 000000000..27a4deae3 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeCapacityRequest.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_OPENANALYTICS_OPEN_MODEL_DESCRIBECAPACITYREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DESCRIBECAPACITYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT DescribeCapacityRequest : public RpcServiceRequest + { + + public: + DescribeCapacityRequest(); + ~DescribeCapacityRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getExternalBizAliyunId()const; + void setExternalBizAliyunId(const std::string& externalBizAliyunId); + + private: + std::string regionId_; + std::string externalBizAliyunId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DESCRIBECAPACITYREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeCapacityResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeCapacityResult.h new file mode 100644 index 000000000..c99727294 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeCapacityResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DESCRIBECAPACITYRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DESCRIBECAPACITYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT DescribeCapacityResult : public ServiceResult + { + public: + + + DescribeCapacityResult(); + explicit DescribeCapacityResult(const std::string &payload); + ~DescribeCapacityResult(); + int getStorage()const; + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + int storage_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DESCRIBECAPACITYRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeDataLakeAnalyticsServiceRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeDataLakeAnalyticsServiceRequest.h new file mode 100644 index 000000000..2edbf8641 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeDataLakeAnalyticsServiceRequest.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_OPENANALYTICS_OPEN_MODEL_DESCRIBEDATALAKEANALYTICSSERVICEREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DESCRIBEDATALAKEANALYTICSSERVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT DescribeDataLakeAnalyticsServiceRequest : public RpcServiceRequest + { + + public: + DescribeDataLakeAnalyticsServiceRequest(); + ~DescribeDataLakeAnalyticsServiceRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getInternetChargeType()const; + void setInternetChargeType(const std::string& internetChargeType); + + private: + std::string regionId_; + std::string internetChargeType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DESCRIBEDATALAKEANALYTICSSERVICEREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeDataLakeAnalyticsServiceResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeDataLakeAnalyticsServiceResult.h new file mode 100644 index 000000000..81a920fb1 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeDataLakeAnalyticsServiceResult.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_OPENANALYTICS_OPEN_MODEL_DESCRIBEDATALAKEANALYTICSSERVICERESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DESCRIBEDATALAKEANALYTICSSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT DescribeDataLakeAnalyticsServiceResult : public ServiceResult + { + public: + + + DescribeDataLakeAnalyticsServiceResult(); + explicit DescribeDataLakeAnalyticsServiceResult(const std::string &payload); + ~DescribeDataLakeAnalyticsServiceResult(); + std::string getErrorInfo()const; + std::string getErrorCode()const; + bool getSuccess()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorInfo_; + std::string errorCode_; + bool success_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DESCRIBEDATALAKEANALYTICSSERVICERESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeRegionListRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeRegionListRequest.h new file mode 100644 index 000000000..3bd8461bc --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeRegionListRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DESCRIBEREGIONLISTREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DESCRIBEREGIONLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT DescribeRegionListRequest : public RpcServiceRequest + { + + public: + DescribeRegionListRequest(); + ~DescribeRegionListRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DESCRIBEREGIONLISTREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeRegionListResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeRegionListResult.h new file mode 100644 index 000000000..f31706bea --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeRegionListResult.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_OPENANALYTICS_OPEN_MODEL_DESCRIBEREGIONLISTRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DESCRIBEREGIONLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT DescribeRegionListResult : public ServiceResult + { + public: + struct RegionListItem + { + std::string regionID; + }; + + + DescribeRegionListResult(); + explicit DescribeRegionListResult(const std::string &payload); + ~DescribeRegionListResult(); + std::vector getRegionList()const; + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector regionList_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DESCRIBEREGIONLISTRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeVirtualClusterRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeVirtualClusterRequest.h new file mode 100644 index 000000000..f2f87896f --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeVirtualClusterRequest.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_OPENANALYTICS_OPEN_MODEL_DESCRIBEVIRTUALCLUSTERREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DESCRIBEVIRTUALCLUSTERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT DescribeVirtualClusterRequest : public RpcServiceRequest + { + + public: + DescribeVirtualClusterRequest(); + ~DescribeVirtualClusterRequest(); + + std::string getName()const; + void setName(const std::string& name); + + private: + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DESCRIBEVIRTUALCLUSTERREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeVirtualClusterResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeVirtualClusterResult.h new file mode 100644 index 000000000..5055a5391 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeVirtualClusterResult.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_OPENANALYTICS_OPEN_MODEL_DESCRIBEVIRTUALCLUSTERRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DESCRIBEVIRTUALCLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT DescribeVirtualClusterResult : public ServiceResult + { + public: + struct DataItem + { + std::string status; + std::string creatorId; + std::string defaultExecutorSpecName; + long defaultExecutorNumbers; + std::string createTime; + std::string sparkEngineModuleName; + std::string defaultDriverSpecName; + std::string name; + std::string type; + float maxCpuLimit; + float maxCpu; + std::string sparkVersionDescription; + float maxMemoryLimit; + float maxMemory; + }; + + + DescribeVirtualClusterResult(); + explicit DescribeVirtualClusterResult(const std::string &payload); + ~DescribeVirtualClusterResult(); + std::vector getData()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DESCRIBEVIRTUALCLUSTERRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeVirtualClusterV2Request.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeVirtualClusterV2Request.h new file mode 100644 index 000000000..6d10bc3f8 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeVirtualClusterV2Request.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_OPENANALYTICS_OPEN_MODEL_DESCRIBEVIRTUALCLUSTERV2REQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DESCRIBEVIRTUALCLUSTERV2REQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT DescribeVirtualClusterV2Request : public RpcServiceRequest + { + + public: + DescribeVirtualClusterV2Request(); + ~DescribeVirtualClusterV2Request(); + + std::string getName()const; + void setName(const std::string& name); + + private: + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DESCRIBEVIRTUALCLUSTERV2REQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeVirtualClusterV2Result.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeVirtualClusterV2Result.h new file mode 100644 index 000000000..225f66da1 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DescribeVirtualClusterV2Result.h @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DESCRIBEVIRTUALCLUSTERV2RESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DESCRIBEVIRTUALCLUSTERV2RESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT DescribeVirtualClusterV2Result : public ServiceResult + { + public: + struct DataItem + { + struct SparkEngineConfig + { + std::string defaultExecutorSpecName; + long defaultExecutorNumbers; + std::string defaultDriverSpecName; + std::string sparkVersionDescription; + std::string sparkModuleReleaseName; + }; + struct UserNetWorkConfigListItem + { + std::string securityGroupId; + std::string switchId; + long id; + }; + std::string status; + std::string type; + std::vector userNetWorkConfigList; + std::string creatorId; + std::string chargeType; + std::string createTime; + float maxCpu; + std::string minCpu; + SparkEngineConfig sparkEngineConfig; + std::string name; + }; + + + DescribeVirtualClusterV2Result(); + explicit DescribeVirtualClusterV2Result(const std::string &payload); + ~DescribeVirtualClusterV2Result(); + std::vector getData()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DESCRIBEVIRTUALCLUSTERV2RESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/DestroyVirtualClusterRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DestroyVirtualClusterRequest.h new file mode 100644 index 000000000..e07edcb5d --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DestroyVirtualClusterRequest.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_OPENANALYTICS_OPEN_MODEL_DESTROYVIRTUALCLUSTERREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DESTROYVIRTUALCLUSTERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT DestroyVirtualClusterRequest : public RpcServiceRequest + { + + public: + DestroyVirtualClusterRequest(); + ~DestroyVirtualClusterRequest(); + + std::string getName()const; + void setName(const std::string& name); + + private: + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DESTROYVIRTUALCLUSTERREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/DestroyVirtualClusterResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DestroyVirtualClusterResult.h new file mode 100644 index 000000000..0c0a0d136 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DestroyVirtualClusterResult.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_OPENANALYTICS_OPEN_MODEL_DESTROYVIRTUALCLUSTERRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DESTROYVIRTUALCLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT DestroyVirtualClusterResult : public ServiceResult + { + public: + + + DestroyVirtualClusterResult(); + explicit DestroyVirtualClusterResult(const std::string &payload); + ~DestroyVirtualClusterResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DESTROYVIRTUALCLUSTERRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/DropDatabaseRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DropDatabaseRequest.h new file mode 100644 index 000000000..74404235a --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DropDatabaseRequest.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_OPENANALYTICS_OPEN_MODEL_DROPDATABASEREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DROPDATABASEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT DropDatabaseRequest : public RpcServiceRequest + { + + public: + DropDatabaseRequest(); + ~DropDatabaseRequest(); + + bool getCascade()const; + void setCascade(bool cascade); + std::string getName()const; + void setName(const std::string& name); + + private: + bool cascade_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DROPDATABASEREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/DropDatabaseResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DropDatabaseResult.h new file mode 100644 index 000000000..e6bd225bc --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DropDatabaseResult.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_OPENANALYTICS_OPEN_MODEL_DROPDATABASERESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DROPDATABASERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT DropDatabaseResult : public ServiceResult + { + public: + + + DropDatabaseResult(); + explicit DropDatabaseResult(const std::string &payload); + ~DropDatabaseResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DROPDATABASERESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/DropPartitionRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DropPartitionRequest.h new file mode 100644 index 000000000..279a369ea --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DropPartitionRequest.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_OPENANALYTICS_OPEN_MODEL_DROPPARTITIONREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DROPPARTITIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT DropPartitionRequest : public RpcServiceRequest + { + + public: + DropPartitionRequest(); + ~DropPartitionRequest(); + + std::string getDbName()const; + void setDbName(const std::string& dbName); + Array getPartValues()const; + void setPartValues(const Array& partValues); + std::string getTableName()const; + void setTableName(const std::string& tableName); + + private: + std::string dbName_; + Array partValues_; + std::string tableName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DROPPARTITIONREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/DropPartitionResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DropPartitionResult.h new file mode 100644 index 000000000..77439bcd5 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DropPartitionResult.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_OPENANALYTICS_OPEN_MODEL_DROPPARTITIONRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DROPPARTITIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT DropPartitionResult : public ServiceResult + { + public: + + + DropPartitionResult(); + explicit DropPartitionResult(const std::string &payload); + ~DropPartitionResult(); + std::string getMessage()const; + bool getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + bool data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DROPPARTITIONRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/DropTableRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DropTableRequest.h new file mode 100644 index 000000000..dea5af796 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DropTableRequest.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_OPENANALYTICS_OPEN_MODEL_DROPTABLEREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DROPTABLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT DropTableRequest : public RpcServiceRequest + { + + public: + DropTableRequest(); + ~DropTableRequest(); + + std::string getDbName()const; + void setDbName(const std::string& dbName); + std::string getTableName()const; + void setTableName(const std::string& tableName); + + private: + std::string dbName_; + std::string tableName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DROPTABLEREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/DropTableResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DropTableResult.h new file mode 100644 index 000000000..ea7888a2b --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/DropTableResult.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_OPENANALYTICS_OPEN_MODEL_DROPTABLERESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DROPTABLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT DropTableResult : public ServiceResult + { + public: + + + DropTableResult(); + explicit DropTableResult(const std::string &payload); + ~DropTableResult(); + std::string getMessage()const; + bool getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + bool data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_DROPTABLERESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/ForbidAutomaticMetaSyncAsIntegrationAccountRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ForbidAutomaticMetaSyncAsIntegrationAccountRequest.h new file mode 100644 index 000000000..a09394900 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ForbidAutomaticMetaSyncAsIntegrationAccountRequest.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_OPENANALYTICS_OPEN_MODEL_FORBIDAUTOMATICMETASYNCASINTEGRATIONACCOUNTREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_FORBIDAUTOMATICMETASYNCASINTEGRATIONACCOUNTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT ForbidAutomaticMetaSyncAsIntegrationAccountRequest : public RpcServiceRequest + { + + public: + ForbidAutomaticMetaSyncAsIntegrationAccountRequest(); + ~ForbidAutomaticMetaSyncAsIntegrationAccountRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_FORBIDAUTOMATICMETASYNCASINTEGRATIONACCOUNTREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/ForbidAutomaticMetaSyncAsIntegrationAccountResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ForbidAutomaticMetaSyncAsIntegrationAccountResult.h new file mode 100644 index 000000000..143f60865 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ForbidAutomaticMetaSyncAsIntegrationAccountResult.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_OPENANALYTICS_OPEN_MODEL_FORBIDAUTOMATICMETASYNCASINTEGRATIONACCOUNTRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_FORBIDAUTOMATICMETASYNCASINTEGRATIONACCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT ForbidAutomaticMetaSyncAsIntegrationAccountResult : public ServiceResult + { + public: + + + ForbidAutomaticMetaSyncAsIntegrationAccountResult(); + explicit ForbidAutomaticMetaSyncAsIntegrationAccountResult(const std::string &payload); + ~ForbidAutomaticMetaSyncAsIntegrationAccountResult(); + bool getHasUpdated()const; + + protected: + void parse(const std::string &payload); + private: + bool hasUpdated_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_FORBIDAUTOMATICMETASYNCASINTEGRATIONACCOUNTRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetAllDatabasesRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetAllDatabasesRequest.h new file mode 100644 index 000000000..1973c9145 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetAllDatabasesRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETALLDATABASESREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETALLDATABASESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT GetAllDatabasesRequest : public RpcServiceRequest + { + + public: + GetAllDatabasesRequest(); + ~GetAllDatabasesRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETALLDATABASESREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetAllDatabasesResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetAllDatabasesResult.h new file mode 100644 index 000000000..13da7bf25 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetAllDatabasesResult.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_OPENANALYTICS_OPEN_MODEL_GETALLDATABASESRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETALLDATABASESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT GetAllDatabasesResult : public ServiceResult + { + public: + + + GetAllDatabasesResult(); + explicit GetAllDatabasesResult(const std::string &payload); + ~GetAllDatabasesResult(); + std::string getMessage()const; + std::vector getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETALLDATABASESRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetAllTablesRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetAllTablesRequest.h new file mode 100644 index 000000000..a4db47186 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetAllTablesRequest.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_OPENANALYTICS_OPEN_MODEL_GETALLTABLESREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETALLTABLESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT GetAllTablesRequest : public RpcServiceRequest + { + + public: + GetAllTablesRequest(); + ~GetAllTablesRequest(); + + std::string getDbName()const; + void setDbName(const std::string& dbName); + + private: + std::string dbName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETALLTABLESREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetAllTablesResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetAllTablesResult.h new file mode 100644 index 000000000..854a26211 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetAllTablesResult.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_OPENANALYTICS_OPEN_MODEL_GETALLTABLESRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETALLTABLESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT GetAllTablesResult : public ServiceResult + { + public: + + + GetAllTablesResult(); + explicit GetAllTablesResult(const std::string &payload); + ~GetAllTablesResult(); + std::string getMessage()const; + std::vector getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETALLTABLESRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetAllowIPRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetAllowIPRequest.h new file mode 100644 index 000000000..3091f43f3 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetAllowIPRequest.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_OPENANALYTICS_OPEN_MODEL_GETALLOWIPREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETALLOWIPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT GetAllowIPRequest : public RpcServiceRequest + { + + public: + GetAllowIPRequest(); + ~GetAllowIPRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNetworkType()const; + void setNetworkType(const std::string& networkType); + std::string getProduct()const; + void setProduct(const std::string& product); + + private: + std::string regionId_; + std::string networkType_; + std::string product_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETALLOWIPREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetAllowIPResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetAllowIPResult.h new file mode 100644 index 000000000..7e67a77f2 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetAllowIPResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETALLOWIPRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETALLOWIPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT GetAllowIPResult : public ServiceResult + { + public: + + + GetAllowIPResult(); + explicit GetAllowIPResult(const std::string &payload); + ~GetAllowIPResult(); + std::string getAllowIP()const; + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + std::string allowIP_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETALLOWIPRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetConsolePermissionRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetConsolePermissionRequest.h new file mode 100644 index 000000000..8e372c5af --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetConsolePermissionRequest.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_OPENANALYTICS_OPEN_MODEL_GETCONSOLEPERMISSIONREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETCONSOLEPERMISSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT GetConsolePermissionRequest : public RpcServiceRequest + { + + public: + GetConsolePermissionRequest(); + ~GetConsolePermissionRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETCONSOLEPERMISSIONREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetConsolePermissionResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetConsolePermissionResult.h new file mode 100644 index 000000000..b25cb8959 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetConsolePermissionResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETCONSOLEPERMISSIONRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETCONSOLEPERMISSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT GetConsolePermissionResult : public ServiceResult + { + public: + + + GetConsolePermissionResult(); + explicit GetConsolePermissionResult(const std::string &payload); + ~GetConsolePermissionResult(); + std::string getRegionId()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string regionId_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETCONSOLEPERMISSIONRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetDLAServiceStatusRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetDLAServiceStatusRequest.h new file mode 100644 index 000000000..df049afbd --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetDLAServiceStatusRequest.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_OPENANALYTICS_OPEN_MODEL_GETDLASERVICESTATUSREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETDLASERVICESTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT GetDLAServiceStatusRequest : public RpcServiceRequest + { + + public: + GetDLAServiceStatusRequest(); + ~GetDLAServiceStatusRequest(); + + std::string getExternalUid()const; + void setExternalUid(const std::string& externalUid); + std::string getExternalAliyunUid()const; + void setExternalAliyunUid(const std::string& externalAliyunUid); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getExternalBizAliyunUid()const; + void setExternalBizAliyunUid(const std::string& externalBizAliyunUid); + + private: + std::string externalUid_; + std::string externalAliyunUid_; + std::string regionId_; + std::string externalBizAliyunUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETDLASERVICESTATUSREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetDLAServiceStatusResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetDLAServiceStatusResult.h new file mode 100644 index 000000000..ee21d2732 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetDLAServiceStatusResult.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_OPENANALYTICS_OPEN_MODEL_GETDLASERVICESTATUSRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETDLASERVICESTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT GetDLAServiceStatusResult : public ServiceResult + { + public: + struct UserDLAServiceStatus + { + bool isDLAAccountReady; + bool isServiceReady; + bool isOSSOpen; + }; + + + GetDLAServiceStatusResult(); + explicit GetDLAServiceStatusResult(const std::string &payload); + ~GetDLAServiceStatusResult(); + UserDLAServiceStatus getUserDLAServiceStatus()const; + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + UserDLAServiceStatus userDLAServiceStatus_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETDLASERVICESTATUSRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetDatabaseRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetDatabaseRequest.h new file mode 100644 index 000000000..6f066df6d --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetDatabaseRequest.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_OPENANALYTICS_OPEN_MODEL_GETDATABASEREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETDATABASEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT GetDatabaseRequest : public RpcServiceRequest + { + + public: + GetDatabaseRequest(); + ~GetDatabaseRequest(); + + std::string getName()const; + void setName(const std::string& name); + + private: + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETDATABASEREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetDatabaseResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetDatabaseResult.h new file mode 100644 index 000000000..18a999f4a --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetDatabaseResult.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_OPENANALYTICS_OPEN_MODEL_GETDATABASERESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETDATABASERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT GetDatabaseResult : public ServiceResult + { + public: + struct DatabaseModel + { + std::string tenantId; + std::string ownerName; + std::string locationUri; + std::string parameters; + std::string description; + std::string name; + }; + + + GetDatabaseResult(); + explicit GetDatabaseResult(const std::string &payload); + ~GetDatabaseResult(); + DatabaseModel getDatabaseModel()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + DatabaseModel databaseModel_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETDATABASERESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetEndPointByDomainRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetEndPointByDomainRequest.h new file mode 100644 index 000000000..bdf1dbd71 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetEndPointByDomainRequest.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_OPENANALYTICS_OPEN_MODEL_GETENDPOINTBYDOMAINREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETENDPOINTBYDOMAINREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT GetEndPointByDomainRequest : public RpcServiceRequest + { + + public: + GetEndPointByDomainRequest(); + ~GetEndPointByDomainRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getDomainURL()const; + void setDomainURL(const std::string& domainURL); + + private: + std::string regionId_; + std::string domainURL_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETENDPOINTBYDOMAINREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetEndPointByDomainResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetEndPointByDomainResult.h new file mode 100644 index 000000000..4ff94de01 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetEndPointByDomainResult.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_OPENANALYTICS_OPEN_MODEL_GETENDPOINTBYDOMAINRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETENDPOINTBYDOMAINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT GetEndPointByDomainResult : public ServiceResult + { + public: + struct EndPointInfo + { + std::string endPointID; + std::string vSwitch; + std::string domainURL; + std::string vpcID; + std::string networkType; + std::string zone; + std::string allowIP; + std::string port; + std::string product; + std::string host; + std::string cloudInstanceID; + }; + + + GetEndPointByDomainResult(); + explicit GetEndPointByDomainResult(const std::string &payload); + ~GetEndPointByDomainResult(); + EndPointInfo getEndPointInfo()const; + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + EndPointInfo endPointInfo_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETENDPOINTBYDOMAINRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetEndPointRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetEndPointRequest.h new file mode 100644 index 000000000..9c7aacc7b --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetEndPointRequest.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_OPENANALYTICS_OPEN_MODEL_GETENDPOINTREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETENDPOINTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT GetEndPointRequest : public RpcServiceRequest + { + + public: + GetEndPointRequest(); + ~GetEndPointRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getEndPointID()const; + void setEndPointID(const std::string& endPointID); + + private: + std::string regionId_; + std::string endPointID_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETENDPOINTREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetEndPointResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetEndPointResult.h new file mode 100644 index 000000000..3ba52da6f --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetEndPointResult.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_OPENANALYTICS_OPEN_MODEL_GETENDPOINTRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETENDPOINTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT GetEndPointResult : public ServiceResult + { + public: + struct EndPointInfo + { + std::string endPointID; + std::string status; + std::string vSwitch; + std::string domainURL; + std::string vpcID; + std::string networkType; + std::string zone; + std::string allowIP; + std::string port; + std::string product; + std::string host; + }; + + + GetEndPointResult(); + explicit GetEndPointResult(const std::string &payload); + ~GetEndPointResult(); + EndPointInfo getEndPointInfo()const; + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + EndPointInfo endPointInfo_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETENDPOINTRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetJobDetailRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetJobDetailRequest.h new file mode 100644 index 000000000..0d9365f37 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetJobDetailRequest.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_OPENANALYTICS_OPEN_MODEL_GETJOBDETAILREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETJOBDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT GetJobDetailRequest : public RpcServiceRequest + { + + public: + GetJobDetailRequest(); + ~GetJobDetailRequest(); + + std::string getJobId()const; + void setJobId(const std::string& jobId); + std::string getVcName()const; + void setVcName(const std::string& vcName); + + private: + std::string jobId_; + std::string vcName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETJOBDETAILREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetJobDetailResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetJobDetailResult.h new file mode 100644 index 000000000..0c5345db8 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetJobDetailResult.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_OPENANALYTICS_OPEN_MODEL_GETJOBDETAILRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETJOBDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT GetJobDetailResult : public ServiceResult + { + public: + struct JobDetail + { + std::string status; + std::string vcName; + std::string executorInstances; + std::string sparkUI; + std::string driverResourceSpec; + std::string createTime; + std::string jobName; + std::string executorResourceSpec; + std::string submitTime; + std::string createTimeValue; + std::string updateTimeValue; + std::string submitTimeValue; + std::string updateTime; + std::string jobId; + std::string detail; + }; + + + GetJobDetailResult(); + explicit GetJobDetailResult(const std::string &payload); + ~GetJobDetailResult(); + JobDetail getJobDetail()const; + + protected: + void parse(const std::string &payload); + private: + JobDetail jobDetail_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETJOBDETAILRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetJobLogRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetJobLogRequest.h new file mode 100644 index 000000000..e3d8d7cb8 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetJobLogRequest.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_OPENANALYTICS_OPEN_MODEL_GETJOBLOGREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETJOBLOGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT GetJobLogRequest : public RpcServiceRequest + { + + public: + GetJobLogRequest(); + ~GetJobLogRequest(); + + std::string getJobId()const; + void setJobId(const std::string& jobId); + std::string getVcName()const; + void setVcName(const std::string& vcName); + + private: + std::string jobId_; + std::string vcName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETJOBLOGREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetJobLogResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetJobLogResult.h new file mode 100644 index 000000000..190749186 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetJobLogResult.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_OPENANALYTICS_OPEN_MODEL_GETJOBLOGRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETJOBLOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT GetJobLogResult : public ServiceResult + { + public: + + + GetJobLogResult(); + explicit GetJobLogResult(const std::string &payload); + ~GetJobLogResult(); + std::string getData()const; + + protected: + void parse(const std::string &payload); + private: + std::string data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETJOBLOGRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetJobStatusRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetJobStatusRequest.h new file mode 100644 index 000000000..b5d6d5def --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetJobStatusRequest.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_OPENANALYTICS_OPEN_MODEL_GETJOBSTATUSREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETJOBSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT GetJobStatusRequest : public RpcServiceRequest + { + + public: + GetJobStatusRequest(); + ~GetJobStatusRequest(); + + std::string getJobId()const; + void setJobId(const std::string& jobId); + std::string getVcName()const; + void setVcName(const std::string& vcName); + + private: + std::string jobId_; + std::string vcName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETJOBSTATUSREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetJobStatusResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetJobStatusResult.h new file mode 100644 index 000000000..40489d700 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetJobStatusResult.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_OPENANALYTICS_OPEN_MODEL_GETJOBSTATUSRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETJOBSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT GetJobStatusResult : public ServiceResult + { + public: + + + GetJobStatusResult(); + explicit GetJobStatusResult(const std::string &payload); + ~GetJobStatusResult(); + std::string getStatus()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETJOBSTATUSRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetPartitionRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetPartitionRequest.h new file mode 100644 index 000000000..3ac3ac0d3 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetPartitionRequest.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_OPENANALYTICS_OPEN_MODEL_GETPARTITIONREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETPARTITIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT GetPartitionRequest : public RpcServiceRequest + { + + public: + GetPartitionRequest(); + ~GetPartitionRequest(); + + std::string getDbName()const; + void setDbName(const std::string& dbName); + Array getValues()const; + void setValues(const Array& values); + std::string getTableName()const; + void setTableName(const std::string& tableName); + + private: + std::string dbName_; + Array values_; + std::string tableName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETPARTITIONREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetPartitionResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetPartitionResult.h new file mode 100644 index 000000000..3f59a9870 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetPartitionResult.h @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETPARTITIONRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETPARTITIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT GetPartitionResult : public ServiceResult + { + public: + struct PartitionModel + { + struct StorageDescriptorModel + { + struct SerDeInfoModel + { + std::string serializationLib; + std::string parameters; + std::string name; + }; + struct FieldSchemaModel + { + std::string comment; + std::string type; + std::string name; + }; + SerDeInfoModel serDeInfoModel; + std::vector cols; + std::string parameters; + std::string inputFormat; + std::string outputFormat; + std::string location; + }; + std::string tableName; + std::string parameters; + long createTime; + std::vector values; + StorageDescriptorModel storageDescriptorModel; + std::string dbName; + }; + + + GetPartitionResult(); + explicit GetPartitionResult(const std::string &payload); + ~GetPartitionResult(); + std::string getMessage()const; + PartitionModel getPartitionModel()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + PartitionModel partitionModel_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETPARTITIONRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetPartitionsRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetPartitionsRequest.h new file mode 100644 index 000000000..e6730db51 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetPartitionsRequest.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_OPENANALYTICS_OPEN_MODEL_GETPARTITIONSREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETPARTITIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT GetPartitionsRequest : public RpcServiceRequest + { + + public: + GetPartitionsRequest(); + ~GetPartitionsRequest(); + + std::string getDbName()const; + void setDbName(const std::string& dbName); + int getMaxParts()const; + void setMaxParts(int maxParts); + std::string getTableName()const; + void setTableName(const std::string& tableName); + + private: + std::string dbName_; + int maxParts_; + std::string tableName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETPARTITIONSREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetPartitionsResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetPartitionsResult.h new file mode 100644 index 000000000..4922e2fc4 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetPartitionsResult.h @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETPARTITIONSRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETPARTITIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT GetPartitionsResult : public ServiceResult + { + public: + struct PartitionModel + { + struct StorageDescriptorModel + { + struct SerDeInfoModel + { + std::string serializationLib; + std::string parameters; + std::string name; + }; + struct FieldSchemaModel + { + std::string comment; + std::string type; + std::string name; + }; + SerDeInfoModel serDeInfoModel; + std::vector cols; + std::string parameters; + std::string inputFormat; + std::string outputFormat; + std::string location; + }; + std::string tableName; + std::string parameters; + long createTime; + std::vector values; + StorageDescriptorModel storageDescriptorModel; + std::string dbName; + }; + + + GetPartitionsResult(); + explicit GetPartitionsResult(const std::string &payload); + ~GetPartitionsResult(); + std::vector getPartitions()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector partitions_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETPARTITIONSRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetRegionStatusRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetRegionStatusRequest.h new file mode 100644 index 000000000..67afbaf52 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetRegionStatusRequest.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_OPENANALYTICS_OPEN_MODEL_GETREGIONSTATUSREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETREGIONSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT GetRegionStatusRequest : public RpcServiceRequest + { + + public: + GetRegionStatusRequest(); + ~GetRegionStatusRequest(); + + std::string getExternalUid()const; + void setExternalUid(const std::string& externalUid); + std::string getExternalAliyunUid()const; + void setExternalAliyunUid(const std::string& externalAliyunUid); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getExternalBizAliyunUid()const; + void setExternalBizAliyunUid(const std::string& externalBizAliyunUid); + + private: + std::string externalUid_; + std::string externalAliyunUid_; + std::string regionId_; + std::string externalBizAliyunUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETREGIONSTATUSREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetRegionStatusResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetRegionStatusResult.h new file mode 100644 index 000000000..ac70e54d0 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetRegionStatusResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETREGIONSTATUSRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETREGIONSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT GetRegionStatusResult : public ServiceResult + { + public: + + + GetRegionStatusResult(); + explicit GetRegionStatusResult(const std::string &payload); + ~GetRegionStatusResult(); + std::string getStatus()const; + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETREGIONSTATUSRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetServiceLinkedRoleStatusRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetServiceLinkedRoleStatusRequest.h new file mode 100644 index 000000000..fb71a3eea --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetServiceLinkedRoleStatusRequest.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_OPENANALYTICS_OPEN_MODEL_GETSERVICELINKEDROLESTATUSREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETSERVICELINKEDROLESTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT GetServiceLinkedRoleStatusRequest : public RpcServiceRequest + { + + public: + GetServiceLinkedRoleStatusRequest(); + ~GetServiceLinkedRoleStatusRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETSERVICELINKEDROLESTATUSREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetServiceLinkedRoleStatusResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetServiceLinkedRoleStatusResult.h new file mode 100644 index 000000000..ccf15ef65 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetServiceLinkedRoleStatusResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETSERVICELINKEDROLESTATUSRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETSERVICELINKEDROLESTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT GetServiceLinkedRoleStatusResult : public ServiceResult + { + public: + + + GetServiceLinkedRoleStatusResult(); + explicit GetServiceLinkedRoleStatusResult(const std::string &payload); + ~GetServiceLinkedRoleStatusResult(); + bool getHasCreated()const; + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + bool hasCreated_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETSERVICELINKEDROLESTATUSRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetTableRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetTableRequest.h new file mode 100644 index 000000000..add3ece8f --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetTableRequest.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_OPENANALYTICS_OPEN_MODEL_GETTABLEREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETTABLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT GetTableRequest : public RpcServiceRequest + { + + public: + GetTableRequest(); + ~GetTableRequest(); + + std::string getDbName()const; + void setDbName(const std::string& dbName); + std::string getTableName()const; + void setTableName(const std::string& tableName); + + private: + std::string dbName_; + std::string tableName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETTABLEREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetTableResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetTableResult.h new file mode 100644 index 000000000..c8a0d9d4d --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GetTableResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETTABLERESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETTABLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT GetTableResult : public ServiceResult + { + public: + struct Table + { + struct StorageDescriptor + { + struct SerDeInfo + { + std::string serializationLib; + std::string parameters; + std::string name; + }; + struct ColsItem + { + std::string comment; + std::string type; + std::string name; + }; + std::vector cols; + std::string parameters; + std::string inputFormat; + SerDeInfo serDeInfo; + std::string outputFormat; + std::string location; + }; + struct PartitionKeysItem + { + std::string comment; + std::string type; + std::string name; + }; + std::string tableName; + std::string viewOriginalText; + std::string owner; + std::string tableType; + std::string parameters; + std::string viewExpandedText; + long createTime; + StorageDescriptor storageDescriptor; + std::vector partitionKeys; + std::string dbName; + long lastAccessTime; + }; + + + GetTableResult(); + explicit GetTableResult(const std::string &payload); + ~GetTableResult(); + Table getTable()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Table table_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GETTABLERESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/GrantPrivilegesRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GrantPrivilegesRequest.h new file mode 100644 index 000000000..4049e42c8 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GrantPrivilegesRequest.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_OPENANALYTICS_OPEN_MODEL_GRANTPRIVILEGESREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GRANTPRIVILEGESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT GrantPrivilegesRequest : public RpcServiceRequest + { + + public: + GrantPrivilegesRequest(); + ~GrantPrivilegesRequest(); + + Struct getPrivilegeBag()const; + void setPrivilegeBag(const Struct& privilegeBag); + + private: + Struct privilegeBag_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GRANTPRIVILEGESREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/GrantPrivilegesResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GrantPrivilegesResult.h new file mode 100644 index 000000000..2fbfab1fa --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/GrantPrivilegesResult.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_OPENANALYTICS_OPEN_MODEL_GRANTPRIVILEGESRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GRANTPRIVILEGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT GrantPrivilegesResult : public ServiceResult + { + public: + + + GrantPrivilegesResult(); + explicit GrantPrivilegesResult(const std::string &payload); + ~GrantPrivilegesResult(); + std::string getMessage()const; + bool getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + bool data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_GRANTPRIVILEGESRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/InitializeDLAServiceRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/InitializeDLAServiceRequest.h new file mode 100644 index 000000000..e74794852 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/InitializeDLAServiceRequest.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_OPENANALYTICS_OPEN_MODEL_INITIALIZEDLASERVICEREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_INITIALIZEDLASERVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT InitializeDLAServiceRequest : public RpcServiceRequest + { + + public: + InitializeDLAServiceRequest(); + ~InitializeDLAServiceRequest(); + + std::string getExternalUid()const; + void setExternalUid(const std::string& externalUid); + std::string getInitPassword()const; + void setInitPassword(const std::string& initPassword); + std::string getExternalAliyunUid()const; + void setExternalAliyunUid(const std::string& externalAliyunUid); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getUseRandomPassword()const; + void setUseRandomPassword(bool useRandomPassword); + bool getEnableKMS()const; + void setEnableKMS(bool enableKMS); + std::string getExternalBizAliyunUid()const; + void setExternalBizAliyunUid(const std::string& externalBizAliyunUid); + + private: + std::string externalUid_; + std::string initPassword_; + std::string externalAliyunUid_; + std::string regionId_; + bool useRandomPassword_; + bool enableKMS_; + std::string externalBizAliyunUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_INITIALIZEDLASERVICEREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/InitializeDLAServiceResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/InitializeDLAServiceResult.h new file mode 100644 index 000000000..3a61e450a --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/InitializeDLAServiceResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_INITIALIZEDLASERVICERESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_INITIALIZEDLASERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT InitializeDLAServiceResult : public ServiceResult + { + public: + struct AccountInfo + { + std::string userName; + std::string password; + }; + + + InitializeDLAServiceResult(); + explicit InitializeDLAServiceResult(const std::string &payload); + ~InitializeDLAServiceResult(); + std::string getRegionId()const; + AccountInfo getAccountInfo()const; + + protected: + void parse(const std::string &payload); + private: + std::string regionId_; + AccountInfo accountInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_INITIALIZEDLASERVICERESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/InitializeRegionRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/InitializeRegionRequest.h new file mode 100644 index 000000000..c832dab90 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/InitializeRegionRequest.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_OPENANALYTICS_OPEN_MODEL_INITIALIZEREGIONREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_INITIALIZEREGIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT InitializeRegionRequest : public RpcServiceRequest + { + + public: + InitializeRegionRequest(); + ~InitializeRegionRequest(); + + std::string getExternalUid()const; + void setExternalUid(const std::string& externalUid); + std::string getInitPassword()const; + void setInitPassword(const std::string& initPassword); + std::string getExternalAliyunUid()const; + void setExternalAliyunUid(const std::string& externalAliyunUid); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getUseRandomPassword()const; + void setUseRandomPassword(bool useRandomPassword); + bool getEnableKMS()const; + void setEnableKMS(bool enableKMS); + std::string getExternalBizAliyunUid()const; + void setExternalBizAliyunUid(const std::string& externalBizAliyunUid); + + private: + std::string externalUid_; + std::string initPassword_; + std::string externalAliyunUid_; + std::string regionId_; + bool useRandomPassword_; + bool enableKMS_; + std::string externalBizAliyunUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_INITIALIZEREGIONREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/InitializeRegionResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/InitializeRegionResult.h new file mode 100644 index 000000000..b01da47e5 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/InitializeRegionResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_INITIALIZEREGIONRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_INITIALIZEREGIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT InitializeRegionResult : public ServiceResult + { + public: + struct Account + { + std::string userName; + std::string password; + }; + + + InitializeRegionResult(); + explicit InitializeRegionResult(const std::string &payload); + ~InitializeRegionResult(); + Account getAccount()const; + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + Account account_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_INITIALIZEREGIONRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/KillSparkJobRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/KillSparkJobRequest.h new file mode 100644 index 000000000..5fc001fcc --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/KillSparkJobRequest.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_OPENANALYTICS_OPEN_MODEL_KILLSPARKJOBREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_KILLSPARKJOBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT KillSparkJobRequest : public RpcServiceRequest + { + + public: + KillSparkJobRequest(); + ~KillSparkJobRequest(); + + std::string getJobId()const; + void setJobId(const std::string& jobId); + std::string getVcName()const; + void setVcName(const std::string& vcName); + + private: + std::string jobId_; + std::string vcName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_KILLSPARKJOBREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/KillSparkJobResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/KillSparkJobResult.h new file mode 100644 index 000000000..c2d8898bc --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/KillSparkJobResult.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_OPENANALYTICS_OPEN_MODEL_KILLSPARKJOBRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_KILLSPARKJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT KillSparkJobResult : public ServiceResult + { + public: + + + KillSparkJobResult(); + explicit KillSparkJobResult(const std::string &payload); + ~KillSparkJobResult(); + std::string getData()const; + + protected: + void parse(const std::string &payload); + private: + std::string data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_KILLSPARKJOBRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/ListAlreadyBingingRamUidRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ListAlreadyBingingRamUidRequest.h new file mode 100644 index 000000000..1f46f6cfe --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ListAlreadyBingingRamUidRequest.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_OPENANALYTICS_OPEN_MODEL_LISTALREADYBINGINGRAMUIDREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_LISTALREADYBINGINGRAMUIDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT ListAlreadyBingingRamUidRequest : public RpcServiceRequest + { + + public: + ListAlreadyBingingRamUidRequest(); + ~ListAlreadyBingingRamUidRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_LISTALREADYBINGINGRAMUIDREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/ListAlreadyBingingRamUidResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ListAlreadyBingingRamUidResult.h new file mode 100644 index 000000000..34a9f5c1c --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ListAlreadyBingingRamUidResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_LISTALREADYBINGINGRAMUIDRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_LISTALREADYBINGINGRAMUIDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT ListAlreadyBingingRamUidResult : public ServiceResult + { + public: + + + ListAlreadyBingingRamUidResult(); + explicit ListAlreadyBingingRamUidResult(const std::string &payload); + ~ListAlreadyBingingRamUidResult(); + std::vector getData()const; + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_LISTALREADYBINGINGRAMUIDRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/ListModulesReleaseRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ListModulesReleaseRequest.h new file mode 100644 index 000000000..9ffa2acdb --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ListModulesReleaseRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_LISTMODULESRELEASEREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_LISTMODULESRELEASEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT ListModulesReleaseRequest : public RpcServiceRequest + { + + public: + ListModulesReleaseRequest(); + ~ListModulesReleaseRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_LISTMODULESRELEASEREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/ListModulesReleaseResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ListModulesReleaseResult.h new file mode 100644 index 000000000..e97e7687c --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ListModulesReleaseResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_LISTMODULESRELEASERESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_LISTMODULESRELEASERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT ListModulesReleaseResult : public ServiceResult + { + public: + struct DataItem + { + std::string type; + std::string description; + std::string version; + std::string name; + }; + + + ListModulesReleaseResult(); + explicit ListModulesReleaseResult(const std::string &payload); + ~ListModulesReleaseResult(); + std::vector getData()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_LISTMODULESRELEASERESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/ListResourcesSpecRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ListResourcesSpecRequest.h new file mode 100644 index 000000000..abbac92f6 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ListResourcesSpecRequest.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_OPENANALYTICS_OPEN_MODEL_LISTRESOURCESSPECREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_LISTRESOURCESSPECREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT ListResourcesSpecRequest : public RpcServiceRequest + { + + public: + ListResourcesSpecRequest(); + ~ListResourcesSpecRequest(); + + std::string getType()const; + void setType(const std::string& type); + + private: + std::string type_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_LISTRESOURCESSPECREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/ListResourcesSpecResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ListResourcesSpecResult.h new file mode 100644 index 000000000..e730c95f1 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ListResourcesSpecResult.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_LISTRESOURCESSPECRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_LISTRESOURCESSPECRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT ListResourcesSpecResult : public ServiceResult + { + public: + struct DataItem + { + std::string description; + std::string name; + }; + + + ListResourcesSpecResult(); + explicit ListResourcesSpecResult(const std::string &payload); + ~ListResourcesSpecResult(); + std::vector getData()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_LISTRESOURCESSPECRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/ListSparkJobRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ListSparkJobRequest.h new file mode 100644 index 000000000..b3ebdce7d --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ListSparkJobRequest.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_OPENANALYTICS_OPEN_MODEL_LISTSPARKJOBREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_LISTSPARKJOBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT ListSparkJobRequest : public RpcServiceRequest + { + + public: + ListSparkJobRequest(); + ~ListSparkJobRequest(); + + int getPageNumber()const; + void setPageNumber(int pageNumber); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getVcName()const; + void setVcName(const std::string& vcName); + + private: + int pageNumber_; + int pageSize_; + std::string vcName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_LISTSPARKJOBREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/ListSparkJobResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ListSparkJobResult.h new file mode 100644 index 000000000..d1d0da3c0 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ListSparkJobResult.h @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_LISTSPARKJOBRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_LISTSPARKJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT ListSparkJobResult : public ServiceResult + { + public: + struct DataResult + { + struct Data + { + std::string executorInstances; + std::string status; + std::string vcName; + std::string sparkUI; + std::string driverResourceSpec; + std::string createTime; + std::string jobName; + std::string executorResourceSpec; + std::string submitTime; + std::string createTimeValue; + std::string updateTimeValue; + std::string submitTimeValue; + std::string updateTime; + std::string detail; + std::string jobId; + }; + std::string totalCount; + std::string pageSize; + std::string pageNumber; + std::vector jobList; + }; + + + ListSparkJobResult(); + explicit ListSparkJobResult(const std::string &payload); + ~ListSparkJobResult(); + DataResult getDataResult()const; + + protected: + void parse(const std::string &payload); + private: + DataResult dataResult_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_LISTSPARKJOBRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/ListVirtualClustersRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ListVirtualClustersRequest.h new file mode 100644 index 000000000..5c0fb6ee7 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ListVirtualClustersRequest.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_OPENANALYTICS_OPEN_MODEL_LISTVIRTUALCLUSTERSREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_LISTVIRTUALCLUSTERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT ListVirtualClustersRequest : public RpcServiceRequest + { + + public: + ListVirtualClustersRequest(); + ~ListVirtualClustersRequest(); + + std::string getType()const; + void setType(const std::string& type); + + private: + std::string type_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_LISTVIRTUALCLUSTERSREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/ListVirtualClustersResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ListVirtualClustersResult.h new file mode 100644 index 000000000..ba2f95b45 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ListVirtualClustersResult.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_OPENANALYTICS_OPEN_MODEL_LISTVIRTUALCLUSTERSRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_LISTVIRTUALCLUSTERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT ListVirtualClustersResult : public ServiceResult + { + public: + struct DataItem + { + std::string status; + std::string type; + std::string instanceId; + std::string creatorId; + std::string chargeType; + std::string createTime; + std::string maxCpu; + std::string minCpu; + std::string name; + }; + + + ListVirtualClustersResult(); + explicit ListVirtualClustersResult(const std::string &payload); + ~ListVirtualClustersResult(); + std::vector getData()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_LISTVIRTUALCLUSTERSRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/ModifyVirtualClusterForSparkRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ModifyVirtualClusterForSparkRequest.h new file mode 100644 index 000000000..8401be200 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ModifyVirtualClusterForSparkRequest.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_OPENANALYTICS_OPEN_MODEL_MODIFYVIRTUALCLUSTERFORSPARKREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_MODIFYVIRTUALCLUSTERFORSPARKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT ModifyVirtualClusterForSparkRequest : public RpcServiceRequest + { + + public: + ModifyVirtualClusterForSparkRequest(); + ~ModifyVirtualClusterForSparkRequest(); + + std::string getDefaultExecutorSpecName()const; + void setDefaultExecutorSpecName(const std::string& defaultExecutorSpecName); + float getMaxMemory()const; + void setMaxMemory(float maxMemory); + std::string getSparkModuleReleaseName()const; + void setSparkModuleReleaseName(const std::string& sparkModuleReleaseName); + std::string getDescription()const; + void setDescription(const std::string& description); + long getDefaultExecutorNumbers()const; + void setDefaultExecutorNumbers(long defaultExecutorNumbers); + float getMaxCpu()const; + void setMaxCpu(float maxCpu); + std::string getName()const; + void setName(const std::string& name); + std::string getDefaultDriverSpecName()const; + void setDefaultDriverSpecName(const std::string& defaultDriverSpecName); + + private: + std::string defaultExecutorSpecName_; + float maxMemory_; + std::string sparkModuleReleaseName_; + std::string description_; + long defaultExecutorNumbers_; + float maxCpu_; + std::string name_; + std::string defaultDriverSpecName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_MODIFYVIRTUALCLUSTERFORSPARKREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/ModifyVirtualClusterForSparkResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ModifyVirtualClusterForSparkResult.h new file mode 100644 index 000000000..f3c26f21a --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ModifyVirtualClusterForSparkResult.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_OPENANALYTICS_OPEN_MODEL_MODIFYVIRTUALCLUSTERFORSPARKRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_MODIFYVIRTUALCLUSTERFORSPARKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT ModifyVirtualClusterForSparkResult : public ServiceResult + { + public: + + + ModifyVirtualClusterForSparkResult(); + explicit ModifyVirtualClusterForSparkResult(const std::string &payload); + ~ModifyVirtualClusterForSparkResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_MODIFYVIRTUALCLUSTERFORSPARKRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/ModifyVirtualClusterRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ModifyVirtualClusterRequest.h new file mode 100644 index 000000000..42d75d132 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ModifyVirtualClusterRequest.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_OPENANALYTICS_OPEN_MODEL_MODIFYVIRTUALCLUSTERREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_MODIFYVIRTUALCLUSTERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT ModifyVirtualClusterRequest : public RpcServiceRequest + { + + public: + ModifyVirtualClusterRequest(); + ~ModifyVirtualClusterRequest(); + + std::string getDefaultExecutorSpecName()const; + void setDefaultExecutorSpecName(const std::string& defaultExecutorSpecName); + std::string getSparkModuleReleaseName()const; + void setSparkModuleReleaseName(const std::string& sparkModuleReleaseName); + std::string getDescription()const; + void setDescription(const std::string& description); + long getDefaultExecutorNumbers()const; + void setDefaultExecutorNumbers(long defaultExecutorNumbers); + std::string getName()const; + void setName(const std::string& name); + std::string getDefaultDriverSpecName()const; + void setDefaultDriverSpecName(const std::string& defaultDriverSpecName); + + private: + std::string defaultExecutorSpecName_; + std::string sparkModuleReleaseName_; + std::string description_; + long defaultExecutorNumbers_; + std::string name_; + std::string defaultDriverSpecName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_MODIFYVIRTUALCLUSTERREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/ModifyVirtualClusterResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ModifyVirtualClusterResult.h new file mode 100644 index 000000000..a3c419d9e --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ModifyVirtualClusterResult.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_OPENANALYTICS_OPEN_MODEL_MODIFYVIRTUALCLUSTERRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_MODIFYVIRTUALCLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT ModifyVirtualClusterResult : public ServiceResult + { + public: + + + ModifyVirtualClusterResult(); + explicit ModifyVirtualClusterResult(const std::string &payload); + ~ModifyVirtualClusterResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_MODIFYVIRTUALCLUSTERRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/OpenDataLakeAnalyticsServiceRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/OpenDataLakeAnalyticsServiceRequest.h new file mode 100644 index 000000000..ecab52505 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/OpenDataLakeAnalyticsServiceRequest.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_OPENANALYTICS_OPEN_MODEL_OPENDATALAKEANALYTICSSERVICEREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_OPENDATALAKEANALYTICSSERVICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT OpenDataLakeAnalyticsServiceRequest : public RpcServiceRequest + { + + public: + OpenDataLakeAnalyticsServiceRequest(); + ~OpenDataLakeAnalyticsServiceRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getInternetChargeType()const; + void setInternetChargeType(const std::string& internetChargeType); + + private: + std::string regionId_; + std::string internetChargeType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_OPENDATALAKEANALYTICSSERVICEREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/OpenDataLakeAnalyticsServiceResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/OpenDataLakeAnalyticsServiceResult.h new file mode 100644 index 000000000..4862ccf91 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/OpenDataLakeAnalyticsServiceResult.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_OPENANALYTICS_OPEN_MODEL_OPENDATALAKEANALYTICSSERVICERESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_OPENDATALAKEANALYTICSSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT OpenDataLakeAnalyticsServiceResult : public ServiceResult + { + public: + + + OpenDataLakeAnalyticsServiceResult(); + explicit OpenDataLakeAnalyticsServiceResult(const std::string &payload); + ~OpenDataLakeAnalyticsServiceResult(); + std::string getErrorInfo()const; + std::string getErrorCode()const; + bool getSuccess()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorInfo_; + std::string errorCode_; + bool success_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_OPENDATALAKEANALYTICSSERVICERESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryAccountListRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryAccountListRequest.h new file mode 100644 index 000000000..1fc5d447c --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryAccountListRequest.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_OPENANALYTICS_OPEN_MODEL_QUERYACCOUNTLISTREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_QUERYACCOUNTLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT QueryAccountListRequest : public RpcServiceRequest + { + + public: + QueryAccountListRequest(); + ~QueryAccountListRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::string regionId_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_QUERYACCOUNTLISTREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryAccountListResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryAccountListResult.h new file mode 100644 index 000000000..cf1a3cc9e --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryAccountListResult.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_OPENANALYTICS_OPEN_MODEL_QUERYACCOUNTLISTRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_QUERYACCOUNTLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT QueryAccountListResult : public ServiceResult + { + public: + struct DataItem + { + std::string role; + std::string userName; + std::string ramUid; + std::string shortName; + std::string remark; + }; + + + QueryAccountListResult(); + explicit QueryAccountListResult(const std::string &payload); + ~QueryAccountListResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getData()const; + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector data_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_QUERYACCOUNTLISTRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryDataSourceDefRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryDataSourceDefRequest.h new file mode 100644 index 000000000..2bfabf1f9 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryDataSourceDefRequest.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_OPENANALYTICS_OPEN_MODEL_QUERYDATASOURCEDEFREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_QUERYDATASOURCEDEFREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT QueryDataSourceDefRequest : public RpcServiceRequest + { + + public: + QueryDataSourceDefRequest(); + ~QueryDataSourceDefRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_QUERYDATASOURCEDEFREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryDataSourceDefResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryDataSourceDefResult.h new file mode 100644 index 000000000..c0cf4bebf --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryDataSourceDefResult.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_OPENANALYTICS_OPEN_MODEL_QUERYDATASOURCEDEFRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_QUERYDATASOURCEDEFRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT QueryDataSourceDefResult : public ServiceResult + { + public: + struct RegionListItem + { + std::string dataSourceName; + std::string authorizedURL; + std::string roleArn; + }; + + + QueryDataSourceDefResult(); + explicit QueryDataSourceDefResult(const std::string &payload); + ~QueryDataSourceDefResult(); + std::vector getRegionList()const; + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector regionList_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_QUERYDATASOURCEDEFRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryDiscountListRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryDiscountListRequest.h new file mode 100644 index 000000000..c16dcf382 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryDiscountListRequest.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_OPENANALYTICS_OPEN_MODEL_QUERYDISCOUNTLISTREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_QUERYDISCOUNTLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT QueryDiscountListRequest : public RpcServiceRequest + { + + public: + QueryDiscountListRequest(); + ~QueryDiscountListRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::string regionId_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_QUERYDISCOUNTLISTREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryDiscountListResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryDiscountListResult.h new file mode 100644 index 000000000..2d9fbc9d4 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryDiscountListResult.h @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_QUERYDISCOUNTLISTRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_QUERYDISCOUNTLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT QueryDiscountListResult : public ServiceResult + { + public: + struct DataItem + { + int status; + long usageBytes; + long gmtCreateValue; + std::string payAmount; + std::string planID; + int payType; + int weight; + std::string effectiveEndTime; + long effectiveStartTimeValue; + std::string gmtCreate; + std::string effectiveStartTime; + std::string discountType; + int stacked; + long effectiveEndTimeValue; + std::string discountConfig; + }; + + + QueryDiscountListResult(); + explicit QueryDiscountListResult(const std::string &payload); + ~QueryDiscountListResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getData()const; + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector data_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_QUERYDISCOUNTLISTRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryEndPointListRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryEndPointListRequest.h new file mode 100644 index 000000000..e83e665dd --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryEndPointListRequest.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_OPENANALYTICS_OPEN_MODEL_QUERYENDPOINTLISTREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_QUERYENDPOINTLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT QueryEndPointListRequest : public RpcServiceRequest + { + + public: + QueryEndPointListRequest(); + ~QueryEndPointListRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_QUERYENDPOINTLISTREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryEndPointListResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryEndPointListResult.h new file mode 100644 index 000000000..93810cc5b --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryEndPointListResult.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_OPENANALYTICS_OPEN_MODEL_QUERYENDPOINTLISTRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_QUERYENDPOINTLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT QueryEndPointListResult : public ServiceResult + { + public: + struct EndPointListItem + { + std::string endPointID; + std::string status; + std::string vSwitch; + std::string domainURL; + std::string vpcID; + std::string zone; + std::string networkType; + std::string allowIP; + std::string port; + std::string product; + std::string host; + }; + + + QueryEndPointListResult(); + explicit QueryEndPointListResult(const std::string &payload); + ~QueryEndPointListResult(); + std::vector getEndPointList()const; + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector endPointList_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_QUERYENDPOINTLISTRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryServiceAccountListRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryServiceAccountListRequest.h new file mode 100644 index 000000000..4dbb88556 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryServiceAccountListRequest.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_OPENANALYTICS_OPEN_MODEL_QUERYSERVICEACCOUNTLISTREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_QUERYSERVICEACCOUNTLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT QueryServiceAccountListRequest : public RpcServiceRequest + { + + public: + QueryServiceAccountListRequest(); + ~QueryServiceAccountListRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_QUERYSERVICEACCOUNTLISTREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryServiceAccountListResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryServiceAccountListResult.h new file mode 100644 index 000000000..dbef3df40 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryServiceAccountListResult.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_OPENANALYTICS_OPEN_MODEL_QUERYSERVICEACCOUNTLISTRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_QUERYSERVICEACCOUNTLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT QueryServiceAccountListResult : public ServiceResult + { + public: + struct DataItem + { + std::string role; + std::string userName; + std::string shortName; + }; + + + QueryServiceAccountListResult(); + explicit QueryServiceAccountListResult(const std::string &payload); + ~QueryServiceAccountListResult(); + std::vector getData()const; + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_QUERYSERVICEACCOUNTLISTRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryTaskSumRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryTaskSumRequest.h new file mode 100644 index 000000000..3cd0e380d --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryTaskSumRequest.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_OPENANALYTICS_OPEN_MODEL_QUERYTASKSUMREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_QUERYTASKSUMREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT QueryTaskSumRequest : public RpcServiceRequest + { + + public: + QueryTaskSumRequest(); + ~QueryTaskSumRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getTwoDaysAgoBeginTs()const; + void setTwoDaysAgoBeginTs(const std::string& twoDaysAgoBeginTs); + std::string getYesterdayBeginTs()const; + void setYesterdayBeginTs(const std::string& yesterdayBeginTs); + std::string getTodayBeginTs()const; + void setTodayBeginTs(const std::string& todayBeginTs); + + private: + std::string regionId_; + std::string twoDaysAgoBeginTs_; + std::string yesterdayBeginTs_; + std::string todayBeginTs_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_QUERYTASKSUMREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryTaskSumResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryTaskSumResult.h new file mode 100644 index 000000000..bde9e013b --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/QueryTaskSumResult.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_OPENANALYTICS_OPEN_MODEL_QUERYTASKSUMRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_QUERYTASKSUMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT QueryTaskSumResult : public ServiceResult + { + public: + struct QueryTaskSumInfo + { + std::string totalChargedStmtCountYesterdayIncr; + std::string totalChargedStmtCountYesterday; + std::string totalStmtCountYesterdayIncr; + std::string totalChargedStmtCountTodayIncr; + std::string scannedDataBytesTodayIncr; + std::string uid; + std::string totalStmtCountYesterday; + std::string totalStmtCountTodayIncr; + std::string scannedDataBytesGbYesterday; + std::string scannedDataBytesYesterdayIncr; + std::string scannedDataBytesGbToday; + std::string totalChargedStmtCountToday; + std::string totalStmtCountToday; + }; + + + QueryTaskSumResult(); + explicit QueryTaskSumResult(const std::string &payload); + ~QueryTaskSumResult(); + QueryTaskSumInfo getQueryTaskSumInfo()const; + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + QueryTaskSumInfo queryTaskSumInfo_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_QUERYTASKSUMRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/ReleaseInstanceRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ReleaseInstanceRequest.h new file mode 100644 index 000000000..4532040aa --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ReleaseInstanceRequest.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_OPENANALYTICS_OPEN_MODEL_RELEASEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_RELEASEINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT ReleaseInstanceRequest : public RpcServiceRequest + { + + public: + ReleaseInstanceRequest(); + ~ReleaseInstanceRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string regionId_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_RELEASEINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/ReleaseInstanceResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ReleaseInstanceResult.h new file mode 100644 index 000000000..8beba2401 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ReleaseInstanceResult.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_OPENANALYTICS_OPEN_MODEL_RELEASEINSTANCERESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_RELEASEINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT ReleaseInstanceResult : public ServiceResult + { + public: + + + ReleaseInstanceResult(); + explicit ReleaseInstanceResult(const std::string &payload); + ~ReleaseInstanceResult(); + std::string getErrorInfo()const; + std::string getErrorCode()const; + bool getSuccess()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorInfo_; + std::string errorCode_; + bool success_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_RELEASEINSTANCERESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/RemoveEndPointRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/RemoveEndPointRequest.h new file mode 100644 index 000000000..69f965dce --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/RemoveEndPointRequest.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_OPENANALYTICS_OPEN_MODEL_REMOVEENDPOINTREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_REMOVEENDPOINTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT RemoveEndPointRequest : public RpcServiceRequest + { + + public: + RemoveEndPointRequest(); + ~RemoveEndPointRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getEndPointID()const; + void setEndPointID(const std::string& endPointID); + + private: + std::string regionId_; + std::string endPointID_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_REMOVEENDPOINTREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/RemoveEndPointResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/RemoveEndPointResult.h new file mode 100644 index 000000000..dff00dd1e --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/RemoveEndPointResult.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_OPENANALYTICS_OPEN_MODEL_REMOVEENDPOINTRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_REMOVEENDPOINTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT RemoveEndPointResult : public ServiceResult + { + public: + + + RemoveEndPointResult(); + explicit RemoveEndPointResult(const std::string &payload); + ~RemoveEndPointResult(); + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_REMOVEENDPOINTRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/ResetMainPasswordRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ResetMainPasswordRequest.h new file mode 100644 index 000000000..7b821bf8f --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ResetMainPasswordRequest.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_OPENANALYTICS_OPEN_MODEL_RESETMAINPASSWORDREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_RESETMAINPASSWORDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT ResetMainPasswordRequest : public RpcServiceRequest + { + + public: + ResetMainPasswordRequest(); + ~ResetMainPasswordRequest(); + + std::string getExternalUid()const; + void setExternalUid(const std::string& externalUid); + std::string getInitPassword()const; + void setInitPassword(const std::string& initPassword); + std::string getExternalAliyunUid()const; + void setExternalAliyunUid(const std::string& externalAliyunUid); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getUseRandomPassword()const; + void setUseRandomPassword(bool useRandomPassword); + bool getEnableKMS()const; + void setEnableKMS(bool enableKMS); + std::string getExternalBizAliyunUid()const; + void setExternalBizAliyunUid(const std::string& externalBizAliyunUid); + + private: + std::string externalUid_; + std::string initPassword_; + std::string externalAliyunUid_; + std::string regionId_; + bool useRandomPassword_; + bool enableKMS_; + std::string externalBizAliyunUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_RESETMAINPASSWORDREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/ResetMainPasswordResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ResetMainPasswordResult.h new file mode 100644 index 000000000..c01cb559a --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/ResetMainPasswordResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_RESETMAINPASSWORDRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_RESETMAINPASSWORDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT ResetMainPasswordResult : public ServiceResult + { + public: + struct Account + { + std::string userName; + std::string password; + }; + + + ResetMainPasswordResult(); + explicit ResetMainPasswordResult(const std::string &payload); + ~ResetMainPasswordResult(); + Account getAccount()const; + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + Account account_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_RESETMAINPASSWORDRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/RevokePrivilegesRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/RevokePrivilegesRequest.h new file mode 100644 index 000000000..0a4150e44 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/RevokePrivilegesRequest.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_OPENANALYTICS_OPEN_MODEL_REVOKEPRIVILEGESREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_REVOKEPRIVILEGESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT RevokePrivilegesRequest : public RpcServiceRequest + { + + public: + RevokePrivilegesRequest(); + ~RevokePrivilegesRequest(); + + Struct getPrivilegeBag()const; + void setPrivilegeBag(const Struct& privilegeBag); + + private: + Struct privilegeBag_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_REVOKEPRIVILEGESREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/RevokePrivilegesResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/RevokePrivilegesResult.h new file mode 100644 index 000000000..d7228797a --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/RevokePrivilegesResult.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_OPENANALYTICS_OPEN_MODEL_REVOKEPRIVILEGESRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_REVOKEPRIVILEGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT RevokePrivilegesResult : public ServiceResult + { + public: + + + RevokePrivilegesResult(); + explicit RevokePrivilegesResult(const std::string &payload); + ~RevokePrivilegesResult(); + std::string getMessage()const; + bool getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + bool data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_REVOKEPRIVILEGESRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/SetAllowIPRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/SetAllowIPRequest.h new file mode 100644 index 000000000..4b57c3103 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/SetAllowIPRequest.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_OPENANALYTICS_OPEN_MODEL_SETALLOWIPREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_SETALLOWIPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT SetAllowIPRequest : public RpcServiceRequest + { + + public: + SetAllowIPRequest(); + ~SetAllowIPRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNetworkType()const; + void setNetworkType(const std::string& networkType); + std::string getProduct()const; + void setProduct(const std::string& product); + std::string getAllowIP()const; + void setAllowIP(const std::string& allowIP); + bool getAppend()const; + void setAppend(bool append); + + private: + std::string regionId_; + std::string networkType_; + std::string product_; + std::string allowIP_; + bool append_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_SETALLOWIPREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/SetAllowIPResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/SetAllowIPResult.h new file mode 100644 index 000000000..ec12d918b --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/SetAllowIPResult.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_OPENANALYTICS_OPEN_MODEL_SETALLOWIPRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_SETALLOWIPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT SetAllowIPResult : public ServiceResult + { + public: + + + SetAllowIPResult(); + explicit SetAllowIPResult(const std::string &payload); + ~SetAllowIPResult(); + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_SETALLOWIPRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/SetCapacityLimitPolicyRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/SetCapacityLimitPolicyRequest.h new file mode 100644 index 000000000..108abfd88 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/SetCapacityLimitPolicyRequest.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_OPENANALYTICS_OPEN_MODEL_SETCAPACITYLIMITPOLICYREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_SETCAPACITYLIMITPOLICYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT SetCapacityLimitPolicyRequest : public RpcServiceRequest + { + + public: + SetCapacityLimitPolicyRequest(); + ~SetCapacityLimitPolicyRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getPolicy()const; + void setPolicy(const std::string& policy); + std::string getExternalBizAliyunUid()const; + void setExternalBizAliyunUid(const std::string& externalBizAliyunUid); + + private: + std::string regionId_; + std::string policy_; + std::string externalBizAliyunUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_SETCAPACITYLIMITPOLICYREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/SetCapacityLimitPolicyResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/SetCapacityLimitPolicyResult.h new file mode 100644 index 000000000..55e52c0c8 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/SetCapacityLimitPolicyResult.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_OPENANALYTICS_OPEN_MODEL_SETCAPACITYLIMITPOLICYRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_SETCAPACITYLIMITPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT SetCapacityLimitPolicyResult : public ServiceResult + { + public: + + + SetCapacityLimitPolicyResult(); + explicit SetCapacityLimitPolicyResult(const std::string &payload); + ~SetCapacityLimitPolicyResult(); + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_SETCAPACITYLIMITPOLICYRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/SetRelationWithBizRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/SetRelationWithBizRequest.h new file mode 100644 index 000000000..014300b60 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/SetRelationWithBizRequest.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_OPENANALYTICS_OPEN_MODEL_SETRELATIONWITHBIZREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_SETRELATIONWITHBIZREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT SetRelationWithBizRequest : public RpcServiceRequest + { + + public: + SetRelationWithBizRequest(); + ~SetRelationWithBizRequest(); + + std::string getExternalUid()const; + void setExternalUid(const std::string& externalUid); + std::string getExternalAliyunUid()const; + void setExternalAliyunUid(const std::string& externalAliyunUid); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getExternalBizAliyunUid()const; + void setExternalBizAliyunUid(const std::string& externalBizAliyunUid); + + private: + std::string externalUid_; + std::string externalAliyunUid_; + std::string regionId_; + std::string externalBizAliyunUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_SETRELATIONWITHBIZREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/SetRelationWithBizResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/SetRelationWithBizResult.h new file mode 100644 index 000000000..e52b2b8cc --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/SetRelationWithBizResult.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_OPENANALYTICS_OPEN_MODEL_SETRELATIONWITHBIZRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_SETRELATIONWITHBIZRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT SetRelationWithBizResult : public ServiceResult + { + public: + + + SetRelationWithBizResult(); + explicit SetRelationWithBizResult(const std::string &payload); + ~SetRelationWithBizResult(); + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_SETRELATIONWITHBIZRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/SetTrafficLimitPolicyRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/SetTrafficLimitPolicyRequest.h new file mode 100644 index 000000000..14c789822 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/SetTrafficLimitPolicyRequest.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_OPENANALYTICS_OPEN_MODEL_SETTRAFFICLIMITPOLICYREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_SETTRAFFICLIMITPOLICYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT SetTrafficLimitPolicyRequest : public RpcServiceRequest + { + + public: + SetTrafficLimitPolicyRequest(); + ~SetTrafficLimitPolicyRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getPolicy()const; + void setPolicy(const std::string& policy); + std::string getExternalBizAliyunUid()const; + void setExternalBizAliyunUid(const std::string& externalBizAliyunUid); + + private: + std::string regionId_; + std::string policy_; + std::string externalBizAliyunUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_SETTRAFFICLIMITPOLICYREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/SetTrafficLimitPolicyResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/SetTrafficLimitPolicyResult.h new file mode 100644 index 000000000..5050a2ba1 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/SetTrafficLimitPolicyResult.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_OPENANALYTICS_OPEN_MODEL_SETTRAFFICLIMITPOLICYRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_SETTRAFFICLIMITPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT SetTrafficLimitPolicyResult : public ServiceResult + { + public: + + + SetTrafficLimitPolicyResult(); + explicit SetTrafficLimitPolicyResult(const std::string &payload); + ~SetTrafficLimitPolicyResult(); + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_SETTRAFFICLIMITPOLICYRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/StartVirtualClusterRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/StartVirtualClusterRequest.h new file mode 100644 index 000000000..e0d13880f --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/StartVirtualClusterRequest.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_OPENANALYTICS_OPEN_MODEL_STARTVIRTUALCLUSTERREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_STARTVIRTUALCLUSTERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT StartVirtualClusterRequest : public RpcServiceRequest + { + + public: + StartVirtualClusterRequest(); + ~StartVirtualClusterRequest(); + + std::string getName()const; + void setName(const std::string& name); + + private: + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_STARTVIRTUALCLUSTERREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/StartVirtualClusterResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/StartVirtualClusterResult.h new file mode 100644 index 000000000..af971bda0 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/StartVirtualClusterResult.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_OPENANALYTICS_OPEN_MODEL_STARTVIRTUALCLUSTERRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_STARTVIRTUALCLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT StartVirtualClusterResult : public ServiceResult + { + public: + + + StartVirtualClusterResult(); + explicit StartVirtualClusterResult(const std::string &payload); + ~StartVirtualClusterResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_STARTVIRTUALCLUSTERRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/StopVirtualClusterRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/StopVirtualClusterRequest.h new file mode 100644 index 000000000..b32f607fa --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/StopVirtualClusterRequest.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_OPENANALYTICS_OPEN_MODEL_STOPVIRTUALCLUSTERREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_STOPVIRTUALCLUSTERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT StopVirtualClusterRequest : public RpcServiceRequest + { + + public: + StopVirtualClusterRequest(); + ~StopVirtualClusterRequest(); + + std::string getName()const; + void setName(const std::string& name); + + private: + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_STOPVIRTUALCLUSTERREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/StopVirtualClusterResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/StopVirtualClusterResult.h new file mode 100644 index 000000000..e1400417a --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/StopVirtualClusterResult.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_OPENANALYTICS_OPEN_MODEL_STOPVIRTUALCLUSTERRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_STOPVIRTUALCLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT StopVirtualClusterResult : public ServiceResult + { + public: + + + StopVirtualClusterResult(); + explicit StopVirtualClusterResult(const std::string &payload); + ~StopVirtualClusterResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_STOPVIRTUALCLUSTERRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/SubmitSparkJobRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/SubmitSparkJobRequest.h new file mode 100644 index 000000000..8c268a34c --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/SubmitSparkJobRequest.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_OPENANALYTICS_OPEN_MODEL_SUBMITSPARKJOBREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_SUBMITSPARKJOBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT SubmitSparkJobRequest : public RpcServiceRequest + { + + public: + SubmitSparkJobRequest(); + ~SubmitSparkJobRequest(); + + std::string getConfigJson()const; + void setConfigJson(const std::string& configJson); + std::string getVcName()const; + void setVcName(const std::string& vcName); + + private: + std::string configJson_; + std::string vcName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_SUBMITSPARKJOBREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/SubmitSparkJobResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/SubmitSparkJobResult.h new file mode 100644 index 000000000..294c64759 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/SubmitSparkJobResult.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_OPENANALYTICS_OPEN_MODEL_SUBMITSPARKJOBRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_SUBMITSPARKJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT SubmitSparkJobResult : public ServiceResult + { + public: + + + SubmitSparkJobResult(); + explicit SubmitSparkJobResult(const std::string &payload); + ~SubmitSparkJobResult(); + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_SUBMITSPARKJOBRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/UnSubscribeRegionRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/UnSubscribeRegionRequest.h new file mode 100644 index 000000000..c9f757793 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/UnSubscribeRegionRequest.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_OPENANALYTICS_OPEN_MODEL_UNSUBSCRIBEREGIONREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_UNSUBSCRIBEREGIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT UnSubscribeRegionRequest : public RpcServiceRequest + { + + public: + UnSubscribeRegionRequest(); + ~UnSubscribeRegionRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_UNSUBSCRIBEREGIONREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/UnSubscribeRegionResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/UnSubscribeRegionResult.h new file mode 100644 index 000000000..3b2e2371a --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/UnSubscribeRegionResult.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_OPENANALYTICS_OPEN_MODEL_UNSUBSCRIBEREGIONRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_UNSUBSCRIBEREGIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT UnSubscribeRegionResult : public ServiceResult + { + public: + + + UnSubscribeRegionResult(); + explicit UnSubscribeRegionResult(const std::string &payload); + ~UnSubscribeRegionResult(); + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_UNSUBSCRIBEREGIONRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/UpdateAccountPasswordRequest.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/UpdateAccountPasswordRequest.h new file mode 100644 index 000000000..d1e8dbc4c --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/UpdateAccountPasswordRequest.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_OPENANALYTICS_OPEN_MODEL_UPDATEACCOUNTPASSWORDREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_UPDATEACCOUNTPASSWORDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT UpdateAccountPasswordRequest : public RpcServiceRequest + { + + public: + UpdateAccountPasswordRequest(); + ~UpdateAccountPasswordRequest(); + + bool getIsShort()const; + void setIsShort(bool isShort); + std::string getPassword()const; + void setPassword(const std::string& password); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getEnableKMS()const; + void setEnableKMS(bool enableKMS); + bool getUseRandomPassword()const; + void setUseRandomPassword(bool useRandomPassword); + + private: + bool isShort_; + std::string password_; + std::string accountName_; + std::string regionId_; + bool enableKMS_; + bool useRandomPassword_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_UPDATEACCOUNTPASSWORDREQUEST_H_ \ No newline at end of file diff --git a/openanalytics-open/include/alibabacloud/openanalytics-open/model/UpdateAccountPasswordResult.h b/openanalytics-open/include/alibabacloud/openanalytics-open/model/UpdateAccountPasswordResult.h new file mode 100644 index 000000000..905a0d171 --- /dev/null +++ b/openanalytics-open/include/alibabacloud/openanalytics-open/model/UpdateAccountPasswordResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_UPDATEACCOUNTPASSWORDRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_UPDATEACCOUNTPASSWORDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics_open + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_OPEN_EXPORT UpdateAccountPasswordResult : public ServiceResult + { + public: + struct Account + { + std::string userName; + std::string password; + }; + + + UpdateAccountPasswordResult(); + explicit UpdateAccountPasswordResult(const std::string &payload); + ~UpdateAccountPasswordResult(); + Account getAccount()const; + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + Account account_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_OPEN_MODEL_UPDATEACCOUNTPASSWORDRESULT_H_ \ No newline at end of file diff --git a/openanalytics-open/src/Openanalytics-openClient.cc b/openanalytics-open/src/Openanalytics-openClient.cc new file mode 100644 index 000000000..a67e31cf3 --- /dev/null +++ b/openanalytics-open/src/Openanalytics-openClient.cc @@ -0,0 +1,2645 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +namespace +{ + const std::string SERVICE_NAME = "openanalytics-open"; +} + +Openanalytics_openClient::Openanalytics_openClient(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, "openanalytics"); +} + +Openanalytics_openClient::Openanalytics_openClient(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, "openanalytics"); +} + +Openanalytics_openClient::Openanalytics_openClient(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, "openanalytics"); +} + +Openanalytics_openClient::~Openanalytics_openClient() +{} + +Openanalytics_openClient::AddAccountOutcome Openanalytics_openClient::addAccount(const AddAccountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddAccountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddAccountOutcome(AddAccountResult(outcome.result())); + else + return AddAccountOutcome(outcome.error()); +} + +void Openanalytics_openClient::addAccountAsync(const AddAccountRequest& request, const AddAccountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addAccount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::AddAccountOutcomeCallable Openanalytics_openClient::addAccountCallable(const AddAccountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addAccount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::AddEndPointOutcome Openanalytics_openClient::addEndPoint(const AddEndPointRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddEndPointOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddEndPointOutcome(AddEndPointResult(outcome.result())); + else + return AddEndPointOutcome(outcome.error()); +} + +void Openanalytics_openClient::addEndPointAsync(const AddEndPointRequest& request, const AddEndPointAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addEndPoint(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::AddEndPointOutcomeCallable Openanalytics_openClient::addEndPointCallable(const AddEndPointRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addEndPoint(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::AddPartitionsOutcome Openanalytics_openClient::addPartitions(const AddPartitionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddPartitionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddPartitionsOutcome(AddPartitionsResult(outcome.result())); + else + return AddPartitionsOutcome(outcome.error()); +} + +void Openanalytics_openClient::addPartitionsAsync(const AddPartitionsRequest& request, const AddPartitionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addPartitions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::AddPartitionsOutcomeCallable Openanalytics_openClient::addPartitionsCallable(const AddPartitionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addPartitions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::AlterDatabaseOutcome Openanalytics_openClient::alterDatabase(const AlterDatabaseRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AlterDatabaseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AlterDatabaseOutcome(AlterDatabaseResult(outcome.result())); + else + return AlterDatabaseOutcome(outcome.error()); +} + +void Openanalytics_openClient::alterDatabaseAsync(const AlterDatabaseRequest& request, const AlterDatabaseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, alterDatabase(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::AlterDatabaseOutcomeCallable Openanalytics_openClient::alterDatabaseCallable(const AlterDatabaseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->alterDatabase(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::AlterTableOutcome Openanalytics_openClient::alterTable(const AlterTableRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AlterTableOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AlterTableOutcome(AlterTableResult(outcome.result())); + else + return AlterTableOutcome(outcome.error()); +} + +void Openanalytics_openClient::alterTableAsync(const AlterTableRequest& request, const AlterTableAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, alterTable(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::AlterTableOutcomeCallable Openanalytics_openClient::alterTableCallable(const AlterTableRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->alterTable(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::BindingRamUidToDlaAccountOutcome Openanalytics_openClient::bindingRamUidToDlaAccount(const BindingRamUidToDlaAccountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BindingRamUidToDlaAccountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BindingRamUidToDlaAccountOutcome(BindingRamUidToDlaAccountResult(outcome.result())); + else + return BindingRamUidToDlaAccountOutcome(outcome.error()); +} + +void Openanalytics_openClient::bindingRamUidToDlaAccountAsync(const BindingRamUidToDlaAccountRequest& request, const BindingRamUidToDlaAccountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, bindingRamUidToDlaAccount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::BindingRamUidToDlaAccountOutcomeCallable Openanalytics_openClient::bindingRamUidToDlaAccountCallable(const BindingRamUidToDlaAccountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->bindingRamUidToDlaAccount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::CreateDatabaseOutcome Openanalytics_openClient::createDatabase(const CreateDatabaseRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDatabaseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDatabaseOutcome(CreateDatabaseResult(outcome.result())); + else + return CreateDatabaseOutcome(outcome.error()); +} + +void Openanalytics_openClient::createDatabaseAsync(const CreateDatabaseRequest& request, const CreateDatabaseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDatabase(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::CreateDatabaseOutcomeCallable Openanalytics_openClient::createDatabaseCallable(const CreateDatabaseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDatabase(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::CreateInstanceOutcome Openanalytics_openClient::createInstance(const CreateInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateInstanceOutcome(CreateInstanceResult(outcome.result())); + else + return CreateInstanceOutcome(outcome.error()); +} + +void Openanalytics_openClient::createInstanceAsync(const CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::CreateInstanceOutcomeCallable Openanalytics_openClient::createInstanceCallable(const CreateInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::CreateServiceLinkedRoleOutcome Openanalytics_openClient::createServiceLinkedRole(const CreateServiceLinkedRoleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateServiceLinkedRoleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateServiceLinkedRoleOutcome(CreateServiceLinkedRoleResult(outcome.result())); + else + return CreateServiceLinkedRoleOutcome(outcome.error()); +} + +void Openanalytics_openClient::createServiceLinkedRoleAsync(const CreateServiceLinkedRoleRequest& request, const CreateServiceLinkedRoleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createServiceLinkedRole(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::CreateServiceLinkedRoleOutcomeCallable Openanalytics_openClient::createServiceLinkedRoleCallable(const CreateServiceLinkedRoleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createServiceLinkedRole(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::CreateTableOutcome Openanalytics_openClient::createTable(const CreateTableRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateTableOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateTableOutcome(CreateTableResult(outcome.result())); + else + return CreateTableOutcome(outcome.error()); +} + +void Openanalytics_openClient::createTableAsync(const CreateTableRequest& request, const CreateTableAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createTable(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::CreateTableOutcomeCallable Openanalytics_openClient::createTableCallable(const CreateTableRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createTable(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::CreateUserNetConfigOutcome Openanalytics_openClient::createUserNetConfig(const CreateUserNetConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateUserNetConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateUserNetConfigOutcome(CreateUserNetConfigResult(outcome.result())); + else + return CreateUserNetConfigOutcome(outcome.error()); +} + +void Openanalytics_openClient::createUserNetConfigAsync(const CreateUserNetConfigRequest& request, const CreateUserNetConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createUserNetConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::CreateUserNetConfigOutcomeCallable Openanalytics_openClient::createUserNetConfigCallable(const CreateUserNetConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createUserNetConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::CreateVirtualClusterForSparkOutcome Openanalytics_openClient::createVirtualClusterForSpark(const CreateVirtualClusterForSparkRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateVirtualClusterForSparkOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateVirtualClusterForSparkOutcome(CreateVirtualClusterForSparkResult(outcome.result())); + else + return CreateVirtualClusterForSparkOutcome(outcome.error()); +} + +void Openanalytics_openClient::createVirtualClusterForSparkAsync(const CreateVirtualClusterForSparkRequest& request, const CreateVirtualClusterForSparkAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createVirtualClusterForSpark(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::CreateVirtualClusterForSparkOutcomeCallable Openanalytics_openClient::createVirtualClusterForSparkCallable(const CreateVirtualClusterForSparkRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createVirtualClusterForSpark(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::DecodeStsTokenOutcome Openanalytics_openClient::decodeStsToken(const DecodeStsTokenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DecodeStsTokenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DecodeStsTokenOutcome(DecodeStsTokenResult(outcome.result())); + else + return DecodeStsTokenOutcome(outcome.error()); +} + +void Openanalytics_openClient::decodeStsTokenAsync(const DecodeStsTokenRequest& request, const DecodeStsTokenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, decodeStsToken(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::DecodeStsTokenOutcomeCallable Openanalytics_openClient::decodeStsTokenCallable(const DecodeStsTokenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->decodeStsToken(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::DeleteAccountOutcome Openanalytics_openClient::deleteAccount(const DeleteAccountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAccountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAccountOutcome(DeleteAccountResult(outcome.result())); + else + return DeleteAccountOutcome(outcome.error()); +} + +void Openanalytics_openClient::deleteAccountAsync(const DeleteAccountRequest& request, const DeleteAccountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAccount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::DeleteAccountOutcomeCallable Openanalytics_openClient::deleteAccountCallable(const DeleteAccountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAccount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::DeleteUserNetConfigOutcome Openanalytics_openClient::deleteUserNetConfig(const DeleteUserNetConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteUserNetConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteUserNetConfigOutcome(DeleteUserNetConfigResult(outcome.result())); + else + return DeleteUserNetConfigOutcome(outcome.error()); +} + +void Openanalytics_openClient::deleteUserNetConfigAsync(const DeleteUserNetConfigRequest& request, const DeleteUserNetConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteUserNetConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::DeleteUserNetConfigOutcomeCallable Openanalytics_openClient::deleteUserNetConfigCallable(const DeleteUserNetConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteUserNetConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::DescribeCapacityOutcome Openanalytics_openClient::describeCapacity(const DescribeCapacityRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCapacityOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCapacityOutcome(DescribeCapacityResult(outcome.result())); + else + return DescribeCapacityOutcome(outcome.error()); +} + +void Openanalytics_openClient::describeCapacityAsync(const DescribeCapacityRequest& request, const DescribeCapacityAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCapacity(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::DescribeCapacityOutcomeCallable Openanalytics_openClient::describeCapacityCallable(const DescribeCapacityRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCapacity(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::DescribeDataLakeAnalyticsServiceOutcome Openanalytics_openClient::describeDataLakeAnalyticsService(const DescribeDataLakeAnalyticsServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDataLakeAnalyticsServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDataLakeAnalyticsServiceOutcome(DescribeDataLakeAnalyticsServiceResult(outcome.result())); + else + return DescribeDataLakeAnalyticsServiceOutcome(outcome.error()); +} + +void Openanalytics_openClient::describeDataLakeAnalyticsServiceAsync(const DescribeDataLakeAnalyticsServiceRequest& request, const DescribeDataLakeAnalyticsServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDataLakeAnalyticsService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::DescribeDataLakeAnalyticsServiceOutcomeCallable Openanalytics_openClient::describeDataLakeAnalyticsServiceCallable(const DescribeDataLakeAnalyticsServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDataLakeAnalyticsService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::DescribeRegionListOutcome Openanalytics_openClient::describeRegionList(const DescribeRegionListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRegionListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRegionListOutcome(DescribeRegionListResult(outcome.result())); + else + return DescribeRegionListOutcome(outcome.error()); +} + +void Openanalytics_openClient::describeRegionListAsync(const DescribeRegionListRequest& request, const DescribeRegionListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRegionList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::DescribeRegionListOutcomeCallable Openanalytics_openClient::describeRegionListCallable(const DescribeRegionListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRegionList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::DescribeVirtualClusterOutcome Openanalytics_openClient::describeVirtualCluster(const DescribeVirtualClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVirtualClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVirtualClusterOutcome(DescribeVirtualClusterResult(outcome.result())); + else + return DescribeVirtualClusterOutcome(outcome.error()); +} + +void Openanalytics_openClient::describeVirtualClusterAsync(const DescribeVirtualClusterRequest& request, const DescribeVirtualClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVirtualCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::DescribeVirtualClusterOutcomeCallable Openanalytics_openClient::describeVirtualClusterCallable(const DescribeVirtualClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVirtualCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::DescribeVirtualClusterV2Outcome Openanalytics_openClient::describeVirtualClusterV2(const DescribeVirtualClusterV2Request &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVirtualClusterV2Outcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVirtualClusterV2Outcome(DescribeVirtualClusterV2Result(outcome.result())); + else + return DescribeVirtualClusterV2Outcome(outcome.error()); +} + +void Openanalytics_openClient::describeVirtualClusterV2Async(const DescribeVirtualClusterV2Request& request, const DescribeVirtualClusterV2AsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVirtualClusterV2(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::DescribeVirtualClusterV2OutcomeCallable Openanalytics_openClient::describeVirtualClusterV2Callable(const DescribeVirtualClusterV2Request &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVirtualClusterV2(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::DestroyVirtualClusterOutcome Openanalytics_openClient::destroyVirtualCluster(const DestroyVirtualClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DestroyVirtualClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DestroyVirtualClusterOutcome(DestroyVirtualClusterResult(outcome.result())); + else + return DestroyVirtualClusterOutcome(outcome.error()); +} + +void Openanalytics_openClient::destroyVirtualClusterAsync(const DestroyVirtualClusterRequest& request, const DestroyVirtualClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, destroyVirtualCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::DestroyVirtualClusterOutcomeCallable Openanalytics_openClient::destroyVirtualClusterCallable(const DestroyVirtualClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->destroyVirtualCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::DropDatabaseOutcome Openanalytics_openClient::dropDatabase(const DropDatabaseRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DropDatabaseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DropDatabaseOutcome(DropDatabaseResult(outcome.result())); + else + return DropDatabaseOutcome(outcome.error()); +} + +void Openanalytics_openClient::dropDatabaseAsync(const DropDatabaseRequest& request, const DropDatabaseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, dropDatabase(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::DropDatabaseOutcomeCallable Openanalytics_openClient::dropDatabaseCallable(const DropDatabaseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->dropDatabase(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::DropPartitionOutcome Openanalytics_openClient::dropPartition(const DropPartitionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DropPartitionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DropPartitionOutcome(DropPartitionResult(outcome.result())); + else + return DropPartitionOutcome(outcome.error()); +} + +void Openanalytics_openClient::dropPartitionAsync(const DropPartitionRequest& request, const DropPartitionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, dropPartition(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::DropPartitionOutcomeCallable Openanalytics_openClient::dropPartitionCallable(const DropPartitionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->dropPartition(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::DropTableOutcome Openanalytics_openClient::dropTable(const DropTableRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DropTableOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DropTableOutcome(DropTableResult(outcome.result())); + else + return DropTableOutcome(outcome.error()); +} + +void Openanalytics_openClient::dropTableAsync(const DropTableRequest& request, const DropTableAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, dropTable(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::DropTableOutcomeCallable Openanalytics_openClient::dropTableCallable(const DropTableRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->dropTable(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::ForbidAutomaticMetaSyncAsIntegrationAccountOutcome Openanalytics_openClient::forbidAutomaticMetaSyncAsIntegrationAccount(const ForbidAutomaticMetaSyncAsIntegrationAccountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ForbidAutomaticMetaSyncAsIntegrationAccountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ForbidAutomaticMetaSyncAsIntegrationAccountOutcome(ForbidAutomaticMetaSyncAsIntegrationAccountResult(outcome.result())); + else + return ForbidAutomaticMetaSyncAsIntegrationAccountOutcome(outcome.error()); +} + +void Openanalytics_openClient::forbidAutomaticMetaSyncAsIntegrationAccountAsync(const ForbidAutomaticMetaSyncAsIntegrationAccountRequest& request, const ForbidAutomaticMetaSyncAsIntegrationAccountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, forbidAutomaticMetaSyncAsIntegrationAccount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::ForbidAutomaticMetaSyncAsIntegrationAccountOutcomeCallable Openanalytics_openClient::forbidAutomaticMetaSyncAsIntegrationAccountCallable(const ForbidAutomaticMetaSyncAsIntegrationAccountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->forbidAutomaticMetaSyncAsIntegrationAccount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::GetAllDatabasesOutcome Openanalytics_openClient::getAllDatabases(const GetAllDatabasesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAllDatabasesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAllDatabasesOutcome(GetAllDatabasesResult(outcome.result())); + else + return GetAllDatabasesOutcome(outcome.error()); +} + +void Openanalytics_openClient::getAllDatabasesAsync(const GetAllDatabasesRequest& request, const GetAllDatabasesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAllDatabases(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::GetAllDatabasesOutcomeCallable Openanalytics_openClient::getAllDatabasesCallable(const GetAllDatabasesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAllDatabases(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::GetAllTablesOutcome Openanalytics_openClient::getAllTables(const GetAllTablesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAllTablesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAllTablesOutcome(GetAllTablesResult(outcome.result())); + else + return GetAllTablesOutcome(outcome.error()); +} + +void Openanalytics_openClient::getAllTablesAsync(const GetAllTablesRequest& request, const GetAllTablesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAllTables(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::GetAllTablesOutcomeCallable Openanalytics_openClient::getAllTablesCallable(const GetAllTablesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAllTables(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::GetAllowIPOutcome Openanalytics_openClient::getAllowIP(const GetAllowIPRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAllowIPOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAllowIPOutcome(GetAllowIPResult(outcome.result())); + else + return GetAllowIPOutcome(outcome.error()); +} + +void Openanalytics_openClient::getAllowIPAsync(const GetAllowIPRequest& request, const GetAllowIPAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAllowIP(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::GetAllowIPOutcomeCallable Openanalytics_openClient::getAllowIPCallable(const GetAllowIPRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAllowIP(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::GetConsolePermissionOutcome Openanalytics_openClient::getConsolePermission(const GetConsolePermissionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetConsolePermissionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetConsolePermissionOutcome(GetConsolePermissionResult(outcome.result())); + else + return GetConsolePermissionOutcome(outcome.error()); +} + +void Openanalytics_openClient::getConsolePermissionAsync(const GetConsolePermissionRequest& request, const GetConsolePermissionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getConsolePermission(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::GetConsolePermissionOutcomeCallable Openanalytics_openClient::getConsolePermissionCallable(const GetConsolePermissionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getConsolePermission(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::GetDLAServiceStatusOutcome Openanalytics_openClient::getDLAServiceStatus(const GetDLAServiceStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetDLAServiceStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetDLAServiceStatusOutcome(GetDLAServiceStatusResult(outcome.result())); + else + return GetDLAServiceStatusOutcome(outcome.error()); +} + +void Openanalytics_openClient::getDLAServiceStatusAsync(const GetDLAServiceStatusRequest& request, const GetDLAServiceStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getDLAServiceStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::GetDLAServiceStatusOutcomeCallable Openanalytics_openClient::getDLAServiceStatusCallable(const GetDLAServiceStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getDLAServiceStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::GetDatabaseOutcome Openanalytics_openClient::getDatabase(const GetDatabaseRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetDatabaseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetDatabaseOutcome(GetDatabaseResult(outcome.result())); + else + return GetDatabaseOutcome(outcome.error()); +} + +void Openanalytics_openClient::getDatabaseAsync(const GetDatabaseRequest& request, const GetDatabaseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getDatabase(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::GetDatabaseOutcomeCallable Openanalytics_openClient::getDatabaseCallable(const GetDatabaseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getDatabase(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::GetEndPointOutcome Openanalytics_openClient::getEndPoint(const GetEndPointRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetEndPointOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetEndPointOutcome(GetEndPointResult(outcome.result())); + else + return GetEndPointOutcome(outcome.error()); +} + +void Openanalytics_openClient::getEndPointAsync(const GetEndPointRequest& request, const GetEndPointAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getEndPoint(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::GetEndPointOutcomeCallable Openanalytics_openClient::getEndPointCallable(const GetEndPointRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getEndPoint(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::GetEndPointByDomainOutcome Openanalytics_openClient::getEndPointByDomain(const GetEndPointByDomainRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetEndPointByDomainOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetEndPointByDomainOutcome(GetEndPointByDomainResult(outcome.result())); + else + return GetEndPointByDomainOutcome(outcome.error()); +} + +void Openanalytics_openClient::getEndPointByDomainAsync(const GetEndPointByDomainRequest& request, const GetEndPointByDomainAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getEndPointByDomain(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::GetEndPointByDomainOutcomeCallable Openanalytics_openClient::getEndPointByDomainCallable(const GetEndPointByDomainRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getEndPointByDomain(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::GetJobDetailOutcome Openanalytics_openClient::getJobDetail(const GetJobDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetJobDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetJobDetailOutcome(GetJobDetailResult(outcome.result())); + else + return GetJobDetailOutcome(outcome.error()); +} + +void Openanalytics_openClient::getJobDetailAsync(const GetJobDetailRequest& request, const GetJobDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getJobDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::GetJobDetailOutcomeCallable Openanalytics_openClient::getJobDetailCallable(const GetJobDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getJobDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::GetJobLogOutcome Openanalytics_openClient::getJobLog(const GetJobLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetJobLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetJobLogOutcome(GetJobLogResult(outcome.result())); + else + return GetJobLogOutcome(outcome.error()); +} + +void Openanalytics_openClient::getJobLogAsync(const GetJobLogRequest& request, const GetJobLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getJobLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::GetJobLogOutcomeCallable Openanalytics_openClient::getJobLogCallable(const GetJobLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getJobLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::GetJobStatusOutcome Openanalytics_openClient::getJobStatus(const GetJobStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetJobStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetJobStatusOutcome(GetJobStatusResult(outcome.result())); + else + return GetJobStatusOutcome(outcome.error()); +} + +void Openanalytics_openClient::getJobStatusAsync(const GetJobStatusRequest& request, const GetJobStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getJobStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::GetJobStatusOutcomeCallable Openanalytics_openClient::getJobStatusCallable(const GetJobStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getJobStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::GetPartitionOutcome Openanalytics_openClient::getPartition(const GetPartitionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPartitionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPartitionOutcome(GetPartitionResult(outcome.result())); + else + return GetPartitionOutcome(outcome.error()); +} + +void Openanalytics_openClient::getPartitionAsync(const GetPartitionRequest& request, const GetPartitionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPartition(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::GetPartitionOutcomeCallable Openanalytics_openClient::getPartitionCallable(const GetPartitionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPartition(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::GetPartitionsOutcome Openanalytics_openClient::getPartitions(const GetPartitionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPartitionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPartitionsOutcome(GetPartitionsResult(outcome.result())); + else + return GetPartitionsOutcome(outcome.error()); +} + +void Openanalytics_openClient::getPartitionsAsync(const GetPartitionsRequest& request, const GetPartitionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPartitions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::GetPartitionsOutcomeCallable Openanalytics_openClient::getPartitionsCallable(const GetPartitionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPartitions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::GetRegionStatusOutcome Openanalytics_openClient::getRegionStatus(const GetRegionStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetRegionStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetRegionStatusOutcome(GetRegionStatusResult(outcome.result())); + else + return GetRegionStatusOutcome(outcome.error()); +} + +void Openanalytics_openClient::getRegionStatusAsync(const GetRegionStatusRequest& request, const GetRegionStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getRegionStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::GetRegionStatusOutcomeCallable Openanalytics_openClient::getRegionStatusCallable(const GetRegionStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getRegionStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::GetServiceLinkedRoleStatusOutcome Openanalytics_openClient::getServiceLinkedRoleStatus(const GetServiceLinkedRoleStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetServiceLinkedRoleStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetServiceLinkedRoleStatusOutcome(GetServiceLinkedRoleStatusResult(outcome.result())); + else + return GetServiceLinkedRoleStatusOutcome(outcome.error()); +} + +void Openanalytics_openClient::getServiceLinkedRoleStatusAsync(const GetServiceLinkedRoleStatusRequest& request, const GetServiceLinkedRoleStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getServiceLinkedRoleStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::GetServiceLinkedRoleStatusOutcomeCallable Openanalytics_openClient::getServiceLinkedRoleStatusCallable(const GetServiceLinkedRoleStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getServiceLinkedRoleStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::GetTableOutcome Openanalytics_openClient::getTable(const GetTableRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTableOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTableOutcome(GetTableResult(outcome.result())); + else + return GetTableOutcome(outcome.error()); +} + +void Openanalytics_openClient::getTableAsync(const GetTableRequest& request, const GetTableAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTable(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::GetTableOutcomeCallable Openanalytics_openClient::getTableCallable(const GetTableRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTable(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::GrantPrivilegesOutcome Openanalytics_openClient::grantPrivileges(const GrantPrivilegesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GrantPrivilegesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GrantPrivilegesOutcome(GrantPrivilegesResult(outcome.result())); + else + return GrantPrivilegesOutcome(outcome.error()); +} + +void Openanalytics_openClient::grantPrivilegesAsync(const GrantPrivilegesRequest& request, const GrantPrivilegesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, grantPrivileges(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::GrantPrivilegesOutcomeCallable Openanalytics_openClient::grantPrivilegesCallable(const GrantPrivilegesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->grantPrivileges(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::InitializeDLAServiceOutcome Openanalytics_openClient::initializeDLAService(const InitializeDLAServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return InitializeDLAServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return InitializeDLAServiceOutcome(InitializeDLAServiceResult(outcome.result())); + else + return InitializeDLAServiceOutcome(outcome.error()); +} + +void Openanalytics_openClient::initializeDLAServiceAsync(const InitializeDLAServiceRequest& request, const InitializeDLAServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, initializeDLAService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::InitializeDLAServiceOutcomeCallable Openanalytics_openClient::initializeDLAServiceCallable(const InitializeDLAServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->initializeDLAService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::InitializeRegionOutcome Openanalytics_openClient::initializeRegion(const InitializeRegionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return InitializeRegionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return InitializeRegionOutcome(InitializeRegionResult(outcome.result())); + else + return InitializeRegionOutcome(outcome.error()); +} + +void Openanalytics_openClient::initializeRegionAsync(const InitializeRegionRequest& request, const InitializeRegionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, initializeRegion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::InitializeRegionOutcomeCallable Openanalytics_openClient::initializeRegionCallable(const InitializeRegionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->initializeRegion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::KillSparkJobOutcome Openanalytics_openClient::killSparkJob(const KillSparkJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return KillSparkJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return KillSparkJobOutcome(KillSparkJobResult(outcome.result())); + else + return KillSparkJobOutcome(outcome.error()); +} + +void Openanalytics_openClient::killSparkJobAsync(const KillSparkJobRequest& request, const KillSparkJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, killSparkJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::KillSparkJobOutcomeCallable Openanalytics_openClient::killSparkJobCallable(const KillSparkJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->killSparkJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::ListAlreadyBingingRamUidOutcome Openanalytics_openClient::listAlreadyBingingRamUid(const ListAlreadyBingingRamUidRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAlreadyBingingRamUidOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAlreadyBingingRamUidOutcome(ListAlreadyBingingRamUidResult(outcome.result())); + else + return ListAlreadyBingingRamUidOutcome(outcome.error()); +} + +void Openanalytics_openClient::listAlreadyBingingRamUidAsync(const ListAlreadyBingingRamUidRequest& request, const ListAlreadyBingingRamUidAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAlreadyBingingRamUid(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::ListAlreadyBingingRamUidOutcomeCallable Openanalytics_openClient::listAlreadyBingingRamUidCallable(const ListAlreadyBingingRamUidRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAlreadyBingingRamUid(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::ListModulesReleaseOutcome Openanalytics_openClient::listModulesRelease(const ListModulesReleaseRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListModulesReleaseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListModulesReleaseOutcome(ListModulesReleaseResult(outcome.result())); + else + return ListModulesReleaseOutcome(outcome.error()); +} + +void Openanalytics_openClient::listModulesReleaseAsync(const ListModulesReleaseRequest& request, const ListModulesReleaseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listModulesRelease(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::ListModulesReleaseOutcomeCallable Openanalytics_openClient::listModulesReleaseCallable(const ListModulesReleaseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listModulesRelease(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::ListResourcesSpecOutcome Openanalytics_openClient::listResourcesSpec(const ListResourcesSpecRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListResourcesSpecOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListResourcesSpecOutcome(ListResourcesSpecResult(outcome.result())); + else + return ListResourcesSpecOutcome(outcome.error()); +} + +void Openanalytics_openClient::listResourcesSpecAsync(const ListResourcesSpecRequest& request, const ListResourcesSpecAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listResourcesSpec(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::ListResourcesSpecOutcomeCallable Openanalytics_openClient::listResourcesSpecCallable(const ListResourcesSpecRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listResourcesSpec(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::ListSparkJobOutcome Openanalytics_openClient::listSparkJob(const ListSparkJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSparkJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSparkJobOutcome(ListSparkJobResult(outcome.result())); + else + return ListSparkJobOutcome(outcome.error()); +} + +void Openanalytics_openClient::listSparkJobAsync(const ListSparkJobRequest& request, const ListSparkJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSparkJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::ListSparkJobOutcomeCallable Openanalytics_openClient::listSparkJobCallable(const ListSparkJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSparkJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::ListVirtualClustersOutcome Openanalytics_openClient::listVirtualClusters(const ListVirtualClustersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListVirtualClustersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListVirtualClustersOutcome(ListVirtualClustersResult(outcome.result())); + else + return ListVirtualClustersOutcome(outcome.error()); +} + +void Openanalytics_openClient::listVirtualClustersAsync(const ListVirtualClustersRequest& request, const ListVirtualClustersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listVirtualClusters(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::ListVirtualClustersOutcomeCallable Openanalytics_openClient::listVirtualClustersCallable(const ListVirtualClustersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listVirtualClusters(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::ModifyVirtualClusterOutcome Openanalytics_openClient::modifyVirtualCluster(const ModifyVirtualClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyVirtualClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyVirtualClusterOutcome(ModifyVirtualClusterResult(outcome.result())); + else + return ModifyVirtualClusterOutcome(outcome.error()); +} + +void Openanalytics_openClient::modifyVirtualClusterAsync(const ModifyVirtualClusterRequest& request, const ModifyVirtualClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyVirtualCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::ModifyVirtualClusterOutcomeCallable Openanalytics_openClient::modifyVirtualClusterCallable(const ModifyVirtualClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyVirtualCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::ModifyVirtualClusterForSparkOutcome Openanalytics_openClient::modifyVirtualClusterForSpark(const ModifyVirtualClusterForSparkRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyVirtualClusterForSparkOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyVirtualClusterForSparkOutcome(ModifyVirtualClusterForSparkResult(outcome.result())); + else + return ModifyVirtualClusterForSparkOutcome(outcome.error()); +} + +void Openanalytics_openClient::modifyVirtualClusterForSparkAsync(const ModifyVirtualClusterForSparkRequest& request, const ModifyVirtualClusterForSparkAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyVirtualClusterForSpark(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::ModifyVirtualClusterForSparkOutcomeCallable Openanalytics_openClient::modifyVirtualClusterForSparkCallable(const ModifyVirtualClusterForSparkRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyVirtualClusterForSpark(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::OpenDataLakeAnalyticsServiceOutcome Openanalytics_openClient::openDataLakeAnalyticsService(const OpenDataLakeAnalyticsServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OpenDataLakeAnalyticsServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OpenDataLakeAnalyticsServiceOutcome(OpenDataLakeAnalyticsServiceResult(outcome.result())); + else + return OpenDataLakeAnalyticsServiceOutcome(outcome.error()); +} + +void Openanalytics_openClient::openDataLakeAnalyticsServiceAsync(const OpenDataLakeAnalyticsServiceRequest& request, const OpenDataLakeAnalyticsServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, openDataLakeAnalyticsService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::OpenDataLakeAnalyticsServiceOutcomeCallable Openanalytics_openClient::openDataLakeAnalyticsServiceCallable(const OpenDataLakeAnalyticsServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->openDataLakeAnalyticsService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::QueryAccountListOutcome Openanalytics_openClient::queryAccountList(const QueryAccountListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryAccountListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryAccountListOutcome(QueryAccountListResult(outcome.result())); + else + return QueryAccountListOutcome(outcome.error()); +} + +void Openanalytics_openClient::queryAccountListAsync(const QueryAccountListRequest& request, const QueryAccountListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryAccountList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::QueryAccountListOutcomeCallable Openanalytics_openClient::queryAccountListCallable(const QueryAccountListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryAccountList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::QueryDataSourceDefOutcome Openanalytics_openClient::queryDataSourceDef(const QueryDataSourceDefRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryDataSourceDefOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryDataSourceDefOutcome(QueryDataSourceDefResult(outcome.result())); + else + return QueryDataSourceDefOutcome(outcome.error()); +} + +void Openanalytics_openClient::queryDataSourceDefAsync(const QueryDataSourceDefRequest& request, const QueryDataSourceDefAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryDataSourceDef(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::QueryDataSourceDefOutcomeCallable Openanalytics_openClient::queryDataSourceDefCallable(const QueryDataSourceDefRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryDataSourceDef(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::QueryDiscountListOutcome Openanalytics_openClient::queryDiscountList(const QueryDiscountListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryDiscountListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryDiscountListOutcome(QueryDiscountListResult(outcome.result())); + else + return QueryDiscountListOutcome(outcome.error()); +} + +void Openanalytics_openClient::queryDiscountListAsync(const QueryDiscountListRequest& request, const QueryDiscountListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryDiscountList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::QueryDiscountListOutcomeCallable Openanalytics_openClient::queryDiscountListCallable(const QueryDiscountListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryDiscountList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::QueryEndPointListOutcome Openanalytics_openClient::queryEndPointList(const QueryEndPointListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryEndPointListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryEndPointListOutcome(QueryEndPointListResult(outcome.result())); + else + return QueryEndPointListOutcome(outcome.error()); +} + +void Openanalytics_openClient::queryEndPointListAsync(const QueryEndPointListRequest& request, const QueryEndPointListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryEndPointList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::QueryEndPointListOutcomeCallable Openanalytics_openClient::queryEndPointListCallable(const QueryEndPointListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryEndPointList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::QueryServiceAccountListOutcome Openanalytics_openClient::queryServiceAccountList(const QueryServiceAccountListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryServiceAccountListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryServiceAccountListOutcome(QueryServiceAccountListResult(outcome.result())); + else + return QueryServiceAccountListOutcome(outcome.error()); +} + +void Openanalytics_openClient::queryServiceAccountListAsync(const QueryServiceAccountListRequest& request, const QueryServiceAccountListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryServiceAccountList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::QueryServiceAccountListOutcomeCallable Openanalytics_openClient::queryServiceAccountListCallable(const QueryServiceAccountListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryServiceAccountList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::QueryTaskSumOutcome Openanalytics_openClient::queryTaskSum(const QueryTaskSumRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryTaskSumOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryTaskSumOutcome(QueryTaskSumResult(outcome.result())); + else + return QueryTaskSumOutcome(outcome.error()); +} + +void Openanalytics_openClient::queryTaskSumAsync(const QueryTaskSumRequest& request, const QueryTaskSumAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryTaskSum(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::QueryTaskSumOutcomeCallable Openanalytics_openClient::queryTaskSumCallable(const QueryTaskSumRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryTaskSum(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::ReleaseInstanceOutcome Openanalytics_openClient::releaseInstance(const ReleaseInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReleaseInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReleaseInstanceOutcome(ReleaseInstanceResult(outcome.result())); + else + return ReleaseInstanceOutcome(outcome.error()); +} + +void Openanalytics_openClient::releaseInstanceAsync(const ReleaseInstanceRequest& request, const ReleaseInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, releaseInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::ReleaseInstanceOutcomeCallable Openanalytics_openClient::releaseInstanceCallable(const ReleaseInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->releaseInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::RemoveEndPointOutcome Openanalytics_openClient::removeEndPoint(const RemoveEndPointRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveEndPointOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveEndPointOutcome(RemoveEndPointResult(outcome.result())); + else + return RemoveEndPointOutcome(outcome.error()); +} + +void Openanalytics_openClient::removeEndPointAsync(const RemoveEndPointRequest& request, const RemoveEndPointAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeEndPoint(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::RemoveEndPointOutcomeCallable Openanalytics_openClient::removeEndPointCallable(const RemoveEndPointRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeEndPoint(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::ResetMainPasswordOutcome Openanalytics_openClient::resetMainPassword(const ResetMainPasswordRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ResetMainPasswordOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResetMainPasswordOutcome(ResetMainPasswordResult(outcome.result())); + else + return ResetMainPasswordOutcome(outcome.error()); +} + +void Openanalytics_openClient::resetMainPasswordAsync(const ResetMainPasswordRequest& request, const ResetMainPasswordAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resetMainPassword(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::ResetMainPasswordOutcomeCallable Openanalytics_openClient::resetMainPasswordCallable(const ResetMainPasswordRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resetMainPassword(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::RevokePrivilegesOutcome Openanalytics_openClient::revokePrivileges(const RevokePrivilegesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RevokePrivilegesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RevokePrivilegesOutcome(RevokePrivilegesResult(outcome.result())); + else + return RevokePrivilegesOutcome(outcome.error()); +} + +void Openanalytics_openClient::revokePrivilegesAsync(const RevokePrivilegesRequest& request, const RevokePrivilegesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, revokePrivileges(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::RevokePrivilegesOutcomeCallable Openanalytics_openClient::revokePrivilegesCallable(const RevokePrivilegesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->revokePrivileges(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::SetAllowIPOutcome Openanalytics_openClient::setAllowIP(const SetAllowIPRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetAllowIPOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetAllowIPOutcome(SetAllowIPResult(outcome.result())); + else + return SetAllowIPOutcome(outcome.error()); +} + +void Openanalytics_openClient::setAllowIPAsync(const SetAllowIPRequest& request, const SetAllowIPAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setAllowIP(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::SetAllowIPOutcomeCallable Openanalytics_openClient::setAllowIPCallable(const SetAllowIPRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setAllowIP(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::SetCapacityLimitPolicyOutcome Openanalytics_openClient::setCapacityLimitPolicy(const SetCapacityLimitPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetCapacityLimitPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetCapacityLimitPolicyOutcome(SetCapacityLimitPolicyResult(outcome.result())); + else + return SetCapacityLimitPolicyOutcome(outcome.error()); +} + +void Openanalytics_openClient::setCapacityLimitPolicyAsync(const SetCapacityLimitPolicyRequest& request, const SetCapacityLimitPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setCapacityLimitPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::SetCapacityLimitPolicyOutcomeCallable Openanalytics_openClient::setCapacityLimitPolicyCallable(const SetCapacityLimitPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setCapacityLimitPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::SetRelationWithBizOutcome Openanalytics_openClient::setRelationWithBiz(const SetRelationWithBizRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetRelationWithBizOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetRelationWithBizOutcome(SetRelationWithBizResult(outcome.result())); + else + return SetRelationWithBizOutcome(outcome.error()); +} + +void Openanalytics_openClient::setRelationWithBizAsync(const SetRelationWithBizRequest& request, const SetRelationWithBizAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setRelationWithBiz(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::SetRelationWithBizOutcomeCallable Openanalytics_openClient::setRelationWithBizCallable(const SetRelationWithBizRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setRelationWithBiz(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::SetTrafficLimitPolicyOutcome Openanalytics_openClient::setTrafficLimitPolicy(const SetTrafficLimitPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetTrafficLimitPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetTrafficLimitPolicyOutcome(SetTrafficLimitPolicyResult(outcome.result())); + else + return SetTrafficLimitPolicyOutcome(outcome.error()); +} + +void Openanalytics_openClient::setTrafficLimitPolicyAsync(const SetTrafficLimitPolicyRequest& request, const SetTrafficLimitPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setTrafficLimitPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::SetTrafficLimitPolicyOutcomeCallable Openanalytics_openClient::setTrafficLimitPolicyCallable(const SetTrafficLimitPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setTrafficLimitPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::StartVirtualClusterOutcome Openanalytics_openClient::startVirtualCluster(const StartVirtualClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartVirtualClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartVirtualClusterOutcome(StartVirtualClusterResult(outcome.result())); + else + return StartVirtualClusterOutcome(outcome.error()); +} + +void Openanalytics_openClient::startVirtualClusterAsync(const StartVirtualClusterRequest& request, const StartVirtualClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startVirtualCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::StartVirtualClusterOutcomeCallable Openanalytics_openClient::startVirtualClusterCallable(const StartVirtualClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startVirtualCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::StopVirtualClusterOutcome Openanalytics_openClient::stopVirtualCluster(const StopVirtualClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopVirtualClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopVirtualClusterOutcome(StopVirtualClusterResult(outcome.result())); + else + return StopVirtualClusterOutcome(outcome.error()); +} + +void Openanalytics_openClient::stopVirtualClusterAsync(const StopVirtualClusterRequest& request, const StopVirtualClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopVirtualCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::StopVirtualClusterOutcomeCallable Openanalytics_openClient::stopVirtualClusterCallable(const StopVirtualClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopVirtualCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::SubmitSparkJobOutcome Openanalytics_openClient::submitSparkJob(const SubmitSparkJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SubmitSparkJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SubmitSparkJobOutcome(SubmitSparkJobResult(outcome.result())); + else + return SubmitSparkJobOutcome(outcome.error()); +} + +void Openanalytics_openClient::submitSparkJobAsync(const SubmitSparkJobRequest& request, const SubmitSparkJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, submitSparkJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::SubmitSparkJobOutcomeCallable Openanalytics_openClient::submitSparkJobCallable(const SubmitSparkJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->submitSparkJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::UnSubscribeRegionOutcome Openanalytics_openClient::unSubscribeRegion(const UnSubscribeRegionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnSubscribeRegionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnSubscribeRegionOutcome(UnSubscribeRegionResult(outcome.result())); + else + return UnSubscribeRegionOutcome(outcome.error()); +} + +void Openanalytics_openClient::unSubscribeRegionAsync(const UnSubscribeRegionRequest& request, const UnSubscribeRegionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unSubscribeRegion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::UnSubscribeRegionOutcomeCallable Openanalytics_openClient::unSubscribeRegionCallable(const UnSubscribeRegionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unSubscribeRegion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Openanalytics_openClient::UpdateAccountPasswordOutcome Openanalytics_openClient::updateAccountPassword(const UpdateAccountPasswordRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateAccountPasswordOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateAccountPasswordOutcome(UpdateAccountPasswordResult(outcome.result())); + else + return UpdateAccountPasswordOutcome(outcome.error()); +} + +void Openanalytics_openClient::updateAccountPasswordAsync(const UpdateAccountPasswordRequest& request, const UpdateAccountPasswordAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateAccountPassword(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Openanalytics_openClient::UpdateAccountPasswordOutcomeCallable Openanalytics_openClient::updateAccountPasswordCallable(const UpdateAccountPasswordRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateAccountPassword(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/openanalytics-open/src/model/AddAccountRequest.cc b/openanalytics-open/src/model/AddAccountRequest.cc new file mode 100644 index 000000000..fa7b4244e --- /dev/null +++ b/openanalytics-open/src/model/AddAccountRequest.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::Openanalytics_open::Model::AddAccountRequest; + +AddAccountRequest::AddAccountRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "AddAccount") +{ + setMethod(HttpRequest::Method::Post); +} + +AddAccountRequest::~AddAccountRequest() +{} + +std::string AddAccountRequest::getRamUid()const +{ + return ramUid_; +} + +void AddAccountRequest::setRamUid(const std::string& ramUid) +{ + ramUid_ = ramUid; + setBodyParameter("RamUid", ramUid); +} + +bool AddAccountRequest::getIsShort()const +{ + return isShort_; +} + +void AddAccountRequest::setIsShort(bool isShort) +{ + isShort_ = isShort; + setBodyParameter("IsShort", isShort ? "true" : "false"); +} + +std::string AddAccountRequest::getRemark()const +{ + return remark_; +} + +void AddAccountRequest::setRemark(const std::string& remark) +{ + remark_ = remark; + setBodyParameter("Remark", remark); +} + +std::string AddAccountRequest::getPassword()const +{ + return password_; +} + +void AddAccountRequest::setPassword(const std::string& password) +{ + password_ = password; + setBodyParameter("Password", password); +} + +std::string AddAccountRequest::getAccountName()const +{ + return accountName_; +} + +void AddAccountRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setBodyParameter("AccountName", accountName); +} + +std::string AddAccountRequest::getRegionId()const +{ + return regionId_; +} + +void AddAccountRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setBodyParameter("RegionId", regionId); +} + +bool AddAccountRequest::getEnableKMS()const +{ + return enableKMS_; +} + +void AddAccountRequest::setEnableKMS(bool enableKMS) +{ + enableKMS_ = enableKMS; + setBodyParameter("EnableKMS", enableKMS ? "true" : "false"); +} + +bool AddAccountRequest::getUseRandomPassword()const +{ + return useRandomPassword_; +} + +void AddAccountRequest::setUseRandomPassword(bool useRandomPassword) +{ + useRandomPassword_ = useRandomPassword; + setBodyParameter("UseRandomPassword", useRandomPassword ? "true" : "false"); +} + diff --git a/openanalytics-open/src/model/AddAccountResult.cc b/openanalytics-open/src/model/AddAccountResult.cc new file mode 100644 index 000000000..2bb45eaf2 --- /dev/null +++ b/openanalytics-open/src/model/AddAccountResult.cc @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +AddAccountResult::AddAccountResult() : + ServiceResult() +{} + +AddAccountResult::AddAccountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddAccountResult::~AddAccountResult() +{} + +void AddAccountResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto accountNode = value["Account"]; + if(!accountNode["UserName"].isNull()) + account_.userName = accountNode["UserName"].asString(); + if(!accountNode["Password"].isNull()) + account_.password = accountNode["Password"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + +} + +AddAccountResult::Account AddAccountResult::getAccount()const +{ + return account_; +} + +std::string AddAccountResult::getRegionId()const +{ + return regionId_; +} + diff --git a/openanalytics-open/src/model/AddEndPointRequest.cc b/openanalytics-open/src/model/AddEndPointRequest.cc new file mode 100644 index 000000000..d3531fa40 --- /dev/null +++ b/openanalytics-open/src/model/AddEndPointRequest.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::Openanalytics_open::Model::AddEndPointRequest; + +AddEndPointRequest::AddEndPointRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "AddEndPoint") +{ + setMethod(HttpRequest::Method::Post); +} + +AddEndPointRequest::~AddEndPointRequest() +{} + +std::string AddEndPointRequest::getProduct()const +{ + return product_; +} + +void AddEndPointRequest::setProduct(const std::string& product) +{ + product_ = product; + setBodyParameter("Product", product); +} + +std::string AddEndPointRequest::getNetworkType()const +{ + return networkType_; +} + +void AddEndPointRequest::setNetworkType(const std::string& networkType) +{ + networkType_ = networkType; + setBodyParameter("NetworkType", networkType); +} + +std::string AddEndPointRequest::getVswitch()const +{ + return vswitch_; +} + +void AddEndPointRequest::setVswitch(const std::string& vswitch) +{ + vswitch_ = vswitch; + setBodyParameter("Vswitch", vswitch); +} + +std::string AddEndPointRequest::getRegionId()const +{ + return regionId_; +} + +void AddEndPointRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setBodyParameter("RegionId", regionId); +} + +std::string AddEndPointRequest::getZone()const +{ + return zone_; +} + +void AddEndPointRequest::setZone(const std::string& zone) +{ + zone_ = zone; + setBodyParameter("Zone", zone); +} + +std::string AddEndPointRequest::getVpcID()const +{ + return vpcID_; +} + +void AddEndPointRequest::setVpcID(const std::string& vpcID) +{ + vpcID_ = vpcID; + setBodyParameter("VpcID", vpcID); +} + diff --git a/openanalytics-open/src/model/AddEndPointResult.cc b/openanalytics-open/src/model/AddEndPointResult.cc new file mode 100644 index 000000000..d0e600b6e --- /dev/null +++ b/openanalytics-open/src/model/AddEndPointResult.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::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +AddEndPointResult::AddEndPointResult() : + ServiceResult() +{} + +AddEndPointResult::AddEndPointResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddEndPointResult::~AddEndPointResult() +{} + +void AddEndPointResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto endPointInfoNode = value["EndPointInfo"]; + if(!endPointInfoNode["domainURL"].isNull()) + endPointInfo_.domainURL = endPointInfoNode["domainURL"].asString(); + if(!endPointInfoNode["host"].isNull()) + endPointInfo_.host = endPointInfoNode["host"].asString(); + if(!endPointInfoNode["port"].isNull()) + endPointInfo_.port = endPointInfoNode["port"].asString(); + if(!endPointInfoNode["networkType"].isNull()) + endPointInfo_.networkType = endPointInfoNode["networkType"].asString(); + if(!endPointInfoNode["vpcID"].isNull()) + endPointInfo_.vpcID = endPointInfoNode["vpcID"].asString(); + if(!endPointInfoNode["vSwitch"].isNull()) + endPointInfo_.vSwitch = endPointInfoNode["vSwitch"].asString(); + if(!endPointInfoNode["zone"].isNull()) + endPointInfo_.zone = endPointInfoNode["zone"].asString(); + if(!endPointInfoNode["allowIP"].isNull()) + endPointInfo_.allowIP = endPointInfoNode["allowIP"].asString(); + if(!endPointInfoNode["endPointID"].isNull()) + endPointInfo_.endPointID = endPointInfoNode["endPointID"].asString(); + if(!endPointInfoNode["status"].isNull()) + endPointInfo_.status = endPointInfoNode["status"].asString(); + if(!endPointInfoNode["product"].isNull()) + endPointInfo_.product = endPointInfoNode["product"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + +} + +AddEndPointResult::EndPointInfo AddEndPointResult::getEndPointInfo()const +{ + return endPointInfo_; +} + +std::string AddEndPointResult::getRegionId()const +{ + return regionId_; +} + diff --git a/openanalytics-open/src/model/AddPartitionsRequest.cc b/openanalytics-open/src/model/AddPartitionsRequest.cc new file mode 100644 index 000000000..0b97216a1 --- /dev/null +++ b/openanalytics-open/src/model/AddPartitionsRequest.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::Openanalytics_open::Model::AddPartitionsRequest; + +AddPartitionsRequest::AddPartitionsRequest() : + RpcServiceRequest("openanalytics-open", "2020-09-28", "AddPartitions") +{ + setMethod(HttpRequest::Method::Post); +} + +AddPartitionsRequest::~AddPartitionsRequest() +{} + +Array AddPartitionsRequest::getPartition()const +{ + return partition_; +} + +void AddPartitionsRequest::setPartition(const Array& partition) +{ + partition_ = partition; + setParameter("Partition", std::to_string(partition)); +} + diff --git a/openanalytics-open/src/model/AddPartitionsResult.cc b/openanalytics-open/src/model/AddPartitionsResult.cc new file mode 100644 index 000000000..45d405f78 --- /dev/null +++ b/openanalytics-open/src/model/AddPartitionsResult.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::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +AddPartitionsResult::AddPartitionsResult() : + ServiceResult() +{} + +AddPartitionsResult::AddPartitionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddPartitionsResult::~AddPartitionsResult() +{} + +void AddPartitionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = std::stol(value["Data"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string AddPartitionsResult::getMessage()const +{ + return message_; +} + +long AddPartitionsResult::getData()const +{ + return data_; +} + +std::string AddPartitionsResult::getCode()const +{ + return code_; +} + +bool AddPartitionsResult::getSuccess()const +{ + return success_; +} + diff --git a/openanalytics-open/src/model/AlterDatabaseRequest.cc b/openanalytics-open/src/model/AlterDatabaseRequest.cc new file mode 100644 index 000000000..ec8bf697f --- /dev/null +++ b/openanalytics-open/src/model/AlterDatabaseRequest.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::Openanalytics_open::Model::AlterDatabaseRequest; + +AlterDatabaseRequest::AlterDatabaseRequest() : + RpcServiceRequest("openanalytics-open", "2020-09-28", "AlterDatabase") +{ + setMethod(HttpRequest::Method::Post); +} + +AlterDatabaseRequest::~AlterDatabaseRequest() +{} + +std::string AlterDatabaseRequest::getOldDbName()const +{ + return oldDbName_; +} + +void AlterDatabaseRequest::setOldDbName(const std::string& oldDbName) +{ + oldDbName_ = oldDbName; + setParameter("OldDbName", oldDbName); +} + +std::string AlterDatabaseRequest::getName()const +{ + return name_; +} + +void AlterDatabaseRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string AlterDatabaseRequest::getDescription()const +{ + return description_; +} + +void AlterDatabaseRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string AlterDatabaseRequest::getLocationUri()const +{ + return locationUri_; +} + +void AlterDatabaseRequest::setLocationUri(const std::string& locationUri) +{ + locationUri_ = locationUri; + setParameter("LocationUri", locationUri); +} + +std::string AlterDatabaseRequest::getParameters()const +{ + return parameters_; +} + +void AlterDatabaseRequest::setParameters(const std::string& parameters) +{ + parameters_ = parameters; + setParameter("Parameters", parameters); +} + diff --git a/openanalytics-open/src/model/AlterDatabaseResult.cc b/openanalytics-open/src/model/AlterDatabaseResult.cc new file mode 100644 index 000000000..a2500b071 --- /dev/null +++ b/openanalytics-open/src/model/AlterDatabaseResult.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::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +AlterDatabaseResult::AlterDatabaseResult() : + ServiceResult() +{} + +AlterDatabaseResult::AlterDatabaseResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AlterDatabaseResult::~AlterDatabaseResult() +{} + +void AlterDatabaseResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string AlterDatabaseResult::getMessage()const +{ + return message_; +} + +std::string AlterDatabaseResult::getData()const +{ + return data_; +} + +std::string AlterDatabaseResult::getCode()const +{ + return code_; +} + +bool AlterDatabaseResult::getSuccess()const +{ + return success_; +} + diff --git a/openanalytics-open/src/model/AlterTableRequest.cc b/openanalytics-open/src/model/AlterTableRequest.cc new file mode 100644 index 000000000..b316b9e62 --- /dev/null +++ b/openanalytics-open/src/model/AlterTableRequest.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::Openanalytics_open::Model::AlterTableRequest; + +AlterTableRequest::AlterTableRequest() : + RpcServiceRequest("openanalytics-open", "2020-09-28", "AlterTable") +{ + setMethod(HttpRequest::Method::Post); +} + +AlterTableRequest::~AlterTableRequest() +{} + +std::string AlterTableRequest::getNewTableName()const +{ + return newTableName_; +} + +void AlterTableRequest::setNewTableName(const std::string& newTableName) +{ + newTableName_ = newTableName; + setParameter("NewTableName", newTableName); +} + +Array AlterTableRequest::getCol()const +{ + return col_; +} + +void AlterTableRequest::setCol(const Array& col) +{ + col_ = col; + setParameter("Col", std::to_string(col)); +} + +std::string AlterTableRequest::getOldTableName()const +{ + return oldTableName_; +} + +void AlterTableRequest::setOldTableName(const std::string& oldTableName) +{ + oldTableName_ = oldTableName; + setParameter("OldTableName", oldTableName); +} + +std::string AlterTableRequest::getOldDbName()const +{ + return oldDbName_; +} + +void AlterTableRequest::setOldDbName(const std::string& oldDbName) +{ + oldDbName_ = oldDbName; + setParameter("OldDbName", oldDbName); +} + +std::string AlterTableRequest::getNewDbName()const +{ + return newDbName_; +} + +void AlterTableRequest::setNewDbName(const std::string& newDbName) +{ + newDbName_ = newDbName; + setParameter("NewDbName", newDbName); +} + +std::string AlterTableRequest::getParameters()const +{ + return parameters_; +} + +void AlterTableRequest::setParameters(const std::string& parameters) +{ + parameters_ = parameters; + setParameter("Parameters", parameters); +} + diff --git a/openanalytics-open/src/model/AlterTableResult.cc b/openanalytics-open/src/model/AlterTableResult.cc new file mode 100644 index 000000000..177a06c10 --- /dev/null +++ b/openanalytics-open/src/model/AlterTableResult.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::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +AlterTableResult::AlterTableResult() : + ServiceResult() +{} + +AlterTableResult::AlterTableResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AlterTableResult::~AlterTableResult() +{} + +void AlterTableResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string AlterTableResult::getMessage()const +{ + return message_; +} + +bool AlterTableResult::getData()const +{ + return data_; +} + +std::string AlterTableResult::getCode()const +{ + return code_; +} + +bool AlterTableResult::getSuccess()const +{ + return success_; +} + diff --git a/openanalytics-open/src/model/BindingRamUidToDlaAccountRequest.cc b/openanalytics-open/src/model/BindingRamUidToDlaAccountRequest.cc new file mode 100644 index 000000000..c71273bc3 --- /dev/null +++ b/openanalytics-open/src/model/BindingRamUidToDlaAccountRequest.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::Openanalytics_open::Model::BindingRamUidToDlaAccountRequest; + +BindingRamUidToDlaAccountRequest::BindingRamUidToDlaAccountRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "BindingRamUidToDlaAccount") +{ + setMethod(HttpRequest::Method::Post); +} + +BindingRamUidToDlaAccountRequest::~BindingRamUidToDlaAccountRequest() +{} + +std::string BindingRamUidToDlaAccountRequest::getRegionId()const +{ + return regionId_; +} + +void BindingRamUidToDlaAccountRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setBodyParameter("RegionId", regionId); +} + +std::string BindingRamUidToDlaAccountRequest::getAccountName()const +{ + return accountName_; +} + +void BindingRamUidToDlaAccountRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setBodyParameter("AccountName", accountName); +} + +std::string BindingRamUidToDlaAccountRequest::getRamUid()const +{ + return ramUid_; +} + +void BindingRamUidToDlaAccountRequest::setRamUid(const std::string& ramUid) +{ + ramUid_ = ramUid; + setBodyParameter("RamUid", ramUid); +} + +bool BindingRamUidToDlaAccountRequest::getIsShort()const +{ + return isShort_; +} + +void BindingRamUidToDlaAccountRequest::setIsShort(bool isShort) +{ + isShort_ = isShort; + setBodyParameter("IsShort", isShort ? "true" : "false"); +} + +bool BindingRamUidToDlaAccountRequest::getIsServiceUser()const +{ + return isServiceUser_; +} + +void BindingRamUidToDlaAccountRequest::setIsServiceUser(bool isServiceUser) +{ + isServiceUser_ = isServiceUser; + setBodyParameter("IsServiceUser", isServiceUser ? "true" : "false"); +} + diff --git a/openanalytics-open/src/model/BindingRamUidToDlaAccountResult.cc b/openanalytics-open/src/model/BindingRamUidToDlaAccountResult.cc new file mode 100644 index 000000000..7bb1bbbb4 --- /dev/null +++ b/openanalytics-open/src/model/BindingRamUidToDlaAccountResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +BindingRamUidToDlaAccountResult::BindingRamUidToDlaAccountResult() : + ServiceResult() +{} + +BindingRamUidToDlaAccountResult::BindingRamUidToDlaAccountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BindingRamUidToDlaAccountResult::~BindingRamUidToDlaAccountResult() +{} + +void BindingRamUidToDlaAccountResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + +} + +std::string BindingRamUidToDlaAccountResult::getRegionId()const +{ + return regionId_; +} + diff --git a/openanalytics-open/src/model/CreateDatabaseRequest.cc b/openanalytics-open/src/model/CreateDatabaseRequest.cc new file mode 100644 index 000000000..af979f568 --- /dev/null +++ b/openanalytics-open/src/model/CreateDatabaseRequest.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::Openanalytics_open::Model::CreateDatabaseRequest; + +CreateDatabaseRequest::CreateDatabaseRequest() : + RpcServiceRequest("openanalytics-open", "2020-09-28", "CreateDatabase") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateDatabaseRequest::~CreateDatabaseRequest() +{} + +std::string CreateDatabaseRequest::getName()const +{ + return name_; +} + +void CreateDatabaseRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string CreateDatabaseRequest::getDescription()const +{ + return description_; +} + +void CreateDatabaseRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreateDatabaseRequest::getLocationUri()const +{ + return locationUri_; +} + +void CreateDatabaseRequest::setLocationUri(const std::string& locationUri) +{ + locationUri_ = locationUri; + setParameter("LocationUri", locationUri); +} + +std::string CreateDatabaseRequest::getParameters()const +{ + return parameters_; +} + +void CreateDatabaseRequest::setParameters(const std::string& parameters) +{ + parameters_ = parameters; + setParameter("Parameters", parameters); +} + diff --git a/openanalytics-open/src/model/CreateDatabaseResult.cc b/openanalytics-open/src/model/CreateDatabaseResult.cc new file mode 100644 index 000000000..116254beb --- /dev/null +++ b/openanalytics-open/src/model/CreateDatabaseResult.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::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +CreateDatabaseResult::CreateDatabaseResult() : + ServiceResult() +{} + +CreateDatabaseResult::CreateDatabaseResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDatabaseResult::~CreateDatabaseResult() +{} + +void CreateDatabaseResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = std::stol(value["Data"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string CreateDatabaseResult::getMessage()const +{ + return message_; +} + +long CreateDatabaseResult::getData()const +{ + return data_; +} + +std::string CreateDatabaseResult::getCode()const +{ + return code_; +} + +bool CreateDatabaseResult::getSuccess()const +{ + return success_; +} + diff --git a/openanalytics-open/src/model/CreateInstanceRequest.cc b/openanalytics-open/src/model/CreateInstanceRequest.cc new file mode 100644 index 000000000..74433d975 --- /dev/null +++ b/openanalytics-open/src/model/CreateInstanceRequest.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::Openanalytics_open::Model::CreateInstanceRequest; + +CreateInstanceRequest::CreateInstanceRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "CreateInstance") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateInstanceRequest::~CreateInstanceRequest() +{} + +std::string CreateInstanceRequest::getRegionId()const +{ + return regionId_; +} + +void CreateInstanceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setBodyParameter("RegionId", regionId); +} + +std::string CreateInstanceRequest::getChargeType()const +{ + return chargeType_; +} + +void CreateInstanceRequest::setChargeType(const std::string& chargeType) +{ + chargeType_ = chargeType; + setBodyParameter("ChargeType", chargeType); +} + +std::string CreateInstanceRequest::getInstanceType()const +{ + return instanceType_; +} + +void CreateInstanceRequest::setInstanceType(const std::string& instanceType) +{ + instanceType_ = instanceType; + setBodyParameter("InstanceType", instanceType); +} + +std::string CreateInstanceRequest::getComponent()const +{ + return component_; +} + +void CreateInstanceRequest::setComponent(const std::string& component) +{ + component_ = component; + setBodyParameter("Component", component); +} + diff --git a/openanalytics-open/src/model/CreateInstanceResult.cc b/openanalytics-open/src/model/CreateInstanceResult.cc new file mode 100644 index 000000000..d2a786925 --- /dev/null +++ b/openanalytics-open/src/model/CreateInstanceResult.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::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +CreateInstanceResult::CreateInstanceResult() : + ServiceResult() +{} + +CreateInstanceResult::CreateInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateInstanceResult::~CreateInstanceResult() +{} + +void CreateInstanceResult::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["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["ErrorInfo"].isNull()) + errorInfo_ = value["ErrorInfo"].asString(); + if(!value["Result"].isNull()) + result_ = value["Result"].asString(); + +} + +std::string CreateInstanceResult::getErrorInfo()const +{ + return errorInfo_; +} + +std::string CreateInstanceResult::getErrorCode()const +{ + return errorCode_; +} + +bool CreateInstanceResult::getSuccess()const +{ + return success_; +} + +std::string CreateInstanceResult::getResult()const +{ + return result_; +} + diff --git a/openanalytics-open/src/model/CreateServiceLinkedRoleRequest.cc b/openanalytics-open/src/model/CreateServiceLinkedRoleRequest.cc new file mode 100644 index 000000000..3157bb4c7 --- /dev/null +++ b/openanalytics-open/src/model/CreateServiceLinkedRoleRequest.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::Openanalytics_open::Model::CreateServiceLinkedRoleRequest; + +CreateServiceLinkedRoleRequest::CreateServiceLinkedRoleRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "CreateServiceLinkedRole") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateServiceLinkedRoleRequest::~CreateServiceLinkedRoleRequest() +{} + +std::string CreateServiceLinkedRoleRequest::getRegionId()const +{ + return regionId_; +} + +void CreateServiceLinkedRoleRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setBodyParameter("RegionId", regionId); +} + diff --git a/openanalytics-open/src/model/CreateServiceLinkedRoleResult.cc b/openanalytics-open/src/model/CreateServiceLinkedRoleResult.cc new file mode 100644 index 000000000..d9faa3270 --- /dev/null +++ b/openanalytics-open/src/model/CreateServiceLinkedRoleResult.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::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +CreateServiceLinkedRoleResult::CreateServiceLinkedRoleResult() : + ServiceResult() +{} + +CreateServiceLinkedRoleResult::CreateServiceLinkedRoleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateServiceLinkedRoleResult::~CreateServiceLinkedRoleResult() +{} + +void CreateServiceLinkedRoleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DataItem"]; + for (auto valueDataDataItem : allDataNode) + { + DataItem dataObject; + if(!valueDataDataItem["Arn"].isNull()) + dataObject.arn = valueDataDataItem["Arn"].asString(); + if(!valueDataDataItem["AssumeRolePolicyDocument"].isNull()) + dataObject.assumeRolePolicyDocument = valueDataDataItem["AssumeRolePolicyDocument"].asString(); + if(!valueDataDataItem["CreateDate"].isNull()) + dataObject.createDate = valueDataDataItem["CreateDate"].asString(); + if(!valueDataDataItem["Description"].isNull()) + dataObject.description = valueDataDataItem["Description"].asString(); + if(!valueDataDataItem["IsServiceLinkRole"].isNull()) + dataObject.isServiceLinkRole = valueDataDataItem["IsServiceLinkRole"].asString() == "true"; + if(!valueDataDataItem["RoleId"].isNull()) + dataObject.roleId = valueDataDataItem["RoleId"].asString(); + if(!valueDataDataItem["RoleName"].isNull()) + dataObject.roleName = valueDataDataItem["RoleName"].asString(); + if(!valueDataDataItem["RolePrincipalName"].isNull()) + dataObject.rolePrincipalName = valueDataDataItem["RolePrincipalName"].asString(); + data_.push_back(dataObject); + } + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + +} + +std::vector CreateServiceLinkedRoleResult::getData()const +{ + return data_; +} + +std::string CreateServiceLinkedRoleResult::getRegionId()const +{ + return regionId_; +} + diff --git a/openanalytics-open/src/model/CreateTableRequest.cc b/openanalytics-open/src/model/CreateTableRequest.cc new file mode 100644 index 000000000..0d3d36fa8 --- /dev/null +++ b/openanalytics-open/src/model/CreateTableRequest.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::Openanalytics_open::Model::CreateTableRequest; + +CreateTableRequest::CreateTableRequest() : + RpcServiceRequest("openanalytics-open", "2020-09-28", "CreateTable") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateTableRequest::~CreateTableRequest() +{} + +std::string CreateTableRequest::getTableType()const +{ + return tableType_; +} + +void CreateTableRequest::setTableType(const std::string& tableType) +{ + tableType_ = tableType; + setParameter("TableType", tableType); +} + +std::string CreateTableRequest::getViewOriginalText()const +{ + return viewOriginalText_; +} + +void CreateTableRequest::setViewOriginalText(const std::string& viewOriginalText) +{ + viewOriginalText_ = viewOriginalText; + setParameter("ViewOriginalText", viewOriginalText); +} + +Struct CreateTableRequest::getStorageDescriptor()const +{ + return storageDescriptor_; +} + +void CreateTableRequest::setStorageDescriptor(const Struct& storageDescriptor) +{ + storageDescriptor_ = storageDescriptor; + setParameter("StorageDescriptor", std::to_string(storageDescriptor)); +} + +Array CreateTableRequest::getPartitionKeys()const +{ + return partitionKeys_; +} + +void CreateTableRequest::setPartitionKeys(const Array& partitionKeys) +{ + partitionKeys_ = partitionKeys; + setParameter("PartitionKeys", std::to_string(partitionKeys)); +} + +std::string CreateTableRequest::getDbName()const +{ + return dbName_; +} + +void CreateTableRequest::setDbName(const std::string& dbName) +{ + dbName_ = dbName; + setParameter("DbName", dbName); +} + +std::string CreateTableRequest::getViewExpandedText()const +{ + return viewExpandedText_; +} + +void CreateTableRequest::setViewExpandedText(const std::string& viewExpandedText) +{ + viewExpandedText_ = viewExpandedText; + setParameter("ViewExpandedText", viewExpandedText); +} + +std::string CreateTableRequest::getTableName()const +{ + return tableName_; +} + +void CreateTableRequest::setTableName(const std::string& tableName) +{ + tableName_ = tableName; + setParameter("TableName", tableName); +} + +std::string CreateTableRequest::getParameters()const +{ + return parameters_; +} + +void CreateTableRequest::setParameters(const std::string& parameters) +{ + parameters_ = parameters; + setParameter("Parameters", parameters); +} + diff --git a/openanalytics-open/src/model/CreateTableResult.cc b/openanalytics-open/src/model/CreateTableResult.cc new file mode 100644 index 000000000..6d190e860 --- /dev/null +++ b/openanalytics-open/src/model/CreateTableResult.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::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +CreateTableResult::CreateTableResult() : + ServiceResult() +{} + +CreateTableResult::CreateTableResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateTableResult::~CreateTableResult() +{} + +void CreateTableResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = std::stol(value["Data"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string CreateTableResult::getMessage()const +{ + return message_; +} + +long CreateTableResult::getData()const +{ + return data_; +} + +std::string CreateTableResult::getCode()const +{ + return code_; +} + +bool CreateTableResult::getSuccess()const +{ + return success_; +} + diff --git a/openanalytics-open/src/model/CreateUserNetConfigRequest.cc b/openanalytics-open/src/model/CreateUserNetConfigRequest.cc new file mode 100644 index 000000000..90a94fd42 --- /dev/null +++ b/openanalytics-open/src/model/CreateUserNetConfigRequest.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::Openanalytics_open::Model::CreateUserNetConfigRequest; + +CreateUserNetConfigRequest::CreateUserNetConfigRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "CreateUserNetConfig") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateUserNetConfigRequest::~CreateUserNetConfigRequest() +{} + +std::string CreateUserNetConfigRequest::getSwitchId()const +{ + return switchId_; +} + +void CreateUserNetConfigRequest::setSwitchId(const std::string& switchId) +{ + switchId_ = switchId; + setBodyParameter("SwitchId", switchId); +} + +std::string CreateUserNetConfigRequest::getSecurityGroupId()const +{ + return securityGroupId_; +} + +void CreateUserNetConfigRequest::setSecurityGroupId(const std::string& securityGroupId) +{ + securityGroupId_ = securityGroupId; + setBodyParameter("SecurityGroupId", securityGroupId); +} + +std::string CreateUserNetConfigRequest::getVcName()const +{ + return vcName_; +} + +void CreateUserNetConfigRequest::setVcName(const std::string& vcName) +{ + vcName_ = vcName; + setBodyParameter("VcName", vcName); +} + diff --git a/openanalytics-open/src/model/CreateUserNetConfigResult.cc b/openanalytics-open/src/model/CreateUserNetConfigResult.cc new file mode 100644 index 000000000..361f761b7 --- /dev/null +++ b/openanalytics-open/src/model/CreateUserNetConfigResult.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::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +CreateUserNetConfigResult::CreateUserNetConfigResult() : + ServiceResult() +{} + +CreateUserNetConfigResult::CreateUserNetConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateUserNetConfigResult::~CreateUserNetConfigResult() +{} + +void CreateUserNetConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/openanalytics-open/src/model/CreateVirtualClusterForSparkRequest.cc b/openanalytics-open/src/model/CreateVirtualClusterForSparkRequest.cc new file mode 100644 index 000000000..b286f0fa7 --- /dev/null +++ b/openanalytics-open/src/model/CreateVirtualClusterForSparkRequest.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::Openanalytics_open::Model::CreateVirtualClusterForSparkRequest; + +CreateVirtualClusterForSparkRequest::CreateVirtualClusterForSparkRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "CreateVirtualClusterForSpark") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateVirtualClusterForSparkRequest::~CreateVirtualClusterForSparkRequest() +{} + +std::string CreateVirtualClusterForSparkRequest::getDefaultExecutorSpecName()const +{ + return defaultExecutorSpecName_; +} + +void CreateVirtualClusterForSparkRequest::setDefaultExecutorSpecName(const std::string& defaultExecutorSpecName) +{ + defaultExecutorSpecName_ = defaultExecutorSpecName; + setBodyParameter("DefaultExecutorSpecName", defaultExecutorSpecName); +} + +float CreateVirtualClusterForSparkRequest::getMaxMemory()const +{ + return maxMemory_; +} + +void CreateVirtualClusterForSparkRequest::setMaxMemory(float maxMemory) +{ + maxMemory_ = maxMemory; + setBodyParameter("MaxMemory", std::to_string(maxMemory)); +} + +std::string CreateVirtualClusterForSparkRequest::getSparkModuleReleaseName()const +{ + return sparkModuleReleaseName_; +} + +void CreateVirtualClusterForSparkRequest::setSparkModuleReleaseName(const std::string& sparkModuleReleaseName) +{ + sparkModuleReleaseName_ = sparkModuleReleaseName; + setBodyParameter("SparkModuleReleaseName", sparkModuleReleaseName); +} + +std::string CreateVirtualClusterForSparkRequest::getDescription()const +{ + return description_; +} + +void CreateVirtualClusterForSparkRequest::setDescription(const std::string& description) +{ + description_ = description; + setBodyParameter("Description", description); +} + +long CreateVirtualClusterForSparkRequest::getDefaultExecutorNumbers()const +{ + return defaultExecutorNumbers_; +} + +void CreateVirtualClusterForSparkRequest::setDefaultExecutorNumbers(long defaultExecutorNumbers) +{ + defaultExecutorNumbers_ = defaultExecutorNumbers; + setBodyParameter("DefaultExecutorNumbers", std::to_string(defaultExecutorNumbers)); +} + +float CreateVirtualClusterForSparkRequest::getMaxCpu()const +{ + return maxCpu_; +} + +void CreateVirtualClusterForSparkRequest::setMaxCpu(float maxCpu) +{ + maxCpu_ = maxCpu; + setBodyParameter("MaxCpu", std::to_string(maxCpu)); +} + +std::string CreateVirtualClusterForSparkRequest::getName()const +{ + return name_; +} + +void CreateVirtualClusterForSparkRequest::setName(const std::string& name) +{ + name_ = name; + setBodyParameter("Name", name); +} + +std::string CreateVirtualClusterForSparkRequest::getDefaultDriverSpecName()const +{ + return defaultDriverSpecName_; +} + +void CreateVirtualClusterForSparkRequest::setDefaultDriverSpecName(const std::string& defaultDriverSpecName) +{ + defaultDriverSpecName_ = defaultDriverSpecName; + setBodyParameter("DefaultDriverSpecName", defaultDriverSpecName); +} + diff --git a/openanalytics-open/src/model/CreateVirtualClusterForSparkResult.cc b/openanalytics-open/src/model/CreateVirtualClusterForSparkResult.cc new file mode 100644 index 000000000..422206daa --- /dev/null +++ b/openanalytics-open/src/model/CreateVirtualClusterForSparkResult.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::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +CreateVirtualClusterForSparkResult::CreateVirtualClusterForSparkResult() : + ServiceResult() +{} + +CreateVirtualClusterForSparkResult::CreateVirtualClusterForSparkResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateVirtualClusterForSparkResult::~CreateVirtualClusterForSparkResult() +{} + +void CreateVirtualClusterForSparkResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/openanalytics-open/src/model/DecodeStsTokenRequest.cc b/openanalytics-open/src/model/DecodeStsTokenRequest.cc new file mode 100644 index 000000000..9e31d0cc7 --- /dev/null +++ b/openanalytics-open/src/model/DecodeStsTokenRequest.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::Openanalytics_open::Model::DecodeStsTokenRequest; + +DecodeStsTokenRequest::DecodeStsTokenRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "DecodeStsToken") +{ + setMethod(HttpRequest::Method::Post); +} + +DecodeStsTokenRequest::~DecodeStsTokenRequest() +{} + +std::string DecodeStsTokenRequest::getRegionId()const +{ + return regionId_; +} + +void DecodeStsTokenRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setBodyParameter("RegionId", regionId); +} + +std::string DecodeStsTokenRequest::getAccessKey()const +{ + return accessKey_; +} + +void DecodeStsTokenRequest::setAccessKey(const std::string& accessKey) +{ + accessKey_ = accessKey; + setParameter("AccessKey", accessKey); +} + +std::string DecodeStsTokenRequest::getToken()const +{ + return token_; +} + +void DecodeStsTokenRequest::setToken(const std::string& token) +{ + token_ = token; + setParameter("Token", token); +} + diff --git a/openanalytics-open/src/model/DecodeStsTokenResult.cc b/openanalytics-open/src/model/DecodeStsTokenResult.cc new file mode 100644 index 000000000..c0ba50e70 --- /dev/null +++ b/openanalytics-open/src/model/DecodeStsTokenResult.cc @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +DecodeStsTokenResult::DecodeStsTokenResult() : + ServiceResult() +{} + +DecodeStsTokenResult::DecodeStsTokenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DecodeStsTokenResult::~DecodeStsTokenResult() +{} + +void DecodeStsTokenResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["AccountUid"].isNull()) + data_.accountUid = std::stol(dataNode["AccountUid"].asString()); + if(!dataNode["AccountBid"].isNull()) + data_.accountBid = std::stol(dataNode["AccountBid"].asString()); + if(!dataNode["GrantorId"].isNull()) + data_.grantorId = std::stol(dataNode["GrantorId"].asString()); + if(!dataNode["TokenPrincipalId"].isNull()) + data_.tokenPrincipalId = dataNode["TokenPrincipalId"].asString(); + if(!dataNode["TokenPrincipalName"].isNull()) + data_.tokenPrincipalName = dataNode["TokenPrincipalName"].asString(); + if(!dataNode["MfaAuthenticated"].isNull()) + data_.mfaAuthenticated = dataNode["MfaAuthenticated"].asString() == "true"; + if(!dataNode["RoleId"].isNull()) + data_.roleId = std::stol(dataNode["RoleId"].asString()); + if(!dataNode["AkProxy"].isNull()) + data_.akProxy = dataNode["AkProxy"].asString(); + if(!dataNode["ProxyTrustTransportInfo"].isNull()) + data_.proxyTrustTransportInfo = dataNode["ProxyTrustTransportInfo"].asString() == "true"; + if(!dataNode["Policy"].isNull()) + data_.policy = dataNode["Policy"].asString(); + if(!dataNode["RoleName"].isNull()) + data_.roleName = dataNode["RoleName"].asString(); + if(!dataNode["PlayerUid"].isNull()) + data_.playerUid = dataNode["PlayerUid"].asString(); + if(!dataNode["ExpireDate"].isNull()) + data_.expireDate = std::stol(dataNode["ExpireDate"].asString()); + if(!dataNode["TokenType"].isNull()) + data_.tokenType = dataNode["TokenType"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + +} + +DecodeStsTokenResult::Data DecodeStsTokenResult::getData()const +{ + return data_; +} + +std::string DecodeStsTokenResult::getRegionId()const +{ + return regionId_; +} + diff --git a/openanalytics-open/src/model/DeleteAccountRequest.cc b/openanalytics-open/src/model/DeleteAccountRequest.cc new file mode 100644 index 000000000..ae2b55a24 --- /dev/null +++ b/openanalytics-open/src/model/DeleteAccountRequest.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::Openanalytics_open::Model::DeleteAccountRequest; + +DeleteAccountRequest::DeleteAccountRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "DeleteAccount") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteAccountRequest::~DeleteAccountRequest() +{} + +std::string DeleteAccountRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteAccountRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setBodyParameter("RegionId", regionId); +} + +std::string DeleteAccountRequest::getAccountName()const +{ + return accountName_; +} + +void DeleteAccountRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setBodyParameter("AccountName", accountName); +} + +bool DeleteAccountRequest::getIsShort()const +{ + return isShort_; +} + +void DeleteAccountRequest::setIsShort(bool isShort) +{ + isShort_ = isShort; + setBodyParameter("IsShort", isShort ? "true" : "false"); +} + +bool DeleteAccountRequest::getIsServiceUser()const +{ + return isServiceUser_; +} + +void DeleteAccountRequest::setIsServiceUser(bool isServiceUser) +{ + isServiceUser_ = isServiceUser; + setBodyParameter("IsServiceUser", isServiceUser ? "true" : "false"); +} + diff --git a/openanalytics-open/src/model/DeleteAccountResult.cc b/openanalytics-open/src/model/DeleteAccountResult.cc new file mode 100644 index 000000000..030d7e0e8 --- /dev/null +++ b/openanalytics-open/src/model/DeleteAccountResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +DeleteAccountResult::DeleteAccountResult() : + ServiceResult() +{} + +DeleteAccountResult::DeleteAccountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAccountResult::~DeleteAccountResult() +{} + +void DeleteAccountResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + +} + +std::string DeleteAccountResult::getRegionId()const +{ + return regionId_; +} + diff --git a/openanalytics-open/src/model/DeleteUserNetConfigRequest.cc b/openanalytics-open/src/model/DeleteUserNetConfigRequest.cc new file mode 100644 index 000000000..f939dda3e --- /dev/null +++ b/openanalytics-open/src/model/DeleteUserNetConfigRequest.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::Openanalytics_open::Model::DeleteUserNetConfigRequest; + +DeleteUserNetConfigRequest::DeleteUserNetConfigRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "DeleteUserNetConfig") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteUserNetConfigRequest::~DeleteUserNetConfigRequest() +{} + +std::string DeleteUserNetConfigRequest::getName()const +{ + return name_; +} + +void DeleteUserNetConfigRequest::setName(const std::string& name) +{ + name_ = name; + setBodyParameter("Name", name); +} + diff --git a/openanalytics-open/src/model/DeleteUserNetConfigResult.cc b/openanalytics-open/src/model/DeleteUserNetConfigResult.cc new file mode 100644 index 000000000..bc8575faf --- /dev/null +++ b/openanalytics-open/src/model/DeleteUserNetConfigResult.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::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +DeleteUserNetConfigResult::DeleteUserNetConfigResult() : + ServiceResult() +{} + +DeleteUserNetConfigResult::DeleteUserNetConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteUserNetConfigResult::~DeleteUserNetConfigResult() +{} + +void DeleteUserNetConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/openanalytics-open/src/model/DescribeCapacityRequest.cc b/openanalytics-open/src/model/DescribeCapacityRequest.cc new file mode 100644 index 000000000..1f647d005 --- /dev/null +++ b/openanalytics-open/src/model/DescribeCapacityRequest.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::Openanalytics_open::Model::DescribeCapacityRequest; + +DescribeCapacityRequest::DescribeCapacityRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "DescribeCapacity") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeCapacityRequest::~DescribeCapacityRequest() +{} + +std::string DescribeCapacityRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeCapacityRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setBodyParameter("RegionId", regionId); +} + +std::string DescribeCapacityRequest::getExternalBizAliyunId()const +{ + return externalBizAliyunId_; +} + +void DescribeCapacityRequest::setExternalBizAliyunId(const std::string& externalBizAliyunId) +{ + externalBizAliyunId_ = externalBizAliyunId; + setBodyParameter("ExternalBizAliyunId", externalBizAliyunId); +} + diff --git a/openanalytics-open/src/model/DescribeCapacityResult.cc b/openanalytics-open/src/model/DescribeCapacityResult.cc new file mode 100644 index 000000000..1ee276e3e --- /dev/null +++ b/openanalytics-open/src/model/DescribeCapacityResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +DescribeCapacityResult::DescribeCapacityResult() : + ServiceResult() +{} + +DescribeCapacityResult::DescribeCapacityResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCapacityResult::~DescribeCapacityResult() +{} + +void DescribeCapacityResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["Storage"].isNull()) + storage_ = std::stoi(value["Storage"].asString()); + +} + +int DescribeCapacityResult::getStorage()const +{ + return storage_; +} + +std::string DescribeCapacityResult::getRegionId()const +{ + return regionId_; +} + diff --git a/openanalytics-open/src/model/DescribeDataLakeAnalyticsServiceRequest.cc b/openanalytics-open/src/model/DescribeDataLakeAnalyticsServiceRequest.cc new file mode 100644 index 000000000..c0024ea2b --- /dev/null +++ b/openanalytics-open/src/model/DescribeDataLakeAnalyticsServiceRequest.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::Openanalytics_open::Model::DescribeDataLakeAnalyticsServiceRequest; + +DescribeDataLakeAnalyticsServiceRequest::DescribeDataLakeAnalyticsServiceRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "DescribeDataLakeAnalyticsService") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeDataLakeAnalyticsServiceRequest::~DescribeDataLakeAnalyticsServiceRequest() +{} + +std::string DescribeDataLakeAnalyticsServiceRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeDataLakeAnalyticsServiceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setBodyParameter("RegionId", regionId); +} + +std::string DescribeDataLakeAnalyticsServiceRequest::getInternetChargeType()const +{ + return internetChargeType_; +} + +void DescribeDataLakeAnalyticsServiceRequest::setInternetChargeType(const std::string& internetChargeType) +{ + internetChargeType_ = internetChargeType; + setParameter("InternetChargeType", internetChargeType); +} + diff --git a/openanalytics-open/src/model/DescribeDataLakeAnalyticsServiceResult.cc b/openanalytics-open/src/model/DescribeDataLakeAnalyticsServiceResult.cc new file mode 100644 index 000000000..d9c48fc81 --- /dev/null +++ b/openanalytics-open/src/model/DescribeDataLakeAnalyticsServiceResult.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::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +DescribeDataLakeAnalyticsServiceResult::DescribeDataLakeAnalyticsServiceResult() : + ServiceResult() +{} + +DescribeDataLakeAnalyticsServiceResult::DescribeDataLakeAnalyticsServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDataLakeAnalyticsServiceResult::~DescribeDataLakeAnalyticsServiceResult() +{} + +void DescribeDataLakeAnalyticsServiceResult::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["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["ErrorInfo"].isNull()) + errorInfo_ = value["ErrorInfo"].asString(); + if(!value["Result"].isNull()) + result_ = value["Result"].asString(); + +} + +std::string DescribeDataLakeAnalyticsServiceResult::getErrorInfo()const +{ + return errorInfo_; +} + +std::string DescribeDataLakeAnalyticsServiceResult::getErrorCode()const +{ + return errorCode_; +} + +bool DescribeDataLakeAnalyticsServiceResult::getSuccess()const +{ + return success_; +} + +std::string DescribeDataLakeAnalyticsServiceResult::getResult()const +{ + return result_; +} + diff --git a/openanalytics-open/src/model/DescribeRegionListRequest.cc b/openanalytics-open/src/model/DescribeRegionListRequest.cc new file mode 100644 index 000000000..a7d79b0e3 --- /dev/null +++ b/openanalytics-open/src/model/DescribeRegionListRequest.cc @@ -0,0 +1,29 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Openanalytics_open::Model::DescribeRegionListRequest; + +DescribeRegionListRequest::DescribeRegionListRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "DescribeRegionList") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeRegionListRequest::~DescribeRegionListRequest() +{} + diff --git a/openanalytics-open/src/model/DescribeRegionListResult.cc b/openanalytics-open/src/model/DescribeRegionListResult.cc new file mode 100644 index 000000000..8ef4ac4e0 --- /dev/null +++ b/openanalytics-open/src/model/DescribeRegionListResult.cc @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +DescribeRegionListResult::DescribeRegionListResult() : + ServiceResult() +{} + +DescribeRegionListResult::DescribeRegionListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRegionListResult::~DescribeRegionListResult() +{} + +void DescribeRegionListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRegionListNode = value["RegionList"]["RegionListItem"]; + for (auto valueRegionListRegionListItem : allRegionListNode) + { + RegionListItem regionListObject; + if(!valueRegionListRegionListItem["regionID"].isNull()) + regionListObject.regionID = valueRegionListRegionListItem["regionID"].asString(); + regionList_.push_back(regionListObject); + } + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + +} + +std::vector DescribeRegionListResult::getRegionList()const +{ + return regionList_; +} + +std::string DescribeRegionListResult::getRegionId()const +{ + return regionId_; +} + diff --git a/openanalytics-open/src/model/DescribeVirtualClusterRequest.cc b/openanalytics-open/src/model/DescribeVirtualClusterRequest.cc new file mode 100644 index 000000000..b135da4de --- /dev/null +++ b/openanalytics-open/src/model/DescribeVirtualClusterRequest.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::Openanalytics_open::Model::DescribeVirtualClusterRequest; + +DescribeVirtualClusterRequest::DescribeVirtualClusterRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "DescribeVirtualCluster") +{ + setMethod(HttpRequest::Method::Get); +} + +DescribeVirtualClusterRequest::~DescribeVirtualClusterRequest() +{} + +std::string DescribeVirtualClusterRequest::getName()const +{ + return name_; +} + +void DescribeVirtualClusterRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/openanalytics-open/src/model/DescribeVirtualClusterResult.cc b/openanalytics-open/src/model/DescribeVirtualClusterResult.cc new file mode 100644 index 000000000..f070408bf --- /dev/null +++ b/openanalytics-open/src/model/DescribeVirtualClusterResult.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +DescribeVirtualClusterResult::DescribeVirtualClusterResult() : + ServiceResult() +{} + +DescribeVirtualClusterResult::DescribeVirtualClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVirtualClusterResult::~DescribeVirtualClusterResult() +{} + +void DescribeVirtualClusterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DataItem"]; + for (auto valueDataDataItem : allDataNode) + { + DataItem dataObject; + if(!valueDataDataItem["Name"].isNull()) + dataObject.name = valueDataDataItem["Name"].asString(); + if(!valueDataDataItem["Type"].isNull()) + dataObject.type = valueDataDataItem["Type"].asString(); + if(!valueDataDataItem["Status"].isNull()) + dataObject.status = valueDataDataItem["Status"].asString(); + if(!valueDataDataItem["CreatorId"].isNull()) + dataObject.creatorId = valueDataDataItem["CreatorId"].asString(); + if(!valueDataDataItem["CreateTime"].isNull()) + dataObject.createTime = valueDataDataItem["CreateTime"].asString(); + if(!valueDataDataItem["SparkEngineModuleName"].isNull()) + dataObject.sparkEngineModuleName = valueDataDataItem["SparkEngineModuleName"].asString(); + if(!valueDataDataItem["DefaultExecutorSpecName"].isNull()) + dataObject.defaultExecutorSpecName = valueDataDataItem["DefaultExecutorSpecName"].asString(); + if(!valueDataDataItem["DefaultDriverSpecName"].isNull()) + dataObject.defaultDriverSpecName = valueDataDataItem["DefaultDriverSpecName"].asString(); + if(!valueDataDataItem["DefaultExecutorNumbers"].isNull()) + dataObject.defaultExecutorNumbers = std::stol(valueDataDataItem["DefaultExecutorNumbers"].asString()); + if(!valueDataDataItem["SparkVersionDescription"].isNull()) + dataObject.sparkVersionDescription = valueDataDataItem["SparkVersionDescription"].asString(); + if(!valueDataDataItem["MaxCpu"].isNull()) + dataObject.maxCpu = std::stof(valueDataDataItem["MaxCpu"].asString()); + if(!valueDataDataItem["MaxMemory"].isNull()) + dataObject.maxMemory = std::stof(valueDataDataItem["MaxMemory"].asString()); + if(!valueDataDataItem["MaxCpuLimit"].isNull()) + dataObject.maxCpuLimit = std::stof(valueDataDataItem["MaxCpuLimit"].asString()); + if(!valueDataDataItem["MaxMemoryLimit"].isNull()) + dataObject.maxMemoryLimit = std::stof(valueDataDataItem["MaxMemoryLimit"].asString()); + data_.push_back(dataObject); + } + +} + +std::vector DescribeVirtualClusterResult::getData()const +{ + return data_; +} + diff --git a/openanalytics-open/src/model/DescribeVirtualClusterV2Request.cc b/openanalytics-open/src/model/DescribeVirtualClusterV2Request.cc new file mode 100644 index 000000000..02490a39e --- /dev/null +++ b/openanalytics-open/src/model/DescribeVirtualClusterV2Request.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::Openanalytics_open::Model::DescribeVirtualClusterV2Request; + +DescribeVirtualClusterV2Request::DescribeVirtualClusterV2Request() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "DescribeVirtualClusterV2") +{ + setMethod(HttpRequest::Method::Get); +} + +DescribeVirtualClusterV2Request::~DescribeVirtualClusterV2Request() +{} + +std::string DescribeVirtualClusterV2Request::getName()const +{ + return name_; +} + +void DescribeVirtualClusterV2Request::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/openanalytics-open/src/model/DescribeVirtualClusterV2Result.cc b/openanalytics-open/src/model/DescribeVirtualClusterV2Result.cc new file mode 100644 index 000000000..030ae20be --- /dev/null +++ b/openanalytics-open/src/model/DescribeVirtualClusterV2Result.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::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +DescribeVirtualClusterV2Result::DescribeVirtualClusterV2Result() : + ServiceResult() +{} + +DescribeVirtualClusterV2Result::DescribeVirtualClusterV2Result(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVirtualClusterV2Result::~DescribeVirtualClusterV2Result() +{} + +void DescribeVirtualClusterV2Result::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DataItem"]; + for (auto valueDataDataItem : allDataNode) + { + DataItem dataObject; + if(!valueDataDataItem["Name"].isNull()) + dataObject.name = valueDataDataItem["Name"].asString(); + if(!valueDataDataItem["Type"].isNull()) + dataObject.type = valueDataDataItem["Type"].asString(); + if(!valueDataDataItem["Status"].isNull()) + dataObject.status = valueDataDataItem["Status"].asString(); + if(!valueDataDataItem["CreatorId"].isNull()) + dataObject.creatorId = valueDataDataItem["CreatorId"].asString(); + if(!valueDataDataItem["CreateTime"].isNull()) + dataObject.createTime = valueDataDataItem["CreateTime"].asString(); + if(!valueDataDataItem["MaxCpu"].isNull()) + dataObject.maxCpu = std::stof(valueDataDataItem["MaxCpu"].asString()); + if(!valueDataDataItem["ChargeType"].isNull()) + dataObject.chargeType = valueDataDataItem["ChargeType"].asString(); + if(!valueDataDataItem["MinCpu"].isNull()) + dataObject.minCpu = valueDataDataItem["MinCpu"].asString(); + auto allUserNetWorkConfigListNode = valueDataDataItem["UserNetWorkConfigList"]["UserNetWorkConfigListItem"]; + for (auto valueDataDataItemUserNetWorkConfigListUserNetWorkConfigListItem : allUserNetWorkConfigListNode) + { + DataItem::UserNetWorkConfigListItem userNetWorkConfigListObject; + if(!valueDataDataItemUserNetWorkConfigListUserNetWorkConfigListItem["SwitchId"].isNull()) + userNetWorkConfigListObject.switchId = valueDataDataItemUserNetWorkConfigListUserNetWorkConfigListItem["SwitchId"].asString(); + if(!valueDataDataItemUserNetWorkConfigListUserNetWorkConfigListItem["SecurityGroupId"].isNull()) + userNetWorkConfigListObject.securityGroupId = valueDataDataItemUserNetWorkConfigListUserNetWorkConfigListItem["SecurityGroupId"].asString(); + if(!valueDataDataItemUserNetWorkConfigListUserNetWorkConfigListItem["Id"].isNull()) + userNetWorkConfigListObject.id = std::stol(valueDataDataItemUserNetWorkConfigListUserNetWorkConfigListItem["Id"].asString()); + dataObject.userNetWorkConfigList.push_back(userNetWorkConfigListObject); + } + auto sparkEngineConfigNode = value["SparkEngineConfig"]; + if(!sparkEngineConfigNode["SparkModuleReleaseName"].isNull()) + dataObject.sparkEngineConfig.sparkModuleReleaseName = sparkEngineConfigNode["SparkModuleReleaseName"].asString(); + if(!sparkEngineConfigNode["DefaultExecutorSpecName"].isNull()) + dataObject.sparkEngineConfig.defaultExecutorSpecName = sparkEngineConfigNode["DefaultExecutorSpecName"].asString(); + if(!sparkEngineConfigNode["DefaultDriverSpecName"].isNull()) + dataObject.sparkEngineConfig.defaultDriverSpecName = sparkEngineConfigNode["DefaultDriverSpecName"].asString(); + if(!sparkEngineConfigNode["DefaultExecutorNumbers"].isNull()) + dataObject.sparkEngineConfig.defaultExecutorNumbers = std::stol(sparkEngineConfigNode["DefaultExecutorNumbers"].asString()); + if(!sparkEngineConfigNode["SparkVersionDescription"].isNull()) + dataObject.sparkEngineConfig.sparkVersionDescription = sparkEngineConfigNode["SparkVersionDescription"].asString(); + data_.push_back(dataObject); + } + +} + +std::vector DescribeVirtualClusterV2Result::getData()const +{ + return data_; +} + diff --git a/openanalytics-open/src/model/DestroyVirtualClusterRequest.cc b/openanalytics-open/src/model/DestroyVirtualClusterRequest.cc new file mode 100644 index 000000000..592a57d76 --- /dev/null +++ b/openanalytics-open/src/model/DestroyVirtualClusterRequest.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::Openanalytics_open::Model::DestroyVirtualClusterRequest; + +DestroyVirtualClusterRequest::DestroyVirtualClusterRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "DestroyVirtualCluster") +{ + setMethod(HttpRequest::Method::Post); +} + +DestroyVirtualClusterRequest::~DestroyVirtualClusterRequest() +{} + +std::string DestroyVirtualClusterRequest::getName()const +{ + return name_; +} + +void DestroyVirtualClusterRequest::setName(const std::string& name) +{ + name_ = name; + setBodyParameter("Name", name); +} + diff --git a/openanalytics-open/src/model/DestroyVirtualClusterResult.cc b/openanalytics-open/src/model/DestroyVirtualClusterResult.cc new file mode 100644 index 000000000..403aac6c0 --- /dev/null +++ b/openanalytics-open/src/model/DestroyVirtualClusterResult.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::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +DestroyVirtualClusterResult::DestroyVirtualClusterResult() : + ServiceResult() +{} + +DestroyVirtualClusterResult::DestroyVirtualClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DestroyVirtualClusterResult::~DestroyVirtualClusterResult() +{} + +void DestroyVirtualClusterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/openanalytics-open/src/model/DropDatabaseRequest.cc b/openanalytics-open/src/model/DropDatabaseRequest.cc new file mode 100644 index 000000000..942a2b01e --- /dev/null +++ b/openanalytics-open/src/model/DropDatabaseRequest.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::Openanalytics_open::Model::DropDatabaseRequest; + +DropDatabaseRequest::DropDatabaseRequest() : + RpcServiceRequest("openanalytics-open", "2020-09-28", "DropDatabase") +{ + setMethod(HttpRequest::Method::Post); +} + +DropDatabaseRequest::~DropDatabaseRequest() +{} + +bool DropDatabaseRequest::getCascade()const +{ + return cascade_; +} + +void DropDatabaseRequest::setCascade(bool cascade) +{ + cascade_ = cascade; + setParameter("Cascade", cascade ? "true" : "false"); +} + +std::string DropDatabaseRequest::getName()const +{ + return name_; +} + +void DropDatabaseRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/openanalytics-open/src/model/DropDatabaseResult.cc b/openanalytics-open/src/model/DropDatabaseResult.cc new file mode 100644 index 000000000..23d7dedf6 --- /dev/null +++ b/openanalytics-open/src/model/DropDatabaseResult.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::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +DropDatabaseResult::DropDatabaseResult() : + ServiceResult() +{} + +DropDatabaseResult::DropDatabaseResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DropDatabaseResult::~DropDatabaseResult() +{} + +void DropDatabaseResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DropDatabaseResult::getMessage()const +{ + return message_; +} + +std::string DropDatabaseResult::getData()const +{ + return data_; +} + +std::string DropDatabaseResult::getCode()const +{ + return code_; +} + +bool DropDatabaseResult::getSuccess()const +{ + return success_; +} + diff --git a/openanalytics-open/src/model/DropPartitionRequest.cc b/openanalytics-open/src/model/DropPartitionRequest.cc new file mode 100644 index 000000000..054b8f753 --- /dev/null +++ b/openanalytics-open/src/model/DropPartitionRequest.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::Openanalytics_open::Model::DropPartitionRequest; + +DropPartitionRequest::DropPartitionRequest() : + RpcServiceRequest("openanalytics-open", "2020-09-28", "DropPartition") +{ + setMethod(HttpRequest::Method::Post); +} + +DropPartitionRequest::~DropPartitionRequest() +{} + +std::string DropPartitionRequest::getDbName()const +{ + return dbName_; +} + +void DropPartitionRequest::setDbName(const std::string& dbName) +{ + dbName_ = dbName; + setParameter("DbName", dbName); +} + +Array DropPartitionRequest::getPartValues()const +{ + return partValues_; +} + +void DropPartitionRequest::setPartValues(const Array& partValues) +{ + partValues_ = partValues; + setParameter("PartValues", std::to_string(partValues)); +} + +std::string DropPartitionRequest::getTableName()const +{ + return tableName_; +} + +void DropPartitionRequest::setTableName(const std::string& tableName) +{ + tableName_ = tableName; + setParameter("TableName", tableName); +} + diff --git a/openanalytics-open/src/model/DropPartitionResult.cc b/openanalytics-open/src/model/DropPartitionResult.cc new file mode 100644 index 000000000..e2a0ba1bc --- /dev/null +++ b/openanalytics-open/src/model/DropPartitionResult.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::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +DropPartitionResult::DropPartitionResult() : + ServiceResult() +{} + +DropPartitionResult::DropPartitionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DropPartitionResult::~DropPartitionResult() +{} + +void DropPartitionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DropPartitionResult::getMessage()const +{ + return message_; +} + +bool DropPartitionResult::getData()const +{ + return data_; +} + +std::string DropPartitionResult::getCode()const +{ + return code_; +} + +bool DropPartitionResult::getSuccess()const +{ + return success_; +} + diff --git a/openanalytics-open/src/model/DropTableRequest.cc b/openanalytics-open/src/model/DropTableRequest.cc new file mode 100644 index 000000000..1660d9dbc --- /dev/null +++ b/openanalytics-open/src/model/DropTableRequest.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::Openanalytics_open::Model::DropTableRequest; + +DropTableRequest::DropTableRequest() : + RpcServiceRequest("openanalytics-open", "2020-09-28", "DropTable") +{ + setMethod(HttpRequest::Method::Post); +} + +DropTableRequest::~DropTableRequest() +{} + +std::string DropTableRequest::getDbName()const +{ + return dbName_; +} + +void DropTableRequest::setDbName(const std::string& dbName) +{ + dbName_ = dbName; + setParameter("DbName", dbName); +} + +std::string DropTableRequest::getTableName()const +{ + return tableName_; +} + +void DropTableRequest::setTableName(const std::string& tableName) +{ + tableName_ = tableName; + setParameter("TableName", tableName); +} + diff --git a/openanalytics-open/src/model/DropTableResult.cc b/openanalytics-open/src/model/DropTableResult.cc new file mode 100644 index 000000000..41c3c0aba --- /dev/null +++ b/openanalytics-open/src/model/DropTableResult.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::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +DropTableResult::DropTableResult() : + ServiceResult() +{} + +DropTableResult::DropTableResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DropTableResult::~DropTableResult() +{} + +void DropTableResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DropTableResult::getMessage()const +{ + return message_; +} + +bool DropTableResult::getData()const +{ + return data_; +} + +std::string DropTableResult::getCode()const +{ + return code_; +} + +bool DropTableResult::getSuccess()const +{ + return success_; +} + diff --git a/openanalytics-open/src/model/ForbidAutomaticMetaSyncAsIntegrationAccountRequest.cc b/openanalytics-open/src/model/ForbidAutomaticMetaSyncAsIntegrationAccountRequest.cc new file mode 100644 index 000000000..881fb837d --- /dev/null +++ b/openanalytics-open/src/model/ForbidAutomaticMetaSyncAsIntegrationAccountRequest.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::Openanalytics_open::Model::ForbidAutomaticMetaSyncAsIntegrationAccountRequest; + +ForbidAutomaticMetaSyncAsIntegrationAccountRequest::ForbidAutomaticMetaSyncAsIntegrationAccountRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "ForbidAutomaticMetaSyncAsIntegrationAccount") +{ + setMethod(HttpRequest::Method::Post); +} + +ForbidAutomaticMetaSyncAsIntegrationAccountRequest::~ForbidAutomaticMetaSyncAsIntegrationAccountRequest() +{} + +std::string ForbidAutomaticMetaSyncAsIntegrationAccountRequest::getRegionId()const +{ + return regionId_; +} + +void ForbidAutomaticMetaSyncAsIntegrationAccountRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setBodyParameter("RegionId", regionId); +} + diff --git a/openanalytics-open/src/model/ForbidAutomaticMetaSyncAsIntegrationAccountResult.cc b/openanalytics-open/src/model/ForbidAutomaticMetaSyncAsIntegrationAccountResult.cc new file mode 100644 index 000000000..4c95a7681 --- /dev/null +++ b/openanalytics-open/src/model/ForbidAutomaticMetaSyncAsIntegrationAccountResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +ForbidAutomaticMetaSyncAsIntegrationAccountResult::ForbidAutomaticMetaSyncAsIntegrationAccountResult() : + ServiceResult() +{} + +ForbidAutomaticMetaSyncAsIntegrationAccountResult::ForbidAutomaticMetaSyncAsIntegrationAccountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ForbidAutomaticMetaSyncAsIntegrationAccountResult::~ForbidAutomaticMetaSyncAsIntegrationAccountResult() +{} + +void ForbidAutomaticMetaSyncAsIntegrationAccountResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HasUpdated"].isNull()) + hasUpdated_ = value["HasUpdated"].asString() == "true"; + +} + +bool ForbidAutomaticMetaSyncAsIntegrationAccountResult::getHasUpdated()const +{ + return hasUpdated_; +} + diff --git a/openanalytics-open/src/model/GetAllDatabasesRequest.cc b/openanalytics-open/src/model/GetAllDatabasesRequest.cc new file mode 100644 index 000000000..6c5b8e06e --- /dev/null +++ b/openanalytics-open/src/model/GetAllDatabasesRequest.cc @@ -0,0 +1,29 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Openanalytics_open::Model::GetAllDatabasesRequest; + +GetAllDatabasesRequest::GetAllDatabasesRequest() : + RpcServiceRequest("openanalytics-open", "2020-09-28", "GetAllDatabases") +{ + setMethod(HttpRequest::Method::Post); +} + +GetAllDatabasesRequest::~GetAllDatabasesRequest() +{} + diff --git a/openanalytics-open/src/model/GetAllDatabasesResult.cc b/openanalytics-open/src/model/GetAllDatabasesResult.cc new file mode 100644 index 000000000..d1f187995 --- /dev/null +++ b/openanalytics-open/src/model/GetAllDatabasesResult.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 +#include + +using namespace AlibabaCloud::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +GetAllDatabasesResult::GetAllDatabasesResult() : + ServiceResult() +{} + +GetAllDatabasesResult::GetAllDatabasesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAllDatabasesResult::~GetAllDatabasesResult() +{} + +void GetAllDatabasesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["Data"]; + for (const auto &item : allData) + data_.push_back(item.asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string GetAllDatabasesResult::getMessage()const +{ + return message_; +} + +std::vector GetAllDatabasesResult::getData()const +{ + return data_; +} + +std::string GetAllDatabasesResult::getCode()const +{ + return code_; +} + +bool GetAllDatabasesResult::getSuccess()const +{ + return success_; +} + diff --git a/openanalytics-open/src/model/GetAllTablesRequest.cc b/openanalytics-open/src/model/GetAllTablesRequest.cc new file mode 100644 index 000000000..fc4cadd8e --- /dev/null +++ b/openanalytics-open/src/model/GetAllTablesRequest.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::Openanalytics_open::Model::GetAllTablesRequest; + +GetAllTablesRequest::GetAllTablesRequest() : + RpcServiceRequest("openanalytics-open", "2020-09-28", "GetAllTables") +{ + setMethod(HttpRequest::Method::Post); +} + +GetAllTablesRequest::~GetAllTablesRequest() +{} + +std::string GetAllTablesRequest::getDbName()const +{ + return dbName_; +} + +void GetAllTablesRequest::setDbName(const std::string& dbName) +{ + dbName_ = dbName; + setParameter("DbName", dbName); +} + diff --git a/openanalytics-open/src/model/GetAllTablesResult.cc b/openanalytics-open/src/model/GetAllTablesResult.cc new file mode 100644 index 000000000..090df496b --- /dev/null +++ b/openanalytics-open/src/model/GetAllTablesResult.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 +#include + +using namespace AlibabaCloud::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +GetAllTablesResult::GetAllTablesResult() : + ServiceResult() +{} + +GetAllTablesResult::GetAllTablesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAllTablesResult::~GetAllTablesResult() +{} + +void GetAllTablesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["TableLists"]; + for (const auto &item : allData) + data_.push_back(item.asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string GetAllTablesResult::getMessage()const +{ + return message_; +} + +std::vector GetAllTablesResult::getData()const +{ + return data_; +} + +std::string GetAllTablesResult::getCode()const +{ + return code_; +} + +bool GetAllTablesResult::getSuccess()const +{ + return success_; +} + diff --git a/openanalytics-open/src/model/GetAllowIPRequest.cc b/openanalytics-open/src/model/GetAllowIPRequest.cc new file mode 100644 index 000000000..56d0b6b79 --- /dev/null +++ b/openanalytics-open/src/model/GetAllowIPRequest.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::Openanalytics_open::Model::GetAllowIPRequest; + +GetAllowIPRequest::GetAllowIPRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "GetAllowIP") +{ + setMethod(HttpRequest::Method::Post); +} + +GetAllowIPRequest::~GetAllowIPRequest() +{} + +std::string GetAllowIPRequest::getRegionId()const +{ + return regionId_; +} + +void GetAllowIPRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setBodyParameter("RegionId", regionId); +} + +std::string GetAllowIPRequest::getNetworkType()const +{ + return networkType_; +} + +void GetAllowIPRequest::setNetworkType(const std::string& networkType) +{ + networkType_ = networkType; + setBodyParameter("NetworkType", networkType); +} + +std::string GetAllowIPRequest::getProduct()const +{ + return product_; +} + +void GetAllowIPRequest::setProduct(const std::string& product) +{ + product_ = product; + setBodyParameter("Product", product); +} + diff --git a/openanalytics-open/src/model/GetAllowIPResult.cc b/openanalytics-open/src/model/GetAllowIPResult.cc new file mode 100644 index 000000000..b92e1b8ec --- /dev/null +++ b/openanalytics-open/src/model/GetAllowIPResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +GetAllowIPResult::GetAllowIPResult() : + ServiceResult() +{} + +GetAllowIPResult::GetAllowIPResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAllowIPResult::~GetAllowIPResult() +{} + +void GetAllowIPResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["AllowIP"].isNull()) + allowIP_ = value["AllowIP"].asString(); + +} + +std::string GetAllowIPResult::getAllowIP()const +{ + return allowIP_; +} + +std::string GetAllowIPResult::getRegionId()const +{ + return regionId_; +} + diff --git a/openanalytics-open/src/model/GetConsolePermissionRequest.cc b/openanalytics-open/src/model/GetConsolePermissionRequest.cc new file mode 100644 index 000000000..d3fd66244 --- /dev/null +++ b/openanalytics-open/src/model/GetConsolePermissionRequest.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::Openanalytics_open::Model::GetConsolePermissionRequest; + +GetConsolePermissionRequest::GetConsolePermissionRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "GetConsolePermission") +{ + setMethod(HttpRequest::Method::Post); +} + +GetConsolePermissionRequest::~GetConsolePermissionRequest() +{} + +std::string GetConsolePermissionRequest::getRegionId()const +{ + return regionId_; +} + +void GetConsolePermissionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setBodyParameter("RegionId", regionId); +} + diff --git a/openanalytics-open/src/model/GetConsolePermissionResult.cc b/openanalytics-open/src/model/GetConsolePermissionResult.cc new file mode 100644 index 000000000..6b797cc5a --- /dev/null +++ b/openanalytics-open/src/model/GetConsolePermissionResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +GetConsolePermissionResult::GetConsolePermissionResult() : + ServiceResult() +{} + +GetConsolePermissionResult::GetConsolePermissionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetConsolePermissionResult::~GetConsolePermissionResult() +{} + +void GetConsolePermissionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["Result"].isNull()) + result_ = value["Result"].asString(); + +} + +std::string GetConsolePermissionResult::getRegionId()const +{ + return regionId_; +} + +std::string GetConsolePermissionResult::getResult()const +{ + return result_; +} + diff --git a/openanalytics-open/src/model/GetDLAServiceStatusRequest.cc b/openanalytics-open/src/model/GetDLAServiceStatusRequest.cc new file mode 100644 index 000000000..d62228bc1 --- /dev/null +++ b/openanalytics-open/src/model/GetDLAServiceStatusRequest.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::Openanalytics_open::Model::GetDLAServiceStatusRequest; + +GetDLAServiceStatusRequest::GetDLAServiceStatusRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "GetDLAServiceStatus") +{ + setMethod(HttpRequest::Method::Post); +} + +GetDLAServiceStatusRequest::~GetDLAServiceStatusRequest() +{} + +std::string GetDLAServiceStatusRequest::getExternalUid()const +{ + return externalUid_; +} + +void GetDLAServiceStatusRequest::setExternalUid(const std::string& externalUid) +{ + externalUid_ = externalUid; + setBodyParameter("ExternalUid", externalUid); +} + +std::string GetDLAServiceStatusRequest::getExternalAliyunUid()const +{ + return externalAliyunUid_; +} + +void GetDLAServiceStatusRequest::setExternalAliyunUid(const std::string& externalAliyunUid) +{ + externalAliyunUid_ = externalAliyunUid; + setBodyParameter("ExternalAliyunUid", externalAliyunUid); +} + +std::string GetDLAServiceStatusRequest::getRegionId()const +{ + return regionId_; +} + +void GetDLAServiceStatusRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setBodyParameter("RegionId", regionId); +} + +std::string GetDLAServiceStatusRequest::getExternalBizAliyunUid()const +{ + return externalBizAliyunUid_; +} + +void GetDLAServiceStatusRequest::setExternalBizAliyunUid(const std::string& externalBizAliyunUid) +{ + externalBizAliyunUid_ = externalBizAliyunUid; + setBodyParameter("ExternalBizAliyunUid", externalBizAliyunUid); +} + diff --git a/openanalytics-open/src/model/GetDLAServiceStatusResult.cc b/openanalytics-open/src/model/GetDLAServiceStatusResult.cc new file mode 100644 index 000000000..cccccbc87 --- /dev/null +++ b/openanalytics-open/src/model/GetDLAServiceStatusResult.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +GetDLAServiceStatusResult::GetDLAServiceStatusResult() : + ServiceResult() +{} + +GetDLAServiceStatusResult::GetDLAServiceStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetDLAServiceStatusResult::~GetDLAServiceStatusResult() +{} + +void GetDLAServiceStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto userDLAServiceStatusNode = value["UserDLAServiceStatus"]; + if(!userDLAServiceStatusNode["IsServiceReady"].isNull()) + userDLAServiceStatus_.isServiceReady = userDLAServiceStatusNode["IsServiceReady"].asString() == "true"; + if(!userDLAServiceStatusNode["IsOSSOpen"].isNull()) + userDLAServiceStatus_.isOSSOpen = userDLAServiceStatusNode["IsOSSOpen"].asString() == "true"; + if(!userDLAServiceStatusNode["IsDLAAccountReady"].isNull()) + userDLAServiceStatus_.isDLAAccountReady = userDLAServiceStatusNode["IsDLAAccountReady"].asString() == "true"; + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + +} + +GetDLAServiceStatusResult::UserDLAServiceStatus GetDLAServiceStatusResult::getUserDLAServiceStatus()const +{ + return userDLAServiceStatus_; +} + +std::string GetDLAServiceStatusResult::getRegionId()const +{ + return regionId_; +} + diff --git a/openanalytics-open/src/model/GetDatabaseRequest.cc b/openanalytics-open/src/model/GetDatabaseRequest.cc new file mode 100644 index 000000000..d97c58376 --- /dev/null +++ b/openanalytics-open/src/model/GetDatabaseRequest.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::Openanalytics_open::Model::GetDatabaseRequest; + +GetDatabaseRequest::GetDatabaseRequest() : + RpcServiceRequest("openanalytics-open", "2020-09-28", "GetDatabase") +{ + setMethod(HttpRequest::Method::Post); +} + +GetDatabaseRequest::~GetDatabaseRequest() +{} + +std::string GetDatabaseRequest::getName()const +{ + return name_; +} + +void GetDatabaseRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/openanalytics-open/src/model/GetDatabaseResult.cc b/openanalytics-open/src/model/GetDatabaseResult.cc new file mode 100644 index 000000000..d861e3809 --- /dev/null +++ b/openanalytics-open/src/model/GetDatabaseResult.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +GetDatabaseResult::GetDatabaseResult() : + ServiceResult() +{} + +GetDatabaseResult::GetDatabaseResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetDatabaseResult::~GetDatabaseResult() +{} + +void GetDatabaseResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto databaseModelNode = value["DatabaseModel"]; + if(!databaseModelNode["TenantId"].isNull()) + databaseModel_.tenantId = databaseModelNode["TenantId"].asString(); + if(!databaseModelNode["OwnerName"].isNull()) + databaseModel_.ownerName = databaseModelNode["OwnerName"].asString(); + if(!databaseModelNode["LocationUri"].isNull()) + databaseModel_.locationUri = databaseModelNode["LocationUri"].asString(); + if(!databaseModelNode["Parameters"].isNull()) + databaseModel_.parameters = databaseModelNode["Parameters"].asString(); + if(!databaseModelNode["Description"].isNull()) + databaseModel_.description = databaseModelNode["Description"].asString(); + if(!databaseModelNode["Name"].isNull()) + databaseModel_.name = databaseModelNode["Name"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +GetDatabaseResult::DatabaseModel GetDatabaseResult::getDatabaseModel()const +{ + return databaseModel_; +} + +std::string GetDatabaseResult::getMessage()const +{ + return message_; +} + +std::string GetDatabaseResult::getCode()const +{ + return code_; +} + +bool GetDatabaseResult::getSuccess()const +{ + return success_; +} + diff --git a/openanalytics-open/src/model/GetEndPointByDomainRequest.cc b/openanalytics-open/src/model/GetEndPointByDomainRequest.cc new file mode 100644 index 000000000..ff0e6e933 --- /dev/null +++ b/openanalytics-open/src/model/GetEndPointByDomainRequest.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::Openanalytics_open::Model::GetEndPointByDomainRequest; + +GetEndPointByDomainRequest::GetEndPointByDomainRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "GetEndPointByDomain") +{ + setMethod(HttpRequest::Method::Post); +} + +GetEndPointByDomainRequest::~GetEndPointByDomainRequest() +{} + +std::string GetEndPointByDomainRequest::getRegionId()const +{ + return regionId_; +} + +void GetEndPointByDomainRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setBodyParameter("RegionId", regionId); +} + +std::string GetEndPointByDomainRequest::getDomainURL()const +{ + return domainURL_; +} + +void GetEndPointByDomainRequest::setDomainURL(const std::string& domainURL) +{ + domainURL_ = domainURL; + setBodyParameter("DomainURL", domainURL); +} + diff --git a/openanalytics-open/src/model/GetEndPointByDomainResult.cc b/openanalytics-open/src/model/GetEndPointByDomainResult.cc new file mode 100644 index 000000000..2a041b6e4 --- /dev/null +++ b/openanalytics-open/src/model/GetEndPointByDomainResult.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::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +GetEndPointByDomainResult::GetEndPointByDomainResult() : + ServiceResult() +{} + +GetEndPointByDomainResult::GetEndPointByDomainResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetEndPointByDomainResult::~GetEndPointByDomainResult() +{} + +void GetEndPointByDomainResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto endPointInfoNode = value["EndPointInfo"]; + if(!endPointInfoNode["endPointID"].isNull()) + endPointInfo_.endPointID = endPointInfoNode["endPointID"].asString(); + if(!endPointInfoNode["domainURL"].isNull()) + endPointInfo_.domainURL = endPointInfoNode["domainURL"].asString(); + if(!endPointInfoNode["host"].isNull()) + endPointInfo_.host = endPointInfoNode["host"].asString(); + if(!endPointInfoNode["port"].isNull()) + endPointInfo_.port = endPointInfoNode["port"].asString(); + if(!endPointInfoNode["networkType"].isNull()) + endPointInfo_.networkType = endPointInfoNode["networkType"].asString(); + if(!endPointInfoNode["vpcID"].isNull()) + endPointInfo_.vpcID = endPointInfoNode["vpcID"].asString(); + if(!endPointInfoNode["vSwitch"].isNull()) + endPointInfo_.vSwitch = endPointInfoNode["vSwitch"].asString(); + if(!endPointInfoNode["zone"].isNull()) + endPointInfo_.zone = endPointInfoNode["zone"].asString(); + if(!endPointInfoNode["allowIP"].isNull()) + endPointInfo_.allowIP = endPointInfoNode["allowIP"].asString(); + if(!endPointInfoNode["cloudInstanceID"].isNull()) + endPointInfo_.cloudInstanceID = endPointInfoNode["cloudInstanceID"].asString(); + if(!endPointInfoNode["product"].isNull()) + endPointInfo_.product = endPointInfoNode["product"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + +} + +GetEndPointByDomainResult::EndPointInfo GetEndPointByDomainResult::getEndPointInfo()const +{ + return endPointInfo_; +} + +std::string GetEndPointByDomainResult::getRegionId()const +{ + return regionId_; +} + diff --git a/openanalytics-open/src/model/GetEndPointRequest.cc b/openanalytics-open/src/model/GetEndPointRequest.cc new file mode 100644 index 000000000..d2353100d --- /dev/null +++ b/openanalytics-open/src/model/GetEndPointRequest.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::Openanalytics_open::Model::GetEndPointRequest; + +GetEndPointRequest::GetEndPointRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "GetEndPoint") +{ + setMethod(HttpRequest::Method::Post); +} + +GetEndPointRequest::~GetEndPointRequest() +{} + +std::string GetEndPointRequest::getRegionId()const +{ + return regionId_; +} + +void GetEndPointRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setBodyParameter("RegionId", regionId); +} + +std::string GetEndPointRequest::getEndPointID()const +{ + return endPointID_; +} + +void GetEndPointRequest::setEndPointID(const std::string& endPointID) +{ + endPointID_ = endPointID; + setBodyParameter("EndPointID", endPointID); +} + diff --git a/openanalytics-open/src/model/GetEndPointResult.cc b/openanalytics-open/src/model/GetEndPointResult.cc new file mode 100644 index 000000000..eaf8e460a --- /dev/null +++ b/openanalytics-open/src/model/GetEndPointResult.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::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +GetEndPointResult::GetEndPointResult() : + ServiceResult() +{} + +GetEndPointResult::GetEndPointResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetEndPointResult::~GetEndPointResult() +{} + +void GetEndPointResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto endPointInfoNode = value["EndPointInfo"]; + if(!endPointInfoNode["endPointID"].isNull()) + endPointInfo_.endPointID = endPointInfoNode["endPointID"].asString(); + if(!endPointInfoNode["domainURL"].isNull()) + endPointInfo_.domainURL = endPointInfoNode["domainURL"].asString(); + if(!endPointInfoNode["host"].isNull()) + endPointInfo_.host = endPointInfoNode["host"].asString(); + if(!endPointInfoNode["port"].isNull()) + endPointInfo_.port = endPointInfoNode["port"].asString(); + if(!endPointInfoNode["networkType"].isNull()) + endPointInfo_.networkType = endPointInfoNode["networkType"].asString(); + if(!endPointInfoNode["vpcID"].isNull()) + endPointInfo_.vpcID = endPointInfoNode["vpcID"].asString(); + if(!endPointInfoNode["vSwitch"].isNull()) + endPointInfo_.vSwitch = endPointInfoNode["vSwitch"].asString(); + if(!endPointInfoNode["zone"].isNull()) + endPointInfo_.zone = endPointInfoNode["zone"].asString(); + if(!endPointInfoNode["allowIP"].isNull()) + endPointInfo_.allowIP = endPointInfoNode["allowIP"].asString(); + if(!endPointInfoNode["status"].isNull()) + endPointInfo_.status = endPointInfoNode["status"].asString(); + if(!endPointInfoNode["product"].isNull()) + endPointInfo_.product = endPointInfoNode["product"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + +} + +GetEndPointResult::EndPointInfo GetEndPointResult::getEndPointInfo()const +{ + return endPointInfo_; +} + +std::string GetEndPointResult::getRegionId()const +{ + return regionId_; +} + diff --git a/openanalytics-open/src/model/GetJobDetailRequest.cc b/openanalytics-open/src/model/GetJobDetailRequest.cc new file mode 100644 index 000000000..3625ac664 --- /dev/null +++ b/openanalytics-open/src/model/GetJobDetailRequest.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::Openanalytics_open::Model::GetJobDetailRequest; + +GetJobDetailRequest::GetJobDetailRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "GetJobDetail") +{ + setMethod(HttpRequest::Method::Post); +} + +GetJobDetailRequest::~GetJobDetailRequest() +{} + +std::string GetJobDetailRequest::getJobId()const +{ + return jobId_; +} + +void GetJobDetailRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setBodyParameter("JobId", jobId); +} + +std::string GetJobDetailRequest::getVcName()const +{ + return vcName_; +} + +void GetJobDetailRequest::setVcName(const std::string& vcName) +{ + vcName_ = vcName; + setBodyParameter("VcName", vcName); +} + diff --git a/openanalytics-open/src/model/GetJobDetailResult.cc b/openanalytics-open/src/model/GetJobDetailResult.cc new file mode 100644 index 000000000..3f1dce9ee --- /dev/null +++ b/openanalytics-open/src/model/GetJobDetailResult.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::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +GetJobDetailResult::GetJobDetailResult() : + ServiceResult() +{} + +GetJobDetailResult::GetJobDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetJobDetailResult::~GetJobDetailResult() +{} + +void GetJobDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto jobDetailNode = value["JobDetail"]; + if(!jobDetailNode["JobId"].isNull()) + jobDetail_.jobId = jobDetailNode["JobId"].asString(); + if(!jobDetailNode["JobName"].isNull()) + jobDetail_.jobName = jobDetailNode["JobName"].asString(); + if(!jobDetailNode["Status"].isNull()) + jobDetail_.status = jobDetailNode["Status"].asString(); + if(!jobDetailNode["Detail"].isNull()) + jobDetail_.detail = jobDetailNode["Detail"].asString(); + if(!jobDetailNode["SparkUI"].isNull()) + jobDetail_.sparkUI = jobDetailNode["SparkUI"].asString(); + if(!jobDetailNode["CreateTime"].isNull()) + jobDetail_.createTime = jobDetailNode["CreateTime"].asString(); + if(!jobDetailNode["UpdateTime"].isNull()) + jobDetail_.updateTime = jobDetailNode["UpdateTime"].asString(); + if(!jobDetailNode["SubmitTime"].isNull()) + jobDetail_.submitTime = jobDetailNode["SubmitTime"].asString(); + if(!jobDetailNode["CreateTimeValue"].isNull()) + jobDetail_.createTimeValue = jobDetailNode["CreateTimeValue"].asString(); + if(!jobDetailNode["UpdateTimeValue"].isNull()) + jobDetail_.updateTimeValue = jobDetailNode["UpdateTimeValue"].asString(); + if(!jobDetailNode["SubmitTimeValue"].isNull()) + jobDetail_.submitTimeValue = jobDetailNode["SubmitTimeValue"].asString(); + if(!jobDetailNode["VcName"].isNull()) + jobDetail_.vcName = jobDetailNode["VcName"].asString(); + if(!jobDetailNode["DriverResourceSpec"].isNull()) + jobDetail_.driverResourceSpec = jobDetailNode["DriverResourceSpec"].asString(); + if(!jobDetailNode["ExecutorResourceSpec"].isNull()) + jobDetail_.executorResourceSpec = jobDetailNode["ExecutorResourceSpec"].asString(); + if(!jobDetailNode["ExecutorInstances"].isNull()) + jobDetail_.executorInstances = jobDetailNode["ExecutorInstances"].asString(); + +} + +GetJobDetailResult::JobDetail GetJobDetailResult::getJobDetail()const +{ + return jobDetail_; +} + diff --git a/openanalytics-open/src/model/GetJobLogRequest.cc b/openanalytics-open/src/model/GetJobLogRequest.cc new file mode 100644 index 000000000..804b795d8 --- /dev/null +++ b/openanalytics-open/src/model/GetJobLogRequest.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::Openanalytics_open::Model::GetJobLogRequest; + +GetJobLogRequest::GetJobLogRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "GetJobLog") +{ + setMethod(HttpRequest::Method::Post); +} + +GetJobLogRequest::~GetJobLogRequest() +{} + +std::string GetJobLogRequest::getJobId()const +{ + return jobId_; +} + +void GetJobLogRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setBodyParameter("JobId", jobId); +} + +std::string GetJobLogRequest::getVcName()const +{ + return vcName_; +} + +void GetJobLogRequest::setVcName(const std::string& vcName) +{ + vcName_ = vcName; + setBodyParameter("VcName", vcName); +} + diff --git a/openanalytics-open/src/model/GetJobLogResult.cc b/openanalytics-open/src/model/GetJobLogResult.cc new file mode 100644 index 000000000..d60ccf53b --- /dev/null +++ b/openanalytics-open/src/model/GetJobLogResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +GetJobLogResult::GetJobLogResult() : + ServiceResult() +{} + +GetJobLogResult::GetJobLogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetJobLogResult::~GetJobLogResult() +{} + +void GetJobLogResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string GetJobLogResult::getData()const +{ + return data_; +} + diff --git a/openanalytics-open/src/model/GetJobStatusRequest.cc b/openanalytics-open/src/model/GetJobStatusRequest.cc new file mode 100644 index 000000000..56f59b6cb --- /dev/null +++ b/openanalytics-open/src/model/GetJobStatusRequest.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::Openanalytics_open::Model::GetJobStatusRequest; + +GetJobStatusRequest::GetJobStatusRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "GetJobStatus") +{ + setMethod(HttpRequest::Method::Post); +} + +GetJobStatusRequest::~GetJobStatusRequest() +{} + +std::string GetJobStatusRequest::getJobId()const +{ + return jobId_; +} + +void GetJobStatusRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setBodyParameter("JobId", jobId); +} + +std::string GetJobStatusRequest::getVcName()const +{ + return vcName_; +} + +void GetJobStatusRequest::setVcName(const std::string& vcName) +{ + vcName_ = vcName; + setBodyParameter("VcName", vcName); +} + diff --git a/openanalytics-open/src/model/GetJobStatusResult.cc b/openanalytics-open/src/model/GetJobStatusResult.cc new file mode 100644 index 000000000..a2028c5b6 --- /dev/null +++ b/openanalytics-open/src/model/GetJobStatusResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +GetJobStatusResult::GetJobStatusResult() : + ServiceResult() +{} + +GetJobStatusResult::GetJobStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetJobStatusResult::~GetJobStatusResult() +{} + +void GetJobStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + +} + +std::string GetJobStatusResult::getStatus()const +{ + return status_; +} + diff --git a/openanalytics-open/src/model/GetPartitionRequest.cc b/openanalytics-open/src/model/GetPartitionRequest.cc new file mode 100644 index 000000000..f0a5a66d6 --- /dev/null +++ b/openanalytics-open/src/model/GetPartitionRequest.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::Openanalytics_open::Model::GetPartitionRequest; + +GetPartitionRequest::GetPartitionRequest() : + RpcServiceRequest("openanalytics-open", "2020-09-28", "GetPartition") +{ + setMethod(HttpRequest::Method::Post); +} + +GetPartitionRequest::~GetPartitionRequest() +{} + +std::string GetPartitionRequest::getDbName()const +{ + return dbName_; +} + +void GetPartitionRequest::setDbName(const std::string& dbName) +{ + dbName_ = dbName; + setParameter("DbName", dbName); +} + +Array GetPartitionRequest::getValues()const +{ + return values_; +} + +void GetPartitionRequest::setValues(const Array& values) +{ + values_ = values; + setParameter("Values", std::to_string(values)); +} + +std::string GetPartitionRequest::getTableName()const +{ + return tableName_; +} + +void GetPartitionRequest::setTableName(const std::string& tableName) +{ + tableName_ = tableName; + setParameter("TableName", tableName); +} + diff --git a/openanalytics-open/src/model/GetPartitionResult.cc b/openanalytics-open/src/model/GetPartitionResult.cc new file mode 100644 index 000000000..b86fb0817 --- /dev/null +++ b/openanalytics-open/src/model/GetPartitionResult.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 +#include + +using namespace AlibabaCloud::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +GetPartitionResult::GetPartitionResult() : + ServiceResult() +{} + +GetPartitionResult::GetPartitionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetPartitionResult::~GetPartitionResult() +{} + +void GetPartitionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto partitionModelNode = value["PartitionModel"]; + if(!partitionModelNode["TableName"].isNull()) + partitionModel_.tableName = partitionModelNode["TableName"].asString(); + if(!partitionModelNode["Parameters"].isNull()) + partitionModel_.parameters = partitionModelNode["Parameters"].asString(); + if(!partitionModelNode["CreateTime"].isNull()) + partitionModel_.createTime = std::stol(partitionModelNode["CreateTime"].asString()); + if(!partitionModelNode["DbName"].isNull()) + partitionModel_.dbName = partitionModelNode["DbName"].asString(); + auto storageDescriptorModelNode = partitionModelNode["StorageDescriptorModel"]; + if(!storageDescriptorModelNode["Parameters"].isNull()) + partitionModel_.storageDescriptorModel.parameters = storageDescriptorModelNode["Parameters"].asString(); + if(!storageDescriptorModelNode["InputFormat"].isNull()) + partitionModel_.storageDescriptorModel.inputFormat = storageDescriptorModelNode["InputFormat"].asString(); + if(!storageDescriptorModelNode["OutputFormat"].isNull()) + partitionModel_.storageDescriptorModel.outputFormat = storageDescriptorModelNode["OutputFormat"].asString(); + if(!storageDescriptorModelNode["Location"].isNull()) + partitionModel_.storageDescriptorModel.location = storageDescriptorModelNode["Location"].asString(); + auto allColsNode = storageDescriptorModelNode["Cols"]["FieldSchemaModel"]; + for (auto storageDescriptorModelNodeColsFieldSchemaModel : allColsNode) + { + PartitionModel::StorageDescriptorModel::FieldSchemaModel fieldSchemaModelObject; + if(!storageDescriptorModelNodeColsFieldSchemaModel["Comment"].isNull()) + fieldSchemaModelObject.comment = storageDescriptorModelNodeColsFieldSchemaModel["Comment"].asString(); + if(!storageDescriptorModelNodeColsFieldSchemaModel["Type"].isNull()) + fieldSchemaModelObject.type = storageDescriptorModelNodeColsFieldSchemaModel["Type"].asString(); + if(!storageDescriptorModelNodeColsFieldSchemaModel["Name"].isNull()) + fieldSchemaModelObject.name = storageDescriptorModelNodeColsFieldSchemaModel["Name"].asString(); + partitionModel_.storageDescriptorModel.cols.push_back(fieldSchemaModelObject); + } + auto serDeInfoModelNode = storageDescriptorModelNode["SerDeInfoModel"]; + if(!serDeInfoModelNode["SerializationLib"].isNull()) + partitionModel_.storageDescriptorModel.serDeInfoModel.serializationLib = serDeInfoModelNode["SerializationLib"].asString(); + if(!serDeInfoModelNode["Parameters"].isNull()) + partitionModel_.storageDescriptorModel.serDeInfoModel.parameters = serDeInfoModelNode["Parameters"].asString(); + if(!serDeInfoModelNode["Name"].isNull()) + partitionModel_.storageDescriptorModel.serDeInfoModel.name = serDeInfoModelNode["Name"].asString(); + auto allValues = partitionModelNode["Values"]["Values"]; + for (auto value : allValues) + partitionModel_.values.push_back(value.asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string GetPartitionResult::getMessage()const +{ + return message_; +} + +GetPartitionResult::PartitionModel GetPartitionResult::getPartitionModel()const +{ + return partitionModel_; +} + +std::string GetPartitionResult::getCode()const +{ + return code_; +} + +bool GetPartitionResult::getSuccess()const +{ + return success_; +} + diff --git a/openanalytics-open/src/model/GetPartitionsRequest.cc b/openanalytics-open/src/model/GetPartitionsRequest.cc new file mode 100644 index 000000000..b99ef3ac1 --- /dev/null +++ b/openanalytics-open/src/model/GetPartitionsRequest.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::Openanalytics_open::Model::GetPartitionsRequest; + +GetPartitionsRequest::GetPartitionsRequest() : + RpcServiceRequest("openanalytics-open", "2020-09-28", "GetPartitions") +{ + setMethod(HttpRequest::Method::Post); +} + +GetPartitionsRequest::~GetPartitionsRequest() +{} + +std::string GetPartitionsRequest::getDbName()const +{ + return dbName_; +} + +void GetPartitionsRequest::setDbName(const std::string& dbName) +{ + dbName_ = dbName; + setParameter("DbName", dbName); +} + +int GetPartitionsRequest::getMaxParts()const +{ + return maxParts_; +} + +void GetPartitionsRequest::setMaxParts(int maxParts) +{ + maxParts_ = maxParts; + setParameter("MaxParts", std::to_string(maxParts)); +} + +std::string GetPartitionsRequest::getTableName()const +{ + return tableName_; +} + +void GetPartitionsRequest::setTableName(const std::string& tableName) +{ + tableName_ = tableName; + setParameter("TableName", tableName); +} + diff --git a/openanalytics-open/src/model/GetPartitionsResult.cc b/openanalytics-open/src/model/GetPartitionsResult.cc new file mode 100644 index 000000000..fdc77d696 --- /dev/null +++ b/openanalytics-open/src/model/GetPartitionsResult.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::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +GetPartitionsResult::GetPartitionsResult() : + ServiceResult() +{} + +GetPartitionsResult::GetPartitionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetPartitionsResult::~GetPartitionsResult() +{} + +void GetPartitionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPartitionsNode = value["Partitions"]["PartitionModel"]; + for (auto valuePartitionsPartitionModel : allPartitionsNode) + { + PartitionModel partitionsObject; + if(!valuePartitionsPartitionModel["TableName"].isNull()) + partitionsObject.tableName = valuePartitionsPartitionModel["TableName"].asString(); + if(!valuePartitionsPartitionModel["Parameters"].isNull()) + partitionsObject.parameters = valuePartitionsPartitionModel["Parameters"].asString(); + if(!valuePartitionsPartitionModel["CreateTime"].isNull()) + partitionsObject.createTime = std::stol(valuePartitionsPartitionModel["CreateTime"].asString()); + if(!valuePartitionsPartitionModel["DbName"].isNull()) + partitionsObject.dbName = valuePartitionsPartitionModel["DbName"].asString(); + auto storageDescriptorModelNode = value["StorageDescriptorModel"]; + if(!storageDescriptorModelNode["Parameters"].isNull()) + partitionsObject.storageDescriptorModel.parameters = storageDescriptorModelNode["Parameters"].asString(); + if(!storageDescriptorModelNode["InputFormat"].isNull()) + partitionsObject.storageDescriptorModel.inputFormat = storageDescriptorModelNode["InputFormat"].asString(); + if(!storageDescriptorModelNode["OutputFormat"].isNull()) + partitionsObject.storageDescriptorModel.outputFormat = storageDescriptorModelNode["OutputFormat"].asString(); + if(!storageDescriptorModelNode["Location"].isNull()) + partitionsObject.storageDescriptorModel.location = storageDescriptorModelNode["Location"].asString(); + auto allColsNode = storageDescriptorModelNode["Cols"]["FieldSchemaModel"]; + for (auto storageDescriptorModelNodeColsFieldSchemaModel : allColsNode) + { + PartitionModel::StorageDescriptorModel::FieldSchemaModel fieldSchemaModelObject; + if(!storageDescriptorModelNodeColsFieldSchemaModel["Comment"].isNull()) + fieldSchemaModelObject.comment = storageDescriptorModelNodeColsFieldSchemaModel["Comment"].asString(); + if(!storageDescriptorModelNodeColsFieldSchemaModel["Type"].isNull()) + fieldSchemaModelObject.type = storageDescriptorModelNodeColsFieldSchemaModel["Type"].asString(); + if(!storageDescriptorModelNodeColsFieldSchemaModel["Name"].isNull()) + fieldSchemaModelObject.name = storageDescriptorModelNodeColsFieldSchemaModel["Name"].asString(); + partitionsObject.storageDescriptorModel.cols.push_back(fieldSchemaModelObject); + } + auto serDeInfoModelNode = storageDescriptorModelNode["SerDeInfoModel"]; + if(!serDeInfoModelNode["SerializationLib"].isNull()) + partitionsObject.storageDescriptorModel.serDeInfoModel.serializationLib = serDeInfoModelNode["SerializationLib"].asString(); + if(!serDeInfoModelNode["Parameters"].isNull()) + partitionsObject.storageDescriptorModel.serDeInfoModel.parameters = serDeInfoModelNode["Parameters"].asString(); + if(!serDeInfoModelNode["Name"].isNull()) + partitionsObject.storageDescriptorModel.serDeInfoModel.name = serDeInfoModelNode["Name"].asString(); + auto allValues = value["Values"]["Values"]; + for (auto value : allValues) + partitionsObject.values.push_back(value.asString()); + partitions_.push_back(partitionsObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::vector GetPartitionsResult::getPartitions()const +{ + return partitions_; +} + +std::string GetPartitionsResult::getMessage()const +{ + return message_; +} + +std::string GetPartitionsResult::getCode()const +{ + return code_; +} + +bool GetPartitionsResult::getSuccess()const +{ + return success_; +} + diff --git a/openanalytics-open/src/model/GetRegionStatusRequest.cc b/openanalytics-open/src/model/GetRegionStatusRequest.cc new file mode 100644 index 000000000..4c922904b --- /dev/null +++ b/openanalytics-open/src/model/GetRegionStatusRequest.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::Openanalytics_open::Model::GetRegionStatusRequest; + +GetRegionStatusRequest::GetRegionStatusRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "GetRegionStatus") +{ + setMethod(HttpRequest::Method::Post); +} + +GetRegionStatusRequest::~GetRegionStatusRequest() +{} + +std::string GetRegionStatusRequest::getExternalUid()const +{ + return externalUid_; +} + +void GetRegionStatusRequest::setExternalUid(const std::string& externalUid) +{ + externalUid_ = externalUid; + setBodyParameter("ExternalUid", externalUid); +} + +std::string GetRegionStatusRequest::getExternalAliyunUid()const +{ + return externalAliyunUid_; +} + +void GetRegionStatusRequest::setExternalAliyunUid(const std::string& externalAliyunUid) +{ + externalAliyunUid_ = externalAliyunUid; + setBodyParameter("ExternalAliyunUid", externalAliyunUid); +} + +std::string GetRegionStatusRequest::getRegionId()const +{ + return regionId_; +} + +void GetRegionStatusRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setBodyParameter("RegionId", regionId); +} + +std::string GetRegionStatusRequest::getExternalBizAliyunUid()const +{ + return externalBizAliyunUid_; +} + +void GetRegionStatusRequest::setExternalBizAliyunUid(const std::string& externalBizAliyunUid) +{ + externalBizAliyunUid_ = externalBizAliyunUid; + setBodyParameter("ExternalBizAliyunUid", externalBizAliyunUid); +} + diff --git a/openanalytics-open/src/model/GetRegionStatusResult.cc b/openanalytics-open/src/model/GetRegionStatusResult.cc new file mode 100644 index 000000000..769dc9747 --- /dev/null +++ b/openanalytics-open/src/model/GetRegionStatusResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +GetRegionStatusResult::GetRegionStatusResult() : + ServiceResult() +{} + +GetRegionStatusResult::GetRegionStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetRegionStatusResult::~GetRegionStatusResult() +{} + +void GetRegionStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + +} + +std::string GetRegionStatusResult::getStatus()const +{ + return status_; +} + +std::string GetRegionStatusResult::getRegionId()const +{ + return regionId_; +} + diff --git a/openanalytics-open/src/model/GetServiceLinkedRoleStatusRequest.cc b/openanalytics-open/src/model/GetServiceLinkedRoleStatusRequest.cc new file mode 100644 index 000000000..8e393c964 --- /dev/null +++ b/openanalytics-open/src/model/GetServiceLinkedRoleStatusRequest.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::Openanalytics_open::Model::GetServiceLinkedRoleStatusRequest; + +GetServiceLinkedRoleStatusRequest::GetServiceLinkedRoleStatusRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "GetServiceLinkedRoleStatus") +{ + setMethod(HttpRequest::Method::Post); +} + +GetServiceLinkedRoleStatusRequest::~GetServiceLinkedRoleStatusRequest() +{} + +std::string GetServiceLinkedRoleStatusRequest::getRegionId()const +{ + return regionId_; +} + +void GetServiceLinkedRoleStatusRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setBodyParameter("RegionId", regionId); +} + diff --git a/openanalytics-open/src/model/GetServiceLinkedRoleStatusResult.cc b/openanalytics-open/src/model/GetServiceLinkedRoleStatusResult.cc new file mode 100644 index 000000000..ee4a6b653 --- /dev/null +++ b/openanalytics-open/src/model/GetServiceLinkedRoleStatusResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +GetServiceLinkedRoleStatusResult::GetServiceLinkedRoleStatusResult() : + ServiceResult() +{} + +GetServiceLinkedRoleStatusResult::GetServiceLinkedRoleStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetServiceLinkedRoleStatusResult::~GetServiceLinkedRoleStatusResult() +{} + +void GetServiceLinkedRoleStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["HasCreated"].isNull()) + hasCreated_ = value["HasCreated"].asString() == "true"; + +} + +bool GetServiceLinkedRoleStatusResult::getHasCreated()const +{ + return hasCreated_; +} + +std::string GetServiceLinkedRoleStatusResult::getRegionId()const +{ + return regionId_; +} + diff --git a/openanalytics-open/src/model/GetTableRequest.cc b/openanalytics-open/src/model/GetTableRequest.cc new file mode 100644 index 000000000..9b9644a1e --- /dev/null +++ b/openanalytics-open/src/model/GetTableRequest.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::Openanalytics_open::Model::GetTableRequest; + +GetTableRequest::GetTableRequest() : + RpcServiceRequest("openanalytics-open", "2020-09-28", "GetTable") +{ + setMethod(HttpRequest::Method::Post); +} + +GetTableRequest::~GetTableRequest() +{} + +std::string GetTableRequest::getDbName()const +{ + return dbName_; +} + +void GetTableRequest::setDbName(const std::string& dbName) +{ + dbName_ = dbName; + setParameter("DbName", dbName); +} + +std::string GetTableRequest::getTableName()const +{ + return tableName_; +} + +void GetTableRequest::setTableName(const std::string& tableName) +{ + tableName_ = tableName; + setParameter("TableName", tableName); +} + diff --git a/openanalytics-open/src/model/GetTableResult.cc b/openanalytics-open/src/model/GetTableResult.cc new file mode 100644 index 000000000..e72f3a28a --- /dev/null +++ b/openanalytics-open/src/model/GetTableResult.cc @@ -0,0 +1,129 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +GetTableResult::GetTableResult() : + ServiceResult() +{} + +GetTableResult::GetTableResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetTableResult::~GetTableResult() +{} + +void GetTableResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto tableNode = value["Table"]; + if(!tableNode["TableName"].isNull()) + table_.tableName = tableNode["TableName"].asString(); + if(!tableNode["ViewOriginalText"].isNull()) + table_.viewOriginalText = tableNode["ViewOriginalText"].asString(); + if(!tableNode["Owner"].isNull()) + table_.owner = tableNode["Owner"].asString(); + if(!tableNode["TableType"].isNull()) + table_.tableType = tableNode["TableType"].asString(); + if(!tableNode["Parameters"].isNull()) + table_.parameters = tableNode["Parameters"].asString(); + if(!tableNode["ViewExpandedText"].isNull()) + table_.viewExpandedText = tableNode["ViewExpandedText"].asString(); + if(!tableNode["CreateTime"].isNull()) + table_.createTime = std::stol(tableNode["CreateTime"].asString()); + if(!tableNode["DbName"].isNull()) + table_.dbName = tableNode["DbName"].asString(); + if(!tableNode["LastAccessTime"].isNull()) + table_.lastAccessTime = std::stol(tableNode["LastAccessTime"].asString()); + auto allPartitionKeysNode = tableNode["PartitionKeys"]["PartitionKeysItem"]; + for (auto tableNodePartitionKeysPartitionKeysItem : allPartitionKeysNode) + { + Table::PartitionKeysItem partitionKeysItemObject; + if(!tableNodePartitionKeysPartitionKeysItem["Comment"].isNull()) + partitionKeysItemObject.comment = tableNodePartitionKeysPartitionKeysItem["Comment"].asString(); + if(!tableNodePartitionKeysPartitionKeysItem["Type"].isNull()) + partitionKeysItemObject.type = tableNodePartitionKeysPartitionKeysItem["Type"].asString(); + if(!tableNodePartitionKeysPartitionKeysItem["Name"].isNull()) + partitionKeysItemObject.name = tableNodePartitionKeysPartitionKeysItem["Name"].asString(); + table_.partitionKeys.push_back(partitionKeysItemObject); + } + auto storageDescriptorNode = tableNode["StorageDescriptor"]; + if(!storageDescriptorNode["Parameters"].isNull()) + table_.storageDescriptor.parameters = storageDescriptorNode["Parameters"].asString(); + if(!storageDescriptorNode["InputFormat"].isNull()) + table_.storageDescriptor.inputFormat = storageDescriptorNode["InputFormat"].asString(); + if(!storageDescriptorNode["OutputFormat"].isNull()) + table_.storageDescriptor.outputFormat = storageDescriptorNode["OutputFormat"].asString(); + if(!storageDescriptorNode["Location"].isNull()) + table_.storageDescriptor.location = storageDescriptorNode["Location"].asString(); + auto allColsNode = storageDescriptorNode["Cols"]["ColsItem"]; + for (auto storageDescriptorNodeColsColsItem : allColsNode) + { + Table::StorageDescriptor::ColsItem colsItemObject; + if(!storageDescriptorNodeColsColsItem["Comment"].isNull()) + colsItemObject.comment = storageDescriptorNodeColsColsItem["Comment"].asString(); + if(!storageDescriptorNodeColsColsItem["Type"].isNull()) + colsItemObject.type = storageDescriptorNodeColsColsItem["Type"].asString(); + if(!storageDescriptorNodeColsColsItem["Name"].isNull()) + colsItemObject.name = storageDescriptorNodeColsColsItem["Name"].asString(); + table_.storageDescriptor.cols.push_back(colsItemObject); + } + auto serDeInfoNode = storageDescriptorNode["SerDeInfo"]; + if(!serDeInfoNode["SerializationLib"].isNull()) + table_.storageDescriptor.serDeInfo.serializationLib = serDeInfoNode["SerializationLib"].asString(); + if(!serDeInfoNode["Parameters"].isNull()) + table_.storageDescriptor.serDeInfo.parameters = serDeInfoNode["Parameters"].asString(); + if(!serDeInfoNode["Name"].isNull()) + table_.storageDescriptor.serDeInfo.name = serDeInfoNode["Name"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +GetTableResult::Table GetTableResult::getTable()const +{ + return table_; +} + +std::string GetTableResult::getMessage()const +{ + return message_; +} + +std::string GetTableResult::getCode()const +{ + return code_; +} + +bool GetTableResult::getSuccess()const +{ + return success_; +} + diff --git a/openanalytics-open/src/model/GrantPrivilegesRequest.cc b/openanalytics-open/src/model/GrantPrivilegesRequest.cc new file mode 100644 index 000000000..ccdf42d45 --- /dev/null +++ b/openanalytics-open/src/model/GrantPrivilegesRequest.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::Openanalytics_open::Model::GrantPrivilegesRequest; + +GrantPrivilegesRequest::GrantPrivilegesRequest() : + RpcServiceRequest("openanalytics-open", "2020-09-28", "GrantPrivileges") +{ + setMethod(HttpRequest::Method::Post); +} + +GrantPrivilegesRequest::~GrantPrivilegesRequest() +{} + +Struct GrantPrivilegesRequest::getPrivilegeBag()const +{ + return privilegeBag_; +} + +void GrantPrivilegesRequest::setPrivilegeBag(const Struct& privilegeBag) +{ + privilegeBag_ = privilegeBag; + setParameter("PrivilegeBag", std::to_string(privilegeBag)); +} + diff --git a/openanalytics-open/src/model/GrantPrivilegesResult.cc b/openanalytics-open/src/model/GrantPrivilegesResult.cc new file mode 100644 index 000000000..a4bfd891a --- /dev/null +++ b/openanalytics-open/src/model/GrantPrivilegesResult.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::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +GrantPrivilegesResult::GrantPrivilegesResult() : + ServiceResult() +{} + +GrantPrivilegesResult::GrantPrivilegesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GrantPrivilegesResult::~GrantPrivilegesResult() +{} + +void GrantPrivilegesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string GrantPrivilegesResult::getMessage()const +{ + return message_; +} + +bool GrantPrivilegesResult::getData()const +{ + return data_; +} + +std::string GrantPrivilegesResult::getCode()const +{ + return code_; +} + +bool GrantPrivilegesResult::getSuccess()const +{ + return success_; +} + diff --git a/openanalytics-open/src/model/InitializeDLAServiceRequest.cc b/openanalytics-open/src/model/InitializeDLAServiceRequest.cc new file mode 100644 index 000000000..3bf79fb8d --- /dev/null +++ b/openanalytics-open/src/model/InitializeDLAServiceRequest.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::Openanalytics_open::Model::InitializeDLAServiceRequest; + +InitializeDLAServiceRequest::InitializeDLAServiceRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "InitializeDLAService") +{ + setMethod(HttpRequest::Method::Post); +} + +InitializeDLAServiceRequest::~InitializeDLAServiceRequest() +{} + +std::string InitializeDLAServiceRequest::getExternalUid()const +{ + return externalUid_; +} + +void InitializeDLAServiceRequest::setExternalUid(const std::string& externalUid) +{ + externalUid_ = externalUid; + setBodyParameter("ExternalUid", externalUid); +} + +std::string InitializeDLAServiceRequest::getInitPassword()const +{ + return initPassword_; +} + +void InitializeDLAServiceRequest::setInitPassword(const std::string& initPassword) +{ + initPassword_ = initPassword; + setBodyParameter("InitPassword", initPassword); +} + +std::string InitializeDLAServiceRequest::getExternalAliyunUid()const +{ + return externalAliyunUid_; +} + +void InitializeDLAServiceRequest::setExternalAliyunUid(const std::string& externalAliyunUid) +{ + externalAliyunUid_ = externalAliyunUid; + setBodyParameter("ExternalAliyunUid", externalAliyunUid); +} + +std::string InitializeDLAServiceRequest::getRegionId()const +{ + return regionId_; +} + +void InitializeDLAServiceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setBodyParameter("RegionId", regionId); +} + +bool InitializeDLAServiceRequest::getUseRandomPassword()const +{ + return useRandomPassword_; +} + +void InitializeDLAServiceRequest::setUseRandomPassword(bool useRandomPassword) +{ + useRandomPassword_ = useRandomPassword; + setBodyParameter("UseRandomPassword", useRandomPassword ? "true" : "false"); +} + +bool InitializeDLAServiceRequest::getEnableKMS()const +{ + return enableKMS_; +} + +void InitializeDLAServiceRequest::setEnableKMS(bool enableKMS) +{ + enableKMS_ = enableKMS; + setBodyParameter("EnableKMS", enableKMS ? "true" : "false"); +} + +std::string InitializeDLAServiceRequest::getExternalBizAliyunUid()const +{ + return externalBizAliyunUid_; +} + +void InitializeDLAServiceRequest::setExternalBizAliyunUid(const std::string& externalBizAliyunUid) +{ + externalBizAliyunUid_ = externalBizAliyunUid; + setBodyParameter("ExternalBizAliyunUid", externalBizAliyunUid); +} + diff --git a/openanalytics-open/src/model/InitializeDLAServiceResult.cc b/openanalytics-open/src/model/InitializeDLAServiceResult.cc new file mode 100644 index 000000000..e38d800ce --- /dev/null +++ b/openanalytics-open/src/model/InitializeDLAServiceResult.cc @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +InitializeDLAServiceResult::InitializeDLAServiceResult() : + ServiceResult() +{} + +InitializeDLAServiceResult::InitializeDLAServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +InitializeDLAServiceResult::~InitializeDLAServiceResult() +{} + +void InitializeDLAServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto accountInfoNode = value["AccountInfo"]; + if(!accountInfoNode["UserName"].isNull()) + accountInfo_.userName = accountInfoNode["UserName"].asString(); + if(!accountInfoNode["Password"].isNull()) + accountInfo_.password = accountInfoNode["Password"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + +} + +std::string InitializeDLAServiceResult::getRegionId()const +{ + return regionId_; +} + +InitializeDLAServiceResult::AccountInfo InitializeDLAServiceResult::getAccountInfo()const +{ + return accountInfo_; +} + diff --git a/openanalytics-open/src/model/InitializeRegionRequest.cc b/openanalytics-open/src/model/InitializeRegionRequest.cc new file mode 100644 index 000000000..eda6db915 --- /dev/null +++ b/openanalytics-open/src/model/InitializeRegionRequest.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::Openanalytics_open::Model::InitializeRegionRequest; + +InitializeRegionRequest::InitializeRegionRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "InitializeRegion") +{ + setMethod(HttpRequest::Method::Post); +} + +InitializeRegionRequest::~InitializeRegionRequest() +{} + +std::string InitializeRegionRequest::getExternalUid()const +{ + return externalUid_; +} + +void InitializeRegionRequest::setExternalUid(const std::string& externalUid) +{ + externalUid_ = externalUid; + setBodyParameter("ExternalUid", externalUid); +} + +std::string InitializeRegionRequest::getInitPassword()const +{ + return initPassword_; +} + +void InitializeRegionRequest::setInitPassword(const std::string& initPassword) +{ + initPassword_ = initPassword; + setBodyParameter("InitPassword", initPassword); +} + +std::string InitializeRegionRequest::getExternalAliyunUid()const +{ + return externalAliyunUid_; +} + +void InitializeRegionRequest::setExternalAliyunUid(const std::string& externalAliyunUid) +{ + externalAliyunUid_ = externalAliyunUid; + setBodyParameter("ExternalAliyunUid", externalAliyunUid); +} + +std::string InitializeRegionRequest::getRegionId()const +{ + return regionId_; +} + +void InitializeRegionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setBodyParameter("RegionId", regionId); +} + +bool InitializeRegionRequest::getUseRandomPassword()const +{ + return useRandomPassword_; +} + +void InitializeRegionRequest::setUseRandomPassword(bool useRandomPassword) +{ + useRandomPassword_ = useRandomPassword; + setBodyParameter("UseRandomPassword", useRandomPassword ? "true" : "false"); +} + +bool InitializeRegionRequest::getEnableKMS()const +{ + return enableKMS_; +} + +void InitializeRegionRequest::setEnableKMS(bool enableKMS) +{ + enableKMS_ = enableKMS; + setBodyParameter("EnableKMS", enableKMS ? "true" : "false"); +} + +std::string InitializeRegionRequest::getExternalBizAliyunUid()const +{ + return externalBizAliyunUid_; +} + +void InitializeRegionRequest::setExternalBizAliyunUid(const std::string& externalBizAliyunUid) +{ + externalBizAliyunUid_ = externalBizAliyunUid; + setBodyParameter("ExternalBizAliyunUid", externalBizAliyunUid); +} + diff --git a/openanalytics-open/src/model/InitializeRegionResult.cc b/openanalytics-open/src/model/InitializeRegionResult.cc new file mode 100644 index 000000000..e5b7f614c --- /dev/null +++ b/openanalytics-open/src/model/InitializeRegionResult.cc @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +InitializeRegionResult::InitializeRegionResult() : + ServiceResult() +{} + +InitializeRegionResult::InitializeRegionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +InitializeRegionResult::~InitializeRegionResult() +{} + +void InitializeRegionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto accountNode = value["Account"]; + if(!accountNode["UserName"].isNull()) + account_.userName = accountNode["UserName"].asString(); + if(!accountNode["Password"].isNull()) + account_.password = accountNode["Password"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + +} + +InitializeRegionResult::Account InitializeRegionResult::getAccount()const +{ + return account_; +} + +std::string InitializeRegionResult::getRegionId()const +{ + return regionId_; +} + diff --git a/openanalytics-open/src/model/KillSparkJobRequest.cc b/openanalytics-open/src/model/KillSparkJobRequest.cc new file mode 100644 index 000000000..2e60815c2 --- /dev/null +++ b/openanalytics-open/src/model/KillSparkJobRequest.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::Openanalytics_open::Model::KillSparkJobRequest; + +KillSparkJobRequest::KillSparkJobRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "KillSparkJob") +{ + setMethod(HttpRequest::Method::Post); +} + +KillSparkJobRequest::~KillSparkJobRequest() +{} + +std::string KillSparkJobRequest::getJobId()const +{ + return jobId_; +} + +void KillSparkJobRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setBodyParameter("JobId", jobId); +} + +std::string KillSparkJobRequest::getVcName()const +{ + return vcName_; +} + +void KillSparkJobRequest::setVcName(const std::string& vcName) +{ + vcName_ = vcName; + setBodyParameter("VcName", vcName); +} + diff --git a/openanalytics-open/src/model/KillSparkJobResult.cc b/openanalytics-open/src/model/KillSparkJobResult.cc new file mode 100644 index 000000000..a8f4cfd69 --- /dev/null +++ b/openanalytics-open/src/model/KillSparkJobResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +KillSparkJobResult::KillSparkJobResult() : + ServiceResult() +{} + +KillSparkJobResult::KillSparkJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +KillSparkJobResult::~KillSparkJobResult() +{} + +void KillSparkJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string KillSparkJobResult::getData()const +{ + return data_; +} + diff --git a/openanalytics-open/src/model/ListAlreadyBingingRamUidRequest.cc b/openanalytics-open/src/model/ListAlreadyBingingRamUidRequest.cc new file mode 100644 index 000000000..885d6d1f5 --- /dev/null +++ b/openanalytics-open/src/model/ListAlreadyBingingRamUidRequest.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::Openanalytics_open::Model::ListAlreadyBingingRamUidRequest; + +ListAlreadyBingingRamUidRequest::ListAlreadyBingingRamUidRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "ListAlreadyBingingRamUid") +{ + setMethod(HttpRequest::Method::Post); +} + +ListAlreadyBingingRamUidRequest::~ListAlreadyBingingRamUidRequest() +{} + +std::string ListAlreadyBingingRamUidRequest::getRegionId()const +{ + return regionId_; +} + +void ListAlreadyBingingRamUidRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setBodyParameter("RegionId", regionId); +} + diff --git a/openanalytics-open/src/model/ListAlreadyBingingRamUidResult.cc b/openanalytics-open/src/model/ListAlreadyBingingRamUidResult.cc new file mode 100644 index 000000000..cc77bc0a9 --- /dev/null +++ b/openanalytics-open/src/model/ListAlreadyBingingRamUidResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +ListAlreadyBingingRamUidResult::ListAlreadyBingingRamUidResult() : + ServiceResult() +{} + +ListAlreadyBingingRamUidResult::ListAlreadyBingingRamUidResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAlreadyBingingRamUidResult::~ListAlreadyBingingRamUidResult() +{} + +void ListAlreadyBingingRamUidResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["Data"]; + for (const auto &item : allData) + data_.push_back(item.asString()); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + +} + +std::vector ListAlreadyBingingRamUidResult::getData()const +{ + return data_; +} + +std::string ListAlreadyBingingRamUidResult::getRegionId()const +{ + return regionId_; +} + diff --git a/openanalytics-open/src/model/ListModulesReleaseRequest.cc b/openanalytics-open/src/model/ListModulesReleaseRequest.cc new file mode 100644 index 000000000..5ffea7302 --- /dev/null +++ b/openanalytics-open/src/model/ListModulesReleaseRequest.cc @@ -0,0 +1,29 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Openanalytics_open::Model::ListModulesReleaseRequest; + +ListModulesReleaseRequest::ListModulesReleaseRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "ListModulesRelease") +{ + setMethod(HttpRequest::Method::Get); +} + +ListModulesReleaseRequest::~ListModulesReleaseRequest() +{} + diff --git a/openanalytics-open/src/model/ListModulesReleaseResult.cc b/openanalytics-open/src/model/ListModulesReleaseResult.cc new file mode 100644 index 000000000..c75ec22df --- /dev/null +++ b/openanalytics-open/src/model/ListModulesReleaseResult.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +ListModulesReleaseResult::ListModulesReleaseResult() : + ServiceResult() +{} + +ListModulesReleaseResult::ListModulesReleaseResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListModulesReleaseResult::~ListModulesReleaseResult() +{} + +void ListModulesReleaseResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DataItem"]; + for (auto valueDataDataItem : allDataNode) + { + DataItem dataObject; + if(!valueDataDataItem["Name"].isNull()) + dataObject.name = valueDataDataItem["Name"].asString(); + if(!valueDataDataItem["Type"].isNull()) + dataObject.type = valueDataDataItem["Type"].asString(); + if(!valueDataDataItem["Description"].isNull()) + dataObject.description = valueDataDataItem["Description"].asString(); + if(!valueDataDataItem["Version"].isNull()) + dataObject.version = valueDataDataItem["Version"].asString(); + data_.push_back(dataObject); + } + +} + +std::vector ListModulesReleaseResult::getData()const +{ + return data_; +} + diff --git a/openanalytics-open/src/model/ListResourcesSpecRequest.cc b/openanalytics-open/src/model/ListResourcesSpecRequest.cc new file mode 100644 index 000000000..93bf44fd3 --- /dev/null +++ b/openanalytics-open/src/model/ListResourcesSpecRequest.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::Openanalytics_open::Model::ListResourcesSpecRequest; + +ListResourcesSpecRequest::ListResourcesSpecRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "ListResourcesSpec") +{ + setMethod(HttpRequest::Method::Get); +} + +ListResourcesSpecRequest::~ListResourcesSpecRequest() +{} + +std::string ListResourcesSpecRequest::getType()const +{ + return type_; +} + +void ListResourcesSpecRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + diff --git a/openanalytics-open/src/model/ListResourcesSpecResult.cc b/openanalytics-open/src/model/ListResourcesSpecResult.cc new file mode 100644 index 000000000..f9d11a8ca --- /dev/null +++ b/openanalytics-open/src/model/ListResourcesSpecResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +ListResourcesSpecResult::ListResourcesSpecResult() : + ServiceResult() +{} + +ListResourcesSpecResult::ListResourcesSpecResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListResourcesSpecResult::~ListResourcesSpecResult() +{} + +void ListResourcesSpecResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DataItem"]; + for (auto valueDataDataItem : allDataNode) + { + DataItem dataObject; + if(!valueDataDataItem["Name"].isNull()) + dataObject.name = valueDataDataItem["Name"].asString(); + if(!valueDataDataItem["Description"].isNull()) + dataObject.description = valueDataDataItem["Description"].asString(); + data_.push_back(dataObject); + } + +} + +std::vector ListResourcesSpecResult::getData()const +{ + return data_; +} + diff --git a/openanalytics-open/src/model/ListSparkJobRequest.cc b/openanalytics-open/src/model/ListSparkJobRequest.cc new file mode 100644 index 000000000..49e795daa --- /dev/null +++ b/openanalytics-open/src/model/ListSparkJobRequest.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::Openanalytics_open::Model::ListSparkJobRequest; + +ListSparkJobRequest::ListSparkJobRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "ListSparkJob") +{ + setMethod(HttpRequest::Method::Post); +} + +ListSparkJobRequest::~ListSparkJobRequest() +{} + +int ListSparkJobRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListSparkJobRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +int ListSparkJobRequest::getPageSize()const +{ + return pageSize_; +} + +void ListSparkJobRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListSparkJobRequest::getVcName()const +{ + return vcName_; +} + +void ListSparkJobRequest::setVcName(const std::string& vcName) +{ + vcName_ = vcName; + setParameter("VcName", vcName); +} + diff --git a/openanalytics-open/src/model/ListSparkJobResult.cc b/openanalytics-open/src/model/ListSparkJobResult.cc new file mode 100644 index 000000000..369c0d916 --- /dev/null +++ b/openanalytics-open/src/model/ListSparkJobResult.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::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +ListSparkJobResult::ListSparkJobResult() : + ServiceResult() +{} + +ListSparkJobResult::ListSparkJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSparkJobResult::~ListSparkJobResult() +{} + +void ListSparkJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataResultNode = value["DataResult"]; + if(!dataResultNode["PageNumber"].isNull()) + dataResult_.pageNumber = dataResultNode["PageNumber"].asString(); + if(!dataResultNode["PageSize"].isNull()) + dataResult_.pageSize = dataResultNode["PageSize"].asString(); + if(!dataResultNode["TotalCount"].isNull()) + dataResult_.totalCount = dataResultNode["TotalCount"].asString(); + auto allJobListNode = dataResultNode["JobList"]["Data"]; + for (auto dataResultNodeJobListData : allJobListNode) + { + DataResult::Data dataObject; + if(!dataResultNodeJobListData["CreateTime"].isNull()) + dataObject.createTime = dataResultNodeJobListData["CreateTime"].asString(); + if(!dataResultNodeJobListData["CreateTimeValue"].isNull()) + dataObject.createTimeValue = dataResultNodeJobListData["CreateTimeValue"].asString(); + if(!dataResultNodeJobListData["Detail"].isNull()) + dataObject.detail = dataResultNodeJobListData["Detail"].asString(); + if(!dataResultNodeJobListData["DriverResourceSpec"].isNull()) + dataObject.driverResourceSpec = dataResultNodeJobListData["DriverResourceSpec"].asString(); + if(!dataResultNodeJobListData["ExecutorInstances"].isNull()) + dataObject.executorInstances = dataResultNodeJobListData["ExecutorInstances"].asString(); + if(!dataResultNodeJobListData["ExecutorResourceSpec"].isNull()) + dataObject.executorResourceSpec = dataResultNodeJobListData["ExecutorResourceSpec"].asString(); + if(!dataResultNodeJobListData["JobId"].isNull()) + dataObject.jobId = dataResultNodeJobListData["JobId"].asString(); + if(!dataResultNodeJobListData["JobName"].isNull()) + dataObject.jobName = dataResultNodeJobListData["JobName"].asString(); + if(!dataResultNodeJobListData["SparkUI"].isNull()) + dataObject.sparkUI = dataResultNodeJobListData["SparkUI"].asString(); + if(!dataResultNodeJobListData["Status"].isNull()) + dataObject.status = dataResultNodeJobListData["Status"].asString(); + if(!dataResultNodeJobListData["SubmitTime"].isNull()) + dataObject.submitTime = dataResultNodeJobListData["SubmitTime"].asString(); + if(!dataResultNodeJobListData["SubmitTimeValue"].isNull()) + dataObject.submitTimeValue = dataResultNodeJobListData["SubmitTimeValue"].asString(); + if(!dataResultNodeJobListData["UpdateTime"].isNull()) + dataObject.updateTime = dataResultNodeJobListData["UpdateTime"].asString(); + if(!dataResultNodeJobListData["UpdateTimeValue"].isNull()) + dataObject.updateTimeValue = dataResultNodeJobListData["UpdateTimeValue"].asString(); + if(!dataResultNodeJobListData["VcName"].isNull()) + dataObject.vcName = dataResultNodeJobListData["VcName"].asString(); + dataResult_.jobList.push_back(dataObject); + } + +} + +ListSparkJobResult::DataResult ListSparkJobResult::getDataResult()const +{ + return dataResult_; +} + diff --git a/openanalytics-open/src/model/ListVirtualClustersRequest.cc b/openanalytics-open/src/model/ListVirtualClustersRequest.cc new file mode 100644 index 000000000..6a160c3af --- /dev/null +++ b/openanalytics-open/src/model/ListVirtualClustersRequest.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::Openanalytics_open::Model::ListVirtualClustersRequest; + +ListVirtualClustersRequest::ListVirtualClustersRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "ListVirtualClusters") +{ + setMethod(HttpRequest::Method::Get); +} + +ListVirtualClustersRequest::~ListVirtualClustersRequest() +{} + +std::string ListVirtualClustersRequest::getType()const +{ + return type_; +} + +void ListVirtualClustersRequest::setType(const std::string& type) +{ + type_ = type; + setBodyParameter("Type", type); +} + diff --git a/openanalytics-open/src/model/ListVirtualClustersResult.cc b/openanalytics-open/src/model/ListVirtualClustersResult.cc new file mode 100644 index 000000000..57e403c63 --- /dev/null +++ b/openanalytics-open/src/model/ListVirtualClustersResult.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 +#include + +using namespace AlibabaCloud::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +ListVirtualClustersResult::ListVirtualClustersResult() : + ServiceResult() +{} + +ListVirtualClustersResult::ListVirtualClustersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListVirtualClustersResult::~ListVirtualClustersResult() +{} + +void ListVirtualClustersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DataItem"]; + for (auto valueDataDataItem : allDataNode) + { + DataItem dataObject; + if(!valueDataDataItem["CreateTime"].isNull()) + dataObject.createTime = valueDataDataItem["CreateTime"].asString(); + if(!valueDataDataItem["CreatorId"].isNull()) + dataObject.creatorId = valueDataDataItem["CreatorId"].asString(); + if(!valueDataDataItem["Name"].isNull()) + dataObject.name = valueDataDataItem["Name"].asString(); + if(!valueDataDataItem["Status"].isNull()) + dataObject.status = valueDataDataItem["Status"].asString(); + if(!valueDataDataItem["Type"].isNull()) + dataObject.type = valueDataDataItem["Type"].asString(); + if(!valueDataDataItem["InstanceId"].isNull()) + dataObject.instanceId = valueDataDataItem["InstanceId"].asString(); + if(!valueDataDataItem["MinCpu"].isNull()) + dataObject.minCpu = valueDataDataItem["MinCpu"].asString(); + if(!valueDataDataItem["MaxCpu"].isNull()) + dataObject.maxCpu = valueDataDataItem["MaxCpu"].asString(); + if(!valueDataDataItem["ChargeType"].isNull()) + dataObject.chargeType = valueDataDataItem["ChargeType"].asString(); + data_.push_back(dataObject); + } + +} + +std::vector ListVirtualClustersResult::getData()const +{ + return data_; +} + diff --git a/openanalytics-open/src/model/ModifyVirtualClusterForSparkRequest.cc b/openanalytics-open/src/model/ModifyVirtualClusterForSparkRequest.cc new file mode 100644 index 000000000..e169d5f96 --- /dev/null +++ b/openanalytics-open/src/model/ModifyVirtualClusterForSparkRequest.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::Openanalytics_open::Model::ModifyVirtualClusterForSparkRequest; + +ModifyVirtualClusterForSparkRequest::ModifyVirtualClusterForSparkRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "ModifyVirtualClusterForSpark") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifyVirtualClusterForSparkRequest::~ModifyVirtualClusterForSparkRequest() +{} + +std::string ModifyVirtualClusterForSparkRequest::getDefaultExecutorSpecName()const +{ + return defaultExecutorSpecName_; +} + +void ModifyVirtualClusterForSparkRequest::setDefaultExecutorSpecName(const std::string& defaultExecutorSpecName) +{ + defaultExecutorSpecName_ = defaultExecutorSpecName; + setBodyParameter("DefaultExecutorSpecName", defaultExecutorSpecName); +} + +float ModifyVirtualClusterForSparkRequest::getMaxMemory()const +{ + return maxMemory_; +} + +void ModifyVirtualClusterForSparkRequest::setMaxMemory(float maxMemory) +{ + maxMemory_ = maxMemory; + setBodyParameter("MaxMemory", std::to_string(maxMemory)); +} + +std::string ModifyVirtualClusterForSparkRequest::getSparkModuleReleaseName()const +{ + return sparkModuleReleaseName_; +} + +void ModifyVirtualClusterForSparkRequest::setSparkModuleReleaseName(const std::string& sparkModuleReleaseName) +{ + sparkModuleReleaseName_ = sparkModuleReleaseName; + setBodyParameter("SparkModuleReleaseName", sparkModuleReleaseName); +} + +std::string ModifyVirtualClusterForSparkRequest::getDescription()const +{ + return description_; +} + +void ModifyVirtualClusterForSparkRequest::setDescription(const std::string& description) +{ + description_ = description; + setBodyParameter("Description", description); +} + +long ModifyVirtualClusterForSparkRequest::getDefaultExecutorNumbers()const +{ + return defaultExecutorNumbers_; +} + +void ModifyVirtualClusterForSparkRequest::setDefaultExecutorNumbers(long defaultExecutorNumbers) +{ + defaultExecutorNumbers_ = defaultExecutorNumbers; + setBodyParameter("DefaultExecutorNumbers", std::to_string(defaultExecutorNumbers)); +} + +float ModifyVirtualClusterForSparkRequest::getMaxCpu()const +{ + return maxCpu_; +} + +void ModifyVirtualClusterForSparkRequest::setMaxCpu(float maxCpu) +{ + maxCpu_ = maxCpu; + setBodyParameter("MaxCpu", std::to_string(maxCpu)); +} + +std::string ModifyVirtualClusterForSparkRequest::getName()const +{ + return name_; +} + +void ModifyVirtualClusterForSparkRequest::setName(const std::string& name) +{ + name_ = name; + setBodyParameter("Name", name); +} + +std::string ModifyVirtualClusterForSparkRequest::getDefaultDriverSpecName()const +{ + return defaultDriverSpecName_; +} + +void ModifyVirtualClusterForSparkRequest::setDefaultDriverSpecName(const std::string& defaultDriverSpecName) +{ + defaultDriverSpecName_ = defaultDriverSpecName; + setBodyParameter("DefaultDriverSpecName", defaultDriverSpecName); +} + diff --git a/openanalytics-open/src/model/ModifyVirtualClusterForSparkResult.cc b/openanalytics-open/src/model/ModifyVirtualClusterForSparkResult.cc new file mode 100644 index 000000000..f78e319aa --- /dev/null +++ b/openanalytics-open/src/model/ModifyVirtualClusterForSparkResult.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::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +ModifyVirtualClusterForSparkResult::ModifyVirtualClusterForSparkResult() : + ServiceResult() +{} + +ModifyVirtualClusterForSparkResult::ModifyVirtualClusterForSparkResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyVirtualClusterForSparkResult::~ModifyVirtualClusterForSparkResult() +{} + +void ModifyVirtualClusterForSparkResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/openanalytics-open/src/model/ModifyVirtualClusterRequest.cc b/openanalytics-open/src/model/ModifyVirtualClusterRequest.cc new file mode 100644 index 000000000..64f845d12 --- /dev/null +++ b/openanalytics-open/src/model/ModifyVirtualClusterRequest.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::Openanalytics_open::Model::ModifyVirtualClusterRequest; + +ModifyVirtualClusterRequest::ModifyVirtualClusterRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "ModifyVirtualCluster") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifyVirtualClusterRequest::~ModifyVirtualClusterRequest() +{} + +std::string ModifyVirtualClusterRequest::getDefaultExecutorSpecName()const +{ + return defaultExecutorSpecName_; +} + +void ModifyVirtualClusterRequest::setDefaultExecutorSpecName(const std::string& defaultExecutorSpecName) +{ + defaultExecutorSpecName_ = defaultExecutorSpecName; + setBodyParameter("DefaultExecutorSpecName", defaultExecutorSpecName); +} + +std::string ModifyVirtualClusterRequest::getSparkModuleReleaseName()const +{ + return sparkModuleReleaseName_; +} + +void ModifyVirtualClusterRequest::setSparkModuleReleaseName(const std::string& sparkModuleReleaseName) +{ + sparkModuleReleaseName_ = sparkModuleReleaseName; + setBodyParameter("SparkModuleReleaseName", sparkModuleReleaseName); +} + +std::string ModifyVirtualClusterRequest::getDescription()const +{ + return description_; +} + +void ModifyVirtualClusterRequest::setDescription(const std::string& description) +{ + description_ = description; + setBodyParameter("Description", description); +} + +long ModifyVirtualClusterRequest::getDefaultExecutorNumbers()const +{ + return defaultExecutorNumbers_; +} + +void ModifyVirtualClusterRequest::setDefaultExecutorNumbers(long defaultExecutorNumbers) +{ + defaultExecutorNumbers_ = defaultExecutorNumbers; + setBodyParameter("DefaultExecutorNumbers", std::to_string(defaultExecutorNumbers)); +} + +std::string ModifyVirtualClusterRequest::getName()const +{ + return name_; +} + +void ModifyVirtualClusterRequest::setName(const std::string& name) +{ + name_ = name; + setBodyParameter("Name", name); +} + +std::string ModifyVirtualClusterRequest::getDefaultDriverSpecName()const +{ + return defaultDriverSpecName_; +} + +void ModifyVirtualClusterRequest::setDefaultDriverSpecName(const std::string& defaultDriverSpecName) +{ + defaultDriverSpecName_ = defaultDriverSpecName; + setBodyParameter("DefaultDriverSpecName", defaultDriverSpecName); +} + diff --git a/openanalytics-open/src/model/ModifyVirtualClusterResult.cc b/openanalytics-open/src/model/ModifyVirtualClusterResult.cc new file mode 100644 index 000000000..6fd731f3f --- /dev/null +++ b/openanalytics-open/src/model/ModifyVirtualClusterResult.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::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +ModifyVirtualClusterResult::ModifyVirtualClusterResult() : + ServiceResult() +{} + +ModifyVirtualClusterResult::ModifyVirtualClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyVirtualClusterResult::~ModifyVirtualClusterResult() +{} + +void ModifyVirtualClusterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/openanalytics-open/src/model/OpenDataLakeAnalyticsServiceRequest.cc b/openanalytics-open/src/model/OpenDataLakeAnalyticsServiceRequest.cc new file mode 100644 index 000000000..e40851608 --- /dev/null +++ b/openanalytics-open/src/model/OpenDataLakeAnalyticsServiceRequest.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::Openanalytics_open::Model::OpenDataLakeAnalyticsServiceRequest; + +OpenDataLakeAnalyticsServiceRequest::OpenDataLakeAnalyticsServiceRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "OpenDataLakeAnalyticsService") +{ + setMethod(HttpRequest::Method::Post); +} + +OpenDataLakeAnalyticsServiceRequest::~OpenDataLakeAnalyticsServiceRequest() +{} + +std::string OpenDataLakeAnalyticsServiceRequest::getRegionId()const +{ + return regionId_; +} + +void OpenDataLakeAnalyticsServiceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setBodyParameter("RegionId", regionId); +} + +std::string OpenDataLakeAnalyticsServiceRequest::getInternetChargeType()const +{ + return internetChargeType_; +} + +void OpenDataLakeAnalyticsServiceRequest::setInternetChargeType(const std::string& internetChargeType) +{ + internetChargeType_ = internetChargeType; + setParameter("InternetChargeType", internetChargeType); +} + diff --git a/openanalytics-open/src/model/OpenDataLakeAnalyticsServiceResult.cc b/openanalytics-open/src/model/OpenDataLakeAnalyticsServiceResult.cc new file mode 100644 index 000000000..0ecd422f7 --- /dev/null +++ b/openanalytics-open/src/model/OpenDataLakeAnalyticsServiceResult.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::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +OpenDataLakeAnalyticsServiceResult::OpenDataLakeAnalyticsServiceResult() : + ServiceResult() +{} + +OpenDataLakeAnalyticsServiceResult::OpenDataLakeAnalyticsServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OpenDataLakeAnalyticsServiceResult::~OpenDataLakeAnalyticsServiceResult() +{} + +void OpenDataLakeAnalyticsServiceResult::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["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["ErrorInfo"].isNull()) + errorInfo_ = value["ErrorInfo"].asString(); + if(!value["Result"].isNull()) + result_ = value["Result"].asString(); + +} + +std::string OpenDataLakeAnalyticsServiceResult::getErrorInfo()const +{ + return errorInfo_; +} + +std::string OpenDataLakeAnalyticsServiceResult::getErrorCode()const +{ + return errorCode_; +} + +bool OpenDataLakeAnalyticsServiceResult::getSuccess()const +{ + return success_; +} + +std::string OpenDataLakeAnalyticsServiceResult::getResult()const +{ + return result_; +} + diff --git a/openanalytics-open/src/model/QueryAccountListRequest.cc b/openanalytics-open/src/model/QueryAccountListRequest.cc new file mode 100644 index 000000000..4c1851f23 --- /dev/null +++ b/openanalytics-open/src/model/QueryAccountListRequest.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::Openanalytics_open::Model::QueryAccountListRequest; + +QueryAccountListRequest::QueryAccountListRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "QueryAccountList") +{ + setMethod(HttpRequest::Method::Post); +} + +QueryAccountListRequest::~QueryAccountListRequest() +{} + +std::string QueryAccountListRequest::getRegionId()const +{ + return regionId_; +} + +void QueryAccountListRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setBodyParameter("RegionId", regionId); +} + +int QueryAccountListRequest::getPageSize()const +{ + return pageSize_; +} + +void QueryAccountListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setBodyParameter("PageSize", std::to_string(pageSize)); +} + +int QueryAccountListRequest::getPageNumber()const +{ + return pageNumber_; +} + +void QueryAccountListRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setBodyParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/openanalytics-open/src/model/QueryAccountListResult.cc b/openanalytics-open/src/model/QueryAccountListResult.cc new file mode 100644 index 000000000..7bfec7ca1 --- /dev/null +++ b/openanalytics-open/src/model/QueryAccountListResult.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::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +QueryAccountListResult::QueryAccountListResult() : + ServiceResult() +{} + +QueryAccountListResult::QueryAccountListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryAccountListResult::~QueryAccountListResult() +{} + +void QueryAccountListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DataItem"]; + for (auto valueDataDataItem : allDataNode) + { + DataItem dataObject; + if(!valueDataDataItem["UserName"].isNull()) + dataObject.userName = valueDataDataItem["UserName"].asString(); + if(!valueDataDataItem["Role"].isNull()) + dataObject.role = valueDataDataItem["Role"].asString(); + if(!valueDataDataItem["ShortName"].isNull()) + dataObject.shortName = valueDataDataItem["ShortName"].asString(); + if(!valueDataDataItem["Remark"].isNull()) + dataObject.remark = valueDataDataItem["Remark"].asString(); + if(!valueDataDataItem["RamUid"].isNull()) + dataObject.ramUid = valueDataDataItem["RamUid"].asString(); + data_.push_back(dataObject); + } + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int QueryAccountListResult::getTotalCount()const +{ + return totalCount_; +} + +int QueryAccountListResult::getPageSize()const +{ + return pageSize_; +} + +int QueryAccountListResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector QueryAccountListResult::getData()const +{ + return data_; +} + +std::string QueryAccountListResult::getRegionId()const +{ + return regionId_; +} + diff --git a/openanalytics-open/src/model/QueryDataSourceDefRequest.cc b/openanalytics-open/src/model/QueryDataSourceDefRequest.cc new file mode 100644 index 000000000..f87e012fd --- /dev/null +++ b/openanalytics-open/src/model/QueryDataSourceDefRequest.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::Openanalytics_open::Model::QueryDataSourceDefRequest; + +QueryDataSourceDefRequest::QueryDataSourceDefRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "QueryDataSourceDef") +{ + setMethod(HttpRequest::Method::Post); +} + +QueryDataSourceDefRequest::~QueryDataSourceDefRequest() +{} + +std::string QueryDataSourceDefRequest::getRegionId()const +{ + return regionId_; +} + +void QueryDataSourceDefRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setBodyParameter("RegionId", regionId); +} + diff --git a/openanalytics-open/src/model/QueryDataSourceDefResult.cc b/openanalytics-open/src/model/QueryDataSourceDefResult.cc new file mode 100644 index 000000000..fab9a216e --- /dev/null +++ b/openanalytics-open/src/model/QueryDataSourceDefResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +QueryDataSourceDefResult::QueryDataSourceDefResult() : + ServiceResult() +{} + +QueryDataSourceDefResult::QueryDataSourceDefResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryDataSourceDefResult::~QueryDataSourceDefResult() +{} + +void QueryDataSourceDefResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRegionListNode = value["RegionList"]["RegionListItem"]; + for (auto valueRegionListRegionListItem : allRegionListNode) + { + RegionListItem regionListObject; + if(!valueRegionListRegionListItem["dataSourceName"].isNull()) + regionListObject.dataSourceName = valueRegionListRegionListItem["dataSourceName"].asString(); + if(!valueRegionListRegionListItem["roleArn"].isNull()) + regionListObject.roleArn = valueRegionListRegionListItem["roleArn"].asString(); + if(!valueRegionListRegionListItem["authorizedURL"].isNull()) + regionListObject.authorizedURL = valueRegionListRegionListItem["authorizedURL"].asString(); + regionList_.push_back(regionListObject); + } + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + +} + +std::vector QueryDataSourceDefResult::getRegionList()const +{ + return regionList_; +} + +std::string QueryDataSourceDefResult::getRegionId()const +{ + return regionId_; +} + diff --git a/openanalytics-open/src/model/QueryDiscountListRequest.cc b/openanalytics-open/src/model/QueryDiscountListRequest.cc new file mode 100644 index 000000000..a3129bcdf --- /dev/null +++ b/openanalytics-open/src/model/QueryDiscountListRequest.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::Openanalytics_open::Model::QueryDiscountListRequest; + +QueryDiscountListRequest::QueryDiscountListRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "QueryDiscountList") +{ + setMethod(HttpRequest::Method::Post); +} + +QueryDiscountListRequest::~QueryDiscountListRequest() +{} + +std::string QueryDiscountListRequest::getRegionId()const +{ + return regionId_; +} + +void QueryDiscountListRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setBodyParameter("RegionId", regionId); +} + +int QueryDiscountListRequest::getPageSize()const +{ + return pageSize_; +} + +void QueryDiscountListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setBodyParameter("PageSize", std::to_string(pageSize)); +} + +int QueryDiscountListRequest::getPageNumber()const +{ + return pageNumber_; +} + +void QueryDiscountListRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setBodyParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/openanalytics-open/src/model/QueryDiscountListResult.cc b/openanalytics-open/src/model/QueryDiscountListResult.cc new file mode 100644 index 000000000..ee64af85f --- /dev/null +++ b/openanalytics-open/src/model/QueryDiscountListResult.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 +#include + +using namespace AlibabaCloud::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +QueryDiscountListResult::QueryDiscountListResult() : + ServiceResult() +{} + +QueryDiscountListResult::QueryDiscountListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryDiscountListResult::~QueryDiscountListResult() +{} + +void QueryDiscountListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DataItem"]; + for (auto valueDataDataItem : allDataNode) + { + DataItem dataObject; + if(!valueDataDataItem["PlanID"].isNull()) + dataObject.planID = valueDataDataItem["PlanID"].asString(); + if(!valueDataDataItem["GmtCreate"].isNull()) + dataObject.gmtCreate = valueDataDataItem["GmtCreate"].asString(); + if(!valueDataDataItem["GmtCreateValue"].isNull()) + dataObject.gmtCreateValue = std::stol(valueDataDataItem["GmtCreateValue"].asString()); + if(!valueDataDataItem["DiscountType"].isNull()) + dataObject.discountType = valueDataDataItem["DiscountType"].asString(); + if(!valueDataDataItem["DiscountConfig"].isNull()) + dataObject.discountConfig = valueDataDataItem["DiscountConfig"].asString(); + if(!valueDataDataItem["PayType"].isNull()) + dataObject.payType = std::stoi(valueDataDataItem["PayType"].asString()); + if(!valueDataDataItem["PayAmount"].isNull()) + dataObject.payAmount = valueDataDataItem["PayAmount"].asString(); + if(!valueDataDataItem["Weight"].isNull()) + dataObject.weight = std::stoi(valueDataDataItem["Weight"].asString()); + if(!valueDataDataItem["Stacked"].isNull()) + dataObject.stacked = std::stoi(valueDataDataItem["Stacked"].asString()); + if(!valueDataDataItem["UsageBytes"].isNull()) + dataObject.usageBytes = std::stol(valueDataDataItem["UsageBytes"].asString()); + if(!valueDataDataItem["EffectiveStartTime"].isNull()) + dataObject.effectiveStartTime = valueDataDataItem["EffectiveStartTime"].asString(); + if(!valueDataDataItem["EffectiveStartTimeValue"].isNull()) + dataObject.effectiveStartTimeValue = std::stol(valueDataDataItem["EffectiveStartTimeValue"].asString()); + if(!valueDataDataItem["EffectiveEndTime"].isNull()) + dataObject.effectiveEndTime = valueDataDataItem["EffectiveEndTime"].asString(); + if(!valueDataDataItem["EffectiveEndTimeValue"].isNull()) + dataObject.effectiveEndTimeValue = std::stol(valueDataDataItem["EffectiveEndTimeValue"].asString()); + if(!valueDataDataItem["Status"].isNull()) + dataObject.status = std::stoi(valueDataDataItem["Status"].asString()); + data_.push_back(dataObject); + } + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int QueryDiscountListResult::getTotalCount()const +{ + return totalCount_; +} + +int QueryDiscountListResult::getPageSize()const +{ + return pageSize_; +} + +int QueryDiscountListResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector QueryDiscountListResult::getData()const +{ + return data_; +} + +std::string QueryDiscountListResult::getRegionId()const +{ + return regionId_; +} + diff --git a/openanalytics-open/src/model/QueryEndPointListRequest.cc b/openanalytics-open/src/model/QueryEndPointListRequest.cc new file mode 100644 index 000000000..c55508a3c --- /dev/null +++ b/openanalytics-open/src/model/QueryEndPointListRequest.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::Openanalytics_open::Model::QueryEndPointListRequest; + +QueryEndPointListRequest::QueryEndPointListRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "QueryEndPointList") +{ + setMethod(HttpRequest::Method::Post); +} + +QueryEndPointListRequest::~QueryEndPointListRequest() +{} + +std::string QueryEndPointListRequest::getRegionId()const +{ + return regionId_; +} + +void QueryEndPointListRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setBodyParameter("RegionId", regionId); +} + diff --git a/openanalytics-open/src/model/QueryEndPointListResult.cc b/openanalytics-open/src/model/QueryEndPointListResult.cc new file mode 100644 index 000000000..d00d07ec8 --- /dev/null +++ b/openanalytics-open/src/model/QueryEndPointListResult.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 +#include + +using namespace AlibabaCloud::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +QueryEndPointListResult::QueryEndPointListResult() : + ServiceResult() +{} + +QueryEndPointListResult::QueryEndPointListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryEndPointListResult::~QueryEndPointListResult() +{} + +void QueryEndPointListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allEndPointListNode = value["EndPointList"]["EndPointListItem"]; + for (auto valueEndPointListEndPointListItem : allEndPointListNode) + { + EndPointListItem endPointListObject; + if(!valueEndPointListEndPointListItem["endPointID"].isNull()) + endPointListObject.endPointID = valueEndPointListEndPointListItem["endPointID"].asString(); + if(!valueEndPointListEndPointListItem["zone"].isNull()) + endPointListObject.zone = valueEndPointListEndPointListItem["zone"].asString(); + if(!valueEndPointListEndPointListItem["vSwitch"].isNull()) + endPointListObject.vSwitch = valueEndPointListEndPointListItem["vSwitch"].asString(); + if(!valueEndPointListEndPointListItem["status"].isNull()) + endPointListObject.status = valueEndPointListEndPointListItem["status"].asString(); + if(!valueEndPointListEndPointListItem["vpcID"].isNull()) + endPointListObject.vpcID = valueEndPointListEndPointListItem["vpcID"].asString(); + if(!valueEndPointListEndPointListItem["host"].isNull()) + endPointListObject.host = valueEndPointListEndPointListItem["host"].asString(); + if(!valueEndPointListEndPointListItem["domainURL"].isNull()) + endPointListObject.domainURL = valueEndPointListEndPointListItem["domainURL"].asString(); + if(!valueEndPointListEndPointListItem["networkType"].isNull()) + endPointListObject.networkType = valueEndPointListEndPointListItem["networkType"].asString(); + if(!valueEndPointListEndPointListItem["allowIP"].isNull()) + endPointListObject.allowIP = valueEndPointListEndPointListItem["allowIP"].asString(); + if(!valueEndPointListEndPointListItem["port"].isNull()) + endPointListObject.port = valueEndPointListEndPointListItem["port"].asString(); + if(!valueEndPointListEndPointListItem["product"].isNull()) + endPointListObject.product = valueEndPointListEndPointListItem["product"].asString(); + endPointList_.push_back(endPointListObject); + } + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + +} + +std::vector QueryEndPointListResult::getEndPointList()const +{ + return endPointList_; +} + +std::string QueryEndPointListResult::getRegionId()const +{ + return regionId_; +} + diff --git a/openanalytics-open/src/model/QueryServiceAccountListRequest.cc b/openanalytics-open/src/model/QueryServiceAccountListRequest.cc new file mode 100644 index 000000000..41b3add4f --- /dev/null +++ b/openanalytics-open/src/model/QueryServiceAccountListRequest.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::Openanalytics_open::Model::QueryServiceAccountListRequest; + +QueryServiceAccountListRequest::QueryServiceAccountListRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "QueryServiceAccountList") +{ + setMethod(HttpRequest::Method::Post); +} + +QueryServiceAccountListRequest::~QueryServiceAccountListRequest() +{} + +std::string QueryServiceAccountListRequest::getRegionId()const +{ + return regionId_; +} + +void QueryServiceAccountListRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setBodyParameter("RegionId", regionId); +} + diff --git a/openanalytics-open/src/model/QueryServiceAccountListResult.cc b/openanalytics-open/src/model/QueryServiceAccountListResult.cc new file mode 100644 index 000000000..e815522c1 --- /dev/null +++ b/openanalytics-open/src/model/QueryServiceAccountListResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +QueryServiceAccountListResult::QueryServiceAccountListResult() : + ServiceResult() +{} + +QueryServiceAccountListResult::QueryServiceAccountListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryServiceAccountListResult::~QueryServiceAccountListResult() +{} + +void QueryServiceAccountListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DataItem"]; + for (auto valueDataDataItem : allDataNode) + { + DataItem dataObject; + if(!valueDataDataItem["UserName"].isNull()) + dataObject.userName = valueDataDataItem["UserName"].asString(); + if(!valueDataDataItem["Role"].isNull()) + dataObject.role = valueDataDataItem["Role"].asString(); + if(!valueDataDataItem["ShortName"].isNull()) + dataObject.shortName = valueDataDataItem["ShortName"].asString(); + data_.push_back(dataObject); + } + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + +} + +std::vector QueryServiceAccountListResult::getData()const +{ + return data_; +} + +std::string QueryServiceAccountListResult::getRegionId()const +{ + return regionId_; +} + diff --git a/openanalytics-open/src/model/QueryTaskSumRequest.cc b/openanalytics-open/src/model/QueryTaskSumRequest.cc new file mode 100644 index 000000000..3e5e2f98b --- /dev/null +++ b/openanalytics-open/src/model/QueryTaskSumRequest.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::Openanalytics_open::Model::QueryTaskSumRequest; + +QueryTaskSumRequest::QueryTaskSumRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "QueryTaskSum") +{ + setMethod(HttpRequest::Method::Post); +} + +QueryTaskSumRequest::~QueryTaskSumRequest() +{} + +std::string QueryTaskSumRequest::getRegionId()const +{ + return regionId_; +} + +void QueryTaskSumRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setBodyParameter("RegionId", regionId); +} + +std::string QueryTaskSumRequest::getTwoDaysAgoBeginTs()const +{ + return twoDaysAgoBeginTs_; +} + +void QueryTaskSumRequest::setTwoDaysAgoBeginTs(const std::string& twoDaysAgoBeginTs) +{ + twoDaysAgoBeginTs_ = twoDaysAgoBeginTs; + setBodyParameter("TwoDaysAgoBeginTs", twoDaysAgoBeginTs); +} + +std::string QueryTaskSumRequest::getYesterdayBeginTs()const +{ + return yesterdayBeginTs_; +} + +void QueryTaskSumRequest::setYesterdayBeginTs(const std::string& yesterdayBeginTs) +{ + yesterdayBeginTs_ = yesterdayBeginTs; + setBodyParameter("YesterdayBeginTs", yesterdayBeginTs); +} + +std::string QueryTaskSumRequest::getTodayBeginTs()const +{ + return todayBeginTs_; +} + +void QueryTaskSumRequest::setTodayBeginTs(const std::string& todayBeginTs) +{ + todayBeginTs_ = todayBeginTs; + setBodyParameter("TodayBeginTs", todayBeginTs); +} + diff --git a/openanalytics-open/src/model/QueryTaskSumResult.cc b/openanalytics-open/src/model/QueryTaskSumResult.cc new file mode 100644 index 000000000..00ed4c09f --- /dev/null +++ b/openanalytics-open/src/model/QueryTaskSumResult.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +QueryTaskSumResult::QueryTaskSumResult() : + ServiceResult() +{} + +QueryTaskSumResult::QueryTaskSumResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryTaskSumResult::~QueryTaskSumResult() +{} + +void QueryTaskSumResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto queryTaskSumInfoNode = value["QueryTaskSumInfo"]; + if(!queryTaskSumInfoNode["Uid"].isNull()) + queryTaskSumInfo_.uid = queryTaskSumInfoNode["Uid"].asString(); + if(!queryTaskSumInfoNode["ScannedDataBytesGbToday"].isNull()) + queryTaskSumInfo_.scannedDataBytesGbToday = queryTaskSumInfoNode["ScannedDataBytesGbToday"].asString(); + if(!queryTaskSumInfoNode["TotalStmtCountToday"].isNull()) + queryTaskSumInfo_.totalStmtCountToday = queryTaskSumInfoNode["TotalStmtCountToday"].asString(); + if(!queryTaskSumInfoNode["TotalChargedStmtCountToday"].isNull()) + queryTaskSumInfo_.totalChargedStmtCountToday = queryTaskSumInfoNode["TotalChargedStmtCountToday"].asString(); + if(!queryTaskSumInfoNode["ScannedDataBytesTodayIncr"].isNull()) + queryTaskSumInfo_.scannedDataBytesTodayIncr = queryTaskSumInfoNode["ScannedDataBytesTodayIncr"].asString(); + if(!queryTaskSumInfoNode["TotalStmtCountTodayIncr"].isNull()) + queryTaskSumInfo_.totalStmtCountTodayIncr = queryTaskSumInfoNode["TotalStmtCountTodayIncr"].asString(); + if(!queryTaskSumInfoNode["TotalChargedStmtCountTodayIncr"].isNull()) + queryTaskSumInfo_.totalChargedStmtCountTodayIncr = queryTaskSumInfoNode["TotalChargedStmtCountTodayIncr"].asString(); + if(!queryTaskSumInfoNode["ScannedDataBytesGbYesterday"].isNull()) + queryTaskSumInfo_.scannedDataBytesGbYesterday = queryTaskSumInfoNode["ScannedDataBytesGbYesterday"].asString(); + if(!queryTaskSumInfoNode["TotalStmtCountYesterday"].isNull()) + queryTaskSumInfo_.totalStmtCountYesterday = queryTaskSumInfoNode["TotalStmtCountYesterday"].asString(); + if(!queryTaskSumInfoNode["TotalChargedStmtCountYesterday"].isNull()) + queryTaskSumInfo_.totalChargedStmtCountYesterday = queryTaskSumInfoNode["TotalChargedStmtCountYesterday"].asString(); + if(!queryTaskSumInfoNode["ScannedDataBytesYesterdayIncr"].isNull()) + queryTaskSumInfo_.scannedDataBytesYesterdayIncr = queryTaskSumInfoNode["ScannedDataBytesYesterdayIncr"].asString(); + if(!queryTaskSumInfoNode["TotalStmtCountYesterdayIncr"].isNull()) + queryTaskSumInfo_.totalStmtCountYesterdayIncr = queryTaskSumInfoNode["TotalStmtCountYesterdayIncr"].asString(); + if(!queryTaskSumInfoNode["TotalChargedStmtCountYesterdayIncr"].isNull()) + queryTaskSumInfo_.totalChargedStmtCountYesterdayIncr = queryTaskSumInfoNode["TotalChargedStmtCountYesterdayIncr"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + +} + +QueryTaskSumResult::QueryTaskSumInfo QueryTaskSumResult::getQueryTaskSumInfo()const +{ + return queryTaskSumInfo_; +} + +std::string QueryTaskSumResult::getRegionId()const +{ + return regionId_; +} + diff --git a/openanalytics-open/src/model/ReleaseInstanceRequest.cc b/openanalytics-open/src/model/ReleaseInstanceRequest.cc new file mode 100644 index 000000000..799cf069c --- /dev/null +++ b/openanalytics-open/src/model/ReleaseInstanceRequest.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::Openanalytics_open::Model::ReleaseInstanceRequest; + +ReleaseInstanceRequest::ReleaseInstanceRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "ReleaseInstance") +{ + setMethod(HttpRequest::Method::Post); +} + +ReleaseInstanceRequest::~ReleaseInstanceRequest() +{} + +std::string ReleaseInstanceRequest::getRegionId()const +{ + return regionId_; +} + +void ReleaseInstanceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setBodyParameter("RegionId", regionId); +} + +std::string ReleaseInstanceRequest::getInstanceId()const +{ + return instanceId_; +} + +void ReleaseInstanceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setBodyParameter("InstanceId", instanceId); +} + diff --git a/openanalytics-open/src/model/ReleaseInstanceResult.cc b/openanalytics-open/src/model/ReleaseInstanceResult.cc new file mode 100644 index 000000000..012720bd8 --- /dev/null +++ b/openanalytics-open/src/model/ReleaseInstanceResult.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::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +ReleaseInstanceResult::ReleaseInstanceResult() : + ServiceResult() +{} + +ReleaseInstanceResult::ReleaseInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReleaseInstanceResult::~ReleaseInstanceResult() +{} + +void ReleaseInstanceResult::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["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["ErrorInfo"].isNull()) + errorInfo_ = value["ErrorInfo"].asString(); + if(!value["Result"].isNull()) + result_ = value["Result"].asString(); + +} + +std::string ReleaseInstanceResult::getErrorInfo()const +{ + return errorInfo_; +} + +std::string ReleaseInstanceResult::getErrorCode()const +{ + return errorCode_; +} + +bool ReleaseInstanceResult::getSuccess()const +{ + return success_; +} + +std::string ReleaseInstanceResult::getResult()const +{ + return result_; +} + diff --git a/openanalytics-open/src/model/RemoveEndPointRequest.cc b/openanalytics-open/src/model/RemoveEndPointRequest.cc new file mode 100644 index 000000000..71ff2aa08 --- /dev/null +++ b/openanalytics-open/src/model/RemoveEndPointRequest.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::Openanalytics_open::Model::RemoveEndPointRequest; + +RemoveEndPointRequest::RemoveEndPointRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "RemoveEndPoint") +{ + setMethod(HttpRequest::Method::Post); +} + +RemoveEndPointRequest::~RemoveEndPointRequest() +{} + +std::string RemoveEndPointRequest::getRegionId()const +{ + return regionId_; +} + +void RemoveEndPointRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setBodyParameter("RegionId", regionId); +} + +std::string RemoveEndPointRequest::getEndPointID()const +{ + return endPointID_; +} + +void RemoveEndPointRequest::setEndPointID(const std::string& endPointID) +{ + endPointID_ = endPointID; + setBodyParameter("EndPointID", endPointID); +} + diff --git a/openanalytics-open/src/model/RemoveEndPointResult.cc b/openanalytics-open/src/model/RemoveEndPointResult.cc new file mode 100644 index 000000000..1ccdc6742 --- /dev/null +++ b/openanalytics-open/src/model/RemoveEndPointResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +RemoveEndPointResult::RemoveEndPointResult() : + ServiceResult() +{} + +RemoveEndPointResult::RemoveEndPointResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveEndPointResult::~RemoveEndPointResult() +{} + +void RemoveEndPointResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + +} + +std::string RemoveEndPointResult::getRegionId()const +{ + return regionId_; +} + diff --git a/openanalytics-open/src/model/ResetMainPasswordRequest.cc b/openanalytics-open/src/model/ResetMainPasswordRequest.cc new file mode 100644 index 000000000..25d9d7639 --- /dev/null +++ b/openanalytics-open/src/model/ResetMainPasswordRequest.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::Openanalytics_open::Model::ResetMainPasswordRequest; + +ResetMainPasswordRequest::ResetMainPasswordRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "ResetMainPassword") +{ + setMethod(HttpRequest::Method::Post); +} + +ResetMainPasswordRequest::~ResetMainPasswordRequest() +{} + +std::string ResetMainPasswordRequest::getExternalUid()const +{ + return externalUid_; +} + +void ResetMainPasswordRequest::setExternalUid(const std::string& externalUid) +{ + externalUid_ = externalUid; + setBodyParameter("ExternalUid", externalUid); +} + +std::string ResetMainPasswordRequest::getInitPassword()const +{ + return initPassword_; +} + +void ResetMainPasswordRequest::setInitPassword(const std::string& initPassword) +{ + initPassword_ = initPassword; + setBodyParameter("InitPassword", initPassword); +} + +std::string ResetMainPasswordRequest::getExternalAliyunUid()const +{ + return externalAliyunUid_; +} + +void ResetMainPasswordRequest::setExternalAliyunUid(const std::string& externalAliyunUid) +{ + externalAliyunUid_ = externalAliyunUid; + setBodyParameter("ExternalAliyunUid", externalAliyunUid); +} + +std::string ResetMainPasswordRequest::getRegionId()const +{ + return regionId_; +} + +void ResetMainPasswordRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setBodyParameter("RegionId", regionId); +} + +bool ResetMainPasswordRequest::getUseRandomPassword()const +{ + return useRandomPassword_; +} + +void ResetMainPasswordRequest::setUseRandomPassword(bool useRandomPassword) +{ + useRandomPassword_ = useRandomPassword; + setBodyParameter("UseRandomPassword", useRandomPassword ? "true" : "false"); +} + +bool ResetMainPasswordRequest::getEnableKMS()const +{ + return enableKMS_; +} + +void ResetMainPasswordRequest::setEnableKMS(bool enableKMS) +{ + enableKMS_ = enableKMS; + setBodyParameter("EnableKMS", enableKMS ? "true" : "false"); +} + +std::string ResetMainPasswordRequest::getExternalBizAliyunUid()const +{ + return externalBizAliyunUid_; +} + +void ResetMainPasswordRequest::setExternalBizAliyunUid(const std::string& externalBizAliyunUid) +{ + externalBizAliyunUid_ = externalBizAliyunUid; + setBodyParameter("ExternalBizAliyunUid", externalBizAliyunUid); +} + diff --git a/openanalytics-open/src/model/ResetMainPasswordResult.cc b/openanalytics-open/src/model/ResetMainPasswordResult.cc new file mode 100644 index 000000000..925a54184 --- /dev/null +++ b/openanalytics-open/src/model/ResetMainPasswordResult.cc @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +ResetMainPasswordResult::ResetMainPasswordResult() : + ServiceResult() +{} + +ResetMainPasswordResult::ResetMainPasswordResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResetMainPasswordResult::~ResetMainPasswordResult() +{} + +void ResetMainPasswordResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto accountNode = value["Account"]; + if(!accountNode["UserName"].isNull()) + account_.userName = accountNode["UserName"].asString(); + if(!accountNode["Password"].isNull()) + account_.password = accountNode["Password"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + +} + +ResetMainPasswordResult::Account ResetMainPasswordResult::getAccount()const +{ + return account_; +} + +std::string ResetMainPasswordResult::getRegionId()const +{ + return regionId_; +} + diff --git a/openanalytics-open/src/model/RevokePrivilegesRequest.cc b/openanalytics-open/src/model/RevokePrivilegesRequest.cc new file mode 100644 index 000000000..63f2bf1f0 --- /dev/null +++ b/openanalytics-open/src/model/RevokePrivilegesRequest.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::Openanalytics_open::Model::RevokePrivilegesRequest; + +RevokePrivilegesRequest::RevokePrivilegesRequest() : + RpcServiceRequest("openanalytics-open", "2020-09-28", "RevokePrivileges") +{ + setMethod(HttpRequest::Method::Post); +} + +RevokePrivilegesRequest::~RevokePrivilegesRequest() +{} + +Struct RevokePrivilegesRequest::getPrivilegeBag()const +{ + return privilegeBag_; +} + +void RevokePrivilegesRequest::setPrivilegeBag(const Struct& privilegeBag) +{ + privilegeBag_ = privilegeBag; + setParameter("PrivilegeBag", std::to_string(privilegeBag)); +} + diff --git a/openanalytics-open/src/model/RevokePrivilegesResult.cc b/openanalytics-open/src/model/RevokePrivilegesResult.cc new file mode 100644 index 000000000..92f7826b0 --- /dev/null +++ b/openanalytics-open/src/model/RevokePrivilegesResult.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::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +RevokePrivilegesResult::RevokePrivilegesResult() : + ServiceResult() +{} + +RevokePrivilegesResult::RevokePrivilegesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RevokePrivilegesResult::~RevokePrivilegesResult() +{} + +void RevokePrivilegesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string RevokePrivilegesResult::getMessage()const +{ + return message_; +} + +bool RevokePrivilegesResult::getData()const +{ + return data_; +} + +std::string RevokePrivilegesResult::getCode()const +{ + return code_; +} + +bool RevokePrivilegesResult::getSuccess()const +{ + return success_; +} + diff --git a/openanalytics-open/src/model/SetAllowIPRequest.cc b/openanalytics-open/src/model/SetAllowIPRequest.cc new file mode 100644 index 000000000..9f43f797f --- /dev/null +++ b/openanalytics-open/src/model/SetAllowIPRequest.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::Openanalytics_open::Model::SetAllowIPRequest; + +SetAllowIPRequest::SetAllowIPRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "SetAllowIP") +{ + setMethod(HttpRequest::Method::Post); +} + +SetAllowIPRequest::~SetAllowIPRequest() +{} + +std::string SetAllowIPRequest::getRegionId()const +{ + return regionId_; +} + +void SetAllowIPRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setBodyParameter("RegionId", regionId); +} + +std::string SetAllowIPRequest::getNetworkType()const +{ + return networkType_; +} + +void SetAllowIPRequest::setNetworkType(const std::string& networkType) +{ + networkType_ = networkType; + setBodyParameter("NetworkType", networkType); +} + +std::string SetAllowIPRequest::getProduct()const +{ + return product_; +} + +void SetAllowIPRequest::setProduct(const std::string& product) +{ + product_ = product; + setBodyParameter("Product", product); +} + +std::string SetAllowIPRequest::getAllowIP()const +{ + return allowIP_; +} + +void SetAllowIPRequest::setAllowIP(const std::string& allowIP) +{ + allowIP_ = allowIP; + setBodyParameter("AllowIP", allowIP); +} + +bool SetAllowIPRequest::getAppend()const +{ + return append_; +} + +void SetAllowIPRequest::setAppend(bool append) +{ + append_ = append; + setBodyParameter("Append", append ? "true" : "false"); +} + diff --git a/openanalytics-open/src/model/SetAllowIPResult.cc b/openanalytics-open/src/model/SetAllowIPResult.cc new file mode 100644 index 000000000..068d96f66 --- /dev/null +++ b/openanalytics-open/src/model/SetAllowIPResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +SetAllowIPResult::SetAllowIPResult() : + ServiceResult() +{} + +SetAllowIPResult::SetAllowIPResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetAllowIPResult::~SetAllowIPResult() +{} + +void SetAllowIPResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + +} + +std::string SetAllowIPResult::getRegionId()const +{ + return regionId_; +} + diff --git a/openanalytics-open/src/model/SetCapacityLimitPolicyRequest.cc b/openanalytics-open/src/model/SetCapacityLimitPolicyRequest.cc new file mode 100644 index 000000000..9e0f3c363 --- /dev/null +++ b/openanalytics-open/src/model/SetCapacityLimitPolicyRequest.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::Openanalytics_open::Model::SetCapacityLimitPolicyRequest; + +SetCapacityLimitPolicyRequest::SetCapacityLimitPolicyRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "SetCapacityLimitPolicy") +{ + setMethod(HttpRequest::Method::Post); +} + +SetCapacityLimitPolicyRequest::~SetCapacityLimitPolicyRequest() +{} + +std::string SetCapacityLimitPolicyRequest::getRegionId()const +{ + return regionId_; +} + +void SetCapacityLimitPolicyRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setBodyParameter("RegionId", regionId); +} + +std::string SetCapacityLimitPolicyRequest::getPolicy()const +{ + return policy_; +} + +void SetCapacityLimitPolicyRequest::setPolicy(const std::string& policy) +{ + policy_ = policy; + setBodyParameter("Policy", policy); +} + +std::string SetCapacityLimitPolicyRequest::getExternalBizAliyunUid()const +{ + return externalBizAliyunUid_; +} + +void SetCapacityLimitPolicyRequest::setExternalBizAliyunUid(const std::string& externalBizAliyunUid) +{ + externalBizAliyunUid_ = externalBizAliyunUid; + setBodyParameter("ExternalBizAliyunUid", externalBizAliyunUid); +} + diff --git a/openanalytics-open/src/model/SetCapacityLimitPolicyResult.cc b/openanalytics-open/src/model/SetCapacityLimitPolicyResult.cc new file mode 100644 index 000000000..8fbc29079 --- /dev/null +++ b/openanalytics-open/src/model/SetCapacityLimitPolicyResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +SetCapacityLimitPolicyResult::SetCapacityLimitPolicyResult() : + ServiceResult() +{} + +SetCapacityLimitPolicyResult::SetCapacityLimitPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetCapacityLimitPolicyResult::~SetCapacityLimitPolicyResult() +{} + +void SetCapacityLimitPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + +} + +std::string SetCapacityLimitPolicyResult::getRegionId()const +{ + return regionId_; +} + diff --git a/openanalytics-open/src/model/SetRelationWithBizRequest.cc b/openanalytics-open/src/model/SetRelationWithBizRequest.cc new file mode 100644 index 000000000..ed5299e40 --- /dev/null +++ b/openanalytics-open/src/model/SetRelationWithBizRequest.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::Openanalytics_open::Model::SetRelationWithBizRequest; + +SetRelationWithBizRequest::SetRelationWithBizRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "SetRelationWithBiz") +{ + setMethod(HttpRequest::Method::Post); +} + +SetRelationWithBizRequest::~SetRelationWithBizRequest() +{} + +std::string SetRelationWithBizRequest::getExternalUid()const +{ + return externalUid_; +} + +void SetRelationWithBizRequest::setExternalUid(const std::string& externalUid) +{ + externalUid_ = externalUid; + setBodyParameter("ExternalUid", externalUid); +} + +std::string SetRelationWithBizRequest::getExternalAliyunUid()const +{ + return externalAliyunUid_; +} + +void SetRelationWithBizRequest::setExternalAliyunUid(const std::string& externalAliyunUid) +{ + externalAliyunUid_ = externalAliyunUid; + setBodyParameter("ExternalAliyunUid", externalAliyunUid); +} + +std::string SetRelationWithBizRequest::getRegionId()const +{ + return regionId_; +} + +void SetRelationWithBizRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setBodyParameter("RegionId", regionId); +} + +std::string SetRelationWithBizRequest::getExternalBizAliyunUid()const +{ + return externalBizAliyunUid_; +} + +void SetRelationWithBizRequest::setExternalBizAliyunUid(const std::string& externalBizAliyunUid) +{ + externalBizAliyunUid_ = externalBizAliyunUid; + setBodyParameter("ExternalBizAliyunUid", externalBizAliyunUid); +} + diff --git a/openanalytics-open/src/model/SetRelationWithBizResult.cc b/openanalytics-open/src/model/SetRelationWithBizResult.cc new file mode 100644 index 000000000..658e3d62b --- /dev/null +++ b/openanalytics-open/src/model/SetRelationWithBizResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +SetRelationWithBizResult::SetRelationWithBizResult() : + ServiceResult() +{} + +SetRelationWithBizResult::SetRelationWithBizResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetRelationWithBizResult::~SetRelationWithBizResult() +{} + +void SetRelationWithBizResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + +} + +std::string SetRelationWithBizResult::getRegionId()const +{ + return regionId_; +} + diff --git a/openanalytics-open/src/model/SetTrafficLimitPolicyRequest.cc b/openanalytics-open/src/model/SetTrafficLimitPolicyRequest.cc new file mode 100644 index 000000000..610c54997 --- /dev/null +++ b/openanalytics-open/src/model/SetTrafficLimitPolicyRequest.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::Openanalytics_open::Model::SetTrafficLimitPolicyRequest; + +SetTrafficLimitPolicyRequest::SetTrafficLimitPolicyRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "SetTrafficLimitPolicy") +{ + setMethod(HttpRequest::Method::Post); +} + +SetTrafficLimitPolicyRequest::~SetTrafficLimitPolicyRequest() +{} + +std::string SetTrafficLimitPolicyRequest::getRegionId()const +{ + return regionId_; +} + +void SetTrafficLimitPolicyRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setBodyParameter("RegionId", regionId); +} + +std::string SetTrafficLimitPolicyRequest::getPolicy()const +{ + return policy_; +} + +void SetTrafficLimitPolicyRequest::setPolicy(const std::string& policy) +{ + policy_ = policy; + setBodyParameter("Policy", policy); +} + +std::string SetTrafficLimitPolicyRequest::getExternalBizAliyunUid()const +{ + return externalBizAliyunUid_; +} + +void SetTrafficLimitPolicyRequest::setExternalBizAliyunUid(const std::string& externalBizAliyunUid) +{ + externalBizAliyunUid_ = externalBizAliyunUid; + setBodyParameter("ExternalBizAliyunUid", externalBizAliyunUid); +} + diff --git a/openanalytics-open/src/model/SetTrafficLimitPolicyResult.cc b/openanalytics-open/src/model/SetTrafficLimitPolicyResult.cc new file mode 100644 index 000000000..0ab559702 --- /dev/null +++ b/openanalytics-open/src/model/SetTrafficLimitPolicyResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +SetTrafficLimitPolicyResult::SetTrafficLimitPolicyResult() : + ServiceResult() +{} + +SetTrafficLimitPolicyResult::SetTrafficLimitPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetTrafficLimitPolicyResult::~SetTrafficLimitPolicyResult() +{} + +void SetTrafficLimitPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + +} + +std::string SetTrafficLimitPolicyResult::getRegionId()const +{ + return regionId_; +} + diff --git a/openanalytics-open/src/model/StartVirtualClusterRequest.cc b/openanalytics-open/src/model/StartVirtualClusterRequest.cc new file mode 100644 index 000000000..285e82bed --- /dev/null +++ b/openanalytics-open/src/model/StartVirtualClusterRequest.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::Openanalytics_open::Model::StartVirtualClusterRequest; + +StartVirtualClusterRequest::StartVirtualClusterRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "StartVirtualCluster") +{ + setMethod(HttpRequest::Method::Post); +} + +StartVirtualClusterRequest::~StartVirtualClusterRequest() +{} + +std::string StartVirtualClusterRequest::getName()const +{ + return name_; +} + +void StartVirtualClusterRequest::setName(const std::string& name) +{ + name_ = name; + setBodyParameter("Name", name); +} + diff --git a/openanalytics-open/src/model/StartVirtualClusterResult.cc b/openanalytics-open/src/model/StartVirtualClusterResult.cc new file mode 100644 index 000000000..5624b93a2 --- /dev/null +++ b/openanalytics-open/src/model/StartVirtualClusterResult.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::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +StartVirtualClusterResult::StartVirtualClusterResult() : + ServiceResult() +{} + +StartVirtualClusterResult::StartVirtualClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartVirtualClusterResult::~StartVirtualClusterResult() +{} + +void StartVirtualClusterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/openanalytics-open/src/model/StopVirtualClusterRequest.cc b/openanalytics-open/src/model/StopVirtualClusterRequest.cc new file mode 100644 index 000000000..bcb412215 --- /dev/null +++ b/openanalytics-open/src/model/StopVirtualClusterRequest.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::Openanalytics_open::Model::StopVirtualClusterRequest; + +StopVirtualClusterRequest::StopVirtualClusterRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "StopVirtualCluster") +{ + setMethod(HttpRequest::Method::Post); +} + +StopVirtualClusterRequest::~StopVirtualClusterRequest() +{} + +std::string StopVirtualClusterRequest::getName()const +{ + return name_; +} + +void StopVirtualClusterRequest::setName(const std::string& name) +{ + name_ = name; + setBodyParameter("Name", name); +} + diff --git a/openanalytics-open/src/model/StopVirtualClusterResult.cc b/openanalytics-open/src/model/StopVirtualClusterResult.cc new file mode 100644 index 000000000..7b3110ef9 --- /dev/null +++ b/openanalytics-open/src/model/StopVirtualClusterResult.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::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +StopVirtualClusterResult::StopVirtualClusterResult() : + ServiceResult() +{} + +StopVirtualClusterResult::StopVirtualClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopVirtualClusterResult::~StopVirtualClusterResult() +{} + +void StopVirtualClusterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/openanalytics-open/src/model/SubmitSparkJobRequest.cc b/openanalytics-open/src/model/SubmitSparkJobRequest.cc new file mode 100644 index 000000000..ca2f80835 --- /dev/null +++ b/openanalytics-open/src/model/SubmitSparkJobRequest.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::Openanalytics_open::Model::SubmitSparkJobRequest; + +SubmitSparkJobRequest::SubmitSparkJobRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "SubmitSparkJob") +{ + setMethod(HttpRequest::Method::Post); +} + +SubmitSparkJobRequest::~SubmitSparkJobRequest() +{} + +std::string SubmitSparkJobRequest::getConfigJson()const +{ + return configJson_; +} + +void SubmitSparkJobRequest::setConfigJson(const std::string& configJson) +{ + configJson_ = configJson; + setBodyParameter("ConfigJson", configJson); +} + +std::string SubmitSparkJobRequest::getVcName()const +{ + return vcName_; +} + +void SubmitSparkJobRequest::setVcName(const std::string& vcName) +{ + vcName_ = vcName; + setBodyParameter("VcName", vcName); +} + diff --git a/openanalytics-open/src/model/SubmitSparkJobResult.cc b/openanalytics-open/src/model/SubmitSparkJobResult.cc new file mode 100644 index 000000000..6b51602bd --- /dev/null +++ b/openanalytics-open/src/model/SubmitSparkJobResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +SubmitSparkJobResult::SubmitSparkJobResult() : + ServiceResult() +{} + +SubmitSparkJobResult::SubmitSparkJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SubmitSparkJobResult::~SubmitSparkJobResult() +{} + +void SubmitSparkJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string SubmitSparkJobResult::getJobId()const +{ + return jobId_; +} + diff --git a/openanalytics-open/src/model/UnSubscribeRegionRequest.cc b/openanalytics-open/src/model/UnSubscribeRegionRequest.cc new file mode 100644 index 000000000..2a859773e --- /dev/null +++ b/openanalytics-open/src/model/UnSubscribeRegionRequest.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::Openanalytics_open::Model::UnSubscribeRegionRequest; + +UnSubscribeRegionRequest::UnSubscribeRegionRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "UnSubscribeRegion") +{ + setMethod(HttpRequest::Method::Post); +} + +UnSubscribeRegionRequest::~UnSubscribeRegionRequest() +{} + +std::string UnSubscribeRegionRequest::getRegionId()const +{ + return regionId_; +} + +void UnSubscribeRegionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setBodyParameter("RegionId", regionId); +} + diff --git a/openanalytics-open/src/model/UnSubscribeRegionResult.cc b/openanalytics-open/src/model/UnSubscribeRegionResult.cc new file mode 100644 index 000000000..59e5c2135 --- /dev/null +++ b/openanalytics-open/src/model/UnSubscribeRegionResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +UnSubscribeRegionResult::UnSubscribeRegionResult() : + ServiceResult() +{} + +UnSubscribeRegionResult::UnSubscribeRegionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnSubscribeRegionResult::~UnSubscribeRegionResult() +{} + +void UnSubscribeRegionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + +} + +std::string UnSubscribeRegionResult::getRegionId()const +{ + return regionId_; +} + diff --git a/openanalytics-open/src/model/UpdateAccountPasswordRequest.cc b/openanalytics-open/src/model/UpdateAccountPasswordRequest.cc new file mode 100644 index 000000000..327aa296d --- /dev/null +++ b/openanalytics-open/src/model/UpdateAccountPasswordRequest.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::Openanalytics_open::Model::UpdateAccountPasswordRequest; + +UpdateAccountPasswordRequest::UpdateAccountPasswordRequest() : + RpcServiceRequest("openanalytics-open", "2018-06-19", "UpdateAccountPassword") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateAccountPasswordRequest::~UpdateAccountPasswordRequest() +{} + +bool UpdateAccountPasswordRequest::getIsShort()const +{ + return isShort_; +} + +void UpdateAccountPasswordRequest::setIsShort(bool isShort) +{ + isShort_ = isShort; + setBodyParameter("IsShort", isShort ? "true" : "false"); +} + +std::string UpdateAccountPasswordRequest::getPassword()const +{ + return password_; +} + +void UpdateAccountPasswordRequest::setPassword(const std::string& password) +{ + password_ = password; + setBodyParameter("Password", password); +} + +std::string UpdateAccountPasswordRequest::getAccountName()const +{ + return accountName_; +} + +void UpdateAccountPasswordRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setBodyParameter("AccountName", accountName); +} + +std::string UpdateAccountPasswordRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateAccountPasswordRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setBodyParameter("RegionId", regionId); +} + +bool UpdateAccountPasswordRequest::getEnableKMS()const +{ + return enableKMS_; +} + +void UpdateAccountPasswordRequest::setEnableKMS(bool enableKMS) +{ + enableKMS_ = enableKMS; + setBodyParameter("EnableKMS", enableKMS ? "true" : "false"); +} + +bool UpdateAccountPasswordRequest::getUseRandomPassword()const +{ + return useRandomPassword_; +} + +void UpdateAccountPasswordRequest::setUseRandomPassword(bool useRandomPassword) +{ + useRandomPassword_ = useRandomPassword; + setBodyParameter("UseRandomPassword", useRandomPassword ? "true" : "false"); +} + diff --git a/openanalytics-open/src/model/UpdateAccountPasswordResult.cc b/openanalytics-open/src/model/UpdateAccountPasswordResult.cc new file mode 100644 index 000000000..f723d9d21 --- /dev/null +++ b/openanalytics-open/src/model/UpdateAccountPasswordResult.cc @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Openanalytics_open; +using namespace AlibabaCloud::Openanalytics_open::Model; + +UpdateAccountPasswordResult::UpdateAccountPasswordResult() : + ServiceResult() +{} + +UpdateAccountPasswordResult::UpdateAccountPasswordResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateAccountPasswordResult::~UpdateAccountPasswordResult() +{} + +void UpdateAccountPasswordResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto accountNode = value["Account"]; + if(!accountNode["UserName"].isNull()) + account_.userName = accountNode["UserName"].asString(); + if(!accountNode["Password"].isNull()) + account_.password = accountNode["Password"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + +} + +UpdateAccountPasswordResult::Account UpdateAccountPasswordResult::getAccount()const +{ + return account_; +} + +std::string UpdateAccountPasswordResult::getRegionId()const +{ + return regionId_; +} +