public class UpdateServiceRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
body
The request body.
|
String |
updateType
The type of the service update.
|
| 构造器和说明 |
|---|
UpdateServiceRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static UpdateServiceRequest |
build(Map<String,?> map) |
String |
getBody() |
String |
getUpdateType() |
UpdateServiceRequest |
setBody(String body) |
UpdateServiceRequest |
setUpdateType(String updateType) |
@NameInMap(value="UpdateType") public String updateType
The type of the service update. Valid values: merge and replace. By default, merge is used if you do not specify this parameter.
{"a":"b"} and the JSON string specified in the body parameter is {"c":"d"}, the JSON string is {"a":"b","c":"d"} after the service update.{"a":"b"} and the JSON string specified in the body parameter is {"c":"d"}, the JSON string is {"c":"d"} after the service update.merge
@NameInMap(value="body") public String body
The request body. The body includes the request parameters that you want to update. For more information about the request parameters, see CreateService.
example:{ "name": "foo", "model_path": "http://path/to/model.tar.gz", "processor": "tensorflow_cpu", "metadata": { "instance": 2, "memory": 7000, "cpu": 4 } }
public static UpdateServiceRequest build(Map<String,?> map) throws Exception
Exceptionpublic UpdateServiceRequest setUpdateType(String updateType)
public String getUpdateType()
public UpdateServiceRequest setBody(String body)
public String getBody()
Copyright © 2024. All rights reserved.