@@ -73,7 +73,7 @@ def __str__(self):
73
73
74
74
75
75
class ApiClient ():
76
- client_version = '0.30.8 '
76
+ client_version = '0.30.9 '
77
77
78
78
def __init__ (self , api_key : str = None , server : str = None , client_options : ClientOptions = None ):
79
79
self .api_key = api_key
@@ -478,7 +478,7 @@ def export_feature_group_version_to_file_connector(self, feature_group_version:
478
478
'''Export Feature group to File Connector.'''
479
479
return self ._call_api ('exportFeatureGroupVersionToFileConnector' , 'POST' , query_params = {}, body = {'featureGroupVersion' : feature_group_version , 'location' : location , 'exportFileFormat' : export_file_format }, parse_type = FeatureGroupExport )
480
480
481
- def export_feature_group_version_to_database_connector (self , feature_group_version : str , database_connector_id : str , object_name : str , write_mode : str , database_feature_mapping : dict , id_column : str ) -> FeatureGroupExport :
481
+ def export_feature_group_version_to_database_connector (self , feature_group_version : str , database_connector_id : str , object_name : str , write_mode : str , database_feature_mapping : dict , id_column : str = None ) -> FeatureGroupExport :
482
482
'''Export Feature group to Database Connector.'''
483
483
return self ._call_api ('exportFeatureGroupVersionToDatabaseConnector' , 'POST' , query_params = {}, body = {'featureGroupVersion' : feature_group_version , 'databaseConnectorId' : database_connector_id , 'objectName' : object_name , 'writeMode' : write_mode , 'databaseFeatureMapping' : database_feature_mapping , 'idColumn' : id_column }, parse_type = FeatureGroupExport )
484
484
@@ -546,9 +546,9 @@ def mark_upload_complete(self, upload_id: str) -> Upload:
546
546
'''Marks an upload process as complete.'''
547
547
return self ._call_api ('markUploadComplete' , 'POST' , query_params = {}, body = {'uploadId' : upload_id }, parse_type = Upload )
548
548
549
- def create_dataset_from_file_connector (self , name : str , table_name : str , location : str , file_format : str = None , refresh_schedule : str = None , csv_delimiter : str = None , filename_column : str = None ) -> Dataset :
549
+ def create_dataset_from_file_connector (self , name : str , table_name : str , location : str , file_format : str = None , refresh_schedule : str = None , csv_delimiter : str = None , filename_column : str = None , start_prefix : str = None , until_prefix : str = None ) -> Dataset :
550
550
'''Creates a dataset from a file located in a cloud storage, such as Amazon AWS S3, using the specified dataset name and location.'''
551
- return self ._call_api ('createDatasetFromFileConnector' , 'POST' , query_params = {}, body = {'name' : name , 'tableName' : table_name , 'location' : location , 'fileFormat' : file_format , 'refreshSchedule' : refresh_schedule , 'csvDelimiter' : csv_delimiter , 'filenameColumn' : filename_column }, parse_type = Dataset )
551
+ return self ._call_api ('createDatasetFromFileConnector' , 'POST' , query_params = {}, body = {'name' : name , 'tableName' : table_name , 'location' : location , 'fileFormat' : file_format , 'refreshSchedule' : refresh_schedule , 'csvDelimiter' : csv_delimiter , 'filenameColumn' : filename_column , 'startPrefix' : start_prefix , 'untilPrefix' : until_prefix }, parse_type = Dataset )
552
552
553
553
def create_dataset_version_from_file_connector (self , dataset_id : str , location : str = None , file_format : str = None , csv_delimiter : str = None ) -> DatasetVersion :
554
554
'''Creates a new version of the specified dataset.'''
@@ -598,6 +598,10 @@ def set_streaming_retention_policy(self, dataset_id: str, retention_hours: int =
598
598
'''Sets the streaming retention policy'''
599
599
return self ._call_api ('setStreamingRetentionPolicy' , 'GET' , query_params = {'datasetId' : dataset_id , 'retentionHours' : retention_hours , 'retentionRowCount' : retention_row_count })
600
600
601
+ def set_dataset_column_native_data_type (self , dataset_id : str , column : str , native_data_type : str ) -> Schema :
602
+ '''Creates a new schema and points the feature group to the new feature group schema id.'''
603
+ return self ._call_api ('setDatasetColumnNativeDataType' , 'POST' , query_params = {'datasetId' : dataset_id }, body = {'column' : column , 'nativeDataType' : native_data_type }, parse_type = Schema )
604
+
601
605
def get_file_connector_instructions (self , bucket : str , write_permission : bool = False ) -> FileConnectorInstructions :
602
606
'''Retrieves verification information to create a data connector to a cloud storage bucket.'''
603
607
return self ._call_api ('getFileConnectorInstructions' , 'GET' , query_params = {'bucket' : bucket , 'writePermission' : write_permission }, parse_type = FileConnectorInstructions )
@@ -787,12 +791,12 @@ def describe_model_version(self, model_version: str) -> ModelVersion:
787
791
'''Retrieves a full description of the specified model version'''
788
792
return self ._call_api ('describeModelVersion' , 'GET' , query_params = {'modelVersion' : model_version }, parse_type = ModelVersion )
789
793
790
- def create_deployment (self , name : str = None , model_id : str = None , feature_group_id : str = None , description : str = None , calls_per_second : int = None , auto_deploy : bool = True ) -> Deployment :
794
+ def create_deployment (self , name : str = None , model_id : str = None , feature_group_id : str = None , project_id : str = None , description : str = None , calls_per_second : int = None , auto_deploy : bool = True ) -> Deployment :
791
795
'''Creates a deployment with the specified name and description for the specified model or feature group.
792
796
793
797
A Deployment makes the trained model or feature group available for prediction requests.
794
798
'''
795
- return self ._call_api ('createDeployment' , 'POST' , query_params = {}, body = {'name' : name , 'modelId' : model_id , 'featureGroupId' : feature_group_id , 'description' : description , 'callsPerSecond' : calls_per_second , 'autoDeploy' : auto_deploy }, parse_type = Deployment )
799
+ return self ._call_api ('createDeployment' , 'POST' , query_params = {}, body = {'name' : name , 'modelId' : model_id , 'featureGroupId' : feature_group_id , 'projectId' : project_id , ' description' : description , 'callsPerSecond' : calls_per_second , 'autoDeploy' : auto_deploy }, parse_type = Deployment )
796
800
797
801
def create_deployment_token (self , project_id : str ) -> DeploymentAuthToken :
798
802
'''Creates a deployment token for the specified project.
0 commit comments