com.aliyun.eas20210701.models.CreateServiceShrinkRequest Maven / Gradle / Ivy
Show all versions of eas20210701 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.eas20210701.models;
import com.aliyun.tea.*;
public class CreateServiceShrinkRequest extends TeaModel {
/**
* Specifies whether to enter development mode.
* Valid values:
*
* true
*
*
*
*
*
*
* false
*
*
*
*
*
*
*
* example:
* true
*/
@NameInMap("Develop")
public String develop;
/**
* The custom label.
*/
@NameInMap("Labels")
public String labelsShrink;
/**
* The workspace ID.
*
* example:
* 123456
*/
@NameInMap("WorkspaceId")
public String workspaceId;
/**
* 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://"
* }
*/
@NameInMap("body")
public String body;
public static CreateServiceShrinkRequest build(java.util.Map map) throws Exception {
CreateServiceShrinkRequest self = new CreateServiceShrinkRequest();
return TeaModel.build(map, self);
}
public CreateServiceShrinkRequest setDevelop(String develop) {
this.develop = develop;
return this;
}
public String getDevelop() {
return this.develop;
}
public CreateServiceShrinkRequest setLabelsShrink(String labelsShrink) {
this.labelsShrink = labelsShrink;
return this;
}
public String getLabelsShrink() {
return this.labelsShrink;
}
public CreateServiceShrinkRequest setWorkspaceId(String workspaceId) {
this.workspaceId = workspaceId;
return this;
}
public String getWorkspaceId() {
return this.workspaceId;
}
public CreateServiceShrinkRequest setBody(String body) {
this.body = body;
return this;
}
public String getBody() {
return this.body;
}
}