你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
JobService 类
用于向后兼容性的基本作业服务配置。
不应直接使用此类。 请改用其特定于作业类型的子类之一。
- 继承
-
azure.ai.ml.entities._job.job_service.JobServiceBaseJobService
构造函数
JobService(*, endpoint: str | None = None, type: Literal['jupyter_lab', 'ssh', 'tensor_board', 'vs_code'] | None = None, nodes: Literal['all'] | None = None, status: str | None = None, port: int | None = None, properties: Dict[str, str] | None = None, **kwargs: Dict)
仅限关键字的参数
名称 | 说明 |
---|---|
endpoint
|
终结点 URL。 |
type
|
终结点类型。 接受的值为“jupyter_lab”、“ssh”、“tensor_board”和“vs_code”。 |
port
|
终结点的端口。 |
nodes
|
指示服务是否必须在所有节点中运行。 |
properties
|
要对终结点设置的其他属性。 |
status
|
终结点的状态。 |
kwargs
|
其他配置参数的字典。 |
方法
get | |
has_key | |
items | |
keys | |
update | |
values |
get
get(key: Any, default: Any | None = None) -> Any
参数
名称 | 说明 |
---|---|
key
必需
|
|
default
|
默认值: None
|
has_key
has_key(k: Any) -> bool
参数
名称 | 说明 |
---|---|
k
必需
|
|
items
items() -> list
keys
keys() -> list
update
update(*args: Any, **kwargs: Any) -> None
values
values() -> list