Update GetInstance and ListInstances.
This commit is contained in:
@@ -23,6 +23,8 @@ set(paifeaturestore_public_header
|
||||
set(paifeaturestore_public_header_model
|
||||
include/alibabacloud/paifeaturestore/model/CheckInstanceDatasourceRequest.h
|
||||
include/alibabacloud/paifeaturestore/model/CheckInstanceDatasourceResult.h
|
||||
include/alibabacloud/paifeaturestore/model/CheckModelFeatureFGFeatureRequest.h
|
||||
include/alibabacloud/paifeaturestore/model/CheckModelFeatureFGFeatureResult.h
|
||||
include/alibabacloud/paifeaturestore/model/CreateDatasourceRequest.h
|
||||
include/alibabacloud/paifeaturestore/model/CreateDatasourceResult.h
|
||||
include/alibabacloud/paifeaturestore/model/CreateFeatureEntityRequest.h
|
||||
@@ -31,6 +33,8 @@ set(paifeaturestore_public_header_model
|
||||
include/alibabacloud/paifeaturestore/model/CreateFeatureViewResult.h
|
||||
include/alibabacloud/paifeaturestore/model/CreateInstanceRequest.h
|
||||
include/alibabacloud/paifeaturestore/model/CreateInstanceResult.h
|
||||
include/alibabacloud/paifeaturestore/model/CreateLLMConfigRequest.h
|
||||
include/alibabacloud/paifeaturestore/model/CreateLLMConfigResult.h
|
||||
include/alibabacloud/paifeaturestore/model/CreateLabelTableRequest.h
|
||||
include/alibabacloud/paifeaturestore/model/CreateLabelTableResult.h
|
||||
include/alibabacloud/paifeaturestore/model/CreateModelFeatureRequest.h
|
||||
@@ -45,6 +49,8 @@ set(paifeaturestore_public_header_model
|
||||
include/alibabacloud/paifeaturestore/model/DeleteFeatureEntityResult.h
|
||||
include/alibabacloud/paifeaturestore/model/DeleteFeatureViewRequest.h
|
||||
include/alibabacloud/paifeaturestore/model/DeleteFeatureViewResult.h
|
||||
include/alibabacloud/paifeaturestore/model/DeleteLLMConfigRequest.h
|
||||
include/alibabacloud/paifeaturestore/model/DeleteLLMConfigResult.h
|
||||
include/alibabacloud/paifeaturestore/model/DeleteLabelTableRequest.h
|
||||
include/alibabacloud/paifeaturestore/model/DeleteLabelTableResult.h
|
||||
include/alibabacloud/paifeaturestore/model/DeleteModelFeatureRequest.h
|
||||
@@ -63,6 +69,8 @@ set(paifeaturestore_public_header_model
|
||||
include/alibabacloud/paifeaturestore/model/GetFeatureViewResult.h
|
||||
include/alibabacloud/paifeaturestore/model/GetInstanceRequest.h
|
||||
include/alibabacloud/paifeaturestore/model/GetInstanceResult.h
|
||||
include/alibabacloud/paifeaturestore/model/GetLLMConfigRequest.h
|
||||
include/alibabacloud/paifeaturestore/model/GetLLMConfigResult.h
|
||||
include/alibabacloud/paifeaturestore/model/GetLabelTableRequest.h
|
||||
include/alibabacloud/paifeaturestore/model/GetLabelTableResult.h
|
||||
include/alibabacloud/paifeaturestore/model/GetModelFeatureRequest.h
|
||||
@@ -79,6 +87,8 @@ set(paifeaturestore_public_header_model
|
||||
include/alibabacloud/paifeaturestore/model/GetServiceIdentityRoleResult.h
|
||||
include/alibabacloud/paifeaturestore/model/GetTaskRequest.h
|
||||
include/alibabacloud/paifeaturestore/model/GetTaskResult.h
|
||||
include/alibabacloud/paifeaturestore/model/ListDatasourceFeatureViewsRequest.h
|
||||
include/alibabacloud/paifeaturestore/model/ListDatasourceFeatureViewsResult.h
|
||||
include/alibabacloud/paifeaturestore/model/ListDatasourceTablesRequest.h
|
||||
include/alibabacloud/paifeaturestore/model/ListDatasourceTablesResult.h
|
||||
include/alibabacloud/paifeaturestore/model/ListDatasourcesRequest.h
|
||||
@@ -95,6 +105,8 @@ set(paifeaturestore_public_header_model
|
||||
include/alibabacloud/paifeaturestore/model/ListFeatureViewsResult.h
|
||||
include/alibabacloud/paifeaturestore/model/ListInstancesRequest.h
|
||||
include/alibabacloud/paifeaturestore/model/ListInstancesResult.h
|
||||
include/alibabacloud/paifeaturestore/model/ListLLMConfigsRequest.h
|
||||
include/alibabacloud/paifeaturestore/model/ListLLMConfigsResult.h
|
||||
include/alibabacloud/paifeaturestore/model/ListLabelTablesRequest.h
|
||||
include/alibabacloud/paifeaturestore/model/ListLabelTablesResult.h
|
||||
include/alibabacloud/paifeaturestore/model/ListModelFeatureAvailableFeaturesRequest.h
|
||||
@@ -103,6 +115,8 @@ set(paifeaturestore_public_header_model
|
||||
include/alibabacloud/paifeaturestore/model/ListModelFeaturesResult.h
|
||||
include/alibabacloud/paifeaturestore/model/ListProjectFeatureViewsRequest.h
|
||||
include/alibabacloud/paifeaturestore/model/ListProjectFeatureViewsResult.h
|
||||
include/alibabacloud/paifeaturestore/model/ListProjectFeaturesRequest.h
|
||||
include/alibabacloud/paifeaturestore/model/ListProjectFeaturesResult.h
|
||||
include/alibabacloud/paifeaturestore/model/ListProjectsRequest.h
|
||||
include/alibabacloud/paifeaturestore/model/ListProjectsResult.h
|
||||
include/alibabacloud/paifeaturestore/model/ListTaskLogsRequest.h
|
||||
@@ -111,8 +125,12 @@ set(paifeaturestore_public_header_model
|
||||
include/alibabacloud/paifeaturestore/model/ListTasksResult.h
|
||||
include/alibabacloud/paifeaturestore/model/PublishFeatureViewTableRequest.h
|
||||
include/alibabacloud/paifeaturestore/model/PublishFeatureViewTableResult.h
|
||||
include/alibabacloud/paifeaturestore/model/StopTaskRequest.h
|
||||
include/alibabacloud/paifeaturestore/model/StopTaskResult.h
|
||||
include/alibabacloud/paifeaturestore/model/UpdateDatasourceRequest.h
|
||||
include/alibabacloud/paifeaturestore/model/UpdateDatasourceResult.h
|
||||
include/alibabacloud/paifeaturestore/model/UpdateLLMConfigRequest.h
|
||||
include/alibabacloud/paifeaturestore/model/UpdateLLMConfigResult.h
|
||||
include/alibabacloud/paifeaturestore/model/UpdateLabelTableRequest.h
|
||||
include/alibabacloud/paifeaturestore/model/UpdateLabelTableResult.h
|
||||
include/alibabacloud/paifeaturestore/model/UpdateModelFeatureRequest.h
|
||||
@@ -128,6 +146,8 @@ set(paifeaturestore_src
|
||||
src/PaiFeatureStoreClient.cc
|
||||
src/model/CheckInstanceDatasourceRequest.cc
|
||||
src/model/CheckInstanceDatasourceResult.cc
|
||||
src/model/CheckModelFeatureFGFeatureRequest.cc
|
||||
src/model/CheckModelFeatureFGFeatureResult.cc
|
||||
src/model/CreateDatasourceRequest.cc
|
||||
src/model/CreateDatasourceResult.cc
|
||||
src/model/CreateFeatureEntityRequest.cc
|
||||
@@ -136,6 +156,8 @@ set(paifeaturestore_src
|
||||
src/model/CreateFeatureViewResult.cc
|
||||
src/model/CreateInstanceRequest.cc
|
||||
src/model/CreateInstanceResult.cc
|
||||
src/model/CreateLLMConfigRequest.cc
|
||||
src/model/CreateLLMConfigResult.cc
|
||||
src/model/CreateLabelTableRequest.cc
|
||||
src/model/CreateLabelTableResult.cc
|
||||
src/model/CreateModelFeatureRequest.cc
|
||||
@@ -150,6 +172,8 @@ set(paifeaturestore_src
|
||||
src/model/DeleteFeatureEntityResult.cc
|
||||
src/model/DeleteFeatureViewRequest.cc
|
||||
src/model/DeleteFeatureViewResult.cc
|
||||
src/model/DeleteLLMConfigRequest.cc
|
||||
src/model/DeleteLLMConfigResult.cc
|
||||
src/model/DeleteLabelTableRequest.cc
|
||||
src/model/DeleteLabelTableResult.cc
|
||||
src/model/DeleteModelFeatureRequest.cc
|
||||
@@ -168,6 +192,8 @@ set(paifeaturestore_src
|
||||
src/model/GetFeatureViewResult.cc
|
||||
src/model/GetInstanceRequest.cc
|
||||
src/model/GetInstanceResult.cc
|
||||
src/model/GetLLMConfigRequest.cc
|
||||
src/model/GetLLMConfigResult.cc
|
||||
src/model/GetLabelTableRequest.cc
|
||||
src/model/GetLabelTableResult.cc
|
||||
src/model/GetModelFeatureRequest.cc
|
||||
@@ -184,6 +210,8 @@ set(paifeaturestore_src
|
||||
src/model/GetServiceIdentityRoleResult.cc
|
||||
src/model/GetTaskRequest.cc
|
||||
src/model/GetTaskResult.cc
|
||||
src/model/ListDatasourceFeatureViewsRequest.cc
|
||||
src/model/ListDatasourceFeatureViewsResult.cc
|
||||
src/model/ListDatasourceTablesRequest.cc
|
||||
src/model/ListDatasourceTablesResult.cc
|
||||
src/model/ListDatasourcesRequest.cc
|
||||
@@ -200,6 +228,8 @@ set(paifeaturestore_src
|
||||
src/model/ListFeatureViewsResult.cc
|
||||
src/model/ListInstancesRequest.cc
|
||||
src/model/ListInstancesResult.cc
|
||||
src/model/ListLLMConfigsRequest.cc
|
||||
src/model/ListLLMConfigsResult.cc
|
||||
src/model/ListLabelTablesRequest.cc
|
||||
src/model/ListLabelTablesResult.cc
|
||||
src/model/ListModelFeatureAvailableFeaturesRequest.cc
|
||||
@@ -208,6 +238,8 @@ set(paifeaturestore_src
|
||||
src/model/ListModelFeaturesResult.cc
|
||||
src/model/ListProjectFeatureViewsRequest.cc
|
||||
src/model/ListProjectFeatureViewsResult.cc
|
||||
src/model/ListProjectFeaturesRequest.cc
|
||||
src/model/ListProjectFeaturesResult.cc
|
||||
src/model/ListProjectsRequest.cc
|
||||
src/model/ListProjectsResult.cc
|
||||
src/model/ListTaskLogsRequest.cc
|
||||
@@ -216,8 +248,12 @@ set(paifeaturestore_src
|
||||
src/model/ListTasksResult.cc
|
||||
src/model/PublishFeatureViewTableRequest.cc
|
||||
src/model/PublishFeatureViewTableResult.cc
|
||||
src/model/StopTaskRequest.cc
|
||||
src/model/StopTaskResult.cc
|
||||
src/model/UpdateDatasourceRequest.cc
|
||||
src/model/UpdateDatasourceResult.cc
|
||||
src/model/UpdateLLMConfigRequest.cc
|
||||
src/model/UpdateLLMConfigResult.cc
|
||||
src/model/UpdateLabelTableRequest.cc
|
||||
src/model/UpdateLabelTableResult.cc
|
||||
src/model/UpdateModelFeatureRequest.cc
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
#include "PaiFeatureStoreExport.h"
|
||||
#include "model/CheckInstanceDatasourceRequest.h"
|
||||
#include "model/CheckInstanceDatasourceResult.h"
|
||||
#include "model/CheckModelFeatureFGFeatureRequest.h"
|
||||
#include "model/CheckModelFeatureFGFeatureResult.h"
|
||||
#include "model/CreateDatasourceRequest.h"
|
||||
#include "model/CreateDatasourceResult.h"
|
||||
#include "model/CreateFeatureEntityRequest.h"
|
||||
@@ -32,6 +34,8 @@
|
||||
#include "model/CreateFeatureViewResult.h"
|
||||
#include "model/CreateInstanceRequest.h"
|
||||
#include "model/CreateInstanceResult.h"
|
||||
#include "model/CreateLLMConfigRequest.h"
|
||||
#include "model/CreateLLMConfigResult.h"
|
||||
#include "model/CreateLabelTableRequest.h"
|
||||
#include "model/CreateLabelTableResult.h"
|
||||
#include "model/CreateModelFeatureRequest.h"
|
||||
@@ -46,6 +50,8 @@
|
||||
#include "model/DeleteFeatureEntityResult.h"
|
||||
#include "model/DeleteFeatureViewRequest.h"
|
||||
#include "model/DeleteFeatureViewResult.h"
|
||||
#include "model/DeleteLLMConfigRequest.h"
|
||||
#include "model/DeleteLLMConfigResult.h"
|
||||
#include "model/DeleteLabelTableRequest.h"
|
||||
#include "model/DeleteLabelTableResult.h"
|
||||
#include "model/DeleteModelFeatureRequest.h"
|
||||
@@ -64,6 +70,8 @@
|
||||
#include "model/GetFeatureViewResult.h"
|
||||
#include "model/GetInstanceRequest.h"
|
||||
#include "model/GetInstanceResult.h"
|
||||
#include "model/GetLLMConfigRequest.h"
|
||||
#include "model/GetLLMConfigResult.h"
|
||||
#include "model/GetLabelTableRequest.h"
|
||||
#include "model/GetLabelTableResult.h"
|
||||
#include "model/GetModelFeatureRequest.h"
|
||||
@@ -80,6 +88,8 @@
|
||||
#include "model/GetServiceIdentityRoleResult.h"
|
||||
#include "model/GetTaskRequest.h"
|
||||
#include "model/GetTaskResult.h"
|
||||
#include "model/ListDatasourceFeatureViewsRequest.h"
|
||||
#include "model/ListDatasourceFeatureViewsResult.h"
|
||||
#include "model/ListDatasourceTablesRequest.h"
|
||||
#include "model/ListDatasourceTablesResult.h"
|
||||
#include "model/ListDatasourcesRequest.h"
|
||||
@@ -96,6 +106,8 @@
|
||||
#include "model/ListFeatureViewsResult.h"
|
||||
#include "model/ListInstancesRequest.h"
|
||||
#include "model/ListInstancesResult.h"
|
||||
#include "model/ListLLMConfigsRequest.h"
|
||||
#include "model/ListLLMConfigsResult.h"
|
||||
#include "model/ListLabelTablesRequest.h"
|
||||
#include "model/ListLabelTablesResult.h"
|
||||
#include "model/ListModelFeatureAvailableFeaturesRequest.h"
|
||||
@@ -104,6 +116,8 @@
|
||||
#include "model/ListModelFeaturesResult.h"
|
||||
#include "model/ListProjectFeatureViewsRequest.h"
|
||||
#include "model/ListProjectFeatureViewsResult.h"
|
||||
#include "model/ListProjectFeaturesRequest.h"
|
||||
#include "model/ListProjectFeaturesResult.h"
|
||||
#include "model/ListProjectsRequest.h"
|
||||
#include "model/ListProjectsResult.h"
|
||||
#include "model/ListTaskLogsRequest.h"
|
||||
@@ -112,8 +126,12 @@
|
||||
#include "model/ListTasksResult.h"
|
||||
#include "model/PublishFeatureViewTableRequest.h"
|
||||
#include "model/PublishFeatureViewTableResult.h"
|
||||
#include "model/StopTaskRequest.h"
|
||||
#include "model/StopTaskResult.h"
|
||||
#include "model/UpdateDatasourceRequest.h"
|
||||
#include "model/UpdateDatasourceResult.h"
|
||||
#include "model/UpdateLLMConfigRequest.h"
|
||||
#include "model/UpdateLLMConfigResult.h"
|
||||
#include "model/UpdateLabelTableRequest.h"
|
||||
#include "model/UpdateLabelTableResult.h"
|
||||
#include "model/UpdateModelFeatureRequest.h"
|
||||
@@ -136,6 +154,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CheckInstanceDatasourceResult> CheckInstanceDatasourceOutcome;
|
||||
typedef std::future<CheckInstanceDatasourceOutcome> CheckInstanceDatasourceOutcomeCallable;
|
||||
typedef std::function<void(const PaiFeatureStoreClient*, const Model::CheckInstanceDatasourceRequest&, const CheckInstanceDatasourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckInstanceDatasourceAsyncHandler;
|
||||
typedef Outcome<Error, Model::CheckModelFeatureFGFeatureResult> CheckModelFeatureFGFeatureOutcome;
|
||||
typedef std::future<CheckModelFeatureFGFeatureOutcome> CheckModelFeatureFGFeatureOutcomeCallable;
|
||||
typedef std::function<void(const PaiFeatureStoreClient*, const Model::CheckModelFeatureFGFeatureRequest&, const CheckModelFeatureFGFeatureOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckModelFeatureFGFeatureAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateDatasourceResult> CreateDatasourceOutcome;
|
||||
typedef std::future<CreateDatasourceOutcome> CreateDatasourceOutcomeCallable;
|
||||
typedef std::function<void(const PaiFeatureStoreClient*, const Model::CreateDatasourceRequest&, const CreateDatasourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDatasourceAsyncHandler;
|
||||
@@ -148,6 +169,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateInstanceResult> CreateInstanceOutcome;
|
||||
typedef std::future<CreateInstanceOutcome> CreateInstanceOutcomeCallable;
|
||||
typedef std::function<void(const PaiFeatureStoreClient*, const Model::CreateInstanceRequest&, const CreateInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateLLMConfigResult> CreateLLMConfigOutcome;
|
||||
typedef std::future<CreateLLMConfigOutcome> CreateLLMConfigOutcomeCallable;
|
||||
typedef std::function<void(const PaiFeatureStoreClient*, const Model::CreateLLMConfigRequest&, const CreateLLMConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateLLMConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateLabelTableResult> CreateLabelTableOutcome;
|
||||
typedef std::future<CreateLabelTableOutcome> CreateLabelTableOutcomeCallable;
|
||||
typedef std::function<void(const PaiFeatureStoreClient*, const Model::CreateLabelTableRequest&, const CreateLabelTableOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateLabelTableAsyncHandler;
|
||||
@@ -169,6 +193,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteFeatureViewResult> DeleteFeatureViewOutcome;
|
||||
typedef std::future<DeleteFeatureViewOutcome> DeleteFeatureViewOutcomeCallable;
|
||||
typedef std::function<void(const PaiFeatureStoreClient*, const Model::DeleteFeatureViewRequest&, const DeleteFeatureViewOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteFeatureViewAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteLLMConfigResult> DeleteLLMConfigOutcome;
|
||||
typedef std::future<DeleteLLMConfigOutcome> DeleteLLMConfigOutcomeCallable;
|
||||
typedef std::function<void(const PaiFeatureStoreClient*, const Model::DeleteLLMConfigRequest&, const DeleteLLMConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteLLMConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteLabelTableResult> DeleteLabelTableOutcome;
|
||||
typedef std::future<DeleteLabelTableOutcome> DeleteLabelTableOutcomeCallable;
|
||||
typedef std::function<void(const PaiFeatureStoreClient*, const Model::DeleteLabelTableRequest&, const DeleteLabelTableOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteLabelTableAsyncHandler;
|
||||
@@ -196,6 +223,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetInstanceResult> GetInstanceOutcome;
|
||||
typedef std::future<GetInstanceOutcome> GetInstanceOutcomeCallable;
|
||||
typedef std::function<void(const PaiFeatureStoreClient*, const Model::GetInstanceRequest&, const GetInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetLLMConfigResult> GetLLMConfigOutcome;
|
||||
typedef std::future<GetLLMConfigOutcome> GetLLMConfigOutcomeCallable;
|
||||
typedef std::function<void(const PaiFeatureStoreClient*, const Model::GetLLMConfigRequest&, const GetLLMConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetLLMConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetLabelTableResult> GetLabelTableOutcome;
|
||||
typedef std::future<GetLabelTableOutcome> GetLabelTableOutcomeCallable;
|
||||
typedef std::function<void(const PaiFeatureStoreClient*, const Model::GetLabelTableRequest&, const GetLabelTableOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetLabelTableAsyncHandler;
|
||||
@@ -220,6 +250,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetTaskResult> GetTaskOutcome;
|
||||
typedef std::future<GetTaskOutcome> GetTaskOutcomeCallable;
|
||||
typedef std::function<void(const PaiFeatureStoreClient*, const Model::GetTaskRequest&, const GetTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListDatasourceFeatureViewsResult> ListDatasourceFeatureViewsOutcome;
|
||||
typedef std::future<ListDatasourceFeatureViewsOutcome> ListDatasourceFeatureViewsOutcomeCallable;
|
||||
typedef std::function<void(const PaiFeatureStoreClient*, const Model::ListDatasourceFeatureViewsRequest&, const ListDatasourceFeatureViewsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDatasourceFeatureViewsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListDatasourceTablesResult> ListDatasourceTablesOutcome;
|
||||
typedef std::future<ListDatasourceTablesOutcome> ListDatasourceTablesOutcomeCallable;
|
||||
typedef std::function<void(const PaiFeatureStoreClient*, const Model::ListDatasourceTablesRequest&, const ListDatasourceTablesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDatasourceTablesAsyncHandler;
|
||||
@@ -244,6 +277,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListInstancesResult> ListInstancesOutcome;
|
||||
typedef std::future<ListInstancesOutcome> ListInstancesOutcomeCallable;
|
||||
typedef std::function<void(const PaiFeatureStoreClient*, const Model::ListInstancesRequest&, const ListInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListInstancesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListLLMConfigsResult> ListLLMConfigsOutcome;
|
||||
typedef std::future<ListLLMConfigsOutcome> ListLLMConfigsOutcomeCallable;
|
||||
typedef std::function<void(const PaiFeatureStoreClient*, const Model::ListLLMConfigsRequest&, const ListLLMConfigsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListLLMConfigsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListLabelTablesResult> ListLabelTablesOutcome;
|
||||
typedef std::future<ListLabelTablesOutcome> ListLabelTablesOutcomeCallable;
|
||||
typedef std::function<void(const PaiFeatureStoreClient*, const Model::ListLabelTablesRequest&, const ListLabelTablesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListLabelTablesAsyncHandler;
|
||||
@@ -256,6 +292,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListProjectFeatureViewsResult> ListProjectFeatureViewsOutcome;
|
||||
typedef std::future<ListProjectFeatureViewsOutcome> ListProjectFeatureViewsOutcomeCallable;
|
||||
typedef std::function<void(const PaiFeatureStoreClient*, const Model::ListProjectFeatureViewsRequest&, const ListProjectFeatureViewsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListProjectFeatureViewsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListProjectFeaturesResult> ListProjectFeaturesOutcome;
|
||||
typedef std::future<ListProjectFeaturesOutcome> ListProjectFeaturesOutcomeCallable;
|
||||
typedef std::function<void(const PaiFeatureStoreClient*, const Model::ListProjectFeaturesRequest&, const ListProjectFeaturesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListProjectFeaturesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListProjectsResult> ListProjectsOutcome;
|
||||
typedef std::future<ListProjectsOutcome> ListProjectsOutcomeCallable;
|
||||
typedef std::function<void(const PaiFeatureStoreClient*, const Model::ListProjectsRequest&, const ListProjectsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListProjectsAsyncHandler;
|
||||
@@ -268,9 +307,15 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::PublishFeatureViewTableResult> PublishFeatureViewTableOutcome;
|
||||
typedef std::future<PublishFeatureViewTableOutcome> PublishFeatureViewTableOutcomeCallable;
|
||||
typedef std::function<void(const PaiFeatureStoreClient*, const Model::PublishFeatureViewTableRequest&, const PublishFeatureViewTableOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PublishFeatureViewTableAsyncHandler;
|
||||
typedef Outcome<Error, Model::StopTaskResult> StopTaskOutcome;
|
||||
typedef std::future<StopTaskOutcome> StopTaskOutcomeCallable;
|
||||
typedef std::function<void(const PaiFeatureStoreClient*, const Model::StopTaskRequest&, const StopTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateDatasourceResult> UpdateDatasourceOutcome;
|
||||
typedef std::future<UpdateDatasourceOutcome> UpdateDatasourceOutcomeCallable;
|
||||
typedef std::function<void(const PaiFeatureStoreClient*, const Model::UpdateDatasourceRequest&, const UpdateDatasourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateDatasourceAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateLLMConfigResult> UpdateLLMConfigOutcome;
|
||||
typedef std::future<UpdateLLMConfigOutcome> UpdateLLMConfigOutcomeCallable;
|
||||
typedef std::function<void(const PaiFeatureStoreClient*, const Model::UpdateLLMConfigRequest&, const UpdateLLMConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateLLMConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateLabelTableResult> UpdateLabelTableOutcome;
|
||||
typedef std::future<UpdateLabelTableOutcome> UpdateLabelTableOutcomeCallable;
|
||||
typedef std::function<void(const PaiFeatureStoreClient*, const Model::UpdateLabelTableRequest&, const UpdateLabelTableOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateLabelTableAsyncHandler;
|
||||
@@ -294,6 +339,9 @@ namespace AlibabaCloud
|
||||
CheckInstanceDatasourceOutcome checkInstanceDatasource(const Model::CheckInstanceDatasourceRequest &request)const;
|
||||
void checkInstanceDatasourceAsync(const Model::CheckInstanceDatasourceRequest& request, const CheckInstanceDatasourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CheckInstanceDatasourceOutcomeCallable checkInstanceDatasourceCallable(const Model::CheckInstanceDatasourceRequest& request) const;
|
||||
CheckModelFeatureFGFeatureOutcome checkModelFeatureFGFeature(const Model::CheckModelFeatureFGFeatureRequest &request)const;
|
||||
void checkModelFeatureFGFeatureAsync(const Model::CheckModelFeatureFGFeatureRequest& request, const CheckModelFeatureFGFeatureAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CheckModelFeatureFGFeatureOutcomeCallable checkModelFeatureFGFeatureCallable(const Model::CheckModelFeatureFGFeatureRequest& request) const;
|
||||
CreateDatasourceOutcome createDatasource(const Model::CreateDatasourceRequest &request)const;
|
||||
void createDatasourceAsync(const Model::CreateDatasourceRequest& request, const CreateDatasourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDatasourceOutcomeCallable createDatasourceCallable(const Model::CreateDatasourceRequest& request) const;
|
||||
@@ -306,6 +354,9 @@ namespace AlibabaCloud
|
||||
CreateInstanceOutcome createInstance(const Model::CreateInstanceRequest &request)const;
|
||||
void createInstanceAsync(const Model::CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateInstanceOutcomeCallable createInstanceCallable(const Model::CreateInstanceRequest& request) const;
|
||||
CreateLLMConfigOutcome createLLMConfig(const Model::CreateLLMConfigRequest &request)const;
|
||||
void createLLMConfigAsync(const Model::CreateLLMConfigRequest& request, const CreateLLMConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateLLMConfigOutcomeCallable createLLMConfigCallable(const Model::CreateLLMConfigRequest& request) const;
|
||||
CreateLabelTableOutcome createLabelTable(const Model::CreateLabelTableRequest &request)const;
|
||||
void createLabelTableAsync(const Model::CreateLabelTableRequest& request, const CreateLabelTableAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateLabelTableOutcomeCallable createLabelTableCallable(const Model::CreateLabelTableRequest& request) const;
|
||||
@@ -327,6 +378,9 @@ namespace AlibabaCloud
|
||||
DeleteFeatureViewOutcome deleteFeatureView(const Model::DeleteFeatureViewRequest &request)const;
|
||||
void deleteFeatureViewAsync(const Model::DeleteFeatureViewRequest& request, const DeleteFeatureViewAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteFeatureViewOutcomeCallable deleteFeatureViewCallable(const Model::DeleteFeatureViewRequest& request) const;
|
||||
DeleteLLMConfigOutcome deleteLLMConfig(const Model::DeleteLLMConfigRequest &request)const;
|
||||
void deleteLLMConfigAsync(const Model::DeleteLLMConfigRequest& request, const DeleteLLMConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteLLMConfigOutcomeCallable deleteLLMConfigCallable(const Model::DeleteLLMConfigRequest& request) const;
|
||||
DeleteLabelTableOutcome deleteLabelTable(const Model::DeleteLabelTableRequest &request)const;
|
||||
void deleteLabelTableAsync(const Model::DeleteLabelTableRequest& request, const DeleteLabelTableAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteLabelTableOutcomeCallable deleteLabelTableCallable(const Model::DeleteLabelTableRequest& request) const;
|
||||
@@ -354,6 +408,9 @@ namespace AlibabaCloud
|
||||
GetInstanceOutcome getInstance(const Model::GetInstanceRequest &request)const;
|
||||
void getInstanceAsync(const Model::GetInstanceRequest& request, const GetInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetInstanceOutcomeCallable getInstanceCallable(const Model::GetInstanceRequest& request) const;
|
||||
GetLLMConfigOutcome getLLMConfig(const Model::GetLLMConfigRequest &request)const;
|
||||
void getLLMConfigAsync(const Model::GetLLMConfigRequest& request, const GetLLMConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetLLMConfigOutcomeCallable getLLMConfigCallable(const Model::GetLLMConfigRequest& request) const;
|
||||
GetLabelTableOutcome getLabelTable(const Model::GetLabelTableRequest &request)const;
|
||||
void getLabelTableAsync(const Model::GetLabelTableRequest& request, const GetLabelTableAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetLabelTableOutcomeCallable getLabelTableCallable(const Model::GetLabelTableRequest& request) const;
|
||||
@@ -378,6 +435,9 @@ namespace AlibabaCloud
|
||||
GetTaskOutcome getTask(const Model::GetTaskRequest &request)const;
|
||||
void getTaskAsync(const Model::GetTaskRequest& request, const GetTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetTaskOutcomeCallable getTaskCallable(const Model::GetTaskRequest& request) const;
|
||||
ListDatasourceFeatureViewsOutcome listDatasourceFeatureViews(const Model::ListDatasourceFeatureViewsRequest &request)const;
|
||||
void listDatasourceFeatureViewsAsync(const Model::ListDatasourceFeatureViewsRequest& request, const ListDatasourceFeatureViewsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDatasourceFeatureViewsOutcomeCallable listDatasourceFeatureViewsCallable(const Model::ListDatasourceFeatureViewsRequest& request) const;
|
||||
ListDatasourceTablesOutcome listDatasourceTables(const Model::ListDatasourceTablesRequest &request)const;
|
||||
void listDatasourceTablesAsync(const Model::ListDatasourceTablesRequest& request, const ListDatasourceTablesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDatasourceTablesOutcomeCallable listDatasourceTablesCallable(const Model::ListDatasourceTablesRequest& request) const;
|
||||
@@ -402,6 +462,9 @@ namespace AlibabaCloud
|
||||
ListInstancesOutcome listInstances(const Model::ListInstancesRequest &request)const;
|
||||
void listInstancesAsync(const Model::ListInstancesRequest& request, const ListInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListInstancesOutcomeCallable listInstancesCallable(const Model::ListInstancesRequest& request) const;
|
||||
ListLLMConfigsOutcome listLLMConfigs(const Model::ListLLMConfigsRequest &request)const;
|
||||
void listLLMConfigsAsync(const Model::ListLLMConfigsRequest& request, const ListLLMConfigsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListLLMConfigsOutcomeCallable listLLMConfigsCallable(const Model::ListLLMConfigsRequest& request) const;
|
||||
ListLabelTablesOutcome listLabelTables(const Model::ListLabelTablesRequest &request)const;
|
||||
void listLabelTablesAsync(const Model::ListLabelTablesRequest& request, const ListLabelTablesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListLabelTablesOutcomeCallable listLabelTablesCallable(const Model::ListLabelTablesRequest& request) const;
|
||||
@@ -414,6 +477,9 @@ namespace AlibabaCloud
|
||||
ListProjectFeatureViewsOutcome listProjectFeatureViews(const Model::ListProjectFeatureViewsRequest &request)const;
|
||||
void listProjectFeatureViewsAsync(const Model::ListProjectFeatureViewsRequest& request, const ListProjectFeatureViewsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListProjectFeatureViewsOutcomeCallable listProjectFeatureViewsCallable(const Model::ListProjectFeatureViewsRequest& request) const;
|
||||
ListProjectFeaturesOutcome listProjectFeatures(const Model::ListProjectFeaturesRequest &request)const;
|
||||
void listProjectFeaturesAsync(const Model::ListProjectFeaturesRequest& request, const ListProjectFeaturesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListProjectFeaturesOutcomeCallable listProjectFeaturesCallable(const Model::ListProjectFeaturesRequest& request) const;
|
||||
ListProjectsOutcome listProjects(const Model::ListProjectsRequest &request)const;
|
||||
void listProjectsAsync(const Model::ListProjectsRequest& request, const ListProjectsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListProjectsOutcomeCallable listProjectsCallable(const Model::ListProjectsRequest& request) const;
|
||||
@@ -426,9 +492,15 @@ namespace AlibabaCloud
|
||||
PublishFeatureViewTableOutcome publishFeatureViewTable(const Model::PublishFeatureViewTableRequest &request)const;
|
||||
void publishFeatureViewTableAsync(const Model::PublishFeatureViewTableRequest& request, const PublishFeatureViewTableAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PublishFeatureViewTableOutcomeCallable publishFeatureViewTableCallable(const Model::PublishFeatureViewTableRequest& request) const;
|
||||
StopTaskOutcome stopTask(const Model::StopTaskRequest &request)const;
|
||||
void stopTaskAsync(const Model::StopTaskRequest& request, const StopTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StopTaskOutcomeCallable stopTaskCallable(const Model::StopTaskRequest& request) const;
|
||||
UpdateDatasourceOutcome updateDatasource(const Model::UpdateDatasourceRequest &request)const;
|
||||
void updateDatasourceAsync(const Model::UpdateDatasourceRequest& request, const UpdateDatasourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateDatasourceOutcomeCallable updateDatasourceCallable(const Model::UpdateDatasourceRequest& request) const;
|
||||
UpdateLLMConfigOutcome updateLLMConfig(const Model::UpdateLLMConfigRequest &request)const;
|
||||
void updateLLMConfigAsync(const Model::UpdateLLMConfigRequest& request, const UpdateLLMConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateLLMConfigOutcomeCallable updateLLMConfigCallable(const Model::UpdateLLMConfigRequest& request) const;
|
||||
UpdateLabelTableOutcome updateLabelTable(const Model::UpdateLabelTableRequest &request)const;
|
||||
void updateLabelTableAsync(const Model::UpdateLabelTableRequest& request, const UpdateLabelTableAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateLabelTableOutcomeCallable updateLabelTableCallable(const Model::UpdateLabelTableRequest& request) const;
|
||||
|
||||
@@ -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_PAIFEATURESTORE_MODEL_CHECKMODELFEATUREFGFEATUREREQUEST_H_
|
||||
#define ALIBABACLOUD_PAIFEATURESTORE_MODEL_CHECKMODELFEATUREFGFEATUREREQUEST_H_
|
||||
|
||||
#include <alibabacloud/paifeaturestore/PaiFeatureStoreExport.h>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace PaiFeatureStore {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_PAIFEATURESTORE_EXPORT CheckModelFeatureFGFeatureRequest : public RoaServiceRequest {
|
||||
public:
|
||||
CheckModelFeatureFGFeatureRequest();
|
||||
~CheckModelFeatureFGFeatureRequest();
|
||||
std::string getModelFeatureId() const;
|
||||
void setModelFeatureId(const std::string &modelFeatureId);
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
|
||||
private:
|
||||
std::string modelFeatureId_;
|
||||
std::string instanceId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace PaiFeatureStore
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_PAIFEATURESTORE_MODEL_CHECKMODELFEATUREFGFEATUREREQUEST_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_PAIFEATURESTORE_MODEL_CHECKMODELFEATUREFGFEATURERESULT_H_
|
||||
#define ALIBABACLOUD_PAIFEATURESTORE_MODEL_CHECKMODELFEATUREFGFEATURERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/paifeaturestore/PaiFeatureStoreExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace PaiFeatureStore
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_PAIFEATURESTORE_EXPORT CheckModelFeatureFGFeatureResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct FGCheckResultsItem
|
||||
{
|
||||
bool status;
|
||||
std::string message;
|
||||
std::string ruleCode;
|
||||
};
|
||||
|
||||
|
||||
CheckModelFeatureFGFeatureResult();
|
||||
explicit CheckModelFeatureFGFeatureResult(const std::string &payload);
|
||||
~CheckModelFeatureFGFeatureResult();
|
||||
std::string getRequestId()const;
|
||||
std::vector<FGCheckResultsItem> getFGCheckResults()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string requestId_;
|
||||
std::vector<FGCheckResultsItem> fGCheckResults_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_PAIFEATURESTORE_MODEL_CHECKMODELFEATUREFGFEATURERESULT_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_PAIFEATURESTORE_MODEL_CREATELLMCONFIGREQUEST_H_
|
||||
#define ALIBABACLOUD_PAIFEATURESTORE_MODEL_CREATELLMCONFIGREQUEST_H_
|
||||
|
||||
#include <alibabacloud/paifeaturestore/PaiFeatureStoreExport.h>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace PaiFeatureStore {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_PAIFEATURESTORE_EXPORT CreateLLMConfigRequest : public RoaServiceRequest {
|
||||
public:
|
||||
CreateLLMConfigRequest();
|
||||
~CreateLLMConfigRequest();
|
||||
std::string getBody() const;
|
||||
void setBody(const std::string &body);
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
|
||||
private:
|
||||
std::string body_;
|
||||
std::string instanceId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace PaiFeatureStore
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_PAIFEATURESTORE_MODEL_CREATELLMCONFIGREQUEST_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_PAIFEATURESTORE_MODEL_CREATELLMCONFIGRESULT_H_
|
||||
#define ALIBABACLOUD_PAIFEATURESTORE_MODEL_CREATELLMCONFIGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/paifeaturestore/PaiFeatureStoreExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace PaiFeatureStore
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_PAIFEATURESTORE_EXPORT CreateLLMConfigResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateLLMConfigResult();
|
||||
explicit CreateLLMConfigResult(const std::string &payload);
|
||||
~CreateLLMConfigResult();
|
||||
std::string getLLMConfigId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string lLMConfigId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_PAIFEATURESTORE_MODEL_CREATELLMCONFIGRESULT_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_PAIFEATURESTORE_MODEL_DELETELLMCONFIGREQUEST_H_
|
||||
#define ALIBABACLOUD_PAIFEATURESTORE_MODEL_DELETELLMCONFIGREQUEST_H_
|
||||
|
||||
#include <alibabacloud/paifeaturestore/PaiFeatureStoreExport.h>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace PaiFeatureStore {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_PAIFEATURESTORE_EXPORT DeleteLLMConfigRequest : public RoaServiceRequest {
|
||||
public:
|
||||
DeleteLLMConfigRequest();
|
||||
~DeleteLLMConfigRequest();
|
||||
std::string getLLMConfigId() const;
|
||||
void setLLMConfigId(const std::string &lLMConfigId);
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
|
||||
private:
|
||||
std::string lLMConfigId_;
|
||||
std::string instanceId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace PaiFeatureStore
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_PAIFEATURESTORE_MODEL_DELETELLMCONFIGREQUEST_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_PAIFEATURESTORE_MODEL_DELETELLMCONFIGRESULT_H_
|
||||
#define ALIBABACLOUD_PAIFEATURESTORE_MODEL_DELETELLMCONFIGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/paifeaturestore/PaiFeatureStoreExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace PaiFeatureStore
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_PAIFEATURESTORE_EXPORT DeleteLLMConfigResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteLLMConfigResult();
|
||||
explicit DeleteLLMConfigResult(const std::string &payload);
|
||||
~DeleteLLMConfigResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_PAIFEATURESTORE_MODEL_DELETELLMCONFIGRESULT_H_
|
||||
@@ -34,8 +34,20 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct FieldsItem
|
||||
{
|
||||
struct TransformItem
|
||||
{
|
||||
struct InputItem
|
||||
{
|
||||
std::string type;
|
||||
std::string name;
|
||||
};
|
||||
std::vector<TransformItem::InputItem> input;
|
||||
std::string type;
|
||||
int lLMConfigId;
|
||||
};
|
||||
std::string type;
|
||||
std::vector<std::string> attributes;
|
||||
std::vector<FieldsItem::TransformItem> transform;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
@@ -36,6 +36,10 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string status;
|
||||
};
|
||||
struct FeatureDBInfo
|
||||
{
|
||||
std::string status;
|
||||
};
|
||||
|
||||
|
||||
GetInstanceResult();
|
||||
@@ -46,6 +50,7 @@ namespace AlibabaCloud
|
||||
std::string getType()const;
|
||||
std::string getMessage()const;
|
||||
FeatureDBInstanceInfo getFeatureDBInstanceInfo()const;
|
||||
FeatureDBInfo getFeatureDBInfo()const;
|
||||
std::string getRegionId()const;
|
||||
std::string getGmtCreateTime()const;
|
||||
std::string getGmtModifiedTime()const;
|
||||
@@ -58,6 +63,7 @@ namespace AlibabaCloud
|
||||
std::string type_;
|
||||
std::string message_;
|
||||
FeatureDBInstanceInfo featureDBInstanceInfo_;
|
||||
FeatureDBInfo featureDBInfo_;
|
||||
std::string regionId_;
|
||||
std::string gmtCreateTime_;
|
||||
std::string gmtModifiedTime_;
|
||||
|
||||
@@ -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_PAIFEATURESTORE_MODEL_GETLLMCONFIGREQUEST_H_
|
||||
#define ALIBABACLOUD_PAIFEATURESTORE_MODEL_GETLLMCONFIGREQUEST_H_
|
||||
|
||||
#include <alibabacloud/paifeaturestore/PaiFeatureStoreExport.h>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace PaiFeatureStore {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_PAIFEATURESTORE_EXPORT GetLLMConfigRequest : public RoaServiceRequest {
|
||||
public:
|
||||
GetLLMConfigRequest();
|
||||
~GetLLMConfigRequest();
|
||||
std::string getLLMConfigId() const;
|
||||
void setLLMConfigId(const std::string &lLMConfigId);
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
|
||||
private:
|
||||
std::string lLMConfigId_;
|
||||
std::string instanceId_;
|
||||
std::string regionId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace PaiFeatureStore
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_PAIFEATURESTORE_MODEL_GETLLMCONFIGREQUEST_H_
|
||||
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_PAIFEATURESTORE_MODEL_GETLLMCONFIGRESULT_H_
|
||||
#define ALIBABACLOUD_PAIFEATURESTORE_MODEL_GETLLMCONFIGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/paifeaturestore/PaiFeatureStoreExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace PaiFeatureStore
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_PAIFEATURESTORE_EXPORT GetLLMConfigResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetLLMConfigResult();
|
||||
explicit GetLLMConfigResult(const std::string &payload);
|
||||
~GetLLMConfigResult();
|
||||
int getBatchSize()const;
|
||||
std::string getApiKey()const;
|
||||
std::string getLLMConfigId()const;
|
||||
int getRps()const;
|
||||
int getMaxTokens()const;
|
||||
std::string getModel()const;
|
||||
std::string getWorkspaceId()const;
|
||||
std::string getBaseUrl()const;
|
||||
std::string getGmtCreateTime()const;
|
||||
std::string getGmtModifiedTime()const;
|
||||
std::string getName()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int batchSize_;
|
||||
std::string apiKey_;
|
||||
std::string lLMConfigId_;
|
||||
int rps_;
|
||||
int maxTokens_;
|
||||
std::string model_;
|
||||
std::string workspaceId_;
|
||||
std::string baseUrl_;
|
||||
std::string gmtCreateTime_;
|
||||
std::string gmtModifiedTime_;
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_PAIFEATURESTORE_MODEL_GETLLMCONFIGRESULT_H_
|
||||
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_PAIFEATURESTORE_MODEL_LISTDATASOURCEFEATUREVIEWSREQUEST_H_
|
||||
#define ALIBABACLOUD_PAIFEATURESTORE_MODEL_LISTDATASOURCEFEATUREVIEWSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/paifeaturestore/PaiFeatureStoreExport.h>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace PaiFeatureStore {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_PAIFEATURESTORE_EXPORT ListDatasourceFeatureViewsRequest : public RoaServiceRequest {
|
||||
public:
|
||||
ListDatasourceFeatureViewsRequest();
|
||||
~ListDatasourceFeatureViewsRequest();
|
||||
std::string getType() const;
|
||||
void setType(const std::string &type);
|
||||
std::string getStartDate() const;
|
||||
void setStartDate(const std::string &startDate);
|
||||
int getPageNumber() const;
|
||||
void setPageNumber(int pageNumber);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getProjectId() const;
|
||||
void setProjectId(const std::string &projectId);
|
||||
std::string getOrder() const;
|
||||
void setOrder(const std::string &order);
|
||||
bool getAll() const;
|
||||
void setAll(bool all);
|
||||
std::string getProjectName() const;
|
||||
void setProjectName(const std::string &projectName);
|
||||
bool getShowStorageUsage() const;
|
||||
void setShowStorageUsage(bool showStorageUsage);
|
||||
bool getVerbose() const;
|
||||
void setVerbose(bool verbose);
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getEndDate() const;
|
||||
void setEndDate(const std::string &endDate);
|
||||
std::string getDatasourceId() const;
|
||||
void setDatasourceId(const std::string &datasourceId);
|
||||
std::string getName() const;
|
||||
void setName(const std::string &name);
|
||||
std::string getSortBy() const;
|
||||
void setSortBy(const std::string &sortBy);
|
||||
|
||||
private:
|
||||
std::string type_;
|
||||
std::string startDate_;
|
||||
int pageNumber_;
|
||||
int pageSize_;
|
||||
std::string projectId_;
|
||||
std::string order_;
|
||||
bool all_;
|
||||
std::string projectName_;
|
||||
bool showStorageUsage_;
|
||||
bool verbose_;
|
||||
std::string instanceId_;
|
||||
std::string endDate_;
|
||||
std::string datasourceId_;
|
||||
std::string name_;
|
||||
std::string sortBy_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace PaiFeatureStore
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_PAIFEATURESTORE_MODEL_LISTDATASOURCEFEATUREVIEWSREQUEST_H_
|
||||
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_PAIFEATURESTORE_MODEL_LISTDATASOURCEFEATUREVIEWSRESULT_H_
|
||||
#define ALIBABACLOUD_PAIFEATURESTORE_MODEL_LISTDATASOURCEFEATUREVIEWSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/paifeaturestore/PaiFeatureStoreExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace PaiFeatureStore
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_PAIFEATURESTORE_EXPORT ListDatasourceFeatureViewsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct TotalUsageStatistics
|
||||
{
|
||||
struct TotalReadWriteCountItem
|
||||
{
|
||||
long totalReadCount;
|
||||
long totalWriteCount;
|
||||
std::string date;
|
||||
};
|
||||
double totalDiskUsage;
|
||||
std::vector<TotalReadWriteCountItem> totalReadWriteCount;
|
||||
double totalMemoryUsage;
|
||||
};
|
||||
struct DatasourceFeatureViews
|
||||
{
|
||||
struct UsageStatistics
|
||||
{
|
||||
struct ReadWriteCountItem
|
||||
{
|
||||
long writeCount;
|
||||
std::string date;
|
||||
long readCount;
|
||||
};
|
||||
std::vector<ReadWriteCountItem> readWriteCount;
|
||||
double diskUsage;
|
||||
long rowCount;
|
||||
double memoryUsage;
|
||||
};
|
||||
std::string featureEntityName;
|
||||
std::string type;
|
||||
std::string featureViewId;
|
||||
std::string projectName;
|
||||
std::string config;
|
||||
UsageStatistics usageStatistics;
|
||||
int tTL;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
ListDatasourceFeatureViewsResult();
|
||||
explicit ListDatasourceFeatureViewsResult(const std::string &payload);
|
||||
~ListDatasourceFeatureViewsResult();
|
||||
std::vector<DatasourceFeatureViews> getFeatureViews()const;
|
||||
long getTotalCount()const;
|
||||
std::string getRequestId()const;
|
||||
TotalUsageStatistics getTotalUsageStatistics()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<DatasourceFeatureViews> featureViews_;
|
||||
long totalCount_;
|
||||
std::string requestId_;
|
||||
TotalUsageStatistics totalUsageStatistics_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_PAIFEATURESTORE_MODEL_LISTDATASOURCEFEATUREVIEWSRESULT_H_
|
||||
@@ -38,6 +38,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string modelName;
|
||||
std::string modelId;
|
||||
std::string featureAliasName;
|
||||
};
|
||||
std::vector<RelationshipsItem::ModelsItem> models;
|
||||
std::string onlineTableName;
|
||||
|
||||
@@ -38,10 +38,15 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string status;
|
||||
};
|
||||
struct FeatureDBInfo
|
||||
{
|
||||
std::string status;
|
||||
};
|
||||
std::string status;
|
||||
std::string type;
|
||||
std::string instanceId;
|
||||
FeatureDBInstanceInfo featureDBInstanceInfo;
|
||||
FeatureDBInfo featureDBInfo;
|
||||
std::string regionId;
|
||||
std::string gmtCreateTime;
|
||||
std::string gmtModifiedTime;
|
||||
|
||||
@@ -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_PAIFEATURESTORE_MODEL_LISTLLMCONFIGSREQUEST_H_
|
||||
#define ALIBABACLOUD_PAIFEATURESTORE_MODEL_LISTLLMCONFIGSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/paifeaturestore/PaiFeatureStoreExport.h>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace PaiFeatureStore {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_PAIFEATURESTORE_EXPORT ListLLMConfigsRequest : public RoaServiceRequest {
|
||||
public:
|
||||
ListLLMConfigsRequest();
|
||||
~ListLLMConfigsRequest();
|
||||
int getPageNumber() const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getNextToken() const;
|
||||
void setNextToken(const std::string &nextToken);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getOrder() const;
|
||||
void setOrder(const std::string &order);
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getName() const;
|
||||
void setName(const std::string &name);
|
||||
int getMaxResults() const;
|
||||
void setMaxResults(int maxResults);
|
||||
std::string getSortBy() const;
|
||||
void setSortBy(const std::string &sortBy);
|
||||
std::string getWorkspaceId() const;
|
||||
void setWorkspaceId(const std::string &workspaceId);
|
||||
|
||||
private:
|
||||
int pageNumber_;
|
||||
std::string nextToken_;
|
||||
int pageSize_;
|
||||
std::string order_;
|
||||
std::string instanceId_;
|
||||
std::string name_;
|
||||
int maxResults_;
|
||||
std::string sortBy_;
|
||||
std::string workspaceId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace PaiFeatureStore
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_PAIFEATURESTORE_MODEL_LISTLLMCONFIGSREQUEST_H_
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_PAIFEATURESTORE_MODEL_LISTLLMCONFIGSRESULT_H_
|
||||
#define ALIBABACLOUD_PAIFEATURESTORE_MODEL_LISTLLMCONFIGSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/paifeaturestore/PaiFeatureStoreExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace PaiFeatureStore
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_PAIFEATURESTORE_EXPORT ListLLMConfigsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct LlmConfigsItem
|
||||
{
|
||||
int batchSize;
|
||||
std::string apiKey;
|
||||
std::string lLMConfigId;
|
||||
int rps;
|
||||
std::string resourceGroupId;
|
||||
int maxTokens;
|
||||
std::string model;
|
||||
std::string workspaceId;
|
||||
std::string baseUrl;
|
||||
std::string gmtCreateTime;
|
||||
std::string gmtModifiedTime;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
ListLLMConfigsResult();
|
||||
explicit ListLLMConfigsResult(const std::string &payload);
|
||||
~ListLLMConfigsResult();
|
||||
long getTotalCount()const;
|
||||
std::string getNextToken()const;
|
||||
std::vector<LlmConfigsItem> getLLMConfigs()const;
|
||||
int getMaxResults()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long totalCount_;
|
||||
std::string nextToken_;
|
||||
std::vector<LlmConfigsItem> lLMConfigs_;
|
||||
int maxResults_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_PAIFEATURESTORE_MODEL_LISTLLMCONFIGSRESULT_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_PAIFEATURESTORE_MODEL_LISTPROJECTFEATURESREQUEST_H_
|
||||
#define ALIBABACLOUD_PAIFEATURESTORE_MODEL_LISTPROJECTFEATURESREQUEST_H_
|
||||
|
||||
#include <alibabacloud/paifeaturestore/PaiFeatureStoreExport.h>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace PaiFeatureStore {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_PAIFEATURESTORE_EXPORT ListProjectFeaturesRequest : public RoaServiceRequest {
|
||||
public:
|
||||
ListProjectFeaturesRequest();
|
||||
~ListProjectFeaturesRequest();
|
||||
int getPageNumber() const;
|
||||
void setPageNumber(int pageNumber);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getProjectId() const;
|
||||
void setProjectId(const std::string &projectId);
|
||||
std::string getOrder() const;
|
||||
void setOrder(const std::string &order);
|
||||
std::string getFilter() const;
|
||||
void setFilter(const std::string &filter);
|
||||
std::string getAliasName() const;
|
||||
void setAliasName(const std::string &aliasName);
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getName() const;
|
||||
void setName(const std::string &name);
|
||||
std::string getSortBy() const;
|
||||
void setSortBy(const std::string &sortBy);
|
||||
|
||||
private:
|
||||
int pageNumber_;
|
||||
int pageSize_;
|
||||
std::string projectId_;
|
||||
std::string order_;
|
||||
std::string filter_;
|
||||
std::string aliasName_;
|
||||
std::string instanceId_;
|
||||
std::string name_;
|
||||
std::string sortBy_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace PaiFeatureStore
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_PAIFEATURESTORE_MODEL_LISTPROJECTFEATURESREQUEST_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_PAIFEATURESTORE_MODEL_LISTPROJECTFEATURESRESULT_H_
|
||||
#define ALIBABACLOUD_PAIFEATURESTORE_MODEL_LISTPROJECTFEATURESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/paifeaturestore/PaiFeatureStoreExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace PaiFeatureStore
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_PAIFEATURESTORE_EXPORT ListProjectFeaturesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct FeaturesItem
|
||||
{
|
||||
std::string type;
|
||||
std::string owner;
|
||||
std::string featureViewId;
|
||||
int modelFeatureCount;
|
||||
std::string featureViewName;
|
||||
std::string aliasNames;
|
||||
std::string gmtCreateTime;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
ListProjectFeaturesResult();
|
||||
explicit ListProjectFeaturesResult(const std::string &payload);
|
||||
~ListProjectFeaturesResult();
|
||||
int getTotalCount()const;
|
||||
std::string getRequestId()const;
|
||||
std::vector<FeaturesItem> getFeatures()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int totalCount_;
|
||||
std::string requestId_;
|
||||
std::vector<FeaturesItem> features_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_PAIFEATURESTORE_MODEL_LISTPROJECTFEATURESRESULT_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_PAIFEATURESTORE_MODEL_STOPTASKREQUEST_H_
|
||||
#define ALIBABACLOUD_PAIFEATURESTORE_MODEL_STOPTASKREQUEST_H_
|
||||
|
||||
#include <alibabacloud/paifeaturestore/PaiFeatureStoreExport.h>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace PaiFeatureStore {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_PAIFEATURESTORE_EXPORT StopTaskRequest : public RoaServiceRequest {
|
||||
public:
|
||||
StopTaskRequest();
|
||||
~StopTaskRequest();
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getTaskId() const;
|
||||
void setTaskId(const std::string &taskId);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string taskId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace PaiFeatureStore
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_PAIFEATURESTORE_MODEL_STOPTASKREQUEST_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_PAIFEATURESTORE_MODEL_STOPTASKRESULT_H_
|
||||
#define ALIBABACLOUD_PAIFEATURESTORE_MODEL_STOPTASKRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/paifeaturestore/PaiFeatureStoreExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace PaiFeatureStore
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_PAIFEATURESTORE_EXPORT StopTaskResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
StopTaskResult();
|
||||
explicit StopTaskResult(const std::string &payload);
|
||||
~StopTaskResult();
|
||||
std::string getRequestId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string requestId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_PAIFEATURESTORE_MODEL_STOPTASKRESULT_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_PAIFEATURESTORE_MODEL_UPDATELLMCONFIGREQUEST_H_
|
||||
#define ALIBABACLOUD_PAIFEATURESTORE_MODEL_UPDATELLMCONFIGREQUEST_H_
|
||||
|
||||
#include <alibabacloud/paifeaturestore/PaiFeatureStoreExport.h>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace PaiFeatureStore {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_PAIFEATURESTORE_EXPORT UpdateLLMConfigRequest : public RoaServiceRequest {
|
||||
public:
|
||||
UpdateLLMConfigRequest();
|
||||
~UpdateLLMConfigRequest();
|
||||
std::string getBody() const;
|
||||
void setBody(const std::string &body);
|
||||
std::string getLLMConfigId() const;
|
||||
void setLLMConfigId(const std::string &lLMConfigId);
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
|
||||
private:
|
||||
std::string body_;
|
||||
std::string lLMConfigId_;
|
||||
std::string instanceId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace PaiFeatureStore
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_PAIFEATURESTORE_MODEL_UPDATELLMCONFIGREQUEST_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_PAIFEATURESTORE_MODEL_UPDATELLMCONFIGRESULT_H_
|
||||
#define ALIBABACLOUD_PAIFEATURESTORE_MODEL_UPDATELLMCONFIGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/paifeaturestore/PaiFeatureStoreExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace PaiFeatureStore
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_PAIFEATURESTORE_EXPORT UpdateLLMConfigResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UpdateLLMConfigResult();
|
||||
explicit UpdateLLMConfigResult(const std::string &payload);
|
||||
~UpdateLLMConfigResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_PAIFEATURESTORE_MODEL_UPDATELLMCONFIGRESULT_H_
|
||||
@@ -87,6 +87,42 @@ PaiFeatureStoreClient::CheckInstanceDatasourceOutcomeCallable PaiFeatureStoreCli
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PaiFeatureStoreClient::CheckModelFeatureFGFeatureOutcome PaiFeatureStoreClient::checkModelFeatureFGFeature(const CheckModelFeatureFGFeatureRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CheckModelFeatureFGFeatureOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CheckModelFeatureFGFeatureOutcome(CheckModelFeatureFGFeatureResult(outcome.result()));
|
||||
else
|
||||
return CheckModelFeatureFGFeatureOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void PaiFeatureStoreClient::checkModelFeatureFGFeatureAsync(const CheckModelFeatureFGFeatureRequest& request, const CheckModelFeatureFGFeatureAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, checkModelFeatureFGFeature(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
PaiFeatureStoreClient::CheckModelFeatureFGFeatureOutcomeCallable PaiFeatureStoreClient::checkModelFeatureFGFeatureCallable(const CheckModelFeatureFGFeatureRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CheckModelFeatureFGFeatureOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->checkModelFeatureFGFeature(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PaiFeatureStoreClient::CreateDatasourceOutcome PaiFeatureStoreClient::createDatasource(const CreateDatasourceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -231,6 +267,42 @@ PaiFeatureStoreClient::CreateInstanceOutcomeCallable PaiFeatureStoreClient::crea
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PaiFeatureStoreClient::CreateLLMConfigOutcome PaiFeatureStoreClient::createLLMConfig(const CreateLLMConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateLLMConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateLLMConfigOutcome(CreateLLMConfigResult(outcome.result()));
|
||||
else
|
||||
return CreateLLMConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void PaiFeatureStoreClient::createLLMConfigAsync(const CreateLLMConfigRequest& request, const CreateLLMConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createLLMConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
PaiFeatureStoreClient::CreateLLMConfigOutcomeCallable PaiFeatureStoreClient::createLLMConfigCallable(const CreateLLMConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateLLMConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createLLMConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PaiFeatureStoreClient::CreateLabelTableOutcome PaiFeatureStoreClient::createLabelTable(const CreateLabelTableRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -483,6 +555,42 @@ PaiFeatureStoreClient::DeleteFeatureViewOutcomeCallable PaiFeatureStoreClient::d
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PaiFeatureStoreClient::DeleteLLMConfigOutcome PaiFeatureStoreClient::deleteLLMConfig(const DeleteLLMConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteLLMConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteLLMConfigOutcome(DeleteLLMConfigResult(outcome.result()));
|
||||
else
|
||||
return DeleteLLMConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void PaiFeatureStoreClient::deleteLLMConfigAsync(const DeleteLLMConfigRequest& request, const DeleteLLMConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteLLMConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
PaiFeatureStoreClient::DeleteLLMConfigOutcomeCallable PaiFeatureStoreClient::deleteLLMConfigCallable(const DeleteLLMConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteLLMConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteLLMConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PaiFeatureStoreClient::DeleteLabelTableOutcome PaiFeatureStoreClient::deleteLabelTable(const DeleteLabelTableRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -807,6 +915,42 @@ PaiFeatureStoreClient::GetInstanceOutcomeCallable PaiFeatureStoreClient::getInst
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PaiFeatureStoreClient::GetLLMConfigOutcome PaiFeatureStoreClient::getLLMConfig(const GetLLMConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetLLMConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetLLMConfigOutcome(GetLLMConfigResult(outcome.result()));
|
||||
else
|
||||
return GetLLMConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void PaiFeatureStoreClient::getLLMConfigAsync(const GetLLMConfigRequest& request, const GetLLMConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getLLMConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
PaiFeatureStoreClient::GetLLMConfigOutcomeCallable PaiFeatureStoreClient::getLLMConfigCallable(const GetLLMConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetLLMConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getLLMConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PaiFeatureStoreClient::GetLabelTableOutcome PaiFeatureStoreClient::getLabelTable(const GetLabelTableRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1095,6 +1239,42 @@ PaiFeatureStoreClient::GetTaskOutcomeCallable PaiFeatureStoreClient::getTaskCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PaiFeatureStoreClient::ListDatasourceFeatureViewsOutcome PaiFeatureStoreClient::listDatasourceFeatureViews(const ListDatasourceFeatureViewsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListDatasourceFeatureViewsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListDatasourceFeatureViewsOutcome(ListDatasourceFeatureViewsResult(outcome.result()));
|
||||
else
|
||||
return ListDatasourceFeatureViewsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void PaiFeatureStoreClient::listDatasourceFeatureViewsAsync(const ListDatasourceFeatureViewsRequest& request, const ListDatasourceFeatureViewsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listDatasourceFeatureViews(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
PaiFeatureStoreClient::ListDatasourceFeatureViewsOutcomeCallable PaiFeatureStoreClient::listDatasourceFeatureViewsCallable(const ListDatasourceFeatureViewsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListDatasourceFeatureViewsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listDatasourceFeatureViews(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PaiFeatureStoreClient::ListDatasourceTablesOutcome PaiFeatureStoreClient::listDatasourceTables(const ListDatasourceTablesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1383,6 +1563,42 @@ PaiFeatureStoreClient::ListInstancesOutcomeCallable PaiFeatureStoreClient::listI
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PaiFeatureStoreClient::ListLLMConfigsOutcome PaiFeatureStoreClient::listLLMConfigs(const ListLLMConfigsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListLLMConfigsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListLLMConfigsOutcome(ListLLMConfigsResult(outcome.result()));
|
||||
else
|
||||
return ListLLMConfigsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void PaiFeatureStoreClient::listLLMConfigsAsync(const ListLLMConfigsRequest& request, const ListLLMConfigsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listLLMConfigs(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
PaiFeatureStoreClient::ListLLMConfigsOutcomeCallable PaiFeatureStoreClient::listLLMConfigsCallable(const ListLLMConfigsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListLLMConfigsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listLLMConfigs(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PaiFeatureStoreClient::ListLabelTablesOutcome PaiFeatureStoreClient::listLabelTables(const ListLabelTablesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1527,6 +1743,42 @@ PaiFeatureStoreClient::ListProjectFeatureViewsOutcomeCallable PaiFeatureStoreCli
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PaiFeatureStoreClient::ListProjectFeaturesOutcome PaiFeatureStoreClient::listProjectFeatures(const ListProjectFeaturesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListProjectFeaturesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListProjectFeaturesOutcome(ListProjectFeaturesResult(outcome.result()));
|
||||
else
|
||||
return ListProjectFeaturesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void PaiFeatureStoreClient::listProjectFeaturesAsync(const ListProjectFeaturesRequest& request, const ListProjectFeaturesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listProjectFeatures(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
PaiFeatureStoreClient::ListProjectFeaturesOutcomeCallable PaiFeatureStoreClient::listProjectFeaturesCallable(const ListProjectFeaturesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListProjectFeaturesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listProjectFeatures(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PaiFeatureStoreClient::ListProjectsOutcome PaiFeatureStoreClient::listProjects(const ListProjectsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1671,6 +1923,42 @@ PaiFeatureStoreClient::PublishFeatureViewTableOutcomeCallable PaiFeatureStoreCli
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PaiFeatureStoreClient::StopTaskOutcome PaiFeatureStoreClient::stopTask(const StopTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StopTaskOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StopTaskOutcome(StopTaskResult(outcome.result()));
|
||||
else
|
||||
return StopTaskOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void PaiFeatureStoreClient::stopTaskAsync(const StopTaskRequest& request, const StopTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, stopTask(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
PaiFeatureStoreClient::StopTaskOutcomeCallable PaiFeatureStoreClient::stopTaskCallable(const StopTaskRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StopTaskOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->stopTask(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PaiFeatureStoreClient::UpdateDatasourceOutcome PaiFeatureStoreClient::updateDatasource(const UpdateDatasourceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1707,6 +1995,42 @@ PaiFeatureStoreClient::UpdateDatasourceOutcomeCallable PaiFeatureStoreClient::up
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PaiFeatureStoreClient::UpdateLLMConfigOutcome PaiFeatureStoreClient::updateLLMConfig(const UpdateLLMConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateLLMConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateLLMConfigOutcome(UpdateLLMConfigResult(outcome.result()));
|
||||
else
|
||||
return UpdateLLMConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void PaiFeatureStoreClient::updateLLMConfigAsync(const UpdateLLMConfigRequest& request, const UpdateLLMConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateLLMConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
PaiFeatureStoreClient::UpdateLLMConfigOutcomeCallable PaiFeatureStoreClient::updateLLMConfigCallable(const UpdateLLMConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateLLMConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateLLMConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PaiFeatureStoreClient::UpdateLabelTableOutcome PaiFeatureStoreClient::updateLabelTable(const UpdateLabelTableRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/paifeaturestore/model/CheckModelFeatureFGFeatureRequest.h>
|
||||
|
||||
using AlibabaCloud::PaiFeatureStore::Model::CheckModelFeatureFGFeatureRequest;
|
||||
|
||||
CheckModelFeatureFGFeatureRequest::CheckModelFeatureFGFeatureRequest()
|
||||
: RoaServiceRequest("paifeaturestore", "2023-06-21") {
|
||||
setResourcePath("/api/v1/instances/[InstanceId]/modelfeatures/[ModelFeatureId]/action/checkfgfeature"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CheckModelFeatureFGFeatureRequest::~CheckModelFeatureFGFeatureRequest() {}
|
||||
|
||||
std::string CheckModelFeatureFGFeatureRequest::getModelFeatureId() const {
|
||||
return modelFeatureId_;
|
||||
}
|
||||
|
||||
void CheckModelFeatureFGFeatureRequest::setModelFeatureId(const std::string &modelFeatureId) {
|
||||
modelFeatureId_ = modelFeatureId;
|
||||
setParameter(std::string("ModelFeatureId"), modelFeatureId);
|
||||
}
|
||||
|
||||
std::string CheckModelFeatureFGFeatureRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CheckModelFeatureFGFeatureRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
@@ -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 <alibabacloud/paifeaturestore/model/CheckModelFeatureFGFeatureResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::PaiFeatureStore;
|
||||
using namespace AlibabaCloud::PaiFeatureStore::Model;
|
||||
|
||||
CheckModelFeatureFGFeatureResult::CheckModelFeatureFGFeatureResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckModelFeatureFGFeatureResult::CheckModelFeatureFGFeatureResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckModelFeatureFGFeatureResult::~CheckModelFeatureFGFeatureResult()
|
||||
{}
|
||||
|
||||
void CheckModelFeatureFGFeatureResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allFGCheckResultsNode = value["FGCheckResults"]["FGCheckResultsItem"];
|
||||
for (auto valueFGCheckResultsFGCheckResultsItem : allFGCheckResultsNode)
|
||||
{
|
||||
FGCheckResultsItem fGCheckResultsObject;
|
||||
if(!valueFGCheckResultsFGCheckResultsItem["RuleCode"].isNull())
|
||||
fGCheckResultsObject.ruleCode = valueFGCheckResultsFGCheckResultsItem["RuleCode"].asString();
|
||||
if(!valueFGCheckResultsFGCheckResultsItem["Status"].isNull())
|
||||
fGCheckResultsObject.status = valueFGCheckResultsFGCheckResultsItem["Status"].asString() == "true";
|
||||
if(!valueFGCheckResultsFGCheckResultsItem["Message"].isNull())
|
||||
fGCheckResultsObject.message = valueFGCheckResultsFGCheckResultsItem["Message"].asString();
|
||||
fGCheckResults_.push_back(fGCheckResultsObject);
|
||||
}
|
||||
if(!value["requestId"].isNull())
|
||||
requestId_ = value["requestId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CheckModelFeatureFGFeatureResult::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
std::vector<CheckModelFeatureFGFeatureResult::FGCheckResultsItem> CheckModelFeatureFGFeatureResult::getFGCheckResults()const
|
||||
{
|
||||
return fGCheckResults_;
|
||||
}
|
||||
|
||||
46
paifeaturestore/src/model/CreateLLMConfigRequest.cc
Normal file
46
paifeaturestore/src/model/CreateLLMConfigRequest.cc
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/paifeaturestore/model/CreateLLMConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::PaiFeatureStore::Model::CreateLLMConfigRequest;
|
||||
|
||||
CreateLLMConfigRequest::CreateLLMConfigRequest()
|
||||
: RoaServiceRequest("paifeaturestore", "2023-06-21") {
|
||||
setResourcePath("/api/v1/instances/[InstanceId]/llmconfigs"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateLLMConfigRequest::~CreateLLMConfigRequest() {}
|
||||
|
||||
std::string CreateLLMConfigRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void CreateLLMConfigRequest::setBody(const std::string &body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), body);
|
||||
}
|
||||
|
||||
std::string CreateLLMConfigRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateLLMConfigRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
51
paifeaturestore/src/model/CreateLLMConfigResult.cc
Normal file
51
paifeaturestore/src/model/CreateLLMConfigResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/paifeaturestore/model/CreateLLMConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::PaiFeatureStore;
|
||||
using namespace AlibabaCloud::PaiFeatureStore::Model;
|
||||
|
||||
CreateLLMConfigResult::CreateLLMConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateLLMConfigResult::CreateLLMConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateLLMConfigResult::~CreateLLMConfigResult()
|
||||
{}
|
||||
|
||||
void CreateLLMConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["LLMConfigId"].isNull())
|
||||
lLMConfigId_ = value["LLMConfigId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateLLMConfigResult::getLLMConfigId()const
|
||||
{
|
||||
return lLMConfigId_;
|
||||
}
|
||||
|
||||
46
paifeaturestore/src/model/DeleteLLMConfigRequest.cc
Normal file
46
paifeaturestore/src/model/DeleteLLMConfigRequest.cc
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/paifeaturestore/model/DeleteLLMConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::PaiFeatureStore::Model::DeleteLLMConfigRequest;
|
||||
|
||||
DeleteLLMConfigRequest::DeleteLLMConfigRequest()
|
||||
: RoaServiceRequest("paifeaturestore", "2023-06-21") {
|
||||
setResourcePath("/api/v1/instances/[InstanceId]/llmconfigs/[LLMConfigId]"};
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteLLMConfigRequest::~DeleteLLMConfigRequest() {}
|
||||
|
||||
std::string DeleteLLMConfigRequest::getLLMConfigId() const {
|
||||
return lLMConfigId_;
|
||||
}
|
||||
|
||||
void DeleteLLMConfigRequest::setLLMConfigId(const std::string &lLMConfigId) {
|
||||
lLMConfigId_ = lLMConfigId;
|
||||
setParameter(std::string("LLMConfigId"), lLMConfigId);
|
||||
}
|
||||
|
||||
std::string DeleteLLMConfigRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DeleteLLMConfigRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
44
paifeaturestore/src/model/DeleteLLMConfigResult.cc
Normal file
44
paifeaturestore/src/model/DeleteLLMConfigResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/paifeaturestore/model/DeleteLLMConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::PaiFeatureStore;
|
||||
using namespace AlibabaCloud::PaiFeatureStore::Model;
|
||||
|
||||
DeleteLLMConfigResult::DeleteLLMConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteLLMConfigResult::DeleteLLMConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteLLMConfigResult::~DeleteLLMConfigResult()
|
||||
{}
|
||||
|
||||
void DeleteLLMConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -47,6 +47,26 @@ void GetFeatureViewResult::parse(const std::string &payload)
|
||||
fieldsObject.name = valueFieldsFieldsItem["Name"].asString();
|
||||
if(!valueFieldsFieldsItem["Type"].isNull())
|
||||
fieldsObject.type = valueFieldsFieldsItem["Type"].asString();
|
||||
auto allTransformNode = valueFieldsFieldsItem["Transform"]["TransformItem"];
|
||||
for (auto valueFieldsFieldsItemTransformTransformItem : allTransformNode)
|
||||
{
|
||||
FieldsItem::TransformItem transformObject;
|
||||
if(!valueFieldsFieldsItemTransformTransformItem["Type"].isNull())
|
||||
transformObject.type = valueFieldsFieldsItemTransformTransformItem["Type"].asString();
|
||||
if(!valueFieldsFieldsItemTransformTransformItem["LLMConfigId"].isNull())
|
||||
transformObject.lLMConfigId = std::stoi(valueFieldsFieldsItemTransformTransformItem["LLMConfigId"].asString());
|
||||
auto allInputNode = valueFieldsFieldsItemTransformTransformItem["Input"]["InputItem"];
|
||||
for (auto valueFieldsFieldsItemTransformTransformItemInputInputItem : allInputNode)
|
||||
{
|
||||
FieldsItem::TransformItem::InputItem inputObject;
|
||||
if(!valueFieldsFieldsItemTransformTransformItemInputInputItem["Name"].isNull())
|
||||
inputObject.name = valueFieldsFieldsItemTransformTransformItemInputInputItem["Name"].asString();
|
||||
if(!valueFieldsFieldsItemTransformTransformItemInputInputItem["Type"].isNull())
|
||||
inputObject.type = valueFieldsFieldsItemTransformTransformItemInputInputItem["Type"].asString();
|
||||
transformObject.input.push_back(inputObject);
|
||||
}
|
||||
fieldsObject.transform.push_back(transformObject);
|
||||
}
|
||||
auto allAttributes = value["Attributes"]["Attributes"];
|
||||
for (auto value : allAttributes)
|
||||
fieldsObject.attributes.push_back(value.asString());
|
||||
|
||||
@@ -42,6 +42,9 @@ void GetInstanceResult::parse(const std::string &payload)
|
||||
auto featureDBInstanceInfoNode = value["FeatureDBInstanceInfo"];
|
||||
if(!featureDBInstanceInfoNode["Status"].isNull())
|
||||
featureDBInstanceInfo_.status = featureDBInstanceInfoNode["Status"].asString();
|
||||
auto featureDBInfoNode = value["FeatureDBInfo"];
|
||||
if(!featureDBInfoNode["Status"].isNull())
|
||||
featureDBInfo_.status = featureDBInfoNode["Status"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
@@ -84,6 +87,11 @@ GetInstanceResult::FeatureDBInstanceInfo GetInstanceResult::getFeatureDBInstance
|
||||
return featureDBInstanceInfo_;
|
||||
}
|
||||
|
||||
GetInstanceResult::FeatureDBInfo GetInstanceResult::getFeatureDBInfo()const
|
||||
{
|
||||
return featureDBInfo_;
|
||||
}
|
||||
|
||||
std::string GetInstanceResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
|
||||
55
paifeaturestore/src/model/GetLLMConfigRequest.cc
Normal file
55
paifeaturestore/src/model/GetLLMConfigRequest.cc
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/paifeaturestore/model/GetLLMConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::PaiFeatureStore::Model::GetLLMConfigRequest;
|
||||
|
||||
GetLLMConfigRequest::GetLLMConfigRequest()
|
||||
: RoaServiceRequest("paifeaturestore", "2023-06-21") {
|
||||
setResourcePath("/api/v1/instances/[InstanceId]/llmconfigs/[LLMConfigId]"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetLLMConfigRequest::~GetLLMConfigRequest() {}
|
||||
|
||||
std::string GetLLMConfigRequest::getLLMConfigId() const {
|
||||
return lLMConfigId_;
|
||||
}
|
||||
|
||||
void GetLLMConfigRequest::setLLMConfigId(const std::string &lLMConfigId) {
|
||||
lLMConfigId_ = lLMConfigId;
|
||||
setParameter(std::string("LLMConfigId"), lLMConfigId);
|
||||
}
|
||||
|
||||
std::string GetLLMConfigRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetLLMConfigRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string GetLLMConfigRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetLLMConfigRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
121
paifeaturestore/src/model/GetLLMConfigResult.cc
Normal file
121
paifeaturestore/src/model/GetLLMConfigResult.cc
Normal file
@@ -0,0 +1,121 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/paifeaturestore/model/GetLLMConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::PaiFeatureStore;
|
||||
using namespace AlibabaCloud::PaiFeatureStore::Model;
|
||||
|
||||
GetLLMConfigResult::GetLLMConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetLLMConfigResult::GetLLMConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetLLMConfigResult::~GetLLMConfigResult()
|
||||
{}
|
||||
|
||||
void GetLLMConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["LLMConfigId"].isNull())
|
||||
lLMConfigId_ = value["LLMConfigId"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
if(!value["ApiKey"].isNull())
|
||||
apiKey_ = value["ApiKey"].asString();
|
||||
if(!value["Model"].isNull())
|
||||
model_ = value["Model"].asString();
|
||||
if(!value["BaseUrl"].isNull())
|
||||
baseUrl_ = value["BaseUrl"].asString();
|
||||
if(!value["Rps"].isNull())
|
||||
rps_ = std::stoi(value["Rps"].asString());
|
||||
if(!value["MaxTokens"].isNull())
|
||||
maxTokens_ = std::stoi(value["MaxTokens"].asString());
|
||||
if(!value["GmtCreateTime"].isNull())
|
||||
gmtCreateTime_ = value["GmtCreateTime"].asString();
|
||||
if(!value["GmtModifiedTime"].isNull())
|
||||
gmtModifiedTime_ = value["GmtModifiedTime"].asString();
|
||||
if(!value["BatchSize"].isNull())
|
||||
batchSize_ = std::stoi(value["BatchSize"].asString());
|
||||
if(!value["WorkspaceId"].isNull())
|
||||
workspaceId_ = value["WorkspaceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
int GetLLMConfigResult::getBatchSize()const
|
||||
{
|
||||
return batchSize_;
|
||||
}
|
||||
|
||||
std::string GetLLMConfigResult::getApiKey()const
|
||||
{
|
||||
return apiKey_;
|
||||
}
|
||||
|
||||
std::string GetLLMConfigResult::getLLMConfigId()const
|
||||
{
|
||||
return lLMConfigId_;
|
||||
}
|
||||
|
||||
int GetLLMConfigResult::getRps()const
|
||||
{
|
||||
return rps_;
|
||||
}
|
||||
|
||||
int GetLLMConfigResult::getMaxTokens()const
|
||||
{
|
||||
return maxTokens_;
|
||||
}
|
||||
|
||||
std::string GetLLMConfigResult::getModel()const
|
||||
{
|
||||
return model_;
|
||||
}
|
||||
|
||||
std::string GetLLMConfigResult::getWorkspaceId()const
|
||||
{
|
||||
return workspaceId_;
|
||||
}
|
||||
|
||||
std::string GetLLMConfigResult::getBaseUrl()const
|
||||
{
|
||||
return baseUrl_;
|
||||
}
|
||||
|
||||
std::string GetLLMConfigResult::getGmtCreateTime()const
|
||||
{
|
||||
return gmtCreateTime_;
|
||||
}
|
||||
|
||||
std::string GetLLMConfigResult::getGmtModifiedTime()const
|
||||
{
|
||||
return gmtModifiedTime_;
|
||||
}
|
||||
|
||||
std::string GetLLMConfigResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
163
paifeaturestore/src/model/ListDatasourceFeatureViewsRequest.cc
Normal file
163
paifeaturestore/src/model/ListDatasourceFeatureViewsRequest.cc
Normal file
@@ -0,0 +1,163 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/paifeaturestore/model/ListDatasourceFeatureViewsRequest.h>
|
||||
|
||||
using AlibabaCloud::PaiFeatureStore::Model::ListDatasourceFeatureViewsRequest;
|
||||
|
||||
ListDatasourceFeatureViewsRequest::ListDatasourceFeatureViewsRequest()
|
||||
: RoaServiceRequest("paifeaturestore", "2023-06-21") {
|
||||
setResourcePath("/api/v1/instances/[InstanceId]/datasources/[DatasourceId]/featureviews"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListDatasourceFeatureViewsRequest::~ListDatasourceFeatureViewsRequest() {}
|
||||
|
||||
std::string ListDatasourceFeatureViewsRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
void ListDatasourceFeatureViewsRequest::setType(const std::string &type) {
|
||||
type_ = type;
|
||||
setParameter(std::string("Type"), type);
|
||||
}
|
||||
|
||||
std::string ListDatasourceFeatureViewsRequest::getStartDate() const {
|
||||
return startDate_;
|
||||
}
|
||||
|
||||
void ListDatasourceFeatureViewsRequest::setStartDate(const std::string &startDate) {
|
||||
startDate_ = startDate;
|
||||
setParameter(std::string("StartDate"), startDate);
|
||||
}
|
||||
|
||||
int ListDatasourceFeatureViewsRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListDatasourceFeatureViewsRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int ListDatasourceFeatureViewsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListDatasourceFeatureViewsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListDatasourceFeatureViewsRequest::getProjectId() const {
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void ListDatasourceFeatureViewsRequest::setProjectId(const std::string &projectId) {
|
||||
projectId_ = projectId;
|
||||
setParameter(std::string("ProjectId"), projectId);
|
||||
}
|
||||
|
||||
std::string ListDatasourceFeatureViewsRequest::getOrder() const {
|
||||
return order_;
|
||||
}
|
||||
|
||||
void ListDatasourceFeatureViewsRequest::setOrder(const std::string &order) {
|
||||
order_ = order;
|
||||
setParameter(std::string("Order"), order);
|
||||
}
|
||||
|
||||
bool ListDatasourceFeatureViewsRequest::getAll() const {
|
||||
return all_;
|
||||
}
|
||||
|
||||
void ListDatasourceFeatureViewsRequest::setAll(bool all) {
|
||||
all_ = all;
|
||||
setParameter(std::string("All"), all ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ListDatasourceFeatureViewsRequest::getProjectName() const {
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void ListDatasourceFeatureViewsRequest::setProjectName(const std::string &projectName) {
|
||||
projectName_ = projectName;
|
||||
setParameter(std::string("ProjectName"), projectName);
|
||||
}
|
||||
|
||||
bool ListDatasourceFeatureViewsRequest::getShowStorageUsage() const {
|
||||
return showStorageUsage_;
|
||||
}
|
||||
|
||||
void ListDatasourceFeatureViewsRequest::setShowStorageUsage(bool showStorageUsage) {
|
||||
showStorageUsage_ = showStorageUsage;
|
||||
setParameter(std::string("ShowStorageUsage"), showStorageUsage ? "true" : "false");
|
||||
}
|
||||
|
||||
bool ListDatasourceFeatureViewsRequest::getVerbose() const {
|
||||
return verbose_;
|
||||
}
|
||||
|
||||
void ListDatasourceFeatureViewsRequest::setVerbose(bool verbose) {
|
||||
verbose_ = verbose;
|
||||
setParameter(std::string("Verbose"), verbose ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ListDatasourceFeatureViewsRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ListDatasourceFeatureViewsRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string ListDatasourceFeatureViewsRequest::getEndDate() const {
|
||||
return endDate_;
|
||||
}
|
||||
|
||||
void ListDatasourceFeatureViewsRequest::setEndDate(const std::string &endDate) {
|
||||
endDate_ = endDate;
|
||||
setParameter(std::string("EndDate"), endDate);
|
||||
}
|
||||
|
||||
std::string ListDatasourceFeatureViewsRequest::getDatasourceId() const {
|
||||
return datasourceId_;
|
||||
}
|
||||
|
||||
void ListDatasourceFeatureViewsRequest::setDatasourceId(const std::string &datasourceId) {
|
||||
datasourceId_ = datasourceId;
|
||||
setParameter(std::string("DatasourceId"), datasourceId);
|
||||
}
|
||||
|
||||
std::string ListDatasourceFeatureViewsRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ListDatasourceFeatureViewsRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string ListDatasourceFeatureViewsRequest::getSortBy() const {
|
||||
return sortBy_;
|
||||
}
|
||||
|
||||
void ListDatasourceFeatureViewsRequest::setSortBy(const std::string &sortBy) {
|
||||
sortBy_ = sortBy;
|
||||
setParameter(std::string("SortBy"), sortBy);
|
||||
}
|
||||
|
||||
124
paifeaturestore/src/model/ListDatasourceFeatureViewsResult.cc
Normal file
124
paifeaturestore/src/model/ListDatasourceFeatureViewsResult.cc
Normal file
@@ -0,0 +1,124 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/paifeaturestore/model/ListDatasourceFeatureViewsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::PaiFeatureStore;
|
||||
using namespace AlibabaCloud::PaiFeatureStore::Model;
|
||||
|
||||
ListDatasourceFeatureViewsResult::ListDatasourceFeatureViewsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListDatasourceFeatureViewsResult::ListDatasourceFeatureViewsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListDatasourceFeatureViewsResult::~ListDatasourceFeatureViewsResult()
|
||||
{}
|
||||
|
||||
void ListDatasourceFeatureViewsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allFeatureViewsNode = value["FeatureViews"]["DatasourceFeatureViews"];
|
||||
for (auto valueFeatureViewsDatasourceFeatureViews : allFeatureViewsNode)
|
||||
{
|
||||
DatasourceFeatureViews featureViewsObject;
|
||||
if(!valueFeatureViewsDatasourceFeatureViews["FeatureViewId"].isNull())
|
||||
featureViewsObject.featureViewId = valueFeatureViewsDatasourceFeatureViews["FeatureViewId"].asString();
|
||||
if(!valueFeatureViewsDatasourceFeatureViews["Name"].isNull())
|
||||
featureViewsObject.name = valueFeatureViewsDatasourceFeatureViews["Name"].asString();
|
||||
if(!valueFeatureViewsDatasourceFeatureViews["ProjectName"].isNull())
|
||||
featureViewsObject.projectName = valueFeatureViewsDatasourceFeatureViews["ProjectName"].asString();
|
||||
if(!valueFeatureViewsDatasourceFeatureViews["Type"].isNull())
|
||||
featureViewsObject.type = valueFeatureViewsDatasourceFeatureViews["Type"].asString();
|
||||
if(!valueFeatureViewsDatasourceFeatureViews["FeatureEntityName"].isNull())
|
||||
featureViewsObject.featureEntityName = valueFeatureViewsDatasourceFeatureViews["FeatureEntityName"].asString();
|
||||
if(!valueFeatureViewsDatasourceFeatureViews["TTL"].isNull())
|
||||
featureViewsObject.tTL = std::stoi(valueFeatureViewsDatasourceFeatureViews["TTL"].asString());
|
||||
if(!valueFeatureViewsDatasourceFeatureViews["Config"].isNull())
|
||||
featureViewsObject.config = valueFeatureViewsDatasourceFeatureViews["Config"].asString();
|
||||
auto usageStatisticsNode = value["UsageStatistics"];
|
||||
if(!usageStatisticsNode["RowCount"].isNull())
|
||||
featureViewsObject.usageStatistics.rowCount = std::stol(usageStatisticsNode["RowCount"].asString());
|
||||
if(!usageStatisticsNode["DiskUsage"].isNull())
|
||||
featureViewsObject.usageStatistics.diskUsage = usageStatisticsNode["DiskUsage"].asString();
|
||||
if(!usageStatisticsNode["MemoryUsage"].isNull())
|
||||
featureViewsObject.usageStatistics.memoryUsage = usageStatisticsNode["MemoryUsage"].asString();
|
||||
auto allReadWriteCountNode = usageStatisticsNode["ReadWriteCount"]["ReadWriteCountItem"];
|
||||
for (auto usageStatisticsNodeReadWriteCountReadWriteCountItem : allReadWriteCountNode)
|
||||
{
|
||||
DatasourceFeatureViews::UsageStatistics::ReadWriteCountItem readWriteCountItemObject;
|
||||
if(!usageStatisticsNodeReadWriteCountReadWriteCountItem["Date"].isNull())
|
||||
readWriteCountItemObject.date = usageStatisticsNodeReadWriteCountReadWriteCountItem["Date"].asString();
|
||||
if(!usageStatisticsNodeReadWriteCountReadWriteCountItem["WriteCount"].isNull())
|
||||
readWriteCountItemObject.writeCount = std::stol(usageStatisticsNodeReadWriteCountReadWriteCountItem["WriteCount"].asString());
|
||||
if(!usageStatisticsNodeReadWriteCountReadWriteCountItem["ReadCount"].isNull())
|
||||
readWriteCountItemObject.readCount = std::stol(usageStatisticsNodeReadWriteCountReadWriteCountItem["ReadCount"].asString());
|
||||
featureViewsObject.usageStatistics.readWriteCount.push_back(readWriteCountItemObject);
|
||||
}
|
||||
featureViews_.push_back(featureViewsObject);
|
||||
}
|
||||
auto totalUsageStatisticsNode = value["TotalUsageStatistics"];
|
||||
if(!totalUsageStatisticsNode["TotalDiskUsage"].isNull())
|
||||
totalUsageStatistics_.totalDiskUsage = totalUsageStatisticsNode["TotalDiskUsage"].asString();
|
||||
if(!totalUsageStatisticsNode["TotalMemoryUsage"].isNull())
|
||||
totalUsageStatistics_.totalMemoryUsage = totalUsageStatisticsNode["TotalMemoryUsage"].asString();
|
||||
auto allTotalReadWriteCountNode = totalUsageStatisticsNode["TotalReadWriteCount"]["TotalReadWriteCountItem"];
|
||||
for (auto totalUsageStatisticsNodeTotalReadWriteCountTotalReadWriteCountItem : allTotalReadWriteCountNode)
|
||||
{
|
||||
TotalUsageStatistics::TotalReadWriteCountItem totalReadWriteCountItemObject;
|
||||
if(!totalUsageStatisticsNodeTotalReadWriteCountTotalReadWriteCountItem["Date"].isNull())
|
||||
totalReadWriteCountItemObject.date = totalUsageStatisticsNodeTotalReadWriteCountTotalReadWriteCountItem["Date"].asString();
|
||||
if(!totalUsageStatisticsNodeTotalReadWriteCountTotalReadWriteCountItem["TotalWriteCount"].isNull())
|
||||
totalReadWriteCountItemObject.totalWriteCount = std::stol(totalUsageStatisticsNodeTotalReadWriteCountTotalReadWriteCountItem["TotalWriteCount"].asString());
|
||||
if(!totalUsageStatisticsNodeTotalReadWriteCountTotalReadWriteCountItem["TotalReadCount"].isNull())
|
||||
totalReadWriteCountItemObject.totalReadCount = std::stol(totalUsageStatisticsNodeTotalReadWriteCountTotalReadWriteCountItem["TotalReadCount"].asString());
|
||||
totalUsageStatistics_.totalReadWriteCount.push_back(totalReadWriteCountItemObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
if(!value["requestId"].isNull())
|
||||
requestId_ = value["requestId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListDatasourceFeatureViewsResult::DatasourceFeatureViews> ListDatasourceFeatureViewsResult::getFeatureViews()const
|
||||
{
|
||||
return featureViews_;
|
||||
}
|
||||
|
||||
long ListDatasourceFeatureViewsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListDatasourceFeatureViewsResult::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
ListDatasourceFeatureViewsResult::TotalUsageStatistics ListDatasourceFeatureViewsResult::getTotalUsageStatistics()const
|
||||
{
|
||||
return totalUsageStatistics_;
|
||||
}
|
||||
|
||||
@@ -57,6 +57,8 @@ void ListFeatureViewFieldRelationshipsResult::parse(const std::string &payload)
|
||||
modelsObject.modelId = valueRelationshipsRelationshipsItemModelsModelsItem["ModelId"].asString();
|
||||
if(!valueRelationshipsRelationshipsItemModelsModelsItem["ModelName"].isNull())
|
||||
modelsObject.modelName = valueRelationshipsRelationshipsItemModelsModelsItem["ModelName"].asString();
|
||||
if(!valueRelationshipsRelationshipsItemModelsModelsItem["FeatureAliasName"].isNull())
|
||||
modelsObject.featureAliasName = valueRelationshipsRelationshipsItemModelsModelsItem["FeatureAliasName"].asString();
|
||||
relationshipsObject.models.push_back(modelsObject);
|
||||
}
|
||||
relationships_.push_back(relationshipsObject);
|
||||
|
||||
@@ -58,6 +58,9 @@ void ListInstancesResult::parse(const std::string &payload)
|
||||
auto featureDBInstanceInfoNode = value["FeatureDBInstanceInfo"];
|
||||
if(!featureDBInstanceInfoNode["Status"].isNull())
|
||||
instancesObject.featureDBInstanceInfo.status = featureDBInstanceInfoNode["Status"].asString();
|
||||
auto featureDBInfoNode = value["FeatureDBInfo"];
|
||||
if(!featureDBInfoNode["Status"].isNull())
|
||||
instancesObject.featureDBInfo.status = featureDBInfoNode["Status"].asString();
|
||||
instances_.push_back(instancesObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
|
||||
109
paifeaturestore/src/model/ListLLMConfigsRequest.cc
Normal file
109
paifeaturestore/src/model/ListLLMConfigsRequest.cc
Normal file
@@ -0,0 +1,109 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/paifeaturestore/model/ListLLMConfigsRequest.h>
|
||||
|
||||
using AlibabaCloud::PaiFeatureStore::Model::ListLLMConfigsRequest;
|
||||
|
||||
ListLLMConfigsRequest::ListLLMConfigsRequest()
|
||||
: RoaServiceRequest("paifeaturestore", "2023-06-21") {
|
||||
setResourcePath("/api/v1/instances/[InstanceId]/llmconfigs"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListLLMConfigsRequest::~ListLLMConfigsRequest() {}
|
||||
|
||||
int ListLLMConfigsRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListLLMConfigsRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string ListLLMConfigsRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListLLMConfigsRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
int ListLLMConfigsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListLLMConfigsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListLLMConfigsRequest::getOrder() const {
|
||||
return order_;
|
||||
}
|
||||
|
||||
void ListLLMConfigsRequest::setOrder(const std::string &order) {
|
||||
order_ = order;
|
||||
setParameter(std::string("Order"), order);
|
||||
}
|
||||
|
||||
std::string ListLLMConfigsRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ListLLMConfigsRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string ListLLMConfigsRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ListLLMConfigsRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
int ListLLMConfigsRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListLLMConfigsRequest::setMaxResults(int maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
std::string ListLLMConfigsRequest::getSortBy() const {
|
||||
return sortBy_;
|
||||
}
|
||||
|
||||
void ListLLMConfigsRequest::setSortBy(const std::string &sortBy) {
|
||||
sortBy_ = sortBy;
|
||||
setParameter(std::string("SortBy"), sortBy);
|
||||
}
|
||||
|
||||
std::string ListLLMConfigsRequest::getWorkspaceId() const {
|
||||
return workspaceId_;
|
||||
}
|
||||
|
||||
void ListLLMConfigsRequest::setWorkspaceId(const std::string &workspaceId) {
|
||||
workspaceId_ = workspaceId;
|
||||
setParameter(std::string("WorkspaceId"), workspaceId);
|
||||
}
|
||||
|
||||
100
paifeaturestore/src/model/ListLLMConfigsResult.cc
Normal file
100
paifeaturestore/src/model/ListLLMConfigsResult.cc
Normal file
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/paifeaturestore/model/ListLLMConfigsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::PaiFeatureStore;
|
||||
using namespace AlibabaCloud::PaiFeatureStore::Model;
|
||||
|
||||
ListLLMConfigsResult::ListLLMConfigsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListLLMConfigsResult::ListLLMConfigsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListLLMConfigsResult::~ListLLMConfigsResult()
|
||||
{}
|
||||
|
||||
void ListLLMConfigsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allLLMConfigsNode = value["LLMConfigs"]["llmConfigsItem"];
|
||||
for (auto valueLLMConfigsllmConfigsItem : allLLMConfigsNode)
|
||||
{
|
||||
LlmConfigsItem lLMConfigsObject;
|
||||
if(!valueLLMConfigsllmConfigsItem["LLMConfigId"].isNull())
|
||||
lLMConfigsObject.lLMConfigId = valueLLMConfigsllmConfigsItem["LLMConfigId"].asString();
|
||||
if(!valueLLMConfigsllmConfigsItem["Name"].isNull())
|
||||
lLMConfigsObject.name = valueLLMConfigsllmConfigsItem["Name"].asString();
|
||||
if(!valueLLMConfigsllmConfigsItem["ApiKey"].isNull())
|
||||
lLMConfigsObject.apiKey = valueLLMConfigsllmConfigsItem["ApiKey"].asString();
|
||||
if(!valueLLMConfigsllmConfigsItem["Model"].isNull())
|
||||
lLMConfigsObject.model = valueLLMConfigsllmConfigsItem["Model"].asString();
|
||||
if(!valueLLMConfigsllmConfigsItem["BaseUrl"].isNull())
|
||||
lLMConfigsObject.baseUrl = valueLLMConfigsllmConfigsItem["BaseUrl"].asString();
|
||||
if(!valueLLMConfigsllmConfigsItem["Rps"].isNull())
|
||||
lLMConfigsObject.rps = std::stoi(valueLLMConfigsllmConfigsItem["Rps"].asString());
|
||||
if(!valueLLMConfigsllmConfigsItem["MaxTokens"].isNull())
|
||||
lLMConfigsObject.maxTokens = std::stoi(valueLLMConfigsllmConfigsItem["MaxTokens"].asString());
|
||||
if(!valueLLMConfigsllmConfigsItem["GmtCreateTime"].isNull())
|
||||
lLMConfigsObject.gmtCreateTime = valueLLMConfigsllmConfigsItem["GmtCreateTime"].asString();
|
||||
if(!valueLLMConfigsllmConfigsItem["GmtModifiedTime"].isNull())
|
||||
lLMConfigsObject.gmtModifiedTime = valueLLMConfigsllmConfigsItem["GmtModifiedTime"].asString();
|
||||
if(!valueLLMConfigsllmConfigsItem["ResourceGroupId"].isNull())
|
||||
lLMConfigsObject.resourceGroupId = valueLLMConfigsllmConfigsItem["ResourceGroupId"].asString();
|
||||
if(!valueLLMConfigsllmConfigsItem["BatchSize"].isNull())
|
||||
lLMConfigsObject.batchSize = std::stoi(valueLLMConfigsllmConfigsItem["BatchSize"].asString());
|
||||
if(!valueLLMConfigsllmConfigsItem["WorkspaceId"].isNull())
|
||||
lLMConfigsObject.workspaceId = valueLLMConfigsllmConfigsItem["WorkspaceId"].asString();
|
||||
lLMConfigs_.push_back(lLMConfigsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListLLMConfigsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListLLMConfigsResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::vector<ListLLMConfigsResult::LlmConfigsItem> ListLLMConfigsResult::getLLMConfigs()const
|
||||
{
|
||||
return lLMConfigs_;
|
||||
}
|
||||
|
||||
int ListLLMConfigsResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
109
paifeaturestore/src/model/ListProjectFeaturesRequest.cc
Normal file
109
paifeaturestore/src/model/ListProjectFeaturesRequest.cc
Normal file
@@ -0,0 +1,109 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/paifeaturestore/model/ListProjectFeaturesRequest.h>
|
||||
|
||||
using AlibabaCloud::PaiFeatureStore::Model::ListProjectFeaturesRequest;
|
||||
|
||||
ListProjectFeaturesRequest::ListProjectFeaturesRequest()
|
||||
: RoaServiceRequest("paifeaturestore", "2023-06-21") {
|
||||
setResourcePath("/api/v1/instances/[InstanceId]/projects/[ProjectId]/features"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListProjectFeaturesRequest::~ListProjectFeaturesRequest() {}
|
||||
|
||||
int ListProjectFeaturesRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListProjectFeaturesRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int ListProjectFeaturesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListProjectFeaturesRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListProjectFeaturesRequest::getProjectId() const {
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void ListProjectFeaturesRequest::setProjectId(const std::string &projectId) {
|
||||
projectId_ = projectId;
|
||||
setParameter(std::string("ProjectId"), projectId);
|
||||
}
|
||||
|
||||
std::string ListProjectFeaturesRequest::getOrder() const {
|
||||
return order_;
|
||||
}
|
||||
|
||||
void ListProjectFeaturesRequest::setOrder(const std::string &order) {
|
||||
order_ = order;
|
||||
setParameter(std::string("Order"), order);
|
||||
}
|
||||
|
||||
std::string ListProjectFeaturesRequest::getFilter() const {
|
||||
return filter_;
|
||||
}
|
||||
|
||||
void ListProjectFeaturesRequest::setFilter(const std::string &filter) {
|
||||
filter_ = filter;
|
||||
setParameter(std::string("Filter"), filter);
|
||||
}
|
||||
|
||||
std::string ListProjectFeaturesRequest::getAliasName() const {
|
||||
return aliasName_;
|
||||
}
|
||||
|
||||
void ListProjectFeaturesRequest::setAliasName(const std::string &aliasName) {
|
||||
aliasName_ = aliasName;
|
||||
setParameter(std::string("AliasName"), aliasName);
|
||||
}
|
||||
|
||||
std::string ListProjectFeaturesRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ListProjectFeaturesRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string ListProjectFeaturesRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ListProjectFeaturesRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string ListProjectFeaturesRequest::getSortBy() const {
|
||||
return sortBy_;
|
||||
}
|
||||
|
||||
void ListProjectFeaturesRequest::setSortBy(const std::string &sortBy) {
|
||||
sortBy_ = sortBy;
|
||||
setParameter(std::string("SortBy"), sortBy);
|
||||
}
|
||||
|
||||
85
paifeaturestore/src/model/ListProjectFeaturesResult.cc
Normal file
85
paifeaturestore/src/model/ListProjectFeaturesResult.cc
Normal file
@@ -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 <alibabacloud/paifeaturestore/model/ListProjectFeaturesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::PaiFeatureStore;
|
||||
using namespace AlibabaCloud::PaiFeatureStore::Model;
|
||||
|
||||
ListProjectFeaturesResult::ListProjectFeaturesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListProjectFeaturesResult::ListProjectFeaturesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListProjectFeaturesResult::~ListProjectFeaturesResult()
|
||||
{}
|
||||
|
||||
void ListProjectFeaturesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allFeaturesNode = value["Features"]["FeaturesItem"];
|
||||
for (auto valueFeaturesFeaturesItem : allFeaturesNode)
|
||||
{
|
||||
FeaturesItem featuresObject;
|
||||
if(!valueFeaturesFeaturesItem["Name"].isNull())
|
||||
featuresObject.name = valueFeaturesFeaturesItem["Name"].asString();
|
||||
if(!valueFeaturesFeaturesItem["Type"].isNull())
|
||||
featuresObject.type = valueFeaturesFeaturesItem["Type"].asString();
|
||||
if(!valueFeaturesFeaturesItem["FeatureViewId"].isNull())
|
||||
featuresObject.featureViewId = valueFeaturesFeaturesItem["FeatureViewId"].asString();
|
||||
if(!valueFeaturesFeaturesItem["FeatureViewName"].isNull())
|
||||
featuresObject.featureViewName = valueFeaturesFeaturesItem["FeatureViewName"].asString();
|
||||
if(!valueFeaturesFeaturesItem["Owner"].isNull())
|
||||
featuresObject.owner = valueFeaturesFeaturesItem["Owner"].asString();
|
||||
if(!valueFeaturesFeaturesItem["ModelFeatureCount"].isNull())
|
||||
featuresObject.modelFeatureCount = std::stoi(valueFeaturesFeaturesItem["ModelFeatureCount"].asString());
|
||||
if(!valueFeaturesFeaturesItem["AliasNames"].isNull())
|
||||
featuresObject.aliasNames = valueFeaturesFeaturesItem["AliasNames"].asString();
|
||||
if(!valueFeaturesFeaturesItem["GmtCreateTime"].isNull())
|
||||
featuresObject.gmtCreateTime = valueFeaturesFeaturesItem["GmtCreateTime"].asString();
|
||||
features_.push_back(featuresObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["requestId"].isNull())
|
||||
requestId_ = value["requestId"].asString();
|
||||
|
||||
}
|
||||
|
||||
int ListProjectFeaturesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListProjectFeaturesResult::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
std::vector<ListProjectFeaturesResult::FeaturesItem> ListProjectFeaturesResult::getFeatures()const
|
||||
{
|
||||
return features_;
|
||||
}
|
||||
|
||||
46
paifeaturestore/src/model/StopTaskRequest.cc
Normal file
46
paifeaturestore/src/model/StopTaskRequest.cc
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/paifeaturestore/model/StopTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::PaiFeatureStore::Model::StopTaskRequest;
|
||||
|
||||
StopTaskRequest::StopTaskRequest()
|
||||
: RoaServiceRequest("paifeaturestore", "2023-06-21") {
|
||||
setResourcePath("/api/v1/instances/[InstanceId]/tasks/[TaskId]/action/stop"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StopTaskRequest::~StopTaskRequest() {}
|
||||
|
||||
std::string StopTaskRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void StopTaskRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string StopTaskRequest::getTaskId() const {
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void StopTaskRequest::setTaskId(const std::string &taskId) {
|
||||
taskId_ = taskId;
|
||||
setParameter(std::string("TaskId"), taskId);
|
||||
}
|
||||
|
||||
51
paifeaturestore/src/model/StopTaskResult.cc
Normal file
51
paifeaturestore/src/model/StopTaskResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/paifeaturestore/model/StopTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::PaiFeatureStore;
|
||||
using namespace AlibabaCloud::PaiFeatureStore::Model;
|
||||
|
||||
StopTaskResult::StopTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StopTaskResult::StopTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StopTaskResult::~StopTaskResult()
|
||||
{}
|
||||
|
||||
void StopTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["requestId"].isNull())
|
||||
requestId_ = value["requestId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string StopTaskResult::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
55
paifeaturestore/src/model/UpdateLLMConfigRequest.cc
Normal file
55
paifeaturestore/src/model/UpdateLLMConfigRequest.cc
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/paifeaturestore/model/UpdateLLMConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::PaiFeatureStore::Model::UpdateLLMConfigRequest;
|
||||
|
||||
UpdateLLMConfigRequest::UpdateLLMConfigRequest()
|
||||
: RoaServiceRequest("paifeaturestore", "2023-06-21") {
|
||||
setResourcePath("/api/v1/instances/[InstanceId]/llmconfigs/[LLMConfigId]"};
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
UpdateLLMConfigRequest::~UpdateLLMConfigRequest() {}
|
||||
|
||||
std::string UpdateLLMConfigRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void UpdateLLMConfigRequest::setBody(const std::string &body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), body);
|
||||
}
|
||||
|
||||
std::string UpdateLLMConfigRequest::getLLMConfigId() const {
|
||||
return lLMConfigId_;
|
||||
}
|
||||
|
||||
void UpdateLLMConfigRequest::setLLMConfigId(const std::string &lLMConfigId) {
|
||||
lLMConfigId_ = lLMConfigId;
|
||||
setParameter(std::string("LLMConfigId"), lLMConfigId);
|
||||
}
|
||||
|
||||
std::string UpdateLLMConfigRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void UpdateLLMConfigRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
44
paifeaturestore/src/model/UpdateLLMConfigResult.cc
Normal file
44
paifeaturestore/src/model/UpdateLLMConfigResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/paifeaturestore/model/UpdateLLMConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::PaiFeatureStore;
|
||||
using namespace AlibabaCloud::PaiFeatureStore::Model;
|
||||
|
||||
UpdateLLMConfigResult::UpdateLLMConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateLLMConfigResult::UpdateLLMConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateLLMConfigResult::~UpdateLLMConfigResult()
|
||||
{}
|
||||
|
||||
void UpdateLLMConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user