public class K8sService extends AbstractModel
Constructor and Description |
---|
K8sService() |
K8sService(K8sService 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 |
---|---|
String |
getClusterId()
Get k8s集群ID
|
K8sLabel[] |
getExtraLabels()
Get 额外选择的Pod的Label
|
String |
getName()
Get 自定义的服务名字,可选
|
String |
getNamespace()
Get 容器命名空间
|
Long |
getPort()
Get 服务的端口
|
String |
getServiceName()
Get 容器服务的名字
|
Long |
getWeight()
Get 权重
|
void |
setClusterId(String ClusterId)
Set k8s集群ID
|
void |
setExtraLabels(K8sLabel[] ExtraLabels)
Set 额外选择的Pod的Label
|
void |
setName(String Name)
Set 自定义的服务名字,可选
|
void |
setNamespace(String Namespace)
Set 容器命名空间
|
void |
setPort(Long Port)
Set 服务的端口
|
void |
setServiceName(String ServiceName)
Set 容器服务的名字
|
void |
setWeight(Long Weight)
Set 权重
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public K8sService()
public K8sService(K8sService source)
public Long getWeight()
public void setWeight(Long Weight)
Weight
- 权重public String getClusterId()
public void setClusterId(String ClusterId)
ClusterId
- k8s集群IDpublic String getNamespace()
public void setNamespace(String Namespace)
Namespace
- 容器命名空间public String getServiceName()
public void setServiceName(String ServiceName)
ServiceName
- 容器服务的名字public Long getPort()
public void setPort(Long Port)
Port
- 服务的端口public K8sLabel[] getExtraLabels()
public void setExtraLabels(K8sLabel[] ExtraLabels)
ExtraLabels
- 额外选择的Pod的Labelpublic String getName()
public void setName(String Name)
Name
- 自定义的服务名字,可选Copyright © 2023. All rights reserved.