public class ServiceInfo extends AbstractModel
header, skipSign| Constructor and Description |
|---|
ServiceInfo() |
ServiceInfo(ServiceInfo source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getAuthorizationEnable()
Get Whether to enable authentication.Note: This field may return null, indicating that no valid values can be obtained.
|
String |
getCommand()
Get Service startup command.Note: This field may return null, indicating that no valid values can be obtained.
|
CronScaleJob[] |
getCronScaleJobs()
Get Scheduled scaling task.Note: This field may return null, indicating that no valid values can be obtained.
|
EnvVar[] |
getEnv()
Get Environment variables.Note: This field may return null, indicating that no valid values can be obtained.
|
Boolean |
getGrpcEnable()
Get Whether to enable the gRPC port.
|
HealthProbe |
getHealthProbe()
Get Health probe.
|
HorizontalPodAutoscaler |
getHorizontalPodAutoscaler()
Get HPA configurations.Note: This field may return null, indicating that no valid values can be obtained.
|
Long |
getHybridBillingPrepaidReplicas()
Get This parameter is valid when the billing mode is HYBRID_PAID, and is used to identify the number of prepaid instances in the hybrid billing mode.
|
ImageInfo |
getImageInfo()
Get Image information.Note: This field may return null, indicating that no valid values can be obtained.
|
InferCodeInfo |
getInferCodeInfo()
Get Inference code information.Note: This field may return null, indicating that no valid values can be obtained.
|
String |
getInstanceAlias()
Get Service specification alias.
|
Long |
getInstancePerReplicas()
Get Number of instances per replica.
|
String |
getInstanceType()
Get Type specifications corresponding to the postpaid instance.Note: This field may return null, indicating that no valid values can be obtained.
|
LogConfig |
getLogConfig()
Get Log configurations.Note: This field may return null, indicating that no valid values can be obtained.
|
Boolean |
getLogEnable()
Get Whether to enable logs.Note: This field may return null, indicating that no valid values can be obtained.
|
Boolean |
getModelHotUpdateEnable()
Get Whether to enable hot update for the model.
|
ModelInfo |
getModelInfo()
Get Model information.Note: This field may return null, indicating that no valid values can be obtained.
|
Boolean |
getModelTurboEnable()
Get Whether to enable model acceleration, which is only valid for models in the StableDiffusion (dynamic acceleration) format.Note: This field may return null, indicating that no valid values can be obtained.
|
Long |
getOldHybridBillingPrepaidReplicas()
Get Number of instances during the historical HYBRID_PAID period.
|
Long |
getOldReplicas()
Get Number of historical instances.Note: This field may return null, indicating that no valid values can be obtained.
|
Pod[] |
getPodInfos()
Get Pod list information.Note: This field may return null, indicating that no valid values can be obtained.
|
String[] |
getPodList()
Deprecated.
|
Pod |
getPods()
Deprecated.
|
String[] |
getPreStopCommand()
Get Command executed before the service instance stops.
|
Long |
getReplicas()
Get Expected number of running Pods.
|
ResourceInfo |
getResources()
Get Resource information.Note: This field may return null, indicating that no valid values can be obtained.
|
ResourceInfo |
getResourceTotal()
Get Total resources.Note: This field may return null, indicating that no valid values can be obtained.
|
RollingUpdate |
getRollingUpdate()
Get Rolling update configurations.
|
String |
getScaleMode()
Get Instance quantity adjusting mode.
|
String |
getScaleStrategy()
Get Scheduled scaling policy.Note: This field may return null, indicating that no valid values can be obtained.
|
ScheduledAction |
getScheduledAction()
Get Configurations of the scheduled stop.Note: This field may return null, indicating that no valid values can be obtained.
|
ServiceEIP |
getServiceEIP()
Get Settings of enabling the TI-ONE private network to access external resources.Note: This field may return null, indicating that no valid values can be obtained.
|
ServiceLimit |
getServiceLimit()
Get Configurations related to speed limit and throttling of services.Note: This field may return null, indicating that no valid values can be obtained.
|
Long |
getServicePort()
Get Service port, with the default value of 8501.Note: This field may return null, indicating that no valid values can be obtained.
|
WorkloadStatus |
getStatus()
Get Description of the service status.Note: This field may return null, indicating that no valid values can be obtained.
|
Long |
getTerminationGracePeriodSeconds()
Get Graceful exit time limit of the service, in seconds.
|
VolumeMount |
getVolumeMount()
Get Mounting.Note: This field may return null, indicating that no valid values can be obtained.
|
VolumeMount[] |
getVolumeMounts()
Get Batch data disk mounting configurations.
|
Long |
getWeight()
Get Weight.Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setAuthorizationEnable(Boolean AuthorizationEnable)
Set Whether to enable authentication.Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setCommand(String Command)
Set Service startup command.Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setCronScaleJobs(CronScaleJob[] CronScaleJobs)
Set Scheduled scaling task.Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setEnv(EnvVar[] Env)
Set Environment variables.Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setGrpcEnable(Boolean GrpcEnable)
Set Whether to enable the gRPC port.
|
void |
setHealthProbe(HealthProbe HealthProbe)
Set Health probe.
|
void |
setHorizontalPodAutoscaler(HorizontalPodAutoscaler HorizontalPodAutoscaler)
Set HPA configurations.Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setHybridBillingPrepaidReplicas(Long HybridBillingPrepaidReplicas)
Set This parameter is valid when the billing mode is HYBRID_PAID, and is used to identify the number of prepaid instances in the hybrid billing mode.
|
void |
setImageInfo(ImageInfo ImageInfo)
Set Image information.Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setInferCodeInfo(InferCodeInfo InferCodeInfo)
Set Inference code information.Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setInstanceAlias(String InstanceAlias)
Set Service specification alias.
|
void |
setInstancePerReplicas(Long InstancePerReplicas)
Set Number of instances per replica.
|
void |
setInstanceType(String InstanceType)
Set Type specifications corresponding to the postpaid instance.Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setLogConfig(LogConfig LogConfig)
Set Log configurations.Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setLogEnable(Boolean LogEnable)
Set Whether to enable logs.Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setModelHotUpdateEnable(Boolean ModelHotUpdateEnable)
Set Whether to enable hot update for the model.
|
void |
setModelInfo(ModelInfo ModelInfo)
Set Model information.Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setModelTurboEnable(Boolean ModelTurboEnable)
Set Whether to enable model acceleration, which is only valid for models in the StableDiffusion (dynamic acceleration) format.Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setOldHybridBillingPrepaidReplicas(Long OldHybridBillingPrepaidReplicas)
Set Number of instances during the historical HYBRID_PAID period.
|
void |
setOldReplicas(Long OldReplicas)
Set Number of historical instances.Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setPodInfos(Pod[] PodInfos)
Set Pod list information.Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setPodList(String[] PodList)
Deprecated.
|
void |
setPods(Pod Pods)
Deprecated.
|
void |
setPreStopCommand(String[] PreStopCommand)
Set Command executed before the service instance stops.
|
void |
setReplicas(Long Replicas)
Set Expected number of running Pods.
|
void |
setResources(ResourceInfo Resources)
Set Resource information.Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setResourceTotal(ResourceInfo ResourceTotal)
Set Total resources.Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setRollingUpdate(RollingUpdate RollingUpdate)
Set Rolling update configurations.
|
void |
setScaleMode(String ScaleMode)
Set Instance quantity adjusting mode.
|
void |
setScaleStrategy(String ScaleStrategy)
Set Scheduled scaling policy.Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setScheduledAction(ScheduledAction ScheduledAction)
Set Configurations of the scheduled stop.Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setServiceEIP(ServiceEIP ServiceEIP)
Set Settings of enabling the TI-ONE private network to access external resources.Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setServiceLimit(ServiceLimit ServiceLimit)
Set Configurations related to speed limit and throttling of services.Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setServicePort(Long ServicePort)
Set Service port, with the default value of 8501.Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setStatus(WorkloadStatus Status)
Set Description of the service status.Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setTerminationGracePeriodSeconds(Long TerminationGracePeriodSeconds)
Set Graceful exit time limit of the service, in seconds.
|
void |
setVolumeMount(VolumeMount VolumeMount)
Set Mounting.Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setVolumeMounts(VolumeMount[] VolumeMounts)
Set Batch data disk mounting configurations.
|
void |
setWeight(Long Weight)
Set Weight.Note: This field may return null, indicating that no valid values can be obtained.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic ServiceInfo()
public ServiceInfo(ServiceInfo source)
public Long getReplicas()
public void setReplicas(Long Replicas)
Replicas - Expected number of running Pods. The instance is 0 when the stop status is reached.Corresponding relationships under different billing and scaling modes are as follows.PREPAID and POSTPAID_BY_HOUR:Corresponding number of instances in the manual scaling mode.Corresponding number of instances based on the default time-based policy in the auto-scaling mode.HYBRID_PAID:
Corresponding number of instances for postpaid instances in the manual scaling mode.Corresponding number of instances under the default time-based policy for postpaid instances in the auto-scaling mode.Note: This field may return null, indicating that no valid values can be obtained.public ImageInfo getImageInfo()
public void setImageInfo(ImageInfo ImageInfo)
ImageInfo - Image information.Note: This field may return null, indicating that no valid values can be obtained.public EnvVar[] getEnv()
public void setEnv(EnvVar[] Env)
Env - Environment variables.Note: This field may return null, indicating that no valid values can be obtained.public ResourceInfo getResources()
public void setResources(ResourceInfo Resources)
Resources - Resource information.Note: This field may return null, indicating that no valid values can be obtained.public String getInstanceType()
public void setInstanceType(String InstanceType)
InstanceType - Type specifications corresponding to the postpaid instance.Note: This field may return null, indicating that no valid values can be obtained.public ModelInfo getModelInfo()
public void setModelInfo(ModelInfo ModelInfo)
ModelInfo - Model information.Note: This field may return null, indicating that no valid values can be obtained.public Boolean getLogEnable()
public void setLogEnable(Boolean LogEnable)
LogEnable - Whether to enable logs.Note: This field may return null, indicating that no valid values can be obtained.public LogConfig getLogConfig()
public void setLogConfig(LogConfig LogConfig)
LogConfig - Log configurations.Note: This field may return null, indicating that no valid values can be obtained.public Boolean getAuthorizationEnable()
public void setAuthorizationEnable(Boolean AuthorizationEnable)
AuthorizationEnable - Whether to enable authentication.Note: This field may return null, indicating that no valid values can be obtained.public HorizontalPodAutoscaler getHorizontalPodAutoscaler()
public void setHorizontalPodAutoscaler(HorizontalPodAutoscaler HorizontalPodAutoscaler)
HorizontalPodAutoscaler - HPA configurations.Note: This field may return null, indicating that no valid values can be obtained.public WorkloadStatus getStatus()
public void setStatus(WorkloadStatus Status)
Status - Description of the service status.Note: This field may return null, indicating that no valid values can be obtained.public Long getWeight()
public void setWeight(Long Weight)
Weight - Weight.Note: This field may return null, indicating that no valid values can be obtained.public ResourceInfo getResourceTotal()
public void setResourceTotal(ResourceInfo ResourceTotal)
ResourceTotal - Total resources.Note: This field may return null, indicating that no valid values can be obtained.public Long getOldReplicas()
public void setOldReplicas(Long OldReplicas)
OldReplicas - Number of historical instances.Note: This field may return null, indicating that no valid values can be obtained.public Long getHybridBillingPrepaidReplicas()
public void setHybridBillingPrepaidReplicas(Long HybridBillingPrepaidReplicas)
HybridBillingPrepaidReplicas - This parameter is valid when the billing mode is HYBRID_PAID, and is used to identify the number of prepaid instances in the hybrid billing mode. The default value is 1 if this parameter is left unspecified.Note: This field may return null, indicating that no valid values can be obtained.public Long getOldHybridBillingPrepaidReplicas()
public void setOldHybridBillingPrepaidReplicas(Long OldHybridBillingPrepaidReplicas)
OldHybridBillingPrepaidReplicas - Number of instances during the historical HYBRID_PAID period. The user restores services.Note: This field may return null, indicating that no valid values can be obtained.public Boolean getModelHotUpdateEnable()
public void setModelHotUpdateEnable(Boolean ModelHotUpdateEnable)
ModelHotUpdateEnable - Whether to enable hot update for the model. By default, hot update is disabled.Note: This field may return null, indicating that no valid values can be obtained.public String getInstanceAlias()
public void setInstanceAlias(String InstanceAlias)
InstanceAlias - Service specification alias.public String getScaleMode()
public void setScaleMode(String ScaleMode)
ScaleMode - Instance quantity adjusting mode. Defaults to manual.Supported valid values: AUTO (automatic), MANUAL (manual).Note: This field may return null, indicating that no valid values can be obtained.public CronScaleJob[] getCronScaleJobs()
public void setCronScaleJobs(CronScaleJob[] CronScaleJobs)
CronScaleJobs - Scheduled scaling task.Note: This field may return null, indicating that no valid values can be obtained.public String getScaleStrategy()
public void setScaleStrategy(String ScaleStrategy)
ScaleStrategy - Scheduled scaling policy.Note: This field may return null, indicating that no valid values can be obtained.public ScheduledAction getScheduledAction()
public void setScheduledAction(ScheduledAction ScheduledAction)
ScheduledAction - Configurations of the scheduled stop.Note: This field may return null, indicating that no valid values can be obtained.@Deprecated public String[] getPodList()
@Deprecated public void setPodList(String[] PodList)
PodList - Instance list.Note: This field may return null, indicating that no valid values can be obtained.@Deprecated public Pod getPods()
@Deprecated public void setPods(Pod Pods)
Pods - Pod list information.Note: This field may return null, indicating that no valid values can be obtained.public Pod[] getPodInfos()
public void setPodInfos(Pod[] PodInfos)
PodInfos - Pod list information.Note: This field may return null, indicating that no valid values can be obtained.public ServiceLimit getServiceLimit()
public void setServiceLimit(ServiceLimit ServiceLimit)
ServiceLimit - Configurations related to speed limit and throttling of services.Note: This field may return null, indicating that no valid values can be obtained.public Boolean getModelTurboEnable()
public void setModelTurboEnable(Boolean ModelTurboEnable)
ModelTurboEnable - Whether to enable model acceleration, which is only valid for models in the StableDiffusion (dynamic acceleration) format.Note: This field may return null, indicating that no valid values can be obtained.public VolumeMount getVolumeMount()
public void setVolumeMount(VolumeMount VolumeMount)
VolumeMount - Mounting.Note: This field may return null, indicating that no valid values can be obtained.public InferCodeInfo getInferCodeInfo()
public void setInferCodeInfo(InferCodeInfo InferCodeInfo)
InferCodeInfo - Inference code information.Note: This field may return null, indicating that no valid values can be obtained.public String getCommand()
public void setCommand(String Command)
Command - Service startup command.Note: This field may return null, indicating that no valid values can be obtained.public ServiceEIP getServiceEIP()
public void setServiceEIP(ServiceEIP ServiceEIP)
ServiceEIP - Settings of enabling the TI-ONE private network to access external resources.Note: This field may return null, indicating that no valid values can be obtained.public Long getServicePort()
public void setServicePort(Long ServicePort)
ServicePort - Service port, with the default value of 8501.Note: This field may return null, indicating that no valid values can be obtained.public Long getTerminationGracePeriodSeconds()
public void setTerminationGracePeriodSeconds(Long TerminationGracePeriodSeconds)
TerminationGracePeriodSeconds - Graceful exit time limit of the service, in seconds. Default value: 30. Minimum value: 1.public String[] getPreStopCommand()
public void setPreStopCommand(String[] PreStopCommand)
PreStopCommand - Command executed before the service instance stops. The instance ends after the command execution is completed or after the execution time exceeds the graceful exit time limit.public Boolean getGrpcEnable()
public void setGrpcEnable(Boolean GrpcEnable)
GrpcEnable - Whether to enable the gRPC port.public HealthProbe getHealthProbe()
public void setHealthProbe(HealthProbe HealthProbe)
HealthProbe - Health probe.public RollingUpdate getRollingUpdate()
public void setRollingUpdate(RollingUpdate RollingUpdate)
RollingUpdate - Rolling update configurations.public Long getInstancePerReplicas()
public void setInstancePerReplicas(Long InstancePerReplicas)
InstancePerReplicas - Number of instances per replica. This parameter is valid only when the deployment type is DIST or ROLE. Default value: 1.public VolumeMount[] getVolumeMounts()
public void setVolumeMounts(VolumeMount[] VolumeMounts)
VolumeMounts - Batch data disk mounting configurations.Copyright © 2025. All rights reserved.