tencentcloud-sdk-tione 3.0.441 → 3.0.442

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,6 +17,78 @@
17
17
  module TencentCloud
18
18
  module Tione
19
19
  module V20211111
20
+ # 接口描述信息
21
+ class APIConfigDetail < TencentCloud::Common::AbstractModel
22
+ # @param Id: 接口id
23
+ # 注意:此字段可能返回 null,表示取不到有效值。
24
+ # @type Id: String
25
+ # @param ServiceGroupId: 接口所属服务组id
26
+ # 注意:此字段可能返回 null,表示取不到有效值。
27
+ # @type ServiceGroupId: String
28
+ # @param Description: 接口描述
29
+ # 注意:此字段可能返回 null,表示取不到有效值。
30
+ # @type Description: String
31
+ # @param RelativeUrl: 相对路径
32
+ # 注意:此字段可能返回 null,表示取不到有效值。
33
+ # @type RelativeUrl: String
34
+ # @param ServiceType: 服务类型 HTTP HTTPS
35
+ # 注意:此字段可能返回 null,表示取不到有效值。
36
+ # @type ServiceType: String
37
+ # @param HttpMethod: GET POST
38
+ # 注意:此字段可能返回 null,表示取不到有效值。
39
+ # @type HttpMethod: String
40
+ # @param HttpInputExample: 请求示例
41
+ # 注意:此字段可能返回 null,表示取不到有效值。
42
+ # @type HttpInputExample: String
43
+ # @param HttpOutputExample: 回包示例
44
+ # 注意:此字段可能返回 null,表示取不到有效值。
45
+ # @type HttpOutputExample: String
46
+ # @param UpdatedBy: 更新成员
47
+ # 注意:此字段可能返回 null,表示取不到有效值。
48
+ # @type UpdatedBy: String
49
+ # @param UpdatedAt: 更新时间
50
+ # 注意:此字段可能返回 null,表示取不到有效值。
51
+ # @type UpdatedAt: String
52
+ # @param Uin: 主账号uin
53
+ # 注意:此字段可能返回 null,表示取不到有效值。
54
+ # @type Uin: String
55
+ # @param SubUin: 子账号subuin
56
+ # 注意:此字段可能返回 null,表示取不到有效值。
57
+ # @type SubUin: String
58
+
59
+ attr_accessor :Id, :ServiceGroupId, :Description, :RelativeUrl, :ServiceType, :HttpMethod, :HttpInputExample, :HttpOutputExample, :UpdatedBy, :UpdatedAt, :Uin, :SubUin
60
+
61
+ def initialize(id=nil, servicegroupid=nil, description=nil, relativeurl=nil, servicetype=nil, httpmethod=nil, httpinputexample=nil, httpoutputexample=nil, updatedby=nil, updatedat=nil, uin=nil, subuin=nil)
62
+ @Id = id
63
+ @ServiceGroupId = servicegroupid
64
+ @Description = description
65
+ @RelativeUrl = relativeurl
66
+ @ServiceType = servicetype
67
+ @HttpMethod = httpmethod
68
+ @HttpInputExample = httpinputexample
69
+ @HttpOutputExample = httpoutputexample
70
+ @UpdatedBy = updatedby
71
+ @UpdatedAt = updatedat
72
+ @Uin = uin
73
+ @SubUin = subuin
74
+ end
75
+
76
+ def deserialize(params)
77
+ @Id = params['Id']
78
+ @ServiceGroupId = params['ServiceGroupId']
79
+ @Description = params['Description']
80
+ @RelativeUrl = params['RelativeUrl']
81
+ @ServiceType = params['ServiceType']
82
+ @HttpMethod = params['HttpMethod']
83
+ @HttpInputExample = params['HttpInputExample']
84
+ @HttpOutputExample = params['HttpOutputExample']
85
+ @UpdatedBy = params['UpdatedBy']
86
+ @UpdatedAt = params['UpdatedAt']
87
+ @Uin = params['Uin']
88
+ @SubUin = params['SubUin']
89
+ end
90
+ end
91
+
20
92
  # 跑批任务详情
21
93
  class BatchTaskDetail < TencentCloud::Common::AbstractModel
22
94
  # @param BatchTaskId: 跑批任务ID
@@ -662,6 +734,214 @@ module TencentCloud
662
734
  end
663
735
  end
664
736
 
737
+ # CreateModelService请求参数结构体
738
+ class CreateModelServiceRequest < TencentCloud::Common::AbstractModel
739
+ # @param ImageInfo: 镜像信息,配置服务运行所需的镜像地址等信息
740
+ # @type ImageInfo: :class:`Tencentcloud::Tione.v20211111.models.ImageInfo`
741
+ # @param ServiceGroupId: 新增版本时需要填写
742
+ # @type ServiceGroupId: String
743
+ # @param ServiceGroupName: 不超过60个字,仅支持英文、数字、下划线"_"、短横"-",只能以英文、数字开头
744
+ # @type ServiceGroupName: String
745
+ # @param ServiceDescription: 模型服务的描述
746
+ # @type ServiceDescription: String
747
+ # @param ChargeType: 付费模式,有 PREPAID 、 POSTPAID_BY_HOUR 和 HYBRID_PAID 三种
748
+ # @type ChargeType: String
749
+ # @param ResourceGroupId: 预付费模式下所属的资源组id,同服务组下唯一
750
+ # @type ResourceGroupId: String
751
+ # @param ModelInfo: 模型信息,需要挂载模型时填写
752
+ # @type ModelInfo: :class:`Tencentcloud::Tione.v20211111.models.ModelInfo`
753
+ # @param Env: 环境变量,可选参数,用于配置容器中的环境变量
754
+ # @type Env: Array
755
+ # @param Resources: 资源描述,指定预付费模式下的cpu,mem,gpu等信息,后付费无需填写
756
+ # @type Resources: :class:`Tencentcloud::Tione.v20211111.models.ResourceInfo`
757
+ # @param InstanceType: 使用DescribeBillingSpecs接口返回的规格列表中的值,或者参考实例列表:
758
+ # TI.S.MEDIUM.POST 2C4G
759
+ # TI.S.LARGE.POST 4C8G
760
+ # TI.S.2XLARGE16.POST 8C16G
761
+ # TI.S.2XLARGE32.POST 8C32G
762
+ # TI.S.4XLARGE32.POST 16C32G
763
+ # TI.S.4XLARGE64.POST 16C64G
764
+ # TI.S.6XLARGE48.POST 24C48G
765
+ # TI.S.6XLARGE96.POST 24C96G
766
+ # TI.S.8XLARGE64.POST 32C64G
767
+ # TI.S.8XLARGE128.POST 32C128G
768
+ # TI.GN7.LARGE20.POST 4C20G T4*1/4
769
+ # TI.GN7.2XLARGE40.POST 10C40G T4*1/2
770
+ # TI.GN7.2XLARGE32.POST 8C32G T4*1
771
+ # TI.GN7.5XLARGE80.POST 20C80G T4*1
772
+ # TI.GN7.8XLARGE128.POST 32C128G T4*1
773
+ # TI.GN7.10XLARGE160.POST 40C160G T4*2
774
+ # TI.GN7.20XLARGE320.POST 80C320G T4*4
775
+ # @type InstanceType: String
776
+ # @param ScaleMode: 扩缩容类型 支持:自动 - "AUTO", 手动 - "MANUAL",默认为MANUAL
777
+ # @type ScaleMode: String
778
+ # @param Replicas: 实例数量, 不同计费模式和调节模式下对应关系如下
779
+ # PREPAID 和 POSTPAID_BY_HOUR:
780
+ # 手动调节模式下对应 实例数量
781
+ # 自动调节模式下对应 基于时间的默认策略的实例数量
782
+ # HYBRID_PAID:
783
+ # 后付费实例手动调节模式下对应 实例数量
784
+ # 后付费实例自动调节模式下对应 时间策略的默认策略的实例数量
785
+ # @type Replicas: Integer
786
+ # @param HorizontalPodAutoscaler: 自动伸缩信息
787
+ # @type HorizontalPodAutoscaler: :class:`Tencentcloud::Tione.v20211111.models.HorizontalPodAutoscaler`
788
+ # @param LogEnable: 是否开启日志投递,开启后需填写配置投递到指定cls
789
+ # @type LogEnable: Boolean
790
+ # @param LogConfig: 日志配置,需要投递服务日志到指定cls时填写
791
+ # @type LogConfig: :class:`Tencentcloud::Tione.v20211111.models.LogConfig`
792
+ # @param AuthorizationEnable: 是否开启接口鉴权,开启后自动生成token信息,访问需要token鉴权
793
+ # @type AuthorizationEnable: Boolean
794
+ # @param Tags: 腾讯云标签
795
+ # @type Tags: Array
796
+ # @param NewVersion: 是否新增版本
797
+ # @type NewVersion: Boolean
798
+ # @param CronScaleJobs: 定时任务配置,使用定时策略时填写
799
+ # @type CronScaleJobs: Array
800
+ # @param ScaleStrategy: 自动伸缩策略配置 HPA : 通过HPA进行弹性伸缩 CRON 通过定时任务进行伸缩
801
+ # @type ScaleStrategy: String
802
+ # @param HybridBillingPrepaidReplicas: 计费模式[HYBRID_PAID]时生效, 用于标识混合计费模式下的预付费实例数
803
+ # @type HybridBillingPrepaidReplicas: Integer
804
+ # @param CreateSource: [AUTO_ML 自动学习,自动学习正式发布 AUTO_ML_FORMAL, DEFAULT 默认]
805
+ # @type CreateSource: String
806
+ # @param ModelHotUpdateEnable: 是否开启模型的热更新。默认不开启
807
+ # @type ModelHotUpdateEnable: Boolean
808
+ # @param ScheduledAction: 定时停止配置
809
+ # @type ScheduledAction: :class:`Tencentcloud::Tione.v20211111.models.ScheduledAction`
810
+ # @param VolumeMount: 挂载配置,目前只支持CFS
811
+ # @type VolumeMount: :class:`Tencentcloud::Tione.v20211111.models.VolumeMount`
812
+ # @param ServiceLimit: 服务限速限流相关配置
813
+ # @type ServiceLimit: :class:`Tencentcloud::Tione.v20211111.models.ServiceLimit`
814
+
815
+ attr_accessor :ImageInfo, :ServiceGroupId, :ServiceGroupName, :ServiceDescription, :ChargeType, :ResourceGroupId, :ModelInfo, :Env, :Resources, :InstanceType, :ScaleMode, :Replicas, :HorizontalPodAutoscaler, :LogEnable, :LogConfig, :AuthorizationEnable, :Tags, :NewVersion, :CronScaleJobs, :ScaleStrategy, :HybridBillingPrepaidReplicas, :CreateSource, :ModelHotUpdateEnable, :ScheduledAction, :VolumeMount, :ServiceLimit
816
+
817
+ def initialize(imageinfo=nil, servicegroupid=nil, servicegroupname=nil, servicedescription=nil, chargetype=nil, resourcegroupid=nil, modelinfo=nil, env=nil, resources=nil, instancetype=nil, scalemode=nil, replicas=nil, horizontalpodautoscaler=nil, logenable=nil, logconfig=nil, authorizationenable=nil, tags=nil, newversion=nil, cronscalejobs=nil, scalestrategy=nil, hybridbillingprepaidreplicas=nil, createsource=nil, modelhotupdateenable=nil, scheduledaction=nil, volumemount=nil, servicelimit=nil)
818
+ @ImageInfo = imageinfo
819
+ @ServiceGroupId = servicegroupid
820
+ @ServiceGroupName = servicegroupname
821
+ @ServiceDescription = servicedescription
822
+ @ChargeType = chargetype
823
+ @ResourceGroupId = resourcegroupid
824
+ @ModelInfo = modelinfo
825
+ @Env = env
826
+ @Resources = resources
827
+ @InstanceType = instancetype
828
+ @ScaleMode = scalemode
829
+ @Replicas = replicas
830
+ @HorizontalPodAutoscaler = horizontalpodautoscaler
831
+ @LogEnable = logenable
832
+ @LogConfig = logconfig
833
+ @AuthorizationEnable = authorizationenable
834
+ @Tags = tags
835
+ @NewVersion = newversion
836
+ @CronScaleJobs = cronscalejobs
837
+ @ScaleStrategy = scalestrategy
838
+ @HybridBillingPrepaidReplicas = hybridbillingprepaidreplicas
839
+ @CreateSource = createsource
840
+ @ModelHotUpdateEnable = modelhotupdateenable
841
+ @ScheduledAction = scheduledaction
842
+ @VolumeMount = volumemount
843
+ @ServiceLimit = servicelimit
844
+ end
845
+
846
+ def deserialize(params)
847
+ unless params['ImageInfo'].nil?
848
+ @ImageInfo = ImageInfo.new
849
+ @ImageInfo.deserialize(params['ImageInfo'])
850
+ end
851
+ @ServiceGroupId = params['ServiceGroupId']
852
+ @ServiceGroupName = params['ServiceGroupName']
853
+ @ServiceDescription = params['ServiceDescription']
854
+ @ChargeType = params['ChargeType']
855
+ @ResourceGroupId = params['ResourceGroupId']
856
+ unless params['ModelInfo'].nil?
857
+ @ModelInfo = ModelInfo.new
858
+ @ModelInfo.deserialize(params['ModelInfo'])
859
+ end
860
+ unless params['Env'].nil?
861
+ @Env = []
862
+ params['Env'].each do |i|
863
+ envvar_tmp = EnvVar.new
864
+ envvar_tmp.deserialize(i)
865
+ @Env << envvar_tmp
866
+ end
867
+ end
868
+ unless params['Resources'].nil?
869
+ @Resources = ResourceInfo.new
870
+ @Resources.deserialize(params['Resources'])
871
+ end
872
+ @InstanceType = params['InstanceType']
873
+ @ScaleMode = params['ScaleMode']
874
+ @Replicas = params['Replicas']
875
+ unless params['HorizontalPodAutoscaler'].nil?
876
+ @HorizontalPodAutoscaler = HorizontalPodAutoscaler.new
877
+ @HorizontalPodAutoscaler.deserialize(params['HorizontalPodAutoscaler'])
878
+ end
879
+ @LogEnable = params['LogEnable']
880
+ unless params['LogConfig'].nil?
881
+ @LogConfig = LogConfig.new
882
+ @LogConfig.deserialize(params['LogConfig'])
883
+ end
884
+ @AuthorizationEnable = params['AuthorizationEnable']
885
+ unless params['Tags'].nil?
886
+ @Tags = []
887
+ params['Tags'].each do |i|
888
+ tag_tmp = Tag.new
889
+ tag_tmp.deserialize(i)
890
+ @Tags << tag_tmp
891
+ end
892
+ end
893
+ @NewVersion = params['NewVersion']
894
+ unless params['CronScaleJobs'].nil?
895
+ @CronScaleJobs = []
896
+ params['CronScaleJobs'].each do |i|
897
+ cronscalejob_tmp = CronScaleJob.new
898
+ cronscalejob_tmp.deserialize(i)
899
+ @CronScaleJobs << cronscalejob_tmp
900
+ end
901
+ end
902
+ @ScaleStrategy = params['ScaleStrategy']
903
+ @HybridBillingPrepaidReplicas = params['HybridBillingPrepaidReplicas']
904
+ @CreateSource = params['CreateSource']
905
+ @ModelHotUpdateEnable = params['ModelHotUpdateEnable']
906
+ unless params['ScheduledAction'].nil?
907
+ @ScheduledAction = ScheduledAction.new
908
+ @ScheduledAction.deserialize(params['ScheduledAction'])
909
+ end
910
+ unless params['VolumeMount'].nil?
911
+ @VolumeMount = VolumeMount.new
912
+ @VolumeMount.deserialize(params['VolumeMount'])
913
+ end
914
+ unless params['ServiceLimit'].nil?
915
+ @ServiceLimit = ServiceLimit.new
916
+ @ServiceLimit.deserialize(params['ServiceLimit'])
917
+ end
918
+ end
919
+ end
920
+
921
+ # CreateModelService返回参数结构体
922
+ class CreateModelServiceResponse < TencentCloud::Common::AbstractModel
923
+ # @param Service: 生成的模型服务
924
+ # 注意:此字段可能返回 null,表示取不到有效值。
925
+ # @type Service: :class:`Tencentcloud::Tione.v20211111.models.Service`
926
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
927
+ # @type RequestId: String
928
+
929
+ attr_accessor :Service, :RequestId
930
+
931
+ def initialize(service=nil, requestid=nil)
932
+ @Service = service
933
+ @RequestId = requestid
934
+ end
935
+
936
+ def deserialize(params)
937
+ unless params['Service'].nil?
938
+ @Service = Service.new
939
+ @Service.deserialize(params['Service'])
940
+ end
941
+ @RequestId = params['RequestId']
942
+ end
943
+ end
944
+
665
945
  # CreateTrainingModel请求参数结构体
666
946
  class CreateTrainingModelRequest < TencentCloud::Common::AbstractModel
667
947
  # @param ImportMethod: 导入方式
@@ -823,22 +1103,24 @@ module TencentCloud
823
1103
  class CreateTrainingTaskRequest < TencentCloud::Common::AbstractModel
824
1104
  # @param Name: 训练任务名称,不超过60个字符,仅支持中英文、数字、下划线"_"、短横"-",只能以中英文、数字开头
825
1105
  # @type Name: String
826
- # @param TrainingMode: 训练模式,通过DescribeTrainingFrameworks接口查询,eg:PS_WORKER、DDP、MPI、HOROVOD
827
- # @type TrainingMode: String
828
1106
  # @param ChargeType: 计费模式,eg:PREPAID预付费,即包年包月;POSTPAID_BY_HOUR按小时后付费
829
1107
  # @type ChargeType: String
830
1108
  # @param ResourceConfigInfos: 资源配置,需填写对应算力规格ID和节点数量,算力规格ID查询接口为DescribeBillingSpecsPrice,eg:[{"Role":"WORKER", "InstanceType": "TI.S.MEDIUM.POST", "InstanceNum": 1}]
831
1109
  # @type ResourceConfigInfos: Array
832
1110
  # @param CodePackagePath: COS代码包路径
833
1111
  # @type CodePackagePath: :class:`Tencentcloud::Tione.v20211111.models.CosPathInfo`
1112
+ # @param TrainingMode: 训练模式,通过DescribeTrainingFrameworks接口查询,eg:PS_WORKER、DDP、MPI、HOROVOD
1113
+ # @type TrainingMode: String
834
1114
  # @param Output: COS训练输出路径
835
1115
  # @type Output: :class:`Tencentcloud::Tione.v20211111.models.CosPathInfo`
836
1116
  # @param LogEnable: 是否上报日志
837
1117
  # @type LogEnable: Boolean
838
1118
  # @param FrameworkName: 训练框架名称,通过DescribeTrainingFrameworks接口查询,eg:SPARK、PYSPARK、TENSORFLOW、PYTORCH
839
1119
  # @type FrameworkName: String
840
- # @param FrameworkVersion: 训练框架版本,通过DescribeTrainingFrameworks接口查询,eg:tf1.15-py3.7-cputorch1.9-py3.8-cuda11.1-gpu
1120
+ # @param FrameworkVersion: 训练框架版本,通过DescribeTrainingFrameworks接口查询,eg:1.15、1.9
841
1121
  # @type FrameworkVersion: String
1122
+ # @param FrameworkEnvironment: 训练框架环境,通过DescribeTrainingFrameworks接口查询,eg:tf1.15-py3.7-cpu、torch1.9-py3.8-cuda11.1-gpu
1123
+ # @type FrameworkEnvironment: String
842
1124
  # @param ResourceGroupId: 预付费专用资源组ID,通过DescribeBillingResourceGroups接口查询
843
1125
  # @type ResourceGroupId: String
844
1126
  # @param Tags: 标签配置
@@ -847,8 +1129,6 @@ module TencentCloud
847
1129
  # @type ImageInfo: :class:`Tencentcloud::Tione.v20211111.models.ImageInfo`
848
1130
  # @param StartCmdInfo: 启动命令信息,默认为sh start.sh
849
1131
  # @type StartCmdInfo: :class:`Tencentcloud::Tione.v20211111.models.StartCmdInfo`
850
- # @param DataSource: 数据来源,eg:DATASET、COS、CFS、HDFS
851
- # @type DataSource: String
852
1132
  # @param DataConfigs: 数据配置
853
1133
  # @type DataConfigs: Array
854
1134
  # @param VpcId: VPC Id
@@ -861,35 +1141,37 @@ module TencentCloud
861
1141
  # @type TuningParameters: String
862
1142
  # @param Remark: 备注,最多500个字
863
1143
  # @type Remark: String
1144
+ # @param DataSource: 数据来源,eg:DATASET、COS、CFS、HDFS
1145
+ # @type DataSource: String
864
1146
 
865
- attr_accessor :Name, :TrainingMode, :ChargeType, :ResourceConfigInfos, :CodePackagePath, :Output, :LogEnable, :FrameworkName, :FrameworkVersion, :ResourceGroupId, :Tags, :ImageInfo, :StartCmdInfo, :DataSource, :DataConfigs, :VpcId, :SubnetId, :LogConfig, :TuningParameters, :Remark
1147
+ attr_accessor :Name, :ChargeType, :ResourceConfigInfos, :CodePackagePath, :TrainingMode, :Output, :LogEnable, :FrameworkName, :FrameworkVersion, :FrameworkEnvironment, :ResourceGroupId, :Tags, :ImageInfo, :StartCmdInfo, :DataConfigs, :VpcId, :SubnetId, :LogConfig, :TuningParameters, :Remark, :DataSource
866
1148
 
867
- def initialize(name=nil, trainingmode=nil, chargetype=nil, resourceconfiginfos=nil, codepackagepath=nil, output=nil, logenable=nil, frameworkname=nil, frameworkversion=nil, resourcegroupid=nil, tags=nil, imageinfo=nil, startcmdinfo=nil, datasource=nil, dataconfigs=nil, vpcid=nil, subnetid=nil, logconfig=nil, tuningparameters=nil, remark=nil)
1149
+ def initialize(name=nil, chargetype=nil, resourceconfiginfos=nil, codepackagepath=nil, trainingmode=nil, output=nil, logenable=nil, frameworkname=nil, frameworkversion=nil, frameworkenvironment=nil, resourcegroupid=nil, tags=nil, imageinfo=nil, startcmdinfo=nil, dataconfigs=nil, vpcid=nil, subnetid=nil, logconfig=nil, tuningparameters=nil, remark=nil, datasource=nil)
868
1150
  @Name = name
869
- @TrainingMode = trainingmode
870
1151
  @ChargeType = chargetype
871
1152
  @ResourceConfigInfos = resourceconfiginfos
872
1153
  @CodePackagePath = codepackagepath
1154
+ @TrainingMode = trainingmode
873
1155
  @Output = output
874
1156
  @LogEnable = logenable
875
1157
  @FrameworkName = frameworkname
876
1158
  @FrameworkVersion = frameworkversion
1159
+ @FrameworkEnvironment = frameworkenvironment
877
1160
  @ResourceGroupId = resourcegroupid
878
1161
  @Tags = tags
879
1162
  @ImageInfo = imageinfo
880
1163
  @StartCmdInfo = startcmdinfo
881
- @DataSource = datasource
882
1164
  @DataConfigs = dataconfigs
883
1165
  @VpcId = vpcid
884
1166
  @SubnetId = subnetid
885
1167
  @LogConfig = logconfig
886
1168
  @TuningParameters = tuningparameters
887
1169
  @Remark = remark
1170
+ @DataSource = datasource
888
1171
  end
889
1172
 
890
1173
  def deserialize(params)
891
1174
  @Name = params['Name']
892
- @TrainingMode = params['TrainingMode']
893
1175
  @ChargeType = params['ChargeType']
894
1176
  unless params['ResourceConfigInfos'].nil?
895
1177
  @ResourceConfigInfos = []
@@ -903,6 +1185,7 @@ module TencentCloud
903
1185
  @CodePackagePath = CosPathInfo.new
904
1186
  @CodePackagePath.deserialize(params['CodePackagePath'])
905
1187
  end
1188
+ @TrainingMode = params['TrainingMode']
906
1189
  unless params['Output'].nil?
907
1190
  @Output = CosPathInfo.new
908
1191
  @Output.deserialize(params['Output'])
@@ -910,6 +1193,7 @@ module TencentCloud
910
1193
  @LogEnable = params['LogEnable']
911
1194
  @FrameworkName = params['FrameworkName']
912
1195
  @FrameworkVersion = params['FrameworkVersion']
1196
+ @FrameworkEnvironment = params['FrameworkEnvironment']
913
1197
  @ResourceGroupId = params['ResourceGroupId']
914
1198
  unless params['Tags'].nil?
915
1199
  @Tags = []
@@ -927,7 +1211,6 @@ module TencentCloud
927
1211
  @StartCmdInfo = StartCmdInfo.new
928
1212
  @StartCmdInfo.deserialize(params['StartCmdInfo'])
929
1213
  end
930
- @DataSource = params['DataSource']
931
1214
  unless params['DataConfigs'].nil?
932
1215
  @DataConfigs = []
933
1216
  params['DataConfigs'].each do |i|
@@ -944,6 +1227,7 @@ module TencentCloud
944
1227
  end
945
1228
  @TuningParameters = params['TuningParameters']
946
1229
  @Remark = params['Remark']
1230
+ @DataSource = params['DataSource']
947
1231
  end
948
1232
  end
949
1233
 
@@ -993,6 +1277,47 @@ module TencentCloud
993
1277
  end
994
1278
  end
995
1279
 
1280
+ # 定时扩缩任务
1281
+ class CronScaleJob < TencentCloud::Common::AbstractModel
1282
+ # @param Schedule: Cron表达式,标识任务的执行时间,精确到分钟级
1283
+ # @type Schedule: String
1284
+ # @param Name: 定时任务名
1285
+ # 注意:此字段可能返回 null,表示取不到有效值。
1286
+ # @type Name: String
1287
+ # @param TargetReplicas: 目标实例数
1288
+ # 注意:此字段可能返回 null,表示取不到有效值。
1289
+ # @type TargetReplicas: Integer
1290
+ # @param MinReplicas: 目标min
1291
+ # 注意:此字段可能返回 null,表示取不到有效值。
1292
+ # @type MinReplicas: Integer
1293
+ # @param MaxReplicas: 目标max
1294
+ # 注意:此字段可能返回 null,表示取不到有效值。
1295
+ # @type MaxReplicas: Integer
1296
+ # @param ExcludeDates: 例外时间,Cron表达式,在对应时间内不执行任务。最多支持3条。
1297
+ # 注意:此字段可能返回 null,表示取不到有效值。
1298
+ # @type ExcludeDates: Array
1299
+
1300
+ attr_accessor :Schedule, :Name, :TargetReplicas, :MinReplicas, :MaxReplicas, :ExcludeDates
1301
+
1302
+ def initialize(schedule=nil, name=nil, targetreplicas=nil, minreplicas=nil, maxreplicas=nil, excludedates=nil)
1303
+ @Schedule = schedule
1304
+ @Name = name
1305
+ @TargetReplicas = targetreplicas
1306
+ @MinReplicas = minreplicas
1307
+ @MaxReplicas = maxreplicas
1308
+ @ExcludeDates = excludedates
1309
+ end
1310
+
1311
+ def deserialize(params)
1312
+ @Schedule = params['Schedule']
1313
+ @Name = params['Name']
1314
+ @TargetReplicas = params['TargetReplicas']
1315
+ @MinReplicas = params['MinReplicas']
1316
+ @MaxReplicas = params['MaxReplicas']
1317
+ @ExcludeDates = params['ExcludeDates']
1318
+ end
1319
+ end
1320
+
996
1321
  # 自定义指标
997
1322
  class CustomTrainingData < TencentCloud::Common::AbstractModel
998
1323
  # @param MetricName: 指标名
@@ -1513,6 +1838,70 @@ module TencentCloud
1513
1838
  end
1514
1839
  end
1515
1840
 
1841
+ # DeleteModelServiceGroup请求参数结构体
1842
+ class DeleteModelServiceGroupRequest < TencentCloud::Common::AbstractModel
1843
+ # @param ServiceGroupId: 服务id
1844
+ # @type ServiceGroupId: String
1845
+
1846
+ attr_accessor :ServiceGroupId
1847
+
1848
+ def initialize(servicegroupid=nil)
1849
+ @ServiceGroupId = servicegroupid
1850
+ end
1851
+
1852
+ def deserialize(params)
1853
+ @ServiceGroupId = params['ServiceGroupId']
1854
+ end
1855
+ end
1856
+
1857
+ # DeleteModelServiceGroup返回参数结构体
1858
+ class DeleteModelServiceGroupResponse < TencentCloud::Common::AbstractModel
1859
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1860
+ # @type RequestId: String
1861
+
1862
+ attr_accessor :RequestId
1863
+
1864
+ def initialize(requestid=nil)
1865
+ @RequestId = requestid
1866
+ end
1867
+
1868
+ def deserialize(params)
1869
+ @RequestId = params['RequestId']
1870
+ end
1871
+ end
1872
+
1873
+ # DeleteModelService请求参数结构体
1874
+ class DeleteModelServiceRequest < TencentCloud::Common::AbstractModel
1875
+ # @param ServiceId: 服务id
1876
+ # @type ServiceId: String
1877
+
1878
+ attr_accessor :ServiceId
1879
+
1880
+ def initialize(serviceid=nil)
1881
+ @ServiceId = serviceid
1882
+ end
1883
+
1884
+ def deserialize(params)
1885
+ @ServiceId = params['ServiceId']
1886
+ end
1887
+ end
1888
+
1889
+ # DeleteModelService返回参数结构体
1890
+ class DeleteModelServiceResponse < TencentCloud::Common::AbstractModel
1891
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1892
+ # @type RequestId: String
1893
+
1894
+ attr_accessor :RequestId
1895
+
1896
+ def initialize(requestid=nil)
1897
+ @RequestId = requestid
1898
+ end
1899
+
1900
+ def deserialize(params)
1901
+ @RequestId = params['RequestId']
1902
+ end
1903
+ end
1904
+
1516
1905
  # DeleteTrainingModel请求参数结构体
1517
1906
  class DeleteTrainingModelRequest < TencentCloud::Common::AbstractModel
1518
1907
  # @param TrainingModelId: 模型ID
@@ -1621,6 +2010,79 @@ module TencentCloud
1621
2010
  end
1622
2011
  end
1623
2012
 
2013
+ # DescribeAPIConfigs请求参数结构体
2014
+ class DescribeAPIConfigsRequest < TencentCloud::Common::AbstractModel
2015
+ # @param Offset: 偏移量,默认为0
2016
+ # @type Offset: Integer
2017
+ # @param Limit: 返回数量,默认为20,最大值为100
2018
+ # @type Limit: Integer
2019
+ # @param Order: 输出列表的排列顺序。取值范围:ASC:升序排列 DESC:降序排列
2020
+ # @type Order: String
2021
+ # @param OrderField: 排序的依据字段, 取值范围 "CreateTime" "UpdateTime"
2022
+ # @type OrderField: String
2023
+ # @param Filters: 分页参数,支持的分页过滤Name包括:
2024
+ # ["ClusterId", "ServiceId", "ServiceGroupName", "ServiceGroupId"]
2025
+ # @type Filters: Array
2026
+
2027
+ attr_accessor :Offset, :Limit, :Order, :OrderField, :Filters
2028
+
2029
+ def initialize(offset=nil, limit=nil, order=nil, orderfield=nil, filters=nil)
2030
+ @Offset = offset
2031
+ @Limit = limit
2032
+ @Order = order
2033
+ @OrderField = orderfield
2034
+ @Filters = filters
2035
+ end
2036
+
2037
+ def deserialize(params)
2038
+ @Offset = params['Offset']
2039
+ @Limit = params['Limit']
2040
+ @Order = params['Order']
2041
+ @OrderField = params['OrderField']
2042
+ unless params['Filters'].nil?
2043
+ @Filters = []
2044
+ params['Filters'].each do |i|
2045
+ filter_tmp = Filter.new
2046
+ filter_tmp.deserialize(i)
2047
+ @Filters << filter_tmp
2048
+ end
2049
+ end
2050
+ end
2051
+ end
2052
+
2053
+ # DescribeAPIConfigs返回参数结构体
2054
+ class DescribeAPIConfigsResponse < TencentCloud::Common::AbstractModel
2055
+ # @param TotalCount: 接口数量
2056
+ # 注意:此字段可能返回 null,表示取不到有效值。
2057
+ # @type TotalCount: Integer
2058
+ # @param Details: 接口详情
2059
+ # 注意:此字段可能返回 null,表示取不到有效值。
2060
+ # @type Details: Array
2061
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2062
+ # @type RequestId: String
2063
+
2064
+ attr_accessor :TotalCount, :Details, :RequestId
2065
+
2066
+ def initialize(totalcount=nil, details=nil, requestid=nil)
2067
+ @TotalCount = totalcount
2068
+ @Details = details
2069
+ @RequestId = requestid
2070
+ end
2071
+
2072
+ def deserialize(params)
2073
+ @TotalCount = params['TotalCount']
2074
+ unless params['Details'].nil?
2075
+ @Details = []
2076
+ params['Details'].each do |i|
2077
+ apiconfigdetail_tmp = APIConfigDetail.new
2078
+ apiconfigdetail_tmp.deserialize(i)
2079
+ @Details << apiconfigdetail_tmp
2080
+ end
2081
+ end
2082
+ @RequestId = params['RequestId']
2083
+ end
2084
+ end
2085
+
1624
2086
  # DescribeBatchTaskInstances请求参数结构体
1625
2087
  class DescribeBatchTaskInstancesRequest < TencentCloud::Common::AbstractModel
1626
2088
  # @param BatchTaskId: 跑批任务id
@@ -2427,57 +2889,450 @@ module TencentCloud
2427
2889
  end
2428
2890
  end
2429
2891
 
2430
- # DescribeTrainingFrameworks请求参数结构体
2431
- class DescribeTrainingFrameworksRequest < TencentCloud::Common::AbstractModel
2892
+ # DescribeModelServiceCallInfo请求参数结构体
2893
+ class DescribeModelServiceCallInfoRequest < TencentCloud::Common::AbstractModel
2894
+ # @param ServiceGroupId: 服务组id
2895
+ # @type ServiceGroupId: String
2432
2896
 
2897
+ attr_accessor :ServiceGroupId
2433
2898
 
2434
- def initialize()
2899
+ def initialize(servicegroupid=nil)
2900
+ @ServiceGroupId = servicegroupid
2435
2901
  end
2436
2902
 
2437
2903
  def deserialize(params)
2904
+ @ServiceGroupId = params['ServiceGroupId']
2438
2905
  end
2439
2906
  end
2440
2907
 
2441
- # DescribeTrainingFrameworks返回参数结构体
2442
- class DescribeTrainingFrameworksResponse < TencentCloud::Common::AbstractModel
2443
- # @param FrameworkInfos: 框架信息列表
2444
- # @type FrameworkInfos: Array
2908
+ # DescribeModelServiceCallInfo返回参数结构体
2909
+ class DescribeModelServiceCallInfoResponse < TencentCloud::Common::AbstractModel
2910
+ # @param ServiceCallInfo: 服务调用信息
2911
+ # 注意:此字段可能返回 null,表示取不到有效值。
2912
+ # @type ServiceCallInfo: :class:`Tencentcloud::Tione.v20211111.models.ServiceCallInfo`
2913
+ # @param InferGatewayCallInfo: 升级网关调用信息
2914
+ # 注意:此字段可能返回 null,表示取不到有效值。
2915
+ # @type InferGatewayCallInfo: :class:`Tencentcloud::Tione.v20211111.models.InferGatewayCallInfo`
2445
2916
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2446
2917
  # @type RequestId: String
2447
2918
 
2448
- attr_accessor :FrameworkInfos, :RequestId
2919
+ attr_accessor :ServiceCallInfo, :InferGatewayCallInfo, :RequestId
2449
2920
 
2450
- def initialize(frameworkinfos=nil, requestid=nil)
2451
- @FrameworkInfos = frameworkinfos
2921
+ def initialize(servicecallinfo=nil, infergatewaycallinfo=nil, requestid=nil)
2922
+ @ServiceCallInfo = servicecallinfo
2923
+ @InferGatewayCallInfo = infergatewaycallinfo
2452
2924
  @RequestId = requestid
2453
2925
  end
2454
2926
 
2455
2927
  def deserialize(params)
2456
- unless params['FrameworkInfos'].nil?
2457
- @FrameworkInfos = []
2458
- params['FrameworkInfos'].each do |i|
2459
- frameworkinfo_tmp = FrameworkInfo.new
2460
- frameworkinfo_tmp.deserialize(i)
2461
- @FrameworkInfos << frameworkinfo_tmp
2462
- end
2928
+ unless params['ServiceCallInfo'].nil?
2929
+ @ServiceCallInfo = ServiceCallInfo.new
2930
+ @ServiceCallInfo.deserialize(params['ServiceCallInfo'])
2931
+ end
2932
+ unless params['InferGatewayCallInfo'].nil?
2933
+ @InferGatewayCallInfo = InferGatewayCallInfo.new
2934
+ @InferGatewayCallInfo.deserialize(params['InferGatewayCallInfo'])
2463
2935
  end
2464
2936
  @RequestId = params['RequestId']
2465
2937
  end
2466
2938
  end
2467
2939
 
2468
- # DescribeTrainingMetrics请求参数结构体
2469
- class DescribeTrainingMetricsRequest < TencentCloud::Common::AbstractModel
2470
- # @param TaskId: 任务ID
2471
- # @type TaskId: String
2940
+ # DescribeModelServiceGroup请求参数结构体
2941
+ class DescribeModelServiceGroupRequest < TencentCloud::Common::AbstractModel
2942
+ # @param ServiceGroupId:
2943
+ # @type ServiceGroupId: String
2472
2944
 
2473
- attr_accessor :TaskId
2945
+ attr_accessor :ServiceGroupId
2474
2946
 
2475
- def initialize(taskid=nil)
2476
- @TaskId = taskid
2947
+ def initialize(servicegroupid=nil)
2948
+ @ServiceGroupId = servicegroupid
2477
2949
  end
2478
2950
 
2479
2951
  def deserialize(params)
2480
- @TaskId = params['TaskId']
2952
+ @ServiceGroupId = params['ServiceGroupId']
2953
+ end
2954
+ end
2955
+
2956
+ # DescribeModelServiceGroup返回参数结构体
2957
+ class DescribeModelServiceGroupResponse < TencentCloud::Common::AbstractModel
2958
+ # @param ServiceGroup: 服务组信息
2959
+ # 注意:此字段可能返回 null,表示取不到有效值。
2960
+ # @type ServiceGroup: :class:`Tencentcloud::Tione.v20211111.models.ServiceGroup`
2961
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2962
+ # @type RequestId: String
2963
+
2964
+ attr_accessor :ServiceGroup, :RequestId
2965
+
2966
+ def initialize(servicegroup=nil, requestid=nil)
2967
+ @ServiceGroup = servicegroup
2968
+ @RequestId = requestid
2969
+ end
2970
+
2971
+ def deserialize(params)
2972
+ unless params['ServiceGroup'].nil?
2973
+ @ServiceGroup = ServiceGroup.new
2974
+ @ServiceGroup.deserialize(params['ServiceGroup'])
2975
+ end
2976
+ @RequestId = params['RequestId']
2977
+ end
2978
+ end
2979
+
2980
+ # DescribeModelServiceGroups请求参数结构体
2981
+ class DescribeModelServiceGroupsRequest < TencentCloud::Common::AbstractModel
2982
+ # @param Offset: 偏移量,默认为0
2983
+ # @type Offset: Integer
2984
+ # @param Limit: 返回数量,默认为20,最大值为100
2985
+ # @type Limit: Integer
2986
+ # @param Order: 输出列表的排列顺序。取值范围:ASC:升序排列 DESC:降序排列
2987
+ # @type Order: String
2988
+ # @param OrderField: 排序的依据字段, 取值范围 "CreateTime" "UpdateTime"
2989
+ # @type OrderField: String
2990
+ # @param Filters: 分页参数,支持的分页过滤Name包括:
2991
+ # ["ClusterId", "ServiceId", "ServiceGroupName", "ServiceGroupId","Status","CreatedBy","ModelVersionId"]
2992
+ # @type Filters: Array
2993
+ # @param TagFilters: 标签过滤参数
2994
+ # @type TagFilters: Array
2995
+
2996
+ attr_accessor :Offset, :Limit, :Order, :OrderField, :Filters, :TagFilters
2997
+
2998
+ def initialize(offset=nil, limit=nil, order=nil, orderfield=nil, filters=nil, tagfilters=nil)
2999
+ @Offset = offset
3000
+ @Limit = limit
3001
+ @Order = order
3002
+ @OrderField = orderfield
3003
+ @Filters = filters
3004
+ @TagFilters = tagfilters
3005
+ end
3006
+
3007
+ def deserialize(params)
3008
+ @Offset = params['Offset']
3009
+ @Limit = params['Limit']
3010
+ @Order = params['Order']
3011
+ @OrderField = params['OrderField']
3012
+ unless params['Filters'].nil?
3013
+ @Filters = []
3014
+ params['Filters'].each do |i|
3015
+ filter_tmp = Filter.new
3016
+ filter_tmp.deserialize(i)
3017
+ @Filters << filter_tmp
3018
+ end
3019
+ end
3020
+ unless params['TagFilters'].nil?
3021
+ @TagFilters = []
3022
+ params['TagFilters'].each do |i|
3023
+ tagfilter_tmp = TagFilter.new
3024
+ tagfilter_tmp.deserialize(i)
3025
+ @TagFilters << tagfilter_tmp
3026
+ end
3027
+ end
3028
+ end
3029
+ end
3030
+
3031
+ # DescribeModelServiceGroups返回参数结构体
3032
+ class DescribeModelServiceGroupsResponse < TencentCloud::Common::AbstractModel
3033
+ # @param TotalCount: 推理服务组数量。
3034
+ # 注意:此字段可能返回 null,表示取不到有效值。
3035
+ # @type TotalCount: Integer
3036
+ # @param ServiceGroups: 服务组信息
3037
+ # 注意:此字段可能返回 null,表示取不到有效值。
3038
+ # @type ServiceGroups: Array
3039
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3040
+ # @type RequestId: String
3041
+
3042
+ attr_accessor :TotalCount, :ServiceGroups, :RequestId
3043
+
3044
+ def initialize(totalcount=nil, servicegroups=nil, requestid=nil)
3045
+ @TotalCount = totalcount
3046
+ @ServiceGroups = servicegroups
3047
+ @RequestId = requestid
3048
+ end
3049
+
3050
+ def deserialize(params)
3051
+ @TotalCount = params['TotalCount']
3052
+ unless params['ServiceGroups'].nil?
3053
+ @ServiceGroups = []
3054
+ params['ServiceGroups'].each do |i|
3055
+ servicegroup_tmp = ServiceGroup.new
3056
+ servicegroup_tmp.deserialize(i)
3057
+ @ServiceGroups << servicegroup_tmp
3058
+ end
3059
+ end
3060
+ @RequestId = params['RequestId']
3061
+ end
3062
+ end
3063
+
3064
+ # DescribeModelServiceHistory请求参数结构体
3065
+ class DescribeModelServiceHistoryRequest < TencentCloud::Common::AbstractModel
3066
+ # @param ServiceId: 服务Id
3067
+ # @type ServiceId: String
3068
+
3069
+ attr_accessor :ServiceId
3070
+
3071
+ def initialize(serviceid=nil)
3072
+ @ServiceId = serviceid
3073
+ end
3074
+
3075
+ def deserialize(params)
3076
+ @ServiceId = params['ServiceId']
3077
+ end
3078
+ end
3079
+
3080
+ # DescribeModelServiceHistory返回参数结构体
3081
+ class DescribeModelServiceHistoryResponse < TencentCloud::Common::AbstractModel
3082
+ # @param TotalCount: 历史版本总数
3083
+ # 注意:此字段可能返回 null,表示取不到有效值。
3084
+ # @type TotalCount: Integer
3085
+ # @param ServiceHistory: 服务版本
3086
+ # 注意:此字段可能返回 null,表示取不到有效值。
3087
+ # @type ServiceHistory: Array
3088
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3089
+ # @type RequestId: String
3090
+
3091
+ attr_accessor :TotalCount, :ServiceHistory, :RequestId
3092
+
3093
+ def initialize(totalcount=nil, servicehistory=nil, requestid=nil)
3094
+ @TotalCount = totalcount
3095
+ @ServiceHistory = servicehistory
3096
+ @RequestId = requestid
3097
+ end
3098
+
3099
+ def deserialize(params)
3100
+ @TotalCount = params['TotalCount']
3101
+ unless params['ServiceHistory'].nil?
3102
+ @ServiceHistory = []
3103
+ params['ServiceHistory'].each do |i|
3104
+ servicehistory_tmp = ServiceHistory.new
3105
+ servicehistory_tmp.deserialize(i)
3106
+ @ServiceHistory << servicehistory_tmp
3107
+ end
3108
+ end
3109
+ @RequestId = params['RequestId']
3110
+ end
3111
+ end
3112
+
3113
+ # DescribeModelServiceHotUpdated请求参数结构体
3114
+ class DescribeModelServiceHotUpdatedRequest < TencentCloud::Common::AbstractModel
3115
+ # @param ImageInfo: 镜像信息,配置服务运行所需的镜像地址等信息
3116
+ # @type ImageInfo: :class:`Tencentcloud::Tione.v20211111.models.ImageInfo`
3117
+ # @param ModelInfo: 模型信息,需要挂载模型时填写
3118
+ # @type ModelInfo: :class:`Tencentcloud::Tione.v20211111.models.ModelInfo`
3119
+ # @param VolumeMount: 挂载信息
3120
+ # @type VolumeMount: :class:`Tencentcloud::Tione.v20211111.models.VolumeMount`
3121
+
3122
+ attr_accessor :ImageInfo, :ModelInfo, :VolumeMount
3123
+
3124
+ def initialize(imageinfo=nil, modelinfo=nil, volumemount=nil)
3125
+ @ImageInfo = imageinfo
3126
+ @ModelInfo = modelinfo
3127
+ @VolumeMount = volumemount
3128
+ end
3129
+
3130
+ def deserialize(params)
3131
+ unless params['ImageInfo'].nil?
3132
+ @ImageInfo = ImageInfo.new
3133
+ @ImageInfo.deserialize(params['ImageInfo'])
3134
+ end
3135
+ unless params['ModelInfo'].nil?
3136
+ @ModelInfo = ModelInfo.new
3137
+ @ModelInfo.deserialize(params['ModelInfo'])
3138
+ end
3139
+ unless params['VolumeMount'].nil?
3140
+ @VolumeMount = VolumeMount.new
3141
+ @VolumeMount.deserialize(params['VolumeMount'])
3142
+ end
3143
+ end
3144
+ end
3145
+
3146
+ # DescribeModelServiceHotUpdated返回参数结构体
3147
+ class DescribeModelServiceHotUpdatedResponse < TencentCloud::Common::AbstractModel
3148
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3149
+ # @type RequestId: String
3150
+
3151
+ attr_accessor :RequestId
3152
+
3153
+ def initialize(requestid=nil)
3154
+ @RequestId = requestid
3155
+ end
3156
+
3157
+ def deserialize(params)
3158
+ @RequestId = params['RequestId']
3159
+ end
3160
+ end
3161
+
3162
+ # DescribeModelService请求参数结构体
3163
+ class DescribeModelServiceRequest < TencentCloud::Common::AbstractModel
3164
+ # @param ServiceId: 服务id
3165
+ # @type ServiceId: String
3166
+
3167
+ attr_accessor :ServiceId
3168
+
3169
+ def initialize(serviceid=nil)
3170
+ @ServiceId = serviceid
3171
+ end
3172
+
3173
+ def deserialize(params)
3174
+ @ServiceId = params['ServiceId']
3175
+ end
3176
+ end
3177
+
3178
+ # DescribeModelService返回参数结构体
3179
+ class DescribeModelServiceResponse < TencentCloud::Common::AbstractModel
3180
+ # @param Service: 服务信息
3181
+ # @type Service: :class:`Tencentcloud::Tione.v20211111.models.Service`
3182
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3183
+ # @type RequestId: String
3184
+
3185
+ attr_accessor :Service, :RequestId
3186
+
3187
+ def initialize(service=nil, requestid=nil)
3188
+ @Service = service
3189
+ @RequestId = requestid
3190
+ end
3191
+
3192
+ def deserialize(params)
3193
+ unless params['Service'].nil?
3194
+ @Service = Service.new
3195
+ @Service.deserialize(params['Service'])
3196
+ end
3197
+ @RequestId = params['RequestId']
3198
+ end
3199
+ end
3200
+
3201
+ # DescribeModelServices请求参数结构体
3202
+ class DescribeModelServicesRequest < TencentCloud::Common::AbstractModel
3203
+ # @param Offset: 偏移量,默认为0
3204
+ # @type Offset: Integer
3205
+ # @param Limit: 返回数量,默认为20,最大值为20
3206
+ # @type Limit: Integer
3207
+ # @param Order: 输出列表的排列顺序。取值范围:ASC:升序排列 DESC:降序排列
3208
+ # @type Order: String
3209
+ # @param OrderField: 排序的依据字段, 取值范围 "CreateTime" "UpdateTime"
3210
+ # @type OrderField: String
3211
+ # @param Filters: 分页参数,支持的分页过滤Name包括:
3212
+ # ["ClusterId", "ServiceId", "ServiceGroupName", "ServiceGroupId","Status","CreatedBy","ModelId"]
3213
+ # @type Filters: Array
3214
+ # @param TagFilters: 标签过滤参数
3215
+ # @type TagFilters: Array
3216
+
3217
+ attr_accessor :Offset, :Limit, :Order, :OrderField, :Filters, :TagFilters
3218
+
3219
+ def initialize(offset=nil, limit=nil, order=nil, orderfield=nil, filters=nil, tagfilters=nil)
3220
+ @Offset = offset
3221
+ @Limit = limit
3222
+ @Order = order
3223
+ @OrderField = orderfield
3224
+ @Filters = filters
3225
+ @TagFilters = tagfilters
3226
+ end
3227
+
3228
+ def deserialize(params)
3229
+ @Offset = params['Offset']
3230
+ @Limit = params['Limit']
3231
+ @Order = params['Order']
3232
+ @OrderField = params['OrderField']
3233
+ unless params['Filters'].nil?
3234
+ @Filters = []
3235
+ params['Filters'].each do |i|
3236
+ filter_tmp = Filter.new
3237
+ filter_tmp.deserialize(i)
3238
+ @Filters << filter_tmp
3239
+ end
3240
+ end
3241
+ unless params['TagFilters'].nil?
3242
+ @TagFilters = []
3243
+ params['TagFilters'].each do |i|
3244
+ tagfilter_tmp = TagFilter.new
3245
+ tagfilter_tmp.deserialize(i)
3246
+ @TagFilters << tagfilter_tmp
3247
+ end
3248
+ end
3249
+ end
3250
+ end
3251
+
3252
+ # DescribeModelServices返回参数结构体
3253
+ class DescribeModelServicesResponse < TencentCloud::Common::AbstractModel
3254
+ # @param TotalCount: 服务数量
3255
+ # 注意:此字段可能返回 null,表示取不到有效值。
3256
+ # @type TotalCount: Integer
3257
+ # @param Services: 无
3258
+ # 注意:此字段可能返回 null,表示取不到有效值。
3259
+ # @type Services: Array
3260
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3261
+ # @type RequestId: String
3262
+
3263
+ attr_accessor :TotalCount, :Services, :RequestId
3264
+
3265
+ def initialize(totalcount=nil, services=nil, requestid=nil)
3266
+ @TotalCount = totalcount
3267
+ @Services = services
3268
+ @RequestId = requestid
3269
+ end
3270
+
3271
+ def deserialize(params)
3272
+ @TotalCount = params['TotalCount']
3273
+ unless params['Services'].nil?
3274
+ @Services = []
3275
+ params['Services'].each do |i|
3276
+ service_tmp = Service.new
3277
+ service_tmp.deserialize(i)
3278
+ @Services << service_tmp
3279
+ end
3280
+ end
3281
+ @RequestId = params['RequestId']
3282
+ end
3283
+ end
3284
+
3285
+ # DescribeTrainingFrameworks请求参数结构体
3286
+ class DescribeTrainingFrameworksRequest < TencentCloud::Common::AbstractModel
3287
+
3288
+
3289
+ def initialize()
3290
+ end
3291
+
3292
+ def deserialize(params)
3293
+ end
3294
+ end
3295
+
3296
+ # DescribeTrainingFrameworks返回参数结构体
3297
+ class DescribeTrainingFrameworksResponse < TencentCloud::Common::AbstractModel
3298
+ # @param FrameworkInfos: 框架信息列表
3299
+ # @type FrameworkInfos: Array
3300
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3301
+ # @type RequestId: String
3302
+
3303
+ attr_accessor :FrameworkInfos, :RequestId
3304
+
3305
+ def initialize(frameworkinfos=nil, requestid=nil)
3306
+ @FrameworkInfos = frameworkinfos
3307
+ @RequestId = requestid
3308
+ end
3309
+
3310
+ def deserialize(params)
3311
+ unless params['FrameworkInfos'].nil?
3312
+ @FrameworkInfos = []
3313
+ params['FrameworkInfos'].each do |i|
3314
+ frameworkinfo_tmp = FrameworkInfo.new
3315
+ frameworkinfo_tmp.deserialize(i)
3316
+ @FrameworkInfos << frameworkinfo_tmp
3317
+ end
3318
+ end
3319
+ @RequestId = params['RequestId']
3320
+ end
3321
+ end
3322
+
3323
+ # DescribeTrainingMetrics请求参数结构体
3324
+ class DescribeTrainingMetricsRequest < TencentCloud::Common::AbstractModel
3325
+ # @param TaskId: 任务ID
3326
+ # @type TaskId: String
3327
+
3328
+ attr_accessor :TaskId
3329
+
3330
+ def initialize(taskid=nil)
3331
+ @TaskId = taskid
3332
+ end
3333
+
3334
+ def deserialize(params)
3335
+ @TaskId = params['TaskId']
2481
3336
  end
2482
3337
  end
2483
3338
 
@@ -2908,6 +3763,28 @@ module TencentCloud
2908
3763
  end
2909
3764
  end
2910
3765
 
3766
+ # 环境变量
3767
+ class EnvVar < TencentCloud::Common::AbstractModel
3768
+ # @param Name: 环境变量key
3769
+ # 注意:此字段可能返回 null,表示取不到有效值。
3770
+ # @type Name: String
3771
+ # @param Value: 环境变量value
3772
+ # 注意:此字段可能返回 null,表示取不到有效值。
3773
+ # @type Value: String
3774
+
3775
+ attr_accessor :Name, :Value
3776
+
3777
+ def initialize(name=nil, value=nil)
3778
+ @Name = name
3779
+ @Value = value
3780
+ end
3781
+
3782
+ def deserialize(params)
3783
+ @Name = params['Name']
3784
+ @Value = params['Value']
3785
+ end
3786
+ end
3787
+
2911
3788
  # 过滤器
2912
3789
  class Filter < TencentCloud::Common::AbstractModel
2913
3790
  # @param Name: 过滤字段名称
@@ -3086,17 +3963,21 @@ module TencentCloud
3086
3963
  # @type Version: String
3087
3964
  # @param TrainingModes: 训练模式
3088
3965
  # @type TrainingModes: Array
3966
+ # @param Environment: 框架运行环境
3967
+ # @type Environment: String
3089
3968
 
3090
- attr_accessor :Version, :TrainingModes
3969
+ attr_accessor :Version, :TrainingModes, :Environment
3091
3970
 
3092
- def initialize(version=nil, trainingmodes=nil)
3971
+ def initialize(version=nil, trainingmodes=nil, environment=nil)
3093
3972
  @Version = version
3094
3973
  @TrainingModes = trainingmodes
3974
+ @Environment = environment
3095
3975
  end
3096
3976
 
3097
3977
  def deserialize(params)
3098
3978
  @Version = params['Version']
3099
3979
  @TrainingModes = params['TrainingModes']
3980
+ @Environment = params['Environment']
3100
3981
  end
3101
3982
  end
3102
3983
 
@@ -3179,6 +4060,40 @@ module TencentCloud
3179
4060
  end
3180
4061
  end
3181
4062
 
4063
+ # hpa的描述
4064
+ class HorizontalPodAutoscaler < TencentCloud::Common::AbstractModel
4065
+ # @param MinReplicas: 最小实例数
4066
+ # 注意:此字段可能返回 null,表示取不到有效值。
4067
+ # @type MinReplicas: Integer
4068
+ # @param MaxReplicas: 最大实例数
4069
+ # 注意:此字段可能返回 null,表示取不到有效值。
4070
+ # @type MaxReplicas: Integer
4071
+ # @param HpaMetrics: 扩缩容指标
4072
+ # 注意:此字段可能返回 null,表示取不到有效值。
4073
+ # @type HpaMetrics: Array
4074
+
4075
+ attr_accessor :MinReplicas, :MaxReplicas, :HpaMetrics
4076
+
4077
+ def initialize(minreplicas=nil, maxreplicas=nil, hpametrics=nil)
4078
+ @MinReplicas = minreplicas
4079
+ @MaxReplicas = maxreplicas
4080
+ @HpaMetrics = hpametrics
4081
+ end
4082
+
4083
+ def deserialize(params)
4084
+ @MinReplicas = params['MinReplicas']
4085
+ @MaxReplicas = params['MaxReplicas']
4086
+ unless params['HpaMetrics'].nil?
4087
+ @HpaMetrics = []
4088
+ params['HpaMetrics'].each do |i|
4089
+ option_tmp = Option.new
4090
+ option_tmp.deserialize(i)
4091
+ @HpaMetrics << option_tmp
4092
+ end
4093
+ end
4094
+ end
4095
+ end
4096
+
3182
4097
  # 镜像描述信息
3183
4098
  class ImageInfo < TencentCloud::Common::AbstractModel
3184
4099
  # @param ImageType: 镜像类型:TCR为腾讯云TCR镜像; CCR为腾讯云TCR个人版镜像,PreSet为平台预置镜像
@@ -3209,6 +4124,43 @@ module TencentCloud
3209
4124
  end
3210
4125
  end
3211
4126
 
4127
+ # 服务的调用信息,服务组下唯一
4128
+ class InferGatewayCallInfo < TencentCloud::Common::AbstractModel
4129
+ # @param VpcHttpAddr: 内网http调用地址
4130
+ # 注意:此字段可能返回 null,表示取不到有效值。
4131
+ # @type VpcHttpAddr: String
4132
+ # @param VpcHttpsAddr: 内网https调用地址
4133
+ # 注意:此字段可能返回 null,表示取不到有效值。
4134
+ # @type VpcHttpsAddr: String
4135
+ # @param VpcGrpcTlsAddr: 内网grpc调用地址
4136
+ # 注意:此字段可能返回 null,表示取不到有效值。
4137
+ # @type VpcGrpcTlsAddr: String
4138
+ # @param VpcId: 可访问的vpcid
4139
+ # 注意:此字段可能返回 null,表示取不到有效值。
4140
+ # @type VpcId: String
4141
+ # @param SubnetId: 后端ip对应的子网
4142
+ # 注意:此字段可能返回 null,表示取不到有效值。
4143
+ # @type SubnetId: String
4144
+
4145
+ attr_accessor :VpcHttpAddr, :VpcHttpsAddr, :VpcGrpcTlsAddr, :VpcId, :SubnetId
4146
+
4147
+ def initialize(vpchttpaddr=nil, vpchttpsaddr=nil, vpcgrpctlsaddr=nil, vpcid=nil, subnetid=nil)
4148
+ @VpcHttpAddr = vpchttpaddr
4149
+ @VpcHttpsAddr = vpchttpsaddr
4150
+ @VpcGrpcTlsAddr = vpcgrpctlsaddr
4151
+ @VpcId = vpcid
4152
+ @SubnetId = subnetid
4153
+ end
4154
+
4155
+ def deserialize(params)
4156
+ @VpcHttpAddr = params['VpcHttpAddr']
4157
+ @VpcHttpsAddr = params['VpcHttpsAddr']
4158
+ @VpcGrpcTlsAddr = params['VpcGrpcTlsAddr']
4159
+ @VpcId = params['VpcId']
4160
+ @SubnetId = params['SubnetId']
4161
+ end
4162
+ end
4163
+
3212
4164
  # 推理镜像详情
3213
4165
  class InferTemplate < TencentCloud::Common::AbstractModel
3214
4166
  # @param InferTemplateId: 模板ID
@@ -3504,6 +4456,57 @@ module TencentCloud
3504
4456
  end
3505
4457
  end
3506
4458
 
4459
+ # ModifyServiceGroupWeights请求参数结构体
4460
+ class ModifyServiceGroupWeightsRequest < TencentCloud::Common::AbstractModel
4461
+ # @param ServiceGroupId: 服务组id
4462
+ # @type ServiceGroupId: String
4463
+ # @param Weights: 权重设置
4464
+ # @type Weights: Array
4465
+
4466
+ attr_accessor :ServiceGroupId, :Weights
4467
+
4468
+ def initialize(servicegroupid=nil, weights=nil)
4469
+ @ServiceGroupId = servicegroupid
4470
+ @Weights = weights
4471
+ end
4472
+
4473
+ def deserialize(params)
4474
+ @ServiceGroupId = params['ServiceGroupId']
4475
+ unless params['Weights'].nil?
4476
+ @Weights = []
4477
+ params['Weights'].each do |i|
4478
+ weightentry_tmp = WeightEntry.new
4479
+ weightentry_tmp.deserialize(i)
4480
+ @Weights << weightentry_tmp
4481
+ end
4482
+ end
4483
+ end
4484
+ end
4485
+
4486
+ # ModifyServiceGroupWeights返回参数结构体
4487
+ class ModifyServiceGroupWeightsResponse < TencentCloud::Common::AbstractModel
4488
+ # @param ServiceGroup: 更新权重后的服务组信息
4489
+ # 注意:此字段可能返回 null,表示取不到有效值。
4490
+ # @type ServiceGroup: :class:`Tencentcloud::Tione.v20211111.models.ServiceGroup`
4491
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4492
+ # @type RequestId: String
4493
+
4494
+ attr_accessor :ServiceGroup, :RequestId
4495
+
4496
+ def initialize(servicegroup=nil, requestid=nil)
4497
+ @ServiceGroup = servicegroup
4498
+ @RequestId = requestid
4499
+ end
4500
+
4501
+ def deserialize(params)
4502
+ unless params['ServiceGroup'].nil?
4503
+ @ServiceGroup = ServiceGroup.new
4504
+ @ServiceGroup.deserialize(params['ServiceGroup'])
4505
+ end
4506
+ @RequestId = params['RequestId']
4507
+ end
4508
+ end
4509
+
3507
4510
  # OCR场景标签列表
3508
4511
  class OcrLabelInfo < TencentCloud::Common::AbstractModel
3509
4512
  # @param Points: 坐标点围起来的框
@@ -3563,6 +4566,26 @@ module TencentCloud
3563
4566
  end
3564
4567
  end
3565
4568
 
4569
+ # 键值对
4570
+ class Option < TencentCloud::Common::AbstractModel
4571
+ # @param Name: 指标名
4572
+ # @type Name: String
4573
+ # @param Value: 指标值
4574
+ # @type Value: Integer
4575
+
4576
+ attr_accessor :Name, :Value
4577
+
4578
+ def initialize(name=nil, value=nil)
4579
+ @Name = name
4580
+ @Value = value
4581
+ end
4582
+
4583
+ def deserialize(params)
4584
+ @Name = params['Name']
4585
+ @Value = params['Value']
4586
+ end
4587
+ end
4588
+
3566
4589
  # 点信息描述
3567
4590
  class PointInfo < TencentCloud::Common::AbstractModel
3568
4591
  # @param X: X坐标值
@@ -3784,7 +4807,7 @@ module TencentCloud
3784
4807
  # 例2 实例的机型带有4张gpu整卡, 每张卡对应1张实际T4卡, 则 此时 GpuType=T4, Gpu=400, RealGpu=400.
3785
4808
  # 注意:此字段可能返回 null,表示取不到有效值。
3786
4809
  # @type Gpu: Integer
3787
- # @param GpuType: Gpu卡型号 T4或者V100
4810
+ # @param GpuType: Gpu卡型号 T4或者V100。仅展示当前 GPU 卡型号,若存在多类型同时使用,则参考 RealGpuDetailSet 的值。
3788
4811
  # 注意:此字段可能返回 null,表示取不到有效值。
3789
4812
  # @type GpuType: String
3790
4813
  # @param RealGpu: 创建或更新时无需填写,仅展示需要关注
@@ -3792,15 +4815,19 @@ module TencentCloud
3792
4815
  # RealGpu=100表示实际使用了一张gpu卡, 对应实际的实例机型, 有可能代表带有1/4卡的实例4个, 或者带有1/2卡的实例2个, 或者带有1卡的实力1个.
3793
4816
  # 注意:此字段可能返回 null,表示取不到有效值。
3794
4817
  # @type RealGpu: Integer
4818
+ # @param RealGpuDetailSet: 创建或更新时无需填写,仅展示需要关注。详细的GPU使用信息。
4819
+ # 注意:此字段可能返回 null,表示取不到有效值。
4820
+ # @type RealGpuDetailSet: Array
3795
4821
 
3796
- attr_accessor :Cpu, :Memory, :Gpu, :GpuType, :RealGpu
4822
+ attr_accessor :Cpu, :Memory, :Gpu, :GpuType, :RealGpu, :RealGpuDetailSet
3797
4823
 
3798
- def initialize(cpu=nil, memory=nil, gpu=nil, gputype=nil, realgpu=nil)
4824
+ def initialize(cpu=nil, memory=nil, gpu=nil, gputype=nil, realgpu=nil, realgpudetailset=nil)
3799
4825
  @Cpu = cpu
3800
4826
  @Memory = memory
3801
4827
  @Gpu = gpu
3802
4828
  @GpuType = gputype
3803
4829
  @RealGpu = realgpu
4830
+ @RealGpuDetailSet = realgpudetailset
3804
4831
  end
3805
4832
 
3806
4833
  def deserialize(params)
@@ -3809,6 +4836,14 @@ module TencentCloud
3809
4836
  @Gpu = params['Gpu']
3810
4837
  @GpuType = params['GpuType']
3811
4838
  @RealGpu = params['RealGpu']
4839
+ unless params['RealGpuDetailSet'].nil?
4840
+ @RealGpuDetailSet = []
4841
+ params['RealGpuDetailSet'].each do |i|
4842
+ gpudetail_tmp = GpuDetail.new
4843
+ gpudetail_tmp.deserialize(i)
4844
+ @RealGpuDetailSet << gpudetail_tmp
4845
+ end
4846
+ end
3812
4847
  end
3813
4848
  end
3814
4849
 
@@ -3818,101 +4853,627 @@ module TencentCloud
3818
4853
  # 注意:此字段可能返回 null,表示取不到有效值。
3819
4854
  # @type Values: Array
3820
4855
 
3821
- attr_accessor :Values
4856
+ attr_accessor :Values
4857
+
4858
+ def initialize(values=nil)
4859
+ @Values = values
4860
+ end
4861
+
4862
+ def deserialize(params)
4863
+ unless params['Values'].nil?
4864
+ @Values = []
4865
+ params['Values'].each do |i|
4866
+ rowvalue_tmp = RowValue.new
4867
+ rowvalue_tmp.deserialize(i)
4868
+ @Values << rowvalue_tmp
4869
+ end
4870
+ end
4871
+ end
4872
+ end
4873
+
4874
+ # 文件行信息
4875
+ class RowValue < TencentCloud::Common::AbstractModel
4876
+ # @param Name: 列名
4877
+ # @type Name: String
4878
+ # @param Value: 列值
4879
+ # 注意:此字段可能返回 null,表示取不到有效值。
4880
+ # @type Value: String
4881
+
4882
+ attr_accessor :Name, :Value
4883
+
4884
+ def initialize(name=nil, value=nil)
4885
+ @Name = name
4886
+ @Value = value
4887
+ end
4888
+
4889
+ def deserialize(params)
4890
+ @Name = params['Name']
4891
+ @Value = params['Value']
4892
+ end
4893
+ end
4894
+
4895
+ # 定时的事务和行为
4896
+ class ScheduledAction < TencentCloud::Common::AbstractModel
4897
+ # @param ScheduleStop: 是否要定时停止服务,true or false。true 则 ScheduleStopTime 必填, false 则 ScheduleStopTime 不生效
4898
+ # @type ScheduleStop: Boolean
4899
+ # @param ScheduleStopTime: 要执行定时停止的时间,格式:“2022-01-26 19:46:22”
4900
+ # @type ScheduleStopTime: String
4901
+
4902
+ attr_accessor :ScheduleStop, :ScheduleStopTime
4903
+
4904
+ def initialize(schedulestop=nil, schedulestoptime=nil)
4905
+ @ScheduleStop = schedulestop
4906
+ @ScheduleStopTime = schedulestoptime
4907
+ end
4908
+
4909
+ def deserialize(params)
4910
+ @ScheduleStop = params['ScheduleStop']
4911
+ @ScheduleStopTime = params['ScheduleStopTime']
4912
+ end
4913
+ end
4914
+
4915
+ # 表格数据集表头信息
4916
+ class SchemaInfo < TencentCloud::Common::AbstractModel
4917
+ # @param Name: 长度30字符内
4918
+ # @type Name: String
4919
+ # @param Type: 数据类型
4920
+ # @type Type: String
4921
+
4922
+ attr_accessor :Name, :Type
4923
+
4924
+ def initialize(name=nil, type=nil)
4925
+ @Name = name
4926
+ @Type = type
4927
+ end
4928
+
4929
+ def deserialize(params)
4930
+ @Name = params['Name']
4931
+ @Type = params['Type']
4932
+ end
4933
+ end
4934
+
4935
+ # 图片分割参数信息
4936
+ class SegmentationInfo < TencentCloud::Common::AbstractModel
4937
+ # @param Points: 点坐标数组
4938
+ # 注意:此字段可能返回 null,表示取不到有效值。
4939
+ # @type Points: Array
4940
+ # @param Label: 分割标签
4941
+ # 注意:此字段可能返回 null,表示取不到有效值。
4942
+ # @type Label: String
4943
+ # @param Gray: 灰度值
4944
+ # 注意:此字段可能返回 null,表示取不到有效值。
4945
+ # @type Gray: Integer
4946
+ # @param Color: 颜色
4947
+ # 注意:此字段可能返回 null,表示取不到有效值。
4948
+ # @type Color: String
4949
+
4950
+ attr_accessor :Points, :Label, :Gray, :Color
4951
+
4952
+ def initialize(points=nil, label=nil, gray=nil, color=nil)
4953
+ @Points = points
4954
+ @Label = label
4955
+ @Gray = gray
4956
+ @Color = color
4957
+ end
4958
+
4959
+ def deserialize(params)
4960
+ unless params['Points'].nil?
4961
+ @Points = []
4962
+ params['Points'].each do |i|
4963
+ pointinfo_tmp = PointInfo.new
4964
+ pointinfo_tmp.deserialize(i)
4965
+ @Points << pointinfo_tmp
4966
+ end
4967
+ end
4968
+ @Label = params['Label']
4969
+ @Gray = params['Gray']
4970
+ @Color = params['Color']
4971
+ end
4972
+ end
4973
+
4974
+ # 描述在线服务
4975
+ class Service < TencentCloud::Common::AbstractModel
4976
+ # @param ServiceGroupId: 服务组id
4977
+ # @type ServiceGroupId: String
4978
+ # @param ServiceId: 服务id
4979
+ # @type ServiceId: String
4980
+ # @param ServiceGroupName: 服务组名
4981
+ # @type ServiceGroupName: String
4982
+ # @param ServiceDescription: 服务描述
4983
+ # 注意:此字段可能返回 null,表示取不到有效值。
4984
+ # @type ServiceDescription: String
4985
+ # @param ClusterId: 集群id
4986
+ # 注意:此字段可能返回 null,表示取不到有效值。
4987
+ # @type ClusterId: String
4988
+ # @param Region: 地域
4989
+ # 注意:此字段可能返回 null,表示取不到有效值。
4990
+ # @type Region: String
4991
+ # @param Namespace: 命名空间
4992
+ # 注意:此字段可能返回 null,表示取不到有效值。
4993
+ # @type Namespace: String
4994
+ # @param ChargeType: 付费类型
4995
+ # 注意:此字段可能返回 null,表示取不到有效值。
4996
+ # @type ChargeType: String
4997
+ # @param ResourceGroupId: 后付费资源组id
4998
+ # 注意:此字段可能返回 null,表示取不到有效值。
4999
+ # @type ResourceGroupId: String
5000
+ # @param CreatedBy: 创建者
5001
+ # 注意:此字段可能返回 null,表示取不到有效值。
5002
+ # @type CreatedBy: String
5003
+ # @param CreateTime: 创建时间
5004
+ # 注意:此字段可能返回 null,表示取不到有效值。
5005
+ # @type CreateTime: String
5006
+ # @param UpdateTime: 更新时间
5007
+ # 注意:此字段可能返回 null,表示取不到有效值。
5008
+ # @type UpdateTime: String
5009
+ # @param Uin: 主账号
5010
+ # 注意:此字段可能返回 null,表示取不到有效值。
5011
+ # @type Uin: String
5012
+ # @param SubUin: 子账号
5013
+ # 注意:此字段可能返回 null,表示取不到有效值。
5014
+ # @type SubUin: String
5015
+ # @param AppId: app_id
5016
+ # 注意:此字段可能返回 null,表示取不到有效值。
5017
+ # @type AppId: Integer
5018
+ # @param Version: 版本号
5019
+ # 注意:此字段可能返回 null,表示取不到有效值。
5020
+ # @type Version: String
5021
+ # @param LatestVersion: 服务组下服务的最高版本号
5022
+ # 注意:此字段可能返回 null,表示取不到有效值。
5023
+ # @type LatestVersion: String
5024
+ # @param ServiceInfo: 服务的详细信息
5025
+ # 注意:此字段可能返回 null,表示取不到有效值。
5026
+ # @type ServiceInfo: :class:`Tencentcloud::Tione.v20211111.models.ServiceInfo`
5027
+ # @param BusinessStatus: 服务的业务状态
5028
+ # 注意:此字段可能返回 null,表示取不到有效值。
5029
+ # @type BusinessStatus: String
5030
+ # @param CreateSource: 服务的创建来源 AUTO_ML,DEFAULT
5031
+ # 注意:此字段可能返回 null,表示取不到有效值。
5032
+ # @type CreateSource: String
5033
+ # @param BillingInfo: 费用信息
5034
+ # 注意:此字段可能返回 null,表示取不到有效值。
5035
+ # @type BillingInfo: String
5036
+ # @param Status: 服务状态
5037
+ # 注意:此字段可能返回 null,表示取不到有效值。
5038
+ # @type Status: String
5039
+ # @param Weight: 模型权重
5040
+ # 注意:此字段可能返回 null,表示取不到有效值。
5041
+ # @type Weight: Integer
5042
+ # @param IngressName: 服务所在的 ingress 的 name
5043
+ # 注意:此字段可能返回 null,表示取不到有效值。
5044
+ # @type IngressName: String
5045
+ # @param ServiceLimit: 服务限速限流相关配置
5046
+ # 注意:此字段可能返回 null,表示取不到有效值。
5047
+ # @type ServiceLimit: :class:`Tencentcloud::Tione.v20211111.models.ServiceLimit`
5048
+ # @param ScheduledAction: 定时停止的配置
5049
+ # 注意:此字段可能返回 null,表示取不到有效值。
5050
+ # @type ScheduledAction: :class:`Tencentcloud::Tione.v20211111.models.ScheduledAction`
5051
+
5052
+ attr_accessor :ServiceGroupId, :ServiceId, :ServiceGroupName, :ServiceDescription, :ClusterId, :Region, :Namespace, :ChargeType, :ResourceGroupId, :CreatedBy, :CreateTime, :UpdateTime, :Uin, :SubUin, :AppId, :Version, :LatestVersion, :ServiceInfo, :BusinessStatus, :CreateSource, :BillingInfo, :Status, :Weight, :IngressName, :ServiceLimit, :ScheduledAction
5053
+
5054
+ def initialize(servicegroupid=nil, serviceid=nil, servicegroupname=nil, servicedescription=nil, clusterid=nil, region=nil, namespace=nil, chargetype=nil, resourcegroupid=nil, createdby=nil, createtime=nil, updatetime=nil, uin=nil, subuin=nil, appid=nil, version=nil, latestversion=nil, serviceinfo=nil, businessstatus=nil, createsource=nil, billinginfo=nil, status=nil, weight=nil, ingressname=nil, servicelimit=nil, scheduledaction=nil)
5055
+ @ServiceGroupId = servicegroupid
5056
+ @ServiceId = serviceid
5057
+ @ServiceGroupName = servicegroupname
5058
+ @ServiceDescription = servicedescription
5059
+ @ClusterId = clusterid
5060
+ @Region = region
5061
+ @Namespace = namespace
5062
+ @ChargeType = chargetype
5063
+ @ResourceGroupId = resourcegroupid
5064
+ @CreatedBy = createdby
5065
+ @CreateTime = createtime
5066
+ @UpdateTime = updatetime
5067
+ @Uin = uin
5068
+ @SubUin = subuin
5069
+ @AppId = appid
5070
+ @Version = version
5071
+ @LatestVersion = latestversion
5072
+ @ServiceInfo = serviceinfo
5073
+ @BusinessStatus = businessstatus
5074
+ @CreateSource = createsource
5075
+ @BillingInfo = billinginfo
5076
+ @Status = status
5077
+ @Weight = weight
5078
+ @IngressName = ingressname
5079
+ @ServiceLimit = servicelimit
5080
+ @ScheduledAction = scheduledaction
5081
+ end
5082
+
5083
+ def deserialize(params)
5084
+ @ServiceGroupId = params['ServiceGroupId']
5085
+ @ServiceId = params['ServiceId']
5086
+ @ServiceGroupName = params['ServiceGroupName']
5087
+ @ServiceDescription = params['ServiceDescription']
5088
+ @ClusterId = params['ClusterId']
5089
+ @Region = params['Region']
5090
+ @Namespace = params['Namespace']
5091
+ @ChargeType = params['ChargeType']
5092
+ @ResourceGroupId = params['ResourceGroupId']
5093
+ @CreatedBy = params['CreatedBy']
5094
+ @CreateTime = params['CreateTime']
5095
+ @UpdateTime = params['UpdateTime']
5096
+ @Uin = params['Uin']
5097
+ @SubUin = params['SubUin']
5098
+ @AppId = params['AppId']
5099
+ @Version = params['Version']
5100
+ @LatestVersion = params['LatestVersion']
5101
+ unless params['ServiceInfo'].nil?
5102
+ @ServiceInfo = ServiceInfo.new
5103
+ @ServiceInfo.deserialize(params['ServiceInfo'])
5104
+ end
5105
+ @BusinessStatus = params['BusinessStatus']
5106
+ @CreateSource = params['CreateSource']
5107
+ @BillingInfo = params['BillingInfo']
5108
+ @Status = params['Status']
5109
+ @Weight = params['Weight']
5110
+ @IngressName = params['IngressName']
5111
+ unless params['ServiceLimit'].nil?
5112
+ @ServiceLimit = ServiceLimit.new
5113
+ @ServiceLimit.deserialize(params['ServiceLimit'])
5114
+ end
5115
+ unless params['ScheduledAction'].nil?
5116
+ @ScheduledAction = ScheduledAction.new
5117
+ @ScheduledAction.deserialize(params['ScheduledAction'])
5118
+ end
5119
+ end
5120
+ end
5121
+
5122
+ # 服务的调用信息,服务组下唯一
5123
+ class ServiceCallInfo < TencentCloud::Common::AbstractModel
5124
+ # @param ServiceGroupId: 服务组id
5125
+ # 注意:此字段可能返回 null,表示取不到有效值。
5126
+ # @type ServiceGroupId: String
5127
+ # @param InnerHttpAddr: 内网http调用地址
5128
+ # 注意:此字段可能返回 null,表示取不到有效值。
5129
+ # @type InnerHttpAddr: String
5130
+ # @param InnerHttpsAddr: 内网https调用地址
5131
+ # 注意:此字段可能返回 null,表示取不到有效值。
5132
+ # @type InnerHttpsAddr: String
5133
+ # @param OuterHttpAddr: 内网http调用地址
5134
+ # 注意:此字段可能返回 null,表示取不到有效值。
5135
+ # @type OuterHttpAddr: String
5136
+ # @param OuterHttpsAddr: 内网https调用地址
5137
+ # 注意:此字段可能返回 null,表示取不到有效值。
5138
+ # @type OuterHttpsAddr: String
5139
+ # @param AppKey: 调用key
5140
+ # 注意:此字段可能返回 null,表示取不到有效值。
5141
+ # @type AppKey: String
5142
+ # @param AppSecret: 调用secret
5143
+ # 注意:此字段可能返回 null,表示取不到有效值。
5144
+ # @type AppSecret: String
5145
+
5146
+ attr_accessor :ServiceGroupId, :InnerHttpAddr, :InnerHttpsAddr, :OuterHttpAddr, :OuterHttpsAddr, :AppKey, :AppSecret
5147
+
5148
+ def initialize(servicegroupid=nil, innerhttpaddr=nil, innerhttpsaddr=nil, outerhttpaddr=nil, outerhttpsaddr=nil, appkey=nil, appsecret=nil)
5149
+ @ServiceGroupId = servicegroupid
5150
+ @InnerHttpAddr = innerhttpaddr
5151
+ @InnerHttpsAddr = innerhttpsaddr
5152
+ @OuterHttpAddr = outerhttpaddr
5153
+ @OuterHttpsAddr = outerhttpsaddr
5154
+ @AppKey = appkey
5155
+ @AppSecret = appsecret
5156
+ end
5157
+
5158
+ def deserialize(params)
5159
+ @ServiceGroupId = params['ServiceGroupId']
5160
+ @InnerHttpAddr = params['InnerHttpAddr']
5161
+ @InnerHttpsAddr = params['InnerHttpsAddr']
5162
+ @OuterHttpAddr = params['OuterHttpAddr']
5163
+ @OuterHttpsAddr = params['OuterHttpsAddr']
5164
+ @AppKey = params['AppKey']
5165
+ @AppSecret = params['AppSecret']
5166
+ end
5167
+ end
5168
+
5169
+ # 在线服务一个服务组的信息
5170
+ class ServiceGroup < TencentCloud::Common::AbstractModel
5171
+ # @param ServiceGroupId: 服务组id
5172
+ # @type ServiceGroupId: String
5173
+ # @param ServiceGroupName: 服务组名
5174
+ # @type ServiceGroupName: String
5175
+ # @param CreatedBy: 创建者
5176
+ # @type CreatedBy: String
5177
+ # @param CreateTime: 创建时间
5178
+ # @type CreateTime: String
5179
+ # @param UpdateTime: 更新时间
5180
+ # @type UpdateTime: String
5181
+ # @param Uin: 主账号
5182
+ # @type Uin: String
5183
+ # @param ServiceCount: 服务组下服务总数
5184
+ # 注意:此字段可能返回 null,表示取不到有效值。
5185
+ # @type ServiceCount: Integer
5186
+ # @param RunningServiceCount: 服务组下在运行的服务数量
5187
+ # 注意:此字段可能返回 null,表示取不到有效值。
5188
+ # @type RunningServiceCount: Integer
5189
+ # @param Services: 服务描述
5190
+ # 注意:此字段可能返回 null,表示取不到有效值。
5191
+ # @type Services: Array
5192
+ # @param Status: 服务组状态,与服务一致
5193
+ # CREATING 创建中
5194
+ # CREATE_FAILED 创建失败
5195
+ # Normal 正常运行中
5196
+ # Stopped 已停止
5197
+ # Stopping 停止中
5198
+ # Abnormal 异常
5199
+ # Pending 启动中
5200
+ # Waiting 就绪中
5201
+ # 注意:此字段可能返回 null,表示取不到有效值。
5202
+ # @type Status: String
5203
+ # @param Tags: 服务组标签
5204
+ # 注意:此字段可能返回 null,表示取不到有效值。
5205
+ # @type Tags: Array
5206
+ # @param LatestVersion: 服务组下最高版本
5207
+ # 注意:此字段可能返回 null,表示取不到有效值。
5208
+ # @type LatestVersion: String
5209
+ # @param BusinessStatus: 服务的业务状态
5210
+ # CREATING 创建中
5211
+ # CREATE_FAILED 创建失败
5212
+ # ARREARS_STOP 因欠费被强制停止
5213
+ # BILLING 计费中
5214
+ # WHITELIST_USING 白名单试用中
5215
+ # WHITELIST_STOP 白名单额度不足
5216
+ # 注意:此字段可能返回 null,表示取不到有效值。
5217
+ # @type BusinessStatus: String
5218
+ # @param BillingInfo: 服务的计费信息
5219
+ # 注意:此字段可能返回 null,表示取不到有效值。
5220
+ # @type BillingInfo: String
5221
+ # @param CreateSource: 服务的创建来源
5222
+ # 注意:此字段可能返回 null,表示取不到有效值。
5223
+ # @type CreateSource: String
5224
+ # @param WeightUpdateStatus: 服务组的权重更新状态
5225
+ # UPDATING 更新中
5226
+ # UPDATED 更新成功
5227
+ # UPDATE_FAILED 更新失败
5228
+ # 注意:此字段可能返回 null,表示取不到有效值。
5229
+ # @type WeightUpdateStatus: String
5230
+
5231
+ attr_accessor :ServiceGroupId, :ServiceGroupName, :CreatedBy, :CreateTime, :UpdateTime, :Uin, :ServiceCount, :RunningServiceCount, :Services, :Status, :Tags, :LatestVersion, :BusinessStatus, :BillingInfo, :CreateSource, :WeightUpdateStatus
3822
5232
 
3823
- def initialize(values=nil)
3824
- @Values = values
5233
+ def initialize(servicegroupid=nil, servicegroupname=nil, createdby=nil, createtime=nil, updatetime=nil, uin=nil, servicecount=nil, runningservicecount=nil, services=nil, status=nil, tags=nil, latestversion=nil, businessstatus=nil, billinginfo=nil, createsource=nil, weightupdatestatus=nil)
5234
+ @ServiceGroupId = servicegroupid
5235
+ @ServiceGroupName = servicegroupname
5236
+ @CreatedBy = createdby
5237
+ @CreateTime = createtime
5238
+ @UpdateTime = updatetime
5239
+ @Uin = uin
5240
+ @ServiceCount = servicecount
5241
+ @RunningServiceCount = runningservicecount
5242
+ @Services = services
5243
+ @Status = status
5244
+ @Tags = tags
5245
+ @LatestVersion = latestversion
5246
+ @BusinessStatus = businessstatus
5247
+ @BillingInfo = billinginfo
5248
+ @CreateSource = createsource
5249
+ @WeightUpdateStatus = weightupdatestatus
3825
5250
  end
3826
5251
 
3827
5252
  def deserialize(params)
3828
- unless params['Values'].nil?
3829
- @Values = []
3830
- params['Values'].each do |i|
3831
- rowvalue_tmp = RowValue.new
3832
- rowvalue_tmp.deserialize(i)
3833
- @Values << rowvalue_tmp
5253
+ @ServiceGroupId = params['ServiceGroupId']
5254
+ @ServiceGroupName = params['ServiceGroupName']
5255
+ @CreatedBy = params['CreatedBy']
5256
+ @CreateTime = params['CreateTime']
5257
+ @UpdateTime = params['UpdateTime']
5258
+ @Uin = params['Uin']
5259
+ @ServiceCount = params['ServiceCount']
5260
+ @RunningServiceCount = params['RunningServiceCount']
5261
+ unless params['Services'].nil?
5262
+ @Services = []
5263
+ params['Services'].each do |i|
5264
+ service_tmp = Service.new
5265
+ service_tmp.deserialize(i)
5266
+ @Services << service_tmp
5267
+ end
5268
+ end
5269
+ @Status = params['Status']
5270
+ unless params['Tags'].nil?
5271
+ @Tags = []
5272
+ params['Tags'].each do |i|
5273
+ tag_tmp = Tag.new
5274
+ tag_tmp.deserialize(i)
5275
+ @Tags << tag_tmp
3834
5276
  end
3835
5277
  end
5278
+ @LatestVersion = params['LatestVersion']
5279
+ @BusinessStatus = params['BusinessStatus']
5280
+ @BillingInfo = params['BillingInfo']
5281
+ @CreateSource = params['CreateSource']
5282
+ @WeightUpdateStatus = params['WeightUpdateStatus']
3836
5283
  end
3837
5284
  end
3838
5285
 
3839
- # 文件行信息
3840
- class RowValue < TencentCloud::Common::AbstractModel
3841
- # @param Name: 列名
3842
- # @type Name: String
3843
- # @param Value: 列值
5286
+ # 服务历史版本
5287
+ class ServiceHistory < TencentCloud::Common::AbstractModel
5288
+ # @param Revision: 版本
3844
5289
  # 注意:此字段可能返回 null,表示取不到有效值。
3845
- # @type Value: String
5290
+ # @type Revision: String
5291
+ # @param UpdateTime: 更新时间
5292
+ # 注意:此字段可能返回 null,表示取不到有效值。
5293
+ # @type UpdateTime: String
5294
+ # @param Image: 镜像
5295
+ # 注意:此字段可能返回 null,表示取不到有效值。
5296
+ # @type Image: String
5297
+ # @param ModelFile: 模型文件
5298
+ # 注意:此字段可能返回 null,表示取不到有效值。
5299
+ # @type ModelFile: String
5300
+ # @param RawData: 原始数据
5301
+ # 注意:此字段可能返回 null,表示取不到有效值。
5302
+ # @type RawData: String
3846
5303
 
3847
- attr_accessor :Name, :Value
5304
+ attr_accessor :Revision, :UpdateTime, :Image, :ModelFile, :RawData
3848
5305
 
3849
- def initialize(name=nil, value=nil)
3850
- @Name = name
3851
- @Value = value
5306
+ def initialize(revision=nil, updatetime=nil, image=nil, modelfile=nil, rawdata=nil)
5307
+ @Revision = revision
5308
+ @UpdateTime = updatetime
5309
+ @Image = image
5310
+ @ModelFile = modelfile
5311
+ @RawData = rawdata
3852
5312
  end
3853
5313
 
3854
5314
  def deserialize(params)
3855
- @Name = params['Name']
3856
- @Value = params['Value']
5315
+ @Revision = params['Revision']
5316
+ @UpdateTime = params['UpdateTime']
5317
+ @Image = params['Image']
5318
+ @ModelFile = params['ModelFile']
5319
+ @RawData = params['RawData']
3857
5320
  end
3858
5321
  end
3859
5322
 
3860
- # 表格数据集表头信息
3861
- class SchemaInfo < TencentCloud::Common::AbstractModel
3862
- # @param Name: 长度30字符内
3863
- # @type Name: String
3864
- # @param Type: 数据类型
3865
- # @type Type: String
5323
+ # 推理服务在集群中的信息
5324
+ class ServiceInfo < TencentCloud::Common::AbstractModel
5325
+ # @param Replicas: 期望运行的Pod数量,停止状态是0
5326
+ # 不同计费模式和调节模式下对应关系如下
5327
+ # PREPAID 和 POSTPAID_BY_HOUR:
5328
+ # 手动调节模式下对应 实例数量
5329
+ # 自动调节模式下对应 基于时间的默认策略的实例数量
5330
+ # HYBRID_PAID:
5331
+ # 后付费实例手动调节模式下对应 实例数量
5332
+ # 后付费实例自动调节模式下对应 时间策略的默认策略的实例数量
5333
+ # 注意:此字段可能返回 null,表示取不到有效值。
5334
+ # @type Replicas: Integer
5335
+ # @param ImageInfo: 镜像信息
5336
+ # 注意:此字段可能返回 null,表示取不到有效值。
5337
+ # @type ImageInfo: :class:`Tencentcloud::Tione.v20211111.models.ImageInfo`
5338
+ # @param Env: 环境变量
5339
+ # 注意:此字段可能返回 null,表示取不到有效值。
5340
+ # @type Env: Array
5341
+ # @param Resources: 资源信息
5342
+ # 注意:此字段可能返回 null,表示取不到有效值。
5343
+ # @type Resources: :class:`Tencentcloud::Tione.v20211111.models.ResourceInfo`
5344
+ # @param InstanceType: 后付费实例对应的机型规格
5345
+ # 注意:此字段可能返回 null,表示取不到有效值。
5346
+ # @type InstanceType: String
5347
+ # @param ModelInfo: 模型信息
5348
+ # 注意:此字段可能返回 null,表示取不到有效值。
5349
+ # @type ModelInfo: :class:`Tencentcloud::Tione.v20211111.models.ModelInfo`
5350
+ # @param LogEnable: 是否启用日志
5351
+ # 注意:此字段可能返回 null,表示取不到有效值。
5352
+ # @type LogEnable: Boolean
5353
+ # @param LogConfig: 日志配置
5354
+ # 注意:此字段可能返回 null,表示取不到有效值。
5355
+ # @type LogConfig: :class:`Tencentcloud::Tione.v20211111.models.LogConfig`
5356
+ # @param AuthorizationEnable: 是否开启鉴权
5357
+ # 注意:此字段可能返回 null,表示取不到有效值。
5358
+ # @type AuthorizationEnable: Boolean
5359
+ # @param HorizontalPodAutoscaler: hpa配置
5360
+ # 注意:此字段可能返回 null,表示取不到有效值。
5361
+ # @type HorizontalPodAutoscaler: :class:`Tencentcloud::Tione.v20211111.models.HorizontalPodAutoscaler`
5362
+ # @param Status: 服务的状态描述
5363
+ # 注意:此字段可能返回 null,表示取不到有效值。
5364
+ # @type Status: :class:`Tencentcloud::Tione.v20211111.models.WorkloadStatus`
5365
+ # @param Weight: 权重
5366
+ # 注意:此字段可能返回 null,表示取不到有效值。
5367
+ # @type Weight: Integer
5368
+ # @param PodList: 实例列表
5369
+ # 注意:此字段可能返回 null,表示取不到有效值。
5370
+ # @type PodList: Array
5371
+ # @param ResourceTotal: 资源总量
5372
+ # 注意:此字段可能返回 null,表示取不到有效值。
5373
+ # @type ResourceTotal: :class:`Tencentcloud::Tione.v20211111.models.ResourceInfo`
5374
+ # @param OldReplicas: 历史实例数
5375
+ # 注意:此字段可能返回 null,表示取不到有效值。
5376
+ # @type OldReplicas: Integer
5377
+ # @param HybridBillingPrepaidReplicas: 计费模式[HYBRID_PAID]时生效, 用于标识混合计费模式下的预付费实例数, 若不填则默认为1
5378
+ # 注意:此字段可能返回 null,表示取不到有效值。
5379
+ # @type HybridBillingPrepaidReplicas: Integer
5380
+ # @param OldHybridBillingPrepaidReplicas: 历史 HYBRID_PAID 时的实例数,用户恢复服务
5381
+ # 注意:此字段可能返回 null,表示取不到有效值。
5382
+ # @type OldHybridBillingPrepaidReplicas: Integer
5383
+ # @param ModelHotUpdateEnable: 是否开启模型的热更新。默认不开启
5384
+ # 注意:此字段可能返回 null,表示取不到有效值。
5385
+ # @type ModelHotUpdateEnable: Boolean
3866
5386
 
3867
- attr_accessor :Name, :Type
5387
+ attr_accessor :Replicas, :ImageInfo, :Env, :Resources, :InstanceType, :ModelInfo, :LogEnable, :LogConfig, :AuthorizationEnable, :HorizontalPodAutoscaler, :Status, :Weight, :PodList, :ResourceTotal, :OldReplicas, :HybridBillingPrepaidReplicas, :OldHybridBillingPrepaidReplicas, :ModelHotUpdateEnable
3868
5388
 
3869
- def initialize(name=nil, type=nil)
3870
- @Name = name
3871
- @Type = type
5389
+ def initialize(replicas=nil, imageinfo=nil, env=nil, resources=nil, instancetype=nil, modelinfo=nil, logenable=nil, logconfig=nil, authorizationenable=nil, horizontalpodautoscaler=nil, status=nil, weight=nil, podlist=nil, resourcetotal=nil, oldreplicas=nil, hybridbillingprepaidreplicas=nil, oldhybridbillingprepaidreplicas=nil, modelhotupdateenable=nil)
5390
+ @Replicas = replicas
5391
+ @ImageInfo = imageinfo
5392
+ @Env = env
5393
+ @Resources = resources
5394
+ @InstanceType = instancetype
5395
+ @ModelInfo = modelinfo
5396
+ @LogEnable = logenable
5397
+ @LogConfig = logconfig
5398
+ @AuthorizationEnable = authorizationenable
5399
+ @HorizontalPodAutoscaler = horizontalpodautoscaler
5400
+ @Status = status
5401
+ @Weight = weight
5402
+ @PodList = podlist
5403
+ @ResourceTotal = resourcetotal
5404
+ @OldReplicas = oldreplicas
5405
+ @HybridBillingPrepaidReplicas = hybridbillingprepaidreplicas
5406
+ @OldHybridBillingPrepaidReplicas = oldhybridbillingprepaidreplicas
5407
+ @ModelHotUpdateEnable = modelhotupdateenable
3872
5408
  end
3873
5409
 
3874
5410
  def deserialize(params)
3875
- @Name = params['Name']
3876
- @Type = params['Type']
5411
+ @Replicas = params['Replicas']
5412
+ unless params['ImageInfo'].nil?
5413
+ @ImageInfo = ImageInfo.new
5414
+ @ImageInfo.deserialize(params['ImageInfo'])
5415
+ end
5416
+ unless params['Env'].nil?
5417
+ @Env = []
5418
+ params['Env'].each do |i|
5419
+ envvar_tmp = EnvVar.new
5420
+ envvar_tmp.deserialize(i)
5421
+ @Env << envvar_tmp
5422
+ end
5423
+ end
5424
+ unless params['Resources'].nil?
5425
+ @Resources = ResourceInfo.new
5426
+ @Resources.deserialize(params['Resources'])
5427
+ end
5428
+ @InstanceType = params['InstanceType']
5429
+ unless params['ModelInfo'].nil?
5430
+ @ModelInfo = ModelInfo.new
5431
+ @ModelInfo.deserialize(params['ModelInfo'])
5432
+ end
5433
+ @LogEnable = params['LogEnable']
5434
+ unless params['LogConfig'].nil?
5435
+ @LogConfig = LogConfig.new
5436
+ @LogConfig.deserialize(params['LogConfig'])
5437
+ end
5438
+ @AuthorizationEnable = params['AuthorizationEnable']
5439
+ unless params['HorizontalPodAutoscaler'].nil?
5440
+ @HorizontalPodAutoscaler = HorizontalPodAutoscaler.new
5441
+ @HorizontalPodAutoscaler.deserialize(params['HorizontalPodAutoscaler'])
5442
+ end
5443
+ unless params['Status'].nil?
5444
+ @Status = WorkloadStatus.new
5445
+ @Status.deserialize(params['Status'])
5446
+ end
5447
+ @Weight = params['Weight']
5448
+ @PodList = params['PodList']
5449
+ unless params['ResourceTotal'].nil?
5450
+ @ResourceTotal = ResourceInfo.new
5451
+ @ResourceTotal.deserialize(params['ResourceTotal'])
5452
+ end
5453
+ @OldReplicas = params['OldReplicas']
5454
+ @HybridBillingPrepaidReplicas = params['HybridBillingPrepaidReplicas']
5455
+ @OldHybridBillingPrepaidReplicas = params['OldHybridBillingPrepaidReplicas']
5456
+ @ModelHotUpdateEnable = params['ModelHotUpdateEnable']
3877
5457
  end
3878
5458
  end
3879
5459
 
3880
- # 图片分割参数信息
3881
- class SegmentationInfo < TencentCloud::Common::AbstractModel
3882
- # @param Points: 点坐标数组
3883
- # 注意:此字段可能返回 null,表示取不到有效值。
3884
- # @type Points: Array
3885
- # @param Label: 分割标签
3886
- # 注意:此字段可能返回 null,表示取不到有效值。
3887
- # @type Label: String
3888
- # @param Gray: 灰度值
3889
- # 注意:此字段可能返回 null,表示取不到有效值。
3890
- # @type Gray: Integer
3891
- # @param Color: 颜色
3892
- # 注意:此字段可能返回 null,表示取不到有效值。
3893
- # @type Color: String
5460
+ # 服务的限流限速等配置
5461
+ class ServiceLimit < TencentCloud::Common::AbstractModel
5462
+ # @param EnableInstanceRpsLimit: 是否开启实例层面限流限速,true or false。true 则 InstanceRpsLimit 必填, false 则 InstanceRpsLimit 不生效
5463
+ # @type EnableInstanceRpsLimit: Boolean
5464
+ # @param InstanceRpsLimit: 每个服务实例的 request per second 限速, 0 为不限流
5465
+ # @type InstanceRpsLimit: Integer
3894
5466
 
3895
- attr_accessor :Points, :Label, :Gray, :Color
5467
+ attr_accessor :EnableInstanceRpsLimit, :InstanceRpsLimit
3896
5468
 
3897
- def initialize(points=nil, label=nil, gray=nil, color=nil)
3898
- @Points = points
3899
- @Label = label
3900
- @Gray = gray
3901
- @Color = color
5469
+ def initialize(enableinstancerpslimit=nil, instancerpslimit=nil)
5470
+ @EnableInstanceRpsLimit = enableinstancerpslimit
5471
+ @InstanceRpsLimit = instancerpslimit
3902
5472
  end
3903
5473
 
3904
5474
  def deserialize(params)
3905
- unless params['Points'].nil?
3906
- @Points = []
3907
- params['Points'].each do |i|
3908
- pointinfo_tmp = PointInfo.new
3909
- pointinfo_tmp.deserialize(i)
3910
- @Points << pointinfo_tmp
3911
- end
3912
- end
3913
- @Label = params['Label']
3914
- @Gray = params['Gray']
3915
- @Color = params['Color']
5475
+ @EnableInstanceRpsLimit = params['EnableInstanceRpsLimit']
5476
+ @InstanceRpsLimit = params['InstanceRpsLimit']
3916
5477
  end
3917
5478
  end
3918
5479
 
@@ -4040,6 +5601,43 @@ module TencentCloud
4040
5601
  end
4041
5602
  end
4042
5603
 
5604
+ # 实例状况
5605
+ class StatefulSetCondition < TencentCloud::Common::AbstractModel
5606
+ # @param Message: 信息
5607
+ # 注意:此字段可能返回 null,表示取不到有效值。
5608
+ # @type Message: String
5609
+ # @param Reason: 原因
5610
+ # 注意:此字段可能返回 null,表示取不到有效值。
5611
+ # @type Reason: String
5612
+ # @param Status: Status of the condition, one of True, False, Unknown.
5613
+ # 注意:此字段可能返回 null,表示取不到有效值。
5614
+ # @type Status: String
5615
+ # @param Type: 类型
5616
+ # 注意:此字段可能返回 null,表示取不到有效值。
5617
+ # @type Type: String
5618
+ # @param LastTransitionTime: 上次更新的时间
5619
+ # 注意:此字段可能返回 null,表示取不到有效值。
5620
+ # @type LastTransitionTime: String
5621
+
5622
+ attr_accessor :Message, :Reason, :Status, :Type, :LastTransitionTime
5623
+
5624
+ def initialize(message=nil, reason=nil, status=nil, type=nil, lasttransitiontime=nil)
5625
+ @Message = message
5626
+ @Reason = reason
5627
+ @Status = status
5628
+ @Type = type
5629
+ @LastTransitionTime = lasttransitiontime
5630
+ end
5631
+
5632
+ def deserialize(params)
5633
+ @Message = params['Message']
5634
+ @Reason = params['Reason']
5635
+ @Status = params['Status']
5636
+ @Type = params['Type']
5637
+ @LastTransitionTime = params['LastTransitionTime']
5638
+ end
5639
+ end
5640
+
4043
5641
  # StopBatchTask请求参数结构体
4044
5642
  class StopBatchTaskRequest < TencentCloud::Common::AbstractModel
4045
5643
  # @param BatchTaskId: 跑批任务ID
@@ -4623,9 +6221,9 @@ module TencentCloud
4623
6221
  # @param FrameworkVersion: 训练框架版本
4624
6222
  # 注意:此字段可能返回 null,表示取不到有效值。
4625
6223
  # @type FrameworkVersion: String
4626
- # @param TrainingMode: 训练模式,eg:PS_WORKER、DDP、MPI、HOROVOD
6224
+ # @param FrameworkEnvironment: 框架运行环境
4627
6225
  # 注意:此字段可能返回 null,表示取不到有效值。
4628
- # @type TrainingMode: String
6226
+ # @type FrameworkEnvironment: String
4629
6227
  # @param ChargeType: 计费模式
4630
6228
  # @type ChargeType: String
4631
6229
  # @param ResourceGroupId: 预付费专用资源组
@@ -4636,9 +6234,9 @@ module TencentCloud
4636
6234
  # @param Tags: 标签
4637
6235
  # 注意:此字段可能返回 null,表示取不到有效值。
4638
6236
  # @type Tags: Array
4639
- # @param ImageInfo: 自定义镜像信息
6237
+ # @param TrainingMode: 训练模式,eg:PS_WORKER、DDP、MPI、HOROVOD
4640
6238
  # 注意:此字段可能返回 null,表示取不到有效值。
4641
- # @type ImageInfo: :class:`Tencentcloud::Tione.v20211111.models.ImageInfo`
6239
+ # @type TrainingMode: String
4642
6240
  # @param CodePackagePath: 代码包
4643
6241
  # @type CodePackagePath: :class:`Tencentcloud::Tione.v20211111.models.CosPathInfo`
4644
6242
  # @param StartCmdInfo: 启动命令信息
@@ -4665,8 +6263,9 @@ module TencentCloud
4665
6263
  # @param SubnetId: 子网ID
4666
6264
  # 注意:此字段可能返回 null,表示取不到有效值。
4667
6265
  # @type SubnetId: String
4668
- # @param Status: 任务状态
4669
- # @type Status: String
6266
+ # @param ImageInfo: 自定义镜像信息
6267
+ # 注意:此字段可能返回 null,表示取不到有效值。
6268
+ # @type ImageInfo: :class:`Tencentcloud::Tione.v20211111.models.ImageInfo`
4670
6269
  # @param RuntimeInSeconds: 运行时长
4671
6270
  # 注意:此字段可能返回 null,表示取不到有效值。
4672
6271
  # @type RuntimeInSeconds: Integer
@@ -4703,10 +6302,12 @@ module TencentCloud
4703
6302
  # @param Message: 任务信息
4704
6303
  # 注意:此字段可能返回 null,表示取不到有效值。
4705
6304
  # @type Message: String
6305
+ # @param Status: 任务状态
6306
+ # @type Status: String
4706
6307
 
4707
- attr_accessor :Id, :Name, :Uin, :SubUin, :Region, :FrameworkName, :FrameworkVersion, :TrainingMode, :ChargeType, :ResourceGroupId, :ResourceConfigInfos, :Tags, :ImageInfo, :CodePackagePath, :StartCmdInfo, :DataSource, :DataConfigs, :TuningParameters, :Output, :LogEnable, :LogConfig, :VpcId, :SubnetId, :Status, :RuntimeInSeconds, :CreateTime, :StartTime, :ChargeStatus, :LatestInstanceId, :TensorBoardId, :Remark, :FailureReason, :UpdateTime, :EndTime, :BillingInfo, :ResourceGroupName, :Message
6308
+ attr_accessor :Id, :Name, :Uin, :SubUin, :Region, :FrameworkName, :FrameworkVersion, :FrameworkEnvironment, :ChargeType, :ResourceGroupId, :ResourceConfigInfos, :Tags, :TrainingMode, :CodePackagePath, :StartCmdInfo, :DataSource, :DataConfigs, :TuningParameters, :Output, :LogEnable, :LogConfig, :VpcId, :SubnetId, :ImageInfo, :RuntimeInSeconds, :CreateTime, :StartTime, :ChargeStatus, :LatestInstanceId, :TensorBoardId, :Remark, :FailureReason, :UpdateTime, :EndTime, :BillingInfo, :ResourceGroupName, :Message, :Status
4708
6309
 
4709
- def initialize(id=nil, name=nil, uin=nil, subuin=nil, region=nil, frameworkname=nil, frameworkversion=nil, trainingmode=nil, chargetype=nil, resourcegroupid=nil, resourceconfiginfos=nil, tags=nil, imageinfo=nil, codepackagepath=nil, startcmdinfo=nil, datasource=nil, dataconfigs=nil, tuningparameters=nil, output=nil, logenable=nil, logconfig=nil, vpcid=nil, subnetid=nil, status=nil, runtimeinseconds=nil, createtime=nil, starttime=nil, chargestatus=nil, latestinstanceid=nil, tensorboardid=nil, remark=nil, failurereason=nil, updatetime=nil, endtime=nil, billinginfo=nil, resourcegroupname=nil, message=nil)
6310
+ def initialize(id=nil, name=nil, uin=nil, subuin=nil, region=nil, frameworkname=nil, frameworkversion=nil, frameworkenvironment=nil, chargetype=nil, resourcegroupid=nil, resourceconfiginfos=nil, tags=nil, trainingmode=nil, codepackagepath=nil, startcmdinfo=nil, datasource=nil, dataconfigs=nil, tuningparameters=nil, output=nil, logenable=nil, logconfig=nil, vpcid=nil, subnetid=nil, imageinfo=nil, runtimeinseconds=nil, createtime=nil, starttime=nil, chargestatus=nil, latestinstanceid=nil, tensorboardid=nil, remark=nil, failurereason=nil, updatetime=nil, endtime=nil, billinginfo=nil, resourcegroupname=nil, message=nil, status=nil)
4710
6311
  @Id = id
4711
6312
  @Name = name
4712
6313
  @Uin = uin
@@ -4714,12 +6315,12 @@ module TencentCloud
4714
6315
  @Region = region
4715
6316
  @FrameworkName = frameworkname
4716
6317
  @FrameworkVersion = frameworkversion
4717
- @TrainingMode = trainingmode
6318
+ @FrameworkEnvironment = frameworkenvironment
4718
6319
  @ChargeType = chargetype
4719
6320
  @ResourceGroupId = resourcegroupid
4720
6321
  @ResourceConfigInfos = resourceconfiginfos
4721
6322
  @Tags = tags
4722
- @ImageInfo = imageinfo
6323
+ @TrainingMode = trainingmode
4723
6324
  @CodePackagePath = codepackagepath
4724
6325
  @StartCmdInfo = startcmdinfo
4725
6326
  @DataSource = datasource
@@ -4730,7 +6331,7 @@ module TencentCloud
4730
6331
  @LogConfig = logconfig
4731
6332
  @VpcId = vpcid
4732
6333
  @SubnetId = subnetid
4733
- @Status = status
6334
+ @ImageInfo = imageinfo
4734
6335
  @RuntimeInSeconds = runtimeinseconds
4735
6336
  @CreateTime = createtime
4736
6337
  @StartTime = starttime
@@ -4744,6 +6345,7 @@ module TencentCloud
4744
6345
  @BillingInfo = billinginfo
4745
6346
  @ResourceGroupName = resourcegroupname
4746
6347
  @Message = message
6348
+ @Status = status
4747
6349
  end
4748
6350
 
4749
6351
  def deserialize(params)
@@ -4754,7 +6356,7 @@ module TencentCloud
4754
6356
  @Region = params['Region']
4755
6357
  @FrameworkName = params['FrameworkName']
4756
6358
  @FrameworkVersion = params['FrameworkVersion']
4757
- @TrainingMode = params['TrainingMode']
6359
+ @FrameworkEnvironment = params['FrameworkEnvironment']
4758
6360
  @ChargeType = params['ChargeType']
4759
6361
  @ResourceGroupId = params['ResourceGroupId']
4760
6362
  unless params['ResourceConfigInfos'].nil?
@@ -4773,10 +6375,7 @@ module TencentCloud
4773
6375
  @Tags << tag_tmp
4774
6376
  end
4775
6377
  end
4776
- unless params['ImageInfo'].nil?
4777
- @ImageInfo = ImageInfo.new
4778
- @ImageInfo.deserialize(params['ImageInfo'])
4779
- end
6378
+ @TrainingMode = params['TrainingMode']
4780
6379
  unless params['CodePackagePath'].nil?
4781
6380
  @CodePackagePath = CosPathInfo.new
4782
6381
  @CodePackagePath.deserialize(params['CodePackagePath'])
@@ -4806,7 +6405,10 @@ module TencentCloud
4806
6405
  end
4807
6406
  @VpcId = params['VpcId']
4808
6407
  @SubnetId = params['SubnetId']
4809
- @Status = params['Status']
6408
+ unless params['ImageInfo'].nil?
6409
+ @ImageInfo = ImageInfo.new
6410
+ @ImageInfo.deserialize(params['ImageInfo'])
6411
+ end
4810
6412
  @RuntimeInSeconds = params['RuntimeInSeconds']
4811
6413
  @CreateTime = params['CreateTime']
4812
6414
  @StartTime = params['StartTime']
@@ -4820,6 +6422,7 @@ module TencentCloud
4820
6422
  @BillingInfo = params['BillingInfo']
4821
6423
  @ResourceGroupName = params['ResourceGroupName']
4822
6424
  @Message = params['Message']
6425
+ @Status = params['Status']
4823
6426
  end
4824
6427
  end
4825
6428
 
@@ -4835,9 +6438,9 @@ module TencentCloud
4835
6438
  # @param FrameworkVersion: 训练框架版本
4836
6439
  # 注意:此字段可能返回 null,表示取不到有效值。
4837
6440
  # @type FrameworkVersion: String
4838
- # @param TrainingMode: 训练模式eg:PS_WORKER、DDP、MPI、HOROVOD
6441
+ # @param FrameworkEnvironment: 框架运行环境
4839
6442
  # 注意:此字段可能返回 null,表示取不到有效值。
4840
- # @type TrainingMode: String
6443
+ # @type FrameworkEnvironment: String
4841
6444
  # @param ChargeType: 计费模式
4842
6445
  # @type ChargeType: String
4843
6446
  # @param ChargeStatus: 计费状态,eg:BILLING计费中,ARREARS_STOP欠费停止,NOT_BILLING不在计费中
@@ -4847,9 +6450,9 @@ module TencentCloud
4847
6450
  # @type ResourceGroupId: String
4848
6451
  # @param ResourceConfigInfos: 资源配置
4849
6452
  # @type ResourceConfigInfos: Array
4850
- # @param Tags: 标签配置
6453
+ # @param TrainingMode: 训练模式eg:PS_WORKER、DDP、MPI、HOROVOD
4851
6454
  # 注意:此字段可能返回 null,表示取不到有效值。
4852
- # @type Tags: Array
6455
+ # @type TrainingMode: String
4853
6456
  # @param Status: 任务状态
4854
6457
  # @type Status: String
4855
6458
  # @param RuntimeInSeconds: 运行时长
@@ -4880,20 +6483,23 @@ module TencentCloud
4880
6483
  # @param Message: 任务信息
4881
6484
  # 注意:此字段可能返回 null,表示取不到有效值。
4882
6485
  # @type Message: String
6486
+ # @param Tags: 标签配置
6487
+ # 注意:此字段可能返回 null,表示取不到有效值。
6488
+ # @type Tags: Array
4883
6489
 
4884
- attr_accessor :Id, :Name, :FrameworkName, :FrameworkVersion, :TrainingMode, :ChargeType, :ChargeStatus, :ResourceGroupId, :ResourceConfigInfos, :Tags, :Status, :RuntimeInSeconds, :CreateTime, :StartTime, :EndTime, :Output, :FailureReason, :UpdateTime, :BillingInfo, :ResourceGroupName, :ImageInfo, :Message
6490
+ attr_accessor :Id, :Name, :FrameworkName, :FrameworkVersion, :FrameworkEnvironment, :ChargeType, :ChargeStatus, :ResourceGroupId, :ResourceConfigInfos, :TrainingMode, :Status, :RuntimeInSeconds, :CreateTime, :StartTime, :EndTime, :Output, :FailureReason, :UpdateTime, :BillingInfo, :ResourceGroupName, :ImageInfo, :Message, :Tags
4885
6491
 
4886
- def initialize(id=nil, name=nil, frameworkname=nil, frameworkversion=nil, trainingmode=nil, chargetype=nil, chargestatus=nil, resourcegroupid=nil, resourceconfiginfos=nil, tags=nil, status=nil, runtimeinseconds=nil, createtime=nil, starttime=nil, endtime=nil, output=nil, failurereason=nil, updatetime=nil, billinginfo=nil, resourcegroupname=nil, imageinfo=nil, message=nil)
6492
+ def initialize(id=nil, name=nil, frameworkname=nil, frameworkversion=nil, frameworkenvironment=nil, chargetype=nil, chargestatus=nil, resourcegroupid=nil, resourceconfiginfos=nil, trainingmode=nil, status=nil, runtimeinseconds=nil, createtime=nil, starttime=nil, endtime=nil, output=nil, failurereason=nil, updatetime=nil, billinginfo=nil, resourcegroupname=nil, imageinfo=nil, message=nil, tags=nil)
4887
6493
  @Id = id
4888
6494
  @Name = name
4889
6495
  @FrameworkName = frameworkname
4890
6496
  @FrameworkVersion = frameworkversion
4891
- @TrainingMode = trainingmode
6497
+ @FrameworkEnvironment = frameworkenvironment
4892
6498
  @ChargeType = chargetype
4893
6499
  @ChargeStatus = chargestatus
4894
6500
  @ResourceGroupId = resourcegroupid
4895
6501
  @ResourceConfigInfos = resourceconfiginfos
4896
- @Tags = tags
6502
+ @TrainingMode = trainingmode
4897
6503
  @Status = status
4898
6504
  @RuntimeInSeconds = runtimeinseconds
4899
6505
  @CreateTime = createtime
@@ -4906,6 +6512,7 @@ module TencentCloud
4906
6512
  @ResourceGroupName = resourcegroupname
4907
6513
  @ImageInfo = imageinfo
4908
6514
  @Message = message
6515
+ @Tags = tags
4909
6516
  end
4910
6517
 
4911
6518
  def deserialize(params)
@@ -4913,7 +6520,7 @@ module TencentCloud
4913
6520
  @Name = params['Name']
4914
6521
  @FrameworkName = params['FrameworkName']
4915
6522
  @FrameworkVersion = params['FrameworkVersion']
4916
- @TrainingMode = params['TrainingMode']
6523
+ @FrameworkEnvironment = params['FrameworkEnvironment']
4917
6524
  @ChargeType = params['ChargeType']
4918
6525
  @ChargeStatus = params['ChargeStatus']
4919
6526
  @ResourceGroupId = params['ResourceGroupId']
@@ -4925,14 +6532,7 @@ module TencentCloud
4925
6532
  @ResourceConfigInfos << resourceconfiginfo_tmp
4926
6533
  end
4927
6534
  end
4928
- unless params['Tags'].nil?
4929
- @Tags = []
4930
- params['Tags'].each do |i|
4931
- tag_tmp = Tag.new
4932
- tag_tmp.deserialize(i)
4933
- @Tags << tag_tmp
4934
- end
4935
- end
6535
+ @TrainingMode = params['TrainingMode']
4936
6536
  @Status = params['Status']
4937
6537
  @RuntimeInSeconds = params['RuntimeInSeconds']
4938
6538
  @CreateTime = params['CreateTime']
@@ -4951,6 +6551,109 @@ module TencentCloud
4951
6551
  @ImageInfo.deserialize(params['ImageInfo'])
4952
6552
  end
4953
6553
  @Message = params['Message']
6554
+ unless params['Tags'].nil?
6555
+ @Tags = []
6556
+ params['Tags'].each do |i|
6557
+ tag_tmp = Tag.new
6558
+ tag_tmp.deserialize(i)
6559
+ @Tags << tag_tmp
6560
+ end
6561
+ end
6562
+ end
6563
+ end
6564
+
6565
+ # 外部挂载信息
6566
+ class VolumeMount < TencentCloud::Common::AbstractModel
6567
+ # @param CFSConfig: cfs的配置信息
6568
+ # @type CFSConfig: :class:`Tencentcloud::Tione.v20211111.models.CFSConfig`
6569
+ # @param VolumeSourceType: 挂载源类型
6570
+ # @type VolumeSourceType: String
6571
+
6572
+ attr_accessor :CFSConfig, :VolumeSourceType
6573
+
6574
+ def initialize(cfsconfig=nil, volumesourcetype=nil)
6575
+ @CFSConfig = cfsconfig
6576
+ @VolumeSourceType = volumesourcetype
6577
+ end
6578
+
6579
+ def deserialize(params)
6580
+ unless params['CFSConfig'].nil?
6581
+ @CFSConfig = CFSConfig.new
6582
+ @CFSConfig.deserialize(params['CFSConfig'])
6583
+ end
6584
+ @VolumeSourceType = params['VolumeSourceType']
6585
+ end
6586
+ end
6587
+
6588
+ # 服务的权重
6589
+ class WeightEntry < TencentCloud::Common::AbstractModel
6590
+ # @param ServiceId: 服务id
6591
+ # @type ServiceId: String
6592
+ # @param Weight: 流量权重值,同 ServiceGroup 下 总和应为 100
6593
+ # @type Weight: Integer
6594
+
6595
+ attr_accessor :ServiceId, :Weight
6596
+
6597
+ def initialize(serviceid=nil, weight=nil)
6598
+ @ServiceId = serviceid
6599
+ @Weight = weight
6600
+ end
6601
+
6602
+ def deserialize(params)
6603
+ @ServiceId = params['ServiceId']
6604
+ @Weight = params['Weight']
6605
+ end
6606
+ end
6607
+
6608
+ # 工作负载的状态
6609
+ class WorkloadStatus < TencentCloud::Common::AbstractModel
6610
+ # @param Replicas: 当前实例数
6611
+ # @type Replicas: Integer
6612
+ # @param UpdatedReplicas: 更新的实例数
6613
+ # @type UpdatedReplicas: Integer
6614
+ # @param ReadyReplicas: 就绪的实例数
6615
+ # @type ReadyReplicas: Integer
6616
+ # @param AvailableReplicas: 可用的实例数
6617
+ # @type AvailableReplicas: Integer
6618
+ # @param UnavailableReplicas: 不可用的实例数
6619
+ # @type UnavailableReplicas: Integer
6620
+ # @param Status: Normal 正常运行中
6621
+ # Abnormal 服务异常,例如容器启动失败等
6622
+ # Waiting 服务等待中,例如容器下载镜像过程等
6623
+ # Stopped 已停止
6624
+ # Pending 启动中
6625
+ # Stopping 停止中
6626
+ # @type Status: String
6627
+ # @param StatefulSetCondition: 工作负载的状况信息
6628
+ # @type StatefulSetCondition: Array
6629
+
6630
+ attr_accessor :Replicas, :UpdatedReplicas, :ReadyReplicas, :AvailableReplicas, :UnavailableReplicas, :Status, :StatefulSetCondition
6631
+
6632
+ def initialize(replicas=nil, updatedreplicas=nil, readyreplicas=nil, availablereplicas=nil, unavailablereplicas=nil, status=nil, statefulsetcondition=nil)
6633
+ @Replicas = replicas
6634
+ @UpdatedReplicas = updatedreplicas
6635
+ @ReadyReplicas = readyreplicas
6636
+ @AvailableReplicas = availablereplicas
6637
+ @UnavailableReplicas = unavailablereplicas
6638
+ @Status = status
6639
+ @StatefulSetCondition = statefulsetcondition
6640
+ end
6641
+
6642
+ def deserialize(params)
6643
+ @Replicas = params['Replicas']
6644
+ @UpdatedReplicas = params['UpdatedReplicas']
6645
+ @ReadyReplicas = params['ReadyReplicas']
6646
+ @AvailableReplicas = params['AvailableReplicas']
6647
+ @UnavailableReplicas = params['UnavailableReplicas']
6648
+ @Status = params['Status']
6649
+ unless params['StatefulSetCondition'].nil?
6650
+ @StatefulSetCondition = []
6651
+ params['StatefulSetCondition'].each do |i|
6652
+ statefulsetcondition_tmp = StatefulSetCondition.new
6653
+ statefulsetcondition_tmp.deserialize(i)
6654
+ @StatefulSetCondition << statefulsetcondition_tmp
6655
+ end
6656
+ end
4954
6657
  end
4955
6658
  end
4956
6659