public class CreateServiceRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
body
The request body.
|
String |
develop
Specifies whether to enter development mode.
|
Map<String,String> |
labels
The custom label.
|
String |
workspaceId
The workspace ID.
|
| 构造器和说明 |
|---|
CreateServiceRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static CreateServiceRequest |
build(Map<String,?> map) |
String |
getBody() |
String |
getDevelop() |
Map<String,String> |
getLabels() |
String |
getWorkspaceId() |
CreateServiceRequest |
setBody(String body) |
CreateServiceRequest |
setDevelop(String develop) |
CreateServiceRequest |
setLabels(Map<String,String> labels) |
CreateServiceRequest |
setWorkspaceId(String workspaceId) |
@NameInMap(value="Develop") public String develop
Specifies whether to enter development mode.
Valid values:
true
false
true
@NameInMap(value="WorkspaceId") public String workspaceId
The workspace ID.
example:123456
@NameInMap(value="body") public String body
The request body. For more information about the key request parameters, see Table 1. Request body parameters and Table 2. Metadata parameters. For more information about all related parameters, see Parameters of model services.
example:Service deployment by using an image: { "name": "foo", "metadata": { "instance": 2, "memory": 7000, "cpu": 4 }, "containers": [ { "image": "", "script": " --listen=0.0.0.0 --server_port=8000 --headless", "port": 8000 } ], "storage": [ { "oss": { "path": "oss://examplebuket/data111/", "readOnly": false }, "properties": { "resource_type": "model" }, "mount_path": "/data" } ] } AI-Web application deployment by using an image: { "name": "foo", "metadata": { "instance": 1, "memory": 7000, "cpu": 4, "enable_webservice": true }, "containers": [ { "image": "", "script": " --listen=0.0.0.0 --server_port=8000 --headless", "port": 8000 } ], "storage": [ { "oss": { "path": "oss://examplebucket/data111/", "readOnly": false }, "properties": { "resource_type": "model" }, "mount_path": "/data" } ] } Service deployment by using models and processors: { "metadata": { "instance": 1, "memory": 7000, "cpu": 4 }, "name": "foo", "model_config": {}, "processor_type": "python", "processor_path": "oss://", "processor_entry": "a.py", "model_path": "oss://" }
public static CreateServiceRequest build(Map<String,?> map) throws Exception
Exceptionpublic CreateServiceRequest setDevelop(String develop)
public String getDevelop()
public CreateServiceRequest setLabels(Map<String,String> labels)
public CreateServiceRequest setWorkspaceId(String workspaceId)
public String getWorkspaceId()
public CreateServiceRequest setBody(String body)
public String getBody()
Copyright © 2024. All rights reserved.