lib/v20211111/models.rb in tencentcloud-sdk-tione-3.0.644 vs lib/v20211111/models.rb in tencentcloud-sdk-tione-3.0.645

- old
+ new

@@ -1183,14 +1183,16 @@ # @type CallbackUrl: String # @param ModelTurboEnable: 是否开启模型的加速, 仅对StableDiffusion(动态加速)格式的模型有效。 # @type ModelTurboEnable: Boolean # @param ServiceCategory: 服务分类 # @type ServiceCategory: String + # @param Command: 服务的启动命令 + # @type Command: String - attr_accessor :ServiceGroupId, :ServiceGroupName, :ServiceDescription, :ChargeType, :ResourceGroupId, :ModelInfo, :ImageInfo, :Env, :Resources, :InstanceType, :ScaleMode, :Replicas, :HorizontalPodAutoscaler, :LogEnable, :LogConfig, :AuthorizationEnable, :Tags, :NewVersion, :CronScaleJobs, :ScaleStrategy, :HybridBillingPrepaidReplicas, :CreateSource, :ModelHotUpdateEnable, :ScheduledAction, :VolumeMount, :ServiceLimit, :CallbackUrl, :ModelTurboEnable, :ServiceCategory + attr_accessor :ServiceGroupId, :ServiceGroupName, :ServiceDescription, :ChargeType, :ResourceGroupId, :ModelInfo, :ImageInfo, :Env, :Resources, :InstanceType, :ScaleMode, :Replicas, :HorizontalPodAutoscaler, :LogEnable, :LogConfig, :AuthorizationEnable, :Tags, :NewVersion, :CronScaleJobs, :ScaleStrategy, :HybridBillingPrepaidReplicas, :CreateSource, :ModelHotUpdateEnable, :ScheduledAction, :VolumeMount, :ServiceLimit, :CallbackUrl, :ModelTurboEnable, :ServiceCategory, :Command - def initialize(servicegroupid=nil, servicegroupname=nil, servicedescription=nil, chargetype=nil, resourcegroupid=nil, modelinfo=nil, imageinfo=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, callbackurl=nil, modelturboenable=nil, servicecategory=nil) + def initialize(servicegroupid=nil, servicegroupname=nil, servicedescription=nil, chargetype=nil, resourcegroupid=nil, modelinfo=nil, imageinfo=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, callbackurl=nil, modelturboenable=nil, servicecategory=nil, command=nil) @ServiceGroupId = servicegroupid @ServiceGroupName = servicegroupname @ServiceDescription = servicedescription @ChargeType = chargetype @ResourceGroupId = resourcegroupid @@ -1216,10 +1218,11 @@ @VolumeMount = volumemount @ServiceLimit = servicelimit @CallbackUrl = callbackurl @ModelTurboEnable = modelturboenable @ServiceCategory = servicecategory + @Command = command end def deserialize(params) @ServiceGroupId = params['ServiceGroupId'] @ServiceGroupName = params['ServiceGroupName'] @@ -1293,10 +1296,11 @@ @ServiceLimit.deserialize(params['ServiceLimit']) end @CallbackUrl = params['CallbackUrl'] @ModelTurboEnable = params['ModelTurboEnable'] @ServiceCategory = params['ServiceCategory'] + @Command = params['Command'] end end # CreateModelService返回参数结构体 class CreateModelServiceResponse < TencentCloud::Common::AbstractModel @@ -5471,10 +5475,30 @@ @AllowSaveAllContent = params['AllowSaveAllContent'] @ImageName = params['ImageName'] end end + # 推理代码的信息 + class InferCodeInfo < TencentCloud::Common::AbstractModel + # @param CosPathInfo: 推理代码所在的cos详情 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type CosPathInfo: :class:`Tencentcloud::Tione.v20211111.models.CosPathInfo` + + attr_accessor :CosPathInfo + + def initialize(cospathinfo=nil) + @CosPathInfo = cospathinfo + end + + def deserialize(params) + unless params['CosPathInfo'].nil? + @CosPathInfo = CosPathInfo.new + @CosPathInfo.deserialize(params['CosPathInfo']) + end + end + end + # 服务的调用信息,服务组下唯一 class InferGatewayCallInfo < TencentCloud::Common::AbstractModel # @param VpcHttpAddr: 内网http调用地址 # 注意:此字段可能返回 null,表示取不到有效值。 # @type VpcHttpAddr: String @@ -6183,14 +6207,16 @@ # @type ServiceLimit: :class:`Tencentcloud::Tione.v20211111.models.ServiceLimit` # @param VolumeMount: 挂载配置,目前只支持CFS # @type VolumeMount: :class:`Tencentcloud::Tione.v20211111.models.VolumeMount` # @param ModelTurboEnable: 是否开启模型的加速, 仅对StableDiffusion(动态加速)格式的模型有效。默认不开启 # @type ModelTurboEnable: Boolean + # @param Command: 服务的启动命令 + # @type Command: String - attr_accessor :ServiceId, :ModelInfo, :ImageInfo, :Env, :Resources, :InstanceType, :ScaleMode, :Replicas, :HorizontalPodAutoscaler, :LogEnable, :LogConfig, :ServiceAction, :ServiceDescription, :ScaleStrategy, :CronScaleJobs, :HybridBillingPrepaidReplicas, :ModelHotUpdateEnable, :ScheduledAction, :ServiceLimit, :VolumeMount, :ModelTurboEnable + attr_accessor :ServiceId, :ModelInfo, :ImageInfo, :Env, :Resources, :InstanceType, :ScaleMode, :Replicas, :HorizontalPodAutoscaler, :LogEnable, :LogConfig, :ServiceAction, :ServiceDescription, :ScaleStrategy, :CronScaleJobs, :HybridBillingPrepaidReplicas, :ModelHotUpdateEnable, :ScheduledAction, :ServiceLimit, :VolumeMount, :ModelTurboEnable, :Command - def initialize(serviceid=nil, modelinfo=nil, imageinfo=nil, env=nil, resources=nil, instancetype=nil, scalemode=nil, replicas=nil, horizontalpodautoscaler=nil, logenable=nil, logconfig=nil, serviceaction=nil, servicedescription=nil, scalestrategy=nil, cronscalejobs=nil, hybridbillingprepaidreplicas=nil, modelhotupdateenable=nil, scheduledaction=nil, servicelimit=nil, volumemount=nil, modelturboenable=nil) + def initialize(serviceid=nil, modelinfo=nil, imageinfo=nil, env=nil, resources=nil, instancetype=nil, scalemode=nil, replicas=nil, horizontalpodautoscaler=nil, logenable=nil, logconfig=nil, serviceaction=nil, servicedescription=nil, scalestrategy=nil, cronscalejobs=nil, hybridbillingprepaidreplicas=nil, modelhotupdateenable=nil, scheduledaction=nil, servicelimit=nil, volumemount=nil, modelturboenable=nil, command=nil) @ServiceId = serviceid @ModelInfo = modelinfo @ImageInfo = imageinfo @Env = env @Resources = resources @@ -6208,10 +6234,11 @@ @ModelHotUpdateEnable = modelhotupdateenable @ScheduledAction = scheduledaction @ServiceLimit = servicelimit @VolumeMount = volumemount @ModelTurboEnable = modelturboenable + @Command = command end def deserialize(params) @ServiceId = params['ServiceId'] unless params['ModelInfo'].nil? @@ -6270,10 +6297,11 @@ unless params['VolumeMount'].nil? @VolumeMount = VolumeMount.new @VolumeMount.deserialize(params['VolumeMount']) end @ModelTurboEnable = params['ModelTurboEnable'] + @Command = params['Command'] end end # ModifyModelService返回参数结构体 class ModifyModelServiceResponse < TencentCloud::Common::AbstractModel @@ -8284,14 +8312,23 @@ # 注意:此字段可能返回 null,表示取不到有效值。 # @type ServiceLimit: :class:`Tencentcloud::Tione.v20211111.models.ServiceLimit` # @param ModelTurboEnable: 是否开启模型的加速, 仅对StableDiffusion(动态加速)格式的模型有效。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ModelTurboEnable: Boolean + # @param VolumeMount: 挂载 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type VolumeMount: :class:`Tencentcloud::Tione.v20211111.models.VolumeMount` + # @param InferCodeInfo: 推理代码信息 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type InferCodeInfo: :class:`Tencentcloud::Tione.v20211111.models.InferCodeInfo` + # @param Command: 服务的启动命令 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type Command: String - attr_accessor :Replicas, :ImageInfo, :Env, :Resources, :InstanceType, :ModelInfo, :LogEnable, :LogConfig, :AuthorizationEnable, :HorizontalPodAutoscaler, :Status, :Weight, :PodList, :ResourceTotal, :OldReplicas, :HybridBillingPrepaidReplicas, :OldHybridBillingPrepaidReplicas, :ModelHotUpdateEnable, :ScaleMode, :CronScaleJobs, :ScaleStrategy, :ScheduledAction, :Pods, :PodInfos, :ServiceLimit, :ModelTurboEnable + attr_accessor :Replicas, :ImageInfo, :Env, :Resources, :InstanceType, :ModelInfo, :LogEnable, :LogConfig, :AuthorizationEnable, :HorizontalPodAutoscaler, :Status, :Weight, :PodList, :ResourceTotal, :OldReplicas, :HybridBillingPrepaidReplicas, :OldHybridBillingPrepaidReplicas, :ModelHotUpdateEnable, :ScaleMode, :CronScaleJobs, :ScaleStrategy, :ScheduledAction, :Pods, :PodInfos, :ServiceLimit, :ModelTurboEnable, :VolumeMount, :InferCodeInfo, :Command - 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, scalemode=nil, cronscalejobs=nil, scalestrategy=nil, scheduledaction=nil, pods=nil, podinfos=nil, servicelimit=nil, modelturboenable=nil) + 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, scalemode=nil, cronscalejobs=nil, scalestrategy=nil, scheduledaction=nil, pods=nil, podinfos=nil, servicelimit=nil, modelturboenable=nil, volumemount=nil, infercodeinfo=nil, command=nil) @Replicas = replicas @ImageInfo = imageinfo @Env = env @Resources = resources @InstanceType = instancetype @@ -8314,10 +8351,13 @@ @ScheduledAction = scheduledaction @Pods = pods @PodInfos = podinfos @ServiceLimit = servicelimit @ModelTurboEnable = modelturboenable + @VolumeMount = volumemount + @InferCodeInfo = infercodeinfo + @Command = command end def deserialize(params) @Replicas = params['Replicas'] unless params['ImageInfo'].nil? @@ -8391,10 +8431,19 @@ unless params['ServiceLimit'].nil? @ServiceLimit = ServiceLimit.new @ServiceLimit.deserialize(params['ServiceLimit']) end @ModelTurboEnable = params['ModelTurboEnable'] + unless params['VolumeMount'].nil? + @VolumeMount = VolumeMount.new + @VolumeMount.deserialize(params['VolumeMount']) + end + unless params['InferCodeInfo'].nil? + @InferCodeInfo = InferCodeInfo.new + @InferCodeInfo.deserialize(params['InferCodeInfo']) + end + @Command = params['Command'] end end # 服务的限流限速等配置 class ServiceLimit < TencentCloud::Common::AbstractModel @@ -8599,27 +8648,32 @@ # 注意:此字段可能返回 null,表示取不到有效值。 # @type Type: String # @param LastTransitionTime: 上次更新的时间 # 注意:此字段可能返回 null,表示取不到有效值。 # @type LastTransitionTime: String + # @param LastUpdateTime: 上次更新的时间 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type LastUpdateTime: String - attr_accessor :Message, :Reason, :Status, :Type, :LastTransitionTime + attr_accessor :Message, :Reason, :Status, :Type, :LastTransitionTime, :LastUpdateTime - def initialize(message=nil, reason=nil, status=nil, type=nil, lasttransitiontime=nil) + def initialize(message=nil, reason=nil, status=nil, type=nil, lasttransitiontime=nil, lastupdatetime=nil) @Message = message @Reason = reason @Status = status @Type = type @LastTransitionTime = lasttransitiontime + @LastUpdateTime = lastupdatetime end def deserialize(params) @Message = params['Message'] @Reason = params['Reason'] @Status = params['Status'] @Type = params['Type'] @LastTransitionTime = params['LastTransitionTime'] + @LastUpdateTime = params['LastUpdateTime'] end end # StopBatchTask请求参数结构体 class StopBatchTaskRequest < TencentCloud::Common::AbstractModel @@ -9728,11 +9782,11 @@ # 外部挂载信息 class VolumeMount < TencentCloud::Common::AbstractModel # @param CFSConfig: cfs的配置信息 # @type CFSConfig: :class:`Tencentcloud::Tione.v20211111.models.CFSConfig` - # @param VolumeSourceType: 挂载源类型 + # @param VolumeSourceType: 挂载源类型,CFS、COS,默认为CFS # @type VolumeSourceType: String attr_accessor :CFSConfig, :VolumeSourceType def initialize(cfsconfig=nil, volumesourcetype=nil) @@ -9795,9 +9849,12 @@ # @param Reason: 状态异常时,展示原因 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Reason: String attr_accessor :Replicas, :UpdatedReplicas, :ReadyReplicas, :AvailableReplicas, :UnavailableReplicas, :Status, :StatefulSetCondition, :Conditions, :Reason + extend Gem::Deprecate + deprecate :StatefulSetCondition, :none, 2023, 8 + deprecate :StatefulSetCondition=, :none, 2023, 8 def initialize(replicas=nil, updatedreplicas=nil, readyreplicas=nil, availablereplicas=nil, unavailablereplicas=nil, status=nil, statefulsetcondition=nil, conditions=nil, reason=nil) @Replicas = replicas @UpdatedReplicas = updatedreplicas @ReadyReplicas = readyreplicas