说明:原 Notebook 产品模块已于2025-02-25日升级为开发机,Tikit 相关接口暂时不变。def create_notebook(self, name, image_info=None, resource_info=None, input_data_config=None, ssh_config=None, tags=None, resource_group_id="", lifecycle_scri。
说明:原 Notebook 产品模块已于2025-02-25日升级为开发机,Tikit 相关接口暂时不变。def create_notebook(self, name, image_info=None, resource_info=None, input_data_config=None, ssh_config=None, tags=None, resource_group_id="", lifecycle_script_id="", code_repo_id_list=None, auto_stop_enable=False, auto_stop_time=None, log_enable=False, log_logset_id=None, log_topic_id=None, vpc_id=None, subnet_id=None): """创建Notebook实例 :param name: 实例名称 :type name: str :param image_info: 实例镜像信息 :type image_info: :class:`tikit.models.ImageInfo` :param resource_info: 实例资源配置配置 :type resource_info: :class:`tikit.models.ResourceConfigInfo` :param input_data_config: 输入的存储信息 :type input_data_config: list or :class:`tikit.models.NotebookDataConfig` :param ssh_config: ssh配置信息 :type ssh_config: :class:`tikit.models.SSHConfig` :param tags: 标签 :type tags: list of :class:`tikit.tencentcloud.tione.v20211111.models.Tag` :param resource_group_id: 预付费的资源组id :type resource_group_id: str :param lifecycle_script_id: 生命周期脚本id :type lifecycle_script_id: str :param code_repo_id_list: git存储库id列表 :type code_repo_id_list: list :param auto_stop_enable: 自动停止开关 :type auto_stop_enable: bool :param auto_stop_time: 自动停止时间,单位小时 :type auto_stop_time: int :param log_enable: 日志开关 :type log_enable: bool :param log_logset_id: 日志集id :type log_logset_id: str :param log_topic_id: 日志的topic id :type log_topic_id: str :param vpc_id: 挂载cfs或者turbofs时,需要打通的vpc_id :type vpc_id: str :param subnet_id: 挂载cfs或者turbofs时,vpc下的subnet :type subnet_id: str :return: :rtype: :class:`tikit.tencentcloud.tione.v20211111.models.CreateTrainingTaskResponse` """ def modify_notebook(self, notebook_id, image_info=None, resource_info=None, input_data_config=None, ssh_config=None, resource_group_id=None, lifecycle_script_id=None, code_repo_id_list=None, auto_stop_enable=False, auto_stop_time=None, log_enable=None, log_logset_id=None, log_topic_id=None, vpc_id=None, subnet_id=None): """编辑Notebook实例 :param notebook_id: 实例ID :type notebook_id: str :param image_info: 实例镜像信息 :type image_info: :class:`tikit.models.ImageInfo` :param resource_info: 实例资源配置配置 :type resource_info: :class:`tikit.models.ResourceConfigInfo` :param input_data_config: 输入的存储信息 :type input_data_config: list or :class:`tikit.models.NotebookDataConfig` :param ssh_config: ssh配置信息 :type ssh_config: :class:`tikit.models.SSHConfig` :param resource_group_id: 预付费的资源组id :type resource_group_id: str :param lifecycle_script_id: 生命周期脚本id :type lifecycle_script_id: str :param code_repo_id_list: git存储库id列表 :type code_repo_id_list: list :param auto_stop_enable: 自动停止开关 :type auto_stop_enable: bool :param auto_stop_time: 自动停止时间,单位小时 :type auto_stop_time: int :param log_enable: 日志开关 :type log_enable: bool :param log_logset_id: 日志集id :type log_logset_id: str :param log_topic_id: 日志的topic id :type log_topic_id: str :param vpc_id: 挂载cfs或者turbofs时,需要打通的vpc_id :type vpc_id: str :param subnet_id: 挂载cfs或者turbofs时,vpc下的subnet :type subnet_id: str :return: :rtype: :class:`tikit.tencentcloud.tione.v20211111.models.CreateTrainingTaskResponse` """ def stop_notebook(self, notebook_id): """停止某个notebook实例 :param notebook_id: notebookID :type notebook_id: str :rtype: :class:`tikit.tencentcloud.tione.v20211111.models.StopNotebookResponse` """ def delete_notebook(self, notebook_id): """删除某个notebook实例 :param notebook_id: notebookID :type notebook_id: str :rtype: :class:`tikit.tencentcloud.tione.v20211111.models.DeleteNotebookResponse` """ def start_notebook(self, notebook_id): """启动某个notebook实例 :param notebook_id: notebookID :type notebook_id: str :rtype: :class:`tikit.tencentcloud.tione.v20211111.models.StartNotebookResponse` """ def describe_notebooks(self, filters=None, tag_filters=None, offset=0, limit=10, order="DESC", order_field="UpdateTime"): """获取notebook列表 :param filters: 过滤器,eg:[{ "Name": "Status", "Values": ["Running"], "Fuzzy": False}] Name(名称):notebook1,支持模糊匹配 Id(notebook ID):nb-123456789, 支持模糊匹配 Status(状态):Submitting / Starting / Running / Stopped / Stopping / Failed / SubmitFailed / ImageSaving ChargeType(计费类型):PREPAID(预付费)/ POSTPAID_BY_HOUR(后付费) ChargeStatus(计费状态):NOT_BILLING(未开始计费)/ BILLING(计费中)/ BILLING_STORAGE(存储计费中)/ARREARS_STOP(欠费停止) :type filters: list of Filter :param tag_filters: 标签过滤器,eg:[{ "TagKey": "TagKeyA", "TagValue": ["TagValueA"] }] :type tag_filters: list of TagFilter :param offset: 偏移量,默认为0 :type offset: int :param limit: 返回数量,默认为10 :type limit: int :param order: 输出列表的排列顺序。取值范围:ASC:升序排列 DESC:降序排列 :type order: str :param order_field: 排序的依据字段, 取值范围 "CreateTime" "UpdateTime" :type order_field: str :return: :rtype: :class:`tikit.tencentcloud.tione.v20211111.models.DescribeTrainingTasksResponse` """def describe_notebook(self, notebook_id): """获取单个notebook任务信息 :param notebook_id: notebookID :type notebook_id: str :rtype: :class:`tikit.tencentcloud.tione.v20211111.models.DescribeNotebookkResponse` """ def describe_notebook_buildin_images(self): """获取单个notebook任务信息 :param notebook_id: notebookID :type notebook_id: str :rtype: :class:`tikit.tencentcloud.tione.v20211111.models.DescribeBuildInImagesResponse` """