diff --git a/VERSION b/VERSION index 3f6403ee6..e95c26843 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.2088 \ No newline at end of file +1.36.2089 \ No newline at end of file diff --git a/paifeaturestore/CMakeLists.txt b/paifeaturestore/CMakeLists.txt index 9ad12ef33..94ecb3fe7 100644 --- a/paifeaturestore/CMakeLists.txt +++ b/paifeaturestore/CMakeLists.txt @@ -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 diff --git a/paifeaturestore/include/alibabacloud/paifeaturestore/PaiFeatureStoreClient.h b/paifeaturestore/include/alibabacloud/paifeaturestore/PaiFeatureStoreClient.h index eff333721..dc190d2c3 100644 --- a/paifeaturestore/include/alibabacloud/paifeaturestore/PaiFeatureStoreClient.h +++ b/paifeaturestore/include/alibabacloud/paifeaturestore/PaiFeatureStoreClient.h @@ -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 CheckInstanceDatasourceOutcome; typedef std::future CheckInstanceDatasourceOutcomeCallable; typedef std::function&)> CheckInstanceDatasourceAsyncHandler; + typedef Outcome CheckModelFeatureFGFeatureOutcome; + typedef std::future CheckModelFeatureFGFeatureOutcomeCallable; + typedef std::function&)> CheckModelFeatureFGFeatureAsyncHandler; typedef Outcome CreateDatasourceOutcome; typedef std::future CreateDatasourceOutcomeCallable; typedef std::function&)> CreateDatasourceAsyncHandler; @@ -148,6 +169,9 @@ namespace AlibabaCloud typedef Outcome CreateInstanceOutcome; typedef std::future CreateInstanceOutcomeCallable; typedef std::function&)> CreateInstanceAsyncHandler; + typedef Outcome CreateLLMConfigOutcome; + typedef std::future CreateLLMConfigOutcomeCallable; + typedef std::function&)> CreateLLMConfigAsyncHandler; typedef Outcome CreateLabelTableOutcome; typedef std::future CreateLabelTableOutcomeCallable; typedef std::function&)> CreateLabelTableAsyncHandler; @@ -169,6 +193,9 @@ namespace AlibabaCloud typedef Outcome DeleteFeatureViewOutcome; typedef std::future DeleteFeatureViewOutcomeCallable; typedef std::function&)> DeleteFeatureViewAsyncHandler; + typedef Outcome DeleteLLMConfigOutcome; + typedef std::future DeleteLLMConfigOutcomeCallable; + typedef std::function&)> DeleteLLMConfigAsyncHandler; typedef Outcome DeleteLabelTableOutcome; typedef std::future DeleteLabelTableOutcomeCallable; typedef std::function&)> DeleteLabelTableAsyncHandler; @@ -196,6 +223,9 @@ namespace AlibabaCloud typedef Outcome GetInstanceOutcome; typedef std::future GetInstanceOutcomeCallable; typedef std::function&)> GetInstanceAsyncHandler; + typedef Outcome GetLLMConfigOutcome; + typedef std::future GetLLMConfigOutcomeCallable; + typedef std::function&)> GetLLMConfigAsyncHandler; typedef Outcome GetLabelTableOutcome; typedef std::future GetLabelTableOutcomeCallable; typedef std::function&)> GetLabelTableAsyncHandler; @@ -220,6 +250,9 @@ namespace AlibabaCloud typedef Outcome GetTaskOutcome; typedef std::future GetTaskOutcomeCallable; typedef std::function&)> GetTaskAsyncHandler; + typedef Outcome ListDatasourceFeatureViewsOutcome; + typedef std::future ListDatasourceFeatureViewsOutcomeCallable; + typedef std::function&)> ListDatasourceFeatureViewsAsyncHandler; typedef Outcome ListDatasourceTablesOutcome; typedef std::future ListDatasourceTablesOutcomeCallable; typedef std::function&)> ListDatasourceTablesAsyncHandler; @@ -244,6 +277,9 @@ namespace AlibabaCloud typedef Outcome ListInstancesOutcome; typedef std::future ListInstancesOutcomeCallable; typedef std::function&)> ListInstancesAsyncHandler; + typedef Outcome ListLLMConfigsOutcome; + typedef std::future ListLLMConfigsOutcomeCallable; + typedef std::function&)> ListLLMConfigsAsyncHandler; typedef Outcome ListLabelTablesOutcome; typedef std::future ListLabelTablesOutcomeCallable; typedef std::function&)> ListLabelTablesAsyncHandler; @@ -256,6 +292,9 @@ namespace AlibabaCloud typedef Outcome ListProjectFeatureViewsOutcome; typedef std::future ListProjectFeatureViewsOutcomeCallable; typedef std::function&)> ListProjectFeatureViewsAsyncHandler; + typedef Outcome ListProjectFeaturesOutcome; + typedef std::future ListProjectFeaturesOutcomeCallable; + typedef std::function&)> ListProjectFeaturesAsyncHandler; typedef Outcome ListProjectsOutcome; typedef std::future ListProjectsOutcomeCallable; typedef std::function&)> ListProjectsAsyncHandler; @@ -268,9 +307,15 @@ namespace AlibabaCloud typedef Outcome PublishFeatureViewTableOutcome; typedef std::future PublishFeatureViewTableOutcomeCallable; typedef std::function&)> PublishFeatureViewTableAsyncHandler; + typedef Outcome StopTaskOutcome; + typedef std::future StopTaskOutcomeCallable; + typedef std::function&)> StopTaskAsyncHandler; typedef Outcome UpdateDatasourceOutcome; typedef std::future UpdateDatasourceOutcomeCallable; typedef std::function&)> UpdateDatasourceAsyncHandler; + typedef Outcome UpdateLLMConfigOutcome; + typedef std::future UpdateLLMConfigOutcomeCallable; + typedef std::function&)> UpdateLLMConfigAsyncHandler; typedef Outcome UpdateLabelTableOutcome; typedef std::future UpdateLabelTableOutcomeCallable; typedef std::function&)> 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& context = nullptr) const; UpdateLabelTableOutcomeCallable updateLabelTableCallable(const Model::UpdateLabelTableRequest& request) const; diff --git a/paifeaturestore/include/alibabacloud/paifeaturestore/model/CheckModelFeatureFGFeatureRequest.h b/paifeaturestore/include/alibabacloud/paifeaturestore/model/CheckModelFeatureFGFeatureRequest.h new file mode 100644 index 000000000..703487987 --- /dev/null +++ b/paifeaturestore/include/alibabacloud/paifeaturestore/model/CheckModelFeatureFGFeatureRequest.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_CHECKMODELFEATUREFGFEATUREREQUEST_H_ +#define ALIBABACLOUD_PAIFEATURESTORE_MODEL_CHECKMODELFEATUREFGFEATUREREQUEST_H_ + +#include +#include +#include +#include +#include + +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_ diff --git a/paifeaturestore/include/alibabacloud/paifeaturestore/model/CheckModelFeatureFGFeatureResult.h b/paifeaturestore/include/alibabacloud/paifeaturestore/model/CheckModelFeatureFGFeatureResult.h new file mode 100644 index 000000000..09e1b8780 --- /dev/null +++ b/paifeaturestore/include/alibabacloud/paifeaturestore/model/CheckModelFeatureFGFeatureResult.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 +#include +#include +#include +#include + +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 getFGCheckResults()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::vector fGCheckResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_PAIFEATURESTORE_MODEL_CHECKMODELFEATUREFGFEATURERESULT_H_ \ No newline at end of file diff --git a/paifeaturestore/include/alibabacloud/paifeaturestore/model/CreateLLMConfigRequest.h b/paifeaturestore/include/alibabacloud/paifeaturestore/model/CreateLLMConfigRequest.h new file mode 100644 index 000000000..e142397e8 --- /dev/null +++ b/paifeaturestore/include/alibabacloud/paifeaturestore/model/CreateLLMConfigRequest.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 +#include +#include +#include +#include + +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_ diff --git a/paifeaturestore/include/alibabacloud/paifeaturestore/model/CreateLLMConfigResult.h b/paifeaturestore/include/alibabacloud/paifeaturestore/model/CreateLLMConfigResult.h new file mode 100644 index 000000000..3c87dbb1f --- /dev/null +++ b/paifeaturestore/include/alibabacloud/paifeaturestore/model/CreateLLMConfigResult.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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/paifeaturestore/include/alibabacloud/paifeaturestore/model/DeleteLLMConfigRequest.h b/paifeaturestore/include/alibabacloud/paifeaturestore/model/DeleteLLMConfigRequest.h new file mode 100644 index 000000000..ed91edbac --- /dev/null +++ b/paifeaturestore/include/alibabacloud/paifeaturestore/model/DeleteLLMConfigRequest.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 +#include +#include +#include +#include + +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_ diff --git a/paifeaturestore/include/alibabacloud/paifeaturestore/model/DeleteLLMConfigResult.h b/paifeaturestore/include/alibabacloud/paifeaturestore/model/DeleteLLMConfigResult.h new file mode 100644 index 000000000..fa8fe8fa0 --- /dev/null +++ b/paifeaturestore/include/alibabacloud/paifeaturestore/model/DeleteLLMConfigResult.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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/paifeaturestore/include/alibabacloud/paifeaturestore/model/GetFeatureViewResult.h b/paifeaturestore/include/alibabacloud/paifeaturestore/model/GetFeatureViewResult.h index 6fc56f06f..fc43ec4d7 100644 --- a/paifeaturestore/include/alibabacloud/paifeaturestore/model/GetFeatureViewResult.h +++ b/paifeaturestore/include/alibabacloud/paifeaturestore/model/GetFeatureViewResult.h @@ -34,8 +34,20 @@ namespace AlibabaCloud public: struct FieldsItem { + struct TransformItem + { + struct InputItem + { + std::string type; + std::string name; + }; + std::vector input; + std::string type; + int lLMConfigId; + }; std::string type; std::vector attributes; + std::vector transform; std::string name; }; diff --git a/paifeaturestore/include/alibabacloud/paifeaturestore/model/GetInstanceResult.h b/paifeaturestore/include/alibabacloud/paifeaturestore/model/GetInstanceResult.h index 6b24dc0d4..499072ebb 100644 --- a/paifeaturestore/include/alibabacloud/paifeaturestore/model/GetInstanceResult.h +++ b/paifeaturestore/include/alibabacloud/paifeaturestore/model/GetInstanceResult.h @@ -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_; diff --git a/paifeaturestore/include/alibabacloud/paifeaturestore/model/GetLLMConfigRequest.h b/paifeaturestore/include/alibabacloud/paifeaturestore/model/GetLLMConfigRequest.h new file mode 100644 index 000000000..d27c841a9 --- /dev/null +++ b/paifeaturestore/include/alibabacloud/paifeaturestore/model/GetLLMConfigRequest.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_GETLLMCONFIGREQUEST_H_ +#define ALIBABACLOUD_PAIFEATURESTORE_MODEL_GETLLMCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +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_ diff --git a/paifeaturestore/include/alibabacloud/paifeaturestore/model/GetLLMConfigResult.h b/paifeaturestore/include/alibabacloud/paifeaturestore/model/GetLLMConfigResult.h new file mode 100644 index 000000000..6905cf622 --- /dev/null +++ b/paifeaturestore/include/alibabacloud/paifeaturestore/model/GetLLMConfigResult.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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/paifeaturestore/include/alibabacloud/paifeaturestore/model/ListDatasourceFeatureViewsRequest.h b/paifeaturestore/include/alibabacloud/paifeaturestore/model/ListDatasourceFeatureViewsRequest.h new file mode 100644 index 000000000..102015a87 --- /dev/null +++ b/paifeaturestore/include/alibabacloud/paifeaturestore/model/ListDatasourceFeatureViewsRequest.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 +#include +#include +#include +#include + +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_ diff --git a/paifeaturestore/include/alibabacloud/paifeaturestore/model/ListDatasourceFeatureViewsResult.h b/paifeaturestore/include/alibabacloud/paifeaturestore/model/ListDatasourceFeatureViewsResult.h new file mode 100644 index 000000000..d823237a0 --- /dev/null +++ b/paifeaturestore/include/alibabacloud/paifeaturestore/model/ListDatasourceFeatureViewsResult.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 +#include +#include +#include +#include + +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 totalReadWriteCount; + double totalMemoryUsage; + }; + struct DatasourceFeatureViews + { + struct UsageStatistics + { + struct ReadWriteCountItem + { + long writeCount; + std::string date; + long readCount; + }; + std::vector 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 getFeatureViews()const; + long getTotalCount()const; + std::string getRequestId()const; + TotalUsageStatistics getTotalUsageStatistics()const; + + protected: + void parse(const std::string &payload); + private: + std::vector featureViews_; + long totalCount_; + std::string requestId_; + TotalUsageStatistics totalUsageStatistics_; + + }; + } + } +} +#endif // !ALIBABACLOUD_PAIFEATURESTORE_MODEL_LISTDATASOURCEFEATUREVIEWSRESULT_H_ \ No newline at end of file diff --git a/paifeaturestore/include/alibabacloud/paifeaturestore/model/ListFeatureViewFieldRelationshipsResult.h b/paifeaturestore/include/alibabacloud/paifeaturestore/model/ListFeatureViewFieldRelationshipsResult.h index c67309e7b..049ce6df3 100644 --- a/paifeaturestore/include/alibabacloud/paifeaturestore/model/ListFeatureViewFieldRelationshipsResult.h +++ b/paifeaturestore/include/alibabacloud/paifeaturestore/model/ListFeatureViewFieldRelationshipsResult.h @@ -38,6 +38,7 @@ namespace AlibabaCloud { std::string modelName; std::string modelId; + std::string featureAliasName; }; std::vector models; std::string onlineTableName; diff --git a/paifeaturestore/include/alibabacloud/paifeaturestore/model/ListInstancesResult.h b/paifeaturestore/include/alibabacloud/paifeaturestore/model/ListInstancesResult.h index 8faf5a988..d0cddbb15 100644 --- a/paifeaturestore/include/alibabacloud/paifeaturestore/model/ListInstancesResult.h +++ b/paifeaturestore/include/alibabacloud/paifeaturestore/model/ListInstancesResult.h @@ -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; diff --git a/paifeaturestore/include/alibabacloud/paifeaturestore/model/ListLLMConfigsRequest.h b/paifeaturestore/include/alibabacloud/paifeaturestore/model/ListLLMConfigsRequest.h new file mode 100644 index 000000000..20f59cab0 --- /dev/null +++ b/paifeaturestore/include/alibabacloud/paifeaturestore/model/ListLLMConfigsRequest.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_LISTLLMCONFIGSREQUEST_H_ +#define ALIBABACLOUD_PAIFEATURESTORE_MODEL_LISTLLMCONFIGSREQUEST_H_ + +#include +#include +#include +#include +#include + +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_ diff --git a/paifeaturestore/include/alibabacloud/paifeaturestore/model/ListLLMConfigsResult.h b/paifeaturestore/include/alibabacloud/paifeaturestore/model/ListLLMConfigsResult.h new file mode 100644 index 000000000..5a11a786e --- /dev/null +++ b/paifeaturestore/include/alibabacloud/paifeaturestore/model/ListLLMConfigsResult.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 +#include +#include +#include +#include + +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 getLLMConfigs()const; + int getMaxResults()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + std::string nextToken_; + std::vector lLMConfigs_; + int maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_PAIFEATURESTORE_MODEL_LISTLLMCONFIGSRESULT_H_ \ No newline at end of file diff --git a/paifeaturestore/include/alibabacloud/paifeaturestore/model/ListProjectFeaturesRequest.h b/paifeaturestore/include/alibabacloud/paifeaturestore/model/ListProjectFeaturesRequest.h new file mode 100644 index 000000000..2fa1e2f45 --- /dev/null +++ b/paifeaturestore/include/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_LISTPROJECTFEATURESREQUEST_H_ +#define ALIBABACLOUD_PAIFEATURESTORE_MODEL_LISTPROJECTFEATURESREQUEST_H_ + +#include +#include +#include +#include +#include + +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_ diff --git a/paifeaturestore/include/alibabacloud/paifeaturestore/model/ListProjectFeaturesResult.h b/paifeaturestore/include/alibabacloud/paifeaturestore/model/ListProjectFeaturesResult.h new file mode 100644 index 000000000..b3c0ad06c --- /dev/null +++ b/paifeaturestore/include/alibabacloud/paifeaturestore/model/ListProjectFeaturesResult.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 +#include +#include +#include +#include + +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 getFeatures()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string requestId_; + std::vector features_; + + }; + } + } +} +#endif // !ALIBABACLOUD_PAIFEATURESTORE_MODEL_LISTPROJECTFEATURESRESULT_H_ \ No newline at end of file diff --git a/paifeaturestore/include/alibabacloud/paifeaturestore/model/StopTaskRequest.h b/paifeaturestore/include/alibabacloud/paifeaturestore/model/StopTaskRequest.h new file mode 100644 index 000000000..ed72b6008 --- /dev/null +++ b/paifeaturestore/include/alibabacloud/paifeaturestore/model/StopTaskRequest.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 +#include +#include +#include +#include + +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_ diff --git a/paifeaturestore/include/alibabacloud/paifeaturestore/model/StopTaskResult.h b/paifeaturestore/include/alibabacloud/paifeaturestore/model/StopTaskResult.h new file mode 100644 index 000000000..435b89f40 --- /dev/null +++ b/paifeaturestore/include/alibabacloud/paifeaturestore/model/StopTaskResult.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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/paifeaturestore/include/alibabacloud/paifeaturestore/model/UpdateLLMConfigRequest.h b/paifeaturestore/include/alibabacloud/paifeaturestore/model/UpdateLLMConfigRequest.h new file mode 100644 index 000000000..24bd734c8 --- /dev/null +++ b/paifeaturestore/include/alibabacloud/paifeaturestore/model/UpdateLLMConfigRequest.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 +#include +#include +#include +#include + +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_ diff --git a/paifeaturestore/include/alibabacloud/paifeaturestore/model/UpdateLLMConfigResult.h b/paifeaturestore/include/alibabacloud/paifeaturestore/model/UpdateLLMConfigResult.h new file mode 100644 index 000000000..94869ea32 --- /dev/null +++ b/paifeaturestore/include/alibabacloud/paifeaturestore/model/UpdateLLMConfigResult.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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/paifeaturestore/src/PaiFeatureStoreClient.cc b/paifeaturestore/src/PaiFeatureStoreClient.cc index 304febc2c..da479b620 100644 --- a/paifeaturestore/src/PaiFeatureStoreClient.cc +++ b/paifeaturestore/src/PaiFeatureStoreClient.cc @@ -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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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(); diff --git a/paifeaturestore/src/model/CheckModelFeatureFGFeatureRequest.cc b/paifeaturestore/src/model/CheckModelFeatureFGFeatureRequest.cc new file mode 100644 index 000000000..5f8ebecc2 --- /dev/null +++ b/paifeaturestore/src/model/CheckModelFeatureFGFeatureRequest.cc @@ -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 + +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); +} + diff --git a/paifeaturestore/src/model/CheckModelFeatureFGFeatureResult.cc b/paifeaturestore/src/model/CheckModelFeatureFGFeatureResult.cc new file mode 100644 index 000000000..995a51ef1 --- /dev/null +++ b/paifeaturestore/src/model/CheckModelFeatureFGFeatureResult.cc @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::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::getFGCheckResults()const +{ + return fGCheckResults_; +} + diff --git a/paifeaturestore/src/model/CreateLLMConfigRequest.cc b/paifeaturestore/src/model/CreateLLMConfigRequest.cc new file mode 100644 index 000000000..4a9450c64 --- /dev/null +++ b/paifeaturestore/src/model/CreateLLMConfigRequest.cc @@ -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 + +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); +} + diff --git a/paifeaturestore/src/model/CreateLLMConfigResult.cc b/paifeaturestore/src/model/CreateLLMConfigResult.cc new file mode 100644 index 000000000..bab1778e6 --- /dev/null +++ b/paifeaturestore/src/model/CreateLLMConfigResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::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_; +} + diff --git a/paifeaturestore/src/model/DeleteLLMConfigRequest.cc b/paifeaturestore/src/model/DeleteLLMConfigRequest.cc new file mode 100644 index 000000000..6fb789bf4 --- /dev/null +++ b/paifeaturestore/src/model/DeleteLLMConfigRequest.cc @@ -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 + +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); +} + diff --git a/paifeaturestore/src/model/DeleteLLMConfigResult.cc b/paifeaturestore/src/model/DeleteLLMConfigResult.cc new file mode 100644 index 000000000..5155d3bd3 --- /dev/null +++ b/paifeaturestore/src/model/DeleteLLMConfigResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::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()); + +} + diff --git a/paifeaturestore/src/model/GetFeatureViewResult.cc b/paifeaturestore/src/model/GetFeatureViewResult.cc index eb2dcb4b5..3ee0a831e 100644 --- a/paifeaturestore/src/model/GetFeatureViewResult.cc +++ b/paifeaturestore/src/model/GetFeatureViewResult.cc @@ -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()); diff --git a/paifeaturestore/src/model/GetInstanceResult.cc b/paifeaturestore/src/model/GetInstanceResult.cc index 6c05757e7..7bbd2fcfd 100644 --- a/paifeaturestore/src/model/GetInstanceResult.cc +++ b/paifeaturestore/src/model/GetInstanceResult.cc @@ -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_; diff --git a/paifeaturestore/src/model/GetLLMConfigRequest.cc b/paifeaturestore/src/model/GetLLMConfigRequest.cc new file mode 100644 index 000000000..392fe8864 --- /dev/null +++ b/paifeaturestore/src/model/GetLLMConfigRequest.cc @@ -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 + +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); +} + diff --git a/paifeaturestore/src/model/GetLLMConfigResult.cc b/paifeaturestore/src/model/GetLLMConfigResult.cc new file mode 100644 index 000000000..9c4102d13 --- /dev/null +++ b/paifeaturestore/src/model/GetLLMConfigResult.cc @@ -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 +#include + +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_; +} + diff --git a/paifeaturestore/src/model/ListDatasourceFeatureViewsRequest.cc b/paifeaturestore/src/model/ListDatasourceFeatureViewsRequest.cc new file mode 100644 index 000000000..60ff78ff5 --- /dev/null +++ b/paifeaturestore/src/model/ListDatasourceFeatureViewsRequest.cc @@ -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 + +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); +} + diff --git a/paifeaturestore/src/model/ListDatasourceFeatureViewsResult.cc b/paifeaturestore/src/model/ListDatasourceFeatureViewsResult.cc new file mode 100644 index 000000000..bbef43536 --- /dev/null +++ b/paifeaturestore/src/model/ListDatasourceFeatureViewsResult.cc @@ -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 +#include + +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::getFeatureViews()const +{ + return featureViews_; +} + +long ListDatasourceFeatureViewsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListDatasourceFeatureViewsResult::getRequestId()const +{ + return requestId_; +} + +ListDatasourceFeatureViewsResult::TotalUsageStatistics ListDatasourceFeatureViewsResult::getTotalUsageStatistics()const +{ + return totalUsageStatistics_; +} + diff --git a/paifeaturestore/src/model/ListFeatureViewFieldRelationshipsResult.cc b/paifeaturestore/src/model/ListFeatureViewFieldRelationshipsResult.cc index 0b5fc2d73..96b60772b 100644 --- a/paifeaturestore/src/model/ListFeatureViewFieldRelationshipsResult.cc +++ b/paifeaturestore/src/model/ListFeatureViewFieldRelationshipsResult.cc @@ -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); diff --git a/paifeaturestore/src/model/ListInstancesResult.cc b/paifeaturestore/src/model/ListInstancesResult.cc index 8644e58d3..984fd9885 100644 --- a/paifeaturestore/src/model/ListInstancesResult.cc +++ b/paifeaturestore/src/model/ListInstancesResult.cc @@ -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()) diff --git a/paifeaturestore/src/model/ListLLMConfigsRequest.cc b/paifeaturestore/src/model/ListLLMConfigsRequest.cc new file mode 100644 index 000000000..0458d5df0 --- /dev/null +++ b/paifeaturestore/src/model/ListLLMConfigsRequest.cc @@ -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 + +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); +} + diff --git a/paifeaturestore/src/model/ListLLMConfigsResult.cc b/paifeaturestore/src/model/ListLLMConfigsResult.cc new file mode 100644 index 000000000..22a2d3055 --- /dev/null +++ b/paifeaturestore/src/model/ListLLMConfigsResult.cc @@ -0,0 +1,100 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::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::getLLMConfigs()const +{ + return lLMConfigs_; +} + +int ListLLMConfigsResult::getMaxResults()const +{ + return maxResults_; +} + diff --git a/paifeaturestore/src/model/ListProjectFeaturesRequest.cc b/paifeaturestore/src/model/ListProjectFeaturesRequest.cc new file mode 100644 index 000000000..8ed2944ea --- /dev/null +++ b/paifeaturestore/src/model/ListProjectFeaturesRequest.cc @@ -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 + +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); +} + diff --git a/paifeaturestore/src/model/ListProjectFeaturesResult.cc b/paifeaturestore/src/model/ListProjectFeaturesResult.cc new file mode 100644 index 000000000..67255b077 --- /dev/null +++ b/paifeaturestore/src/model/ListProjectFeaturesResult.cc @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::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::getFeatures()const +{ + return features_; +} + diff --git a/paifeaturestore/src/model/StopTaskRequest.cc b/paifeaturestore/src/model/StopTaskRequest.cc new file mode 100644 index 000000000..be3e23a46 --- /dev/null +++ b/paifeaturestore/src/model/StopTaskRequest.cc @@ -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 + +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); +} + diff --git a/paifeaturestore/src/model/StopTaskResult.cc b/paifeaturestore/src/model/StopTaskResult.cc new file mode 100644 index 000000000..466de41e8 --- /dev/null +++ b/paifeaturestore/src/model/StopTaskResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::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_; +} + diff --git a/paifeaturestore/src/model/UpdateLLMConfigRequest.cc b/paifeaturestore/src/model/UpdateLLMConfigRequest.cc new file mode 100644 index 000000000..8d6d2c624 --- /dev/null +++ b/paifeaturestore/src/model/UpdateLLMConfigRequest.cc @@ -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 + +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); +} + diff --git a/paifeaturestore/src/model/UpdateLLMConfigResult.cc b/paifeaturestore/src/model/UpdateLLMConfigResult.cc new file mode 100644 index 000000000..0bfc08c5f --- /dev/null +++ b/paifeaturestore/src/model/UpdateLLMConfigResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::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()); + +} +