Class: TencentCloud::Tia::V20180226::Model

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180226/models.rb

Overview

用于描述模型的详细情况

"Model": {
    "Name": "test-model",
    "Description": "test-model",
    "Cluster": "ap-beijing",
    "Model": "cos://test-1255502019.cos.ap-shanghai.myqcloud.com/example:/data/mnist",
    "RuntimeVersion": "tiaserv-1.6.0-cpu",
    "CreateTime": "2018-04-26 15:59:25 +0800 CST",
    "State": "Running",
    "ServingUrl": "140.143.51.230",
    "Message": "Deployment does not have minimum availability.",
    "AppId": 1255502019,
    "ServType": "1U2G0P"
},

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, description = nil, cluster = nil, model = nil, runtimeversion = nil, createtime = nil, state = nil, servingurl = nil, message = nil, appid = nil, servtype = nil, expose = nil, replicas = nil, id = nil, uin = nil, deltime = nil) ⇒ Model

Returns a new instance of Model.



688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
# File 'lib/v20180226/models.rb', line 688

def initialize(name=nil, description=nil, cluster=nil, model=nil, runtimeversion=nil, createtime=nil, state=nil, servingurl=nil, message=nil, appid=nil, servtype=nil, expose=nil, replicas=nil, id=nil, uin=nil, deltime=nil)
  @Name = name
  @Description = description
  @Cluster = cluster
  @Model = model
  @RuntimeVersion = runtimeversion
  @CreateTime = createtime
  @State = state
  @ServingUrl = servingurl
  @Message = message
  @AppId = appid
  @ServType = servtype
  @Expose = expose
  @Replicas = replicas
  @Id = id
  @Uin = uin
  @DelTime = deltime
end

Instance Attribute Details

#AppIdObject

Parameters:

  • Name:

    模型名称

  • Description:

    模型描述

  • Cluster:

    集群名称

  • Model:

    模型地址

  • RuntimeVersion:

    运行环境编号

  • CreateTime:

    模型创建时间

  • State:

    模型运行状态

  • ServingUrl:

    提供服务的url

  • Message:

    相关消息

  • AppId:

    编号

  • ServType:

    机型

  • Expose:

    模型暴露方式

  • Replicas:

    部署副本数量

  • Id:

    模型Id

  • Uin:

    创建任务的Uin

  • DelTime:

    模型删除时间,格式为:2006-01-02 15:04:05.999999999 -0700 MST



686
687
688
# File 'lib/v20180226/models.rb', line 686

def AppId
  @AppId
end

#ClusterObject

Parameters:

  • Name:

    模型名称

  • Description:

    模型描述

  • Cluster:

    集群名称

  • Model:

    模型地址

  • RuntimeVersion:

    运行环境编号

  • CreateTime:

    模型创建时间

  • State:

    模型运行状态

  • ServingUrl:

    提供服务的url

  • Message:

    相关消息

  • AppId:

    编号

  • ServType:

    机型

  • Expose:

    模型暴露方式

  • Replicas:

    部署副本数量

  • Id:

    模型Id

  • Uin:

    创建任务的Uin

  • DelTime:

    模型删除时间,格式为:2006-01-02 15:04:05.999999999 -0700 MST



686
687
688
# File 'lib/v20180226/models.rb', line 686

def Cluster
  @Cluster
end

#CreateTimeObject

Parameters:

  • Name:

    模型名称

  • Description:

    模型描述

  • Cluster:

    集群名称

  • Model:

    模型地址

  • RuntimeVersion:

    运行环境编号

  • CreateTime:

    模型创建时间

  • State:

    模型运行状态

  • ServingUrl:

    提供服务的url

  • Message:

    相关消息

  • AppId:

    编号

  • ServType:

    机型

  • Expose:

    模型暴露方式

  • Replicas:

    部署副本数量

  • Id:

    模型Id

  • Uin:

    创建任务的Uin

  • DelTime:

    模型删除时间,格式为:2006-01-02 15:04:05.999999999 -0700 MST



686
687
688
# File 'lib/v20180226/models.rb', line 686

def CreateTime
  @CreateTime
end

#DelTimeObject

Parameters:

  • Name:

    模型名称

  • Description:

    模型描述

  • Cluster:

    集群名称

  • Model:

    模型地址

  • RuntimeVersion:

    运行环境编号

  • CreateTime:

    模型创建时间

  • State:

    模型运行状态

  • ServingUrl:

    提供服务的url

  • Message:

    相关消息

  • AppId:

    编号

  • ServType:

    机型

  • Expose:

    模型暴露方式

  • Replicas:

    部署副本数量

  • Id:

    模型Id

  • Uin:

    创建任务的Uin

  • DelTime:

    模型删除时间,格式为:2006-01-02 15:04:05.999999999 -0700 MST



686
687
688
# File 'lib/v20180226/models.rb', line 686

def DelTime
  @DelTime
end

#DescriptionObject

Parameters:

  • Name:

    模型名称

  • Description:

    模型描述

  • Cluster:

    集群名称

  • Model:

    模型地址

  • RuntimeVersion:

    运行环境编号

  • CreateTime:

    模型创建时间

  • State:

    模型运行状态

  • ServingUrl:

    提供服务的url

  • Message:

    相关消息

  • AppId:

    编号

  • ServType:

    机型

  • Expose:

    模型暴露方式

  • Replicas:

    部署副本数量

  • Id:

    模型Id

  • Uin:

    创建任务的Uin

  • DelTime:

    模型删除时间,格式为:2006-01-02 15:04:05.999999999 -0700 MST



686
687
688
# File 'lib/v20180226/models.rb', line 686

def Description
  @Description
end

#ExposeObject

Parameters:

  • Name:

    模型名称

  • Description:

    模型描述

  • Cluster:

    集群名称

  • Model:

    模型地址

  • RuntimeVersion:

    运行环境编号

  • CreateTime:

    模型创建时间

  • State:

    模型运行状态

  • ServingUrl:

    提供服务的url

  • Message:

    相关消息

  • AppId:

    编号

  • ServType:

    机型

  • Expose:

    模型暴露方式

  • Replicas:

    部署副本数量

  • Id:

    模型Id

  • Uin:

    创建任务的Uin

  • DelTime:

    模型删除时间,格式为:2006-01-02 15:04:05.999999999 -0700 MST



686
687
688
# File 'lib/v20180226/models.rb', line 686

def Expose
  @Expose
end

#IdObject

Parameters:

  • Name:

    模型名称

  • Description:

    模型描述

  • Cluster:

    集群名称

  • Model:

    模型地址

  • RuntimeVersion:

    运行环境编号

  • CreateTime:

    模型创建时间

  • State:

    模型运行状态

  • ServingUrl:

    提供服务的url

  • Message:

    相关消息

  • AppId:

    编号

  • ServType:

    机型

  • Expose:

    模型暴露方式

  • Replicas:

    部署副本数量

  • Id:

    模型Id

  • Uin:

    创建任务的Uin

  • DelTime:

    模型删除时间,格式为:2006-01-02 15:04:05.999999999 -0700 MST



686
687
688
# File 'lib/v20180226/models.rb', line 686

def Id
  @Id
end

#MessageObject

Parameters:

  • Name:

    模型名称

  • Description:

    模型描述

  • Cluster:

    集群名称

  • Model:

    模型地址

  • RuntimeVersion:

    运行环境编号

  • CreateTime:

    模型创建时间

  • State:

    模型运行状态

  • ServingUrl:

    提供服务的url

  • Message:

    相关消息

  • AppId:

    编号

  • ServType:

    机型

  • Expose:

    模型暴露方式

  • Replicas:

    部署副本数量

  • Id:

    模型Id

  • Uin:

    创建任务的Uin

  • DelTime:

    模型删除时间,格式为:2006-01-02 15:04:05.999999999 -0700 MST



686
687
688
# File 'lib/v20180226/models.rb', line 686

def Message
  @Message
end

#ModelObject

Parameters:

  • Name:

    模型名称

  • Description:

    模型描述

  • Cluster:

    集群名称

  • Model:

    模型地址

  • RuntimeVersion:

    运行环境编号

  • CreateTime:

    模型创建时间

  • State:

    模型运行状态

  • ServingUrl:

    提供服务的url

  • Message:

    相关消息

  • AppId:

    编号

  • ServType:

    机型

  • Expose:

    模型暴露方式

  • Replicas:

    部署副本数量

  • Id:

    模型Id

  • Uin:

    创建任务的Uin

  • DelTime:

    模型删除时间,格式为:2006-01-02 15:04:05.999999999 -0700 MST



686
687
688
# File 'lib/v20180226/models.rb', line 686

def Model
  @Model
end

#NameObject

Parameters:

  • Name:

    模型名称

  • Description:

    模型描述

  • Cluster:

    集群名称

  • Model:

    模型地址

  • RuntimeVersion:

    运行环境编号

  • CreateTime:

    模型创建时间

  • State:

    模型运行状态

  • ServingUrl:

    提供服务的url

  • Message:

    相关消息

  • AppId:

    编号

  • ServType:

    机型

  • Expose:

    模型暴露方式

  • Replicas:

    部署副本数量

  • Id:

    模型Id

  • Uin:

    创建任务的Uin

  • DelTime:

    模型删除时间,格式为:2006-01-02 15:04:05.999999999 -0700 MST



686
687
688
# File 'lib/v20180226/models.rb', line 686

def Name
  @Name
end

#ReplicasObject

Parameters:

  • Name:

    模型名称

  • Description:

    模型描述

  • Cluster:

    集群名称

  • Model:

    模型地址

  • RuntimeVersion:

    运行环境编号

  • CreateTime:

    模型创建时间

  • State:

    模型运行状态

  • ServingUrl:

    提供服务的url

  • Message:

    相关消息

  • AppId:

    编号

  • ServType:

    机型

  • Expose:

    模型暴露方式

  • Replicas:

    部署副本数量

  • Id:

    模型Id

  • Uin:

    创建任务的Uin

  • DelTime:

    模型删除时间,格式为:2006-01-02 15:04:05.999999999 -0700 MST



686
687
688
# File 'lib/v20180226/models.rb', line 686

def Replicas
  @Replicas
end

#RuntimeVersionObject

Parameters:

  • Name:

    模型名称

  • Description:

    模型描述

  • Cluster:

    集群名称

  • Model:

    模型地址

  • RuntimeVersion:

    运行环境编号

  • CreateTime:

    模型创建时间

  • State:

    模型运行状态

  • ServingUrl:

    提供服务的url

  • Message:

    相关消息

  • AppId:

    编号

  • ServType:

    机型

  • Expose:

    模型暴露方式

  • Replicas:

    部署副本数量

  • Id:

    模型Id

  • Uin:

    创建任务的Uin

  • DelTime:

    模型删除时间,格式为:2006-01-02 15:04:05.999999999 -0700 MST



686
687
688
# File 'lib/v20180226/models.rb', line 686

def RuntimeVersion
  @RuntimeVersion
end

#ServingUrlObject

Parameters:

  • Name:

    模型名称

  • Description:

    模型描述

  • Cluster:

    集群名称

  • Model:

    模型地址

  • RuntimeVersion:

    运行环境编号

  • CreateTime:

    模型创建时间

  • State:

    模型运行状态

  • ServingUrl:

    提供服务的url

  • Message:

    相关消息

  • AppId:

    编号

  • ServType:

    机型

  • Expose:

    模型暴露方式

  • Replicas:

    部署副本数量

  • Id:

    模型Id

  • Uin:

    创建任务的Uin

  • DelTime:

    模型删除时间,格式为:2006-01-02 15:04:05.999999999 -0700 MST



686
687
688
# File 'lib/v20180226/models.rb', line 686

def ServingUrl
  @ServingUrl
end

#ServTypeObject

Parameters:

  • Name:

    模型名称

  • Description:

    模型描述

  • Cluster:

    集群名称

  • Model:

    模型地址

  • RuntimeVersion:

    运行环境编号

  • CreateTime:

    模型创建时间

  • State:

    模型运行状态

  • ServingUrl:

    提供服务的url

  • Message:

    相关消息

  • AppId:

    编号

  • ServType:

    机型

  • Expose:

    模型暴露方式

  • Replicas:

    部署副本数量

  • Id:

    模型Id

  • Uin:

    创建任务的Uin

  • DelTime:

    模型删除时间,格式为:2006-01-02 15:04:05.999999999 -0700 MST



686
687
688
# File 'lib/v20180226/models.rb', line 686

def ServType
  @ServType
end

#StateObject

Parameters:

  • Name:

    模型名称

  • Description:

    模型描述

  • Cluster:

    集群名称

  • Model:

    模型地址

  • RuntimeVersion:

    运行环境编号

  • CreateTime:

    模型创建时间

  • State:

    模型运行状态

  • ServingUrl:

    提供服务的url

  • Message:

    相关消息

  • AppId:

    编号

  • ServType:

    机型

  • Expose:

    模型暴露方式

  • Replicas:

    部署副本数量

  • Id:

    模型Id

  • Uin:

    创建任务的Uin

  • DelTime:

    模型删除时间,格式为:2006-01-02 15:04:05.999999999 -0700 MST



686
687
688
# File 'lib/v20180226/models.rb', line 686

def State
  @State
end

#UinObject

Parameters:

  • Name:

    模型名称

  • Description:

    模型描述

  • Cluster:

    集群名称

  • Model:

    模型地址

  • RuntimeVersion:

    运行环境编号

  • CreateTime:

    模型创建时间

  • State:

    模型运行状态

  • ServingUrl:

    提供服务的url

  • Message:

    相关消息

  • AppId:

    编号

  • ServType:

    机型

  • Expose:

    模型暴露方式

  • Replicas:

    部署副本数量

  • Id:

    模型Id

  • Uin:

    创建任务的Uin

  • DelTime:

    模型删除时间,格式为:2006-01-02 15:04:05.999999999 -0700 MST



686
687
688
# File 'lib/v20180226/models.rb', line 686

def Uin
  @Uin
end

Instance Method Details

#deserialize(params) ⇒ Object



707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
# File 'lib/v20180226/models.rb', line 707

def deserialize(params)
  @Name = params['Name']
  @Description = params['Description']
  @Cluster = params['Cluster']
  @Model = params['Model']
  @RuntimeVersion = params['RuntimeVersion']
  @CreateTime = params['CreateTime']
  @State = params['State']
  @ServingUrl = params['ServingUrl']
  @Message = params['Message']
  @AppId = params['AppId']
  @ServType = params['ServType']
  @Expose = params['Expose']
  @Replicas = params['Replicas']
  @Id = params['Id']
  @Uin = params['Uin']
  @DelTime = params['DelTime']
end