public class ServiceSetting extends AbstractModel
Constructor and Description |
---|
ServiceSetting() |
ServiceSetting(ServiceSetting 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 |
---|---|
Long |
getAccessType()
Get 0:公网, 1:集群内访问, 2:NodePort, 3: VPC 内网访问
注意:此字段可能返回 null,表示取不到有效值。
|
Boolean |
getAllowDeleteService()
Get 当为 true 且 DisableService 也为 true 时,会删除之前创建的 service,请小心使用
注意:此字段可能返回 null,表示取不到有效值。
|
Boolean |
getDisableService()
Get 是否创建 k8s service,默认为 false
注意:此字段可能返回 null,表示取不到有效值。
|
Boolean |
getHeadlessService()
Get service 是否为 headless 类型
注意:此字段可能返回 null,表示取不到有效值。
|
ProtocolPort[] |
getProtocolPorts()
Get 容器端口映射
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getSubnetId()
Get 子网ID
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setAccessType(Long AccessType)
Set 0:公网, 1:集群内访问, 2:NodePort, 3: VPC 内网访问
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setAllowDeleteService(Boolean AllowDeleteService)
Set 当为 true 且 DisableService 也为 true 时,会删除之前创建的 service,请小心使用
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setDisableService(Boolean DisableService)
Set 是否创建 k8s service,默认为 false
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setHeadlessService(Boolean HeadlessService)
Set service 是否为 headless 类型
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setProtocolPorts(ProtocolPort[] ProtocolPorts)
Set 容器端口映射
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setSubnetId(String SubnetId)
Set 子网ID
注意:此字段可能返回 null,表示取不到有效值。
|
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 ServiceSetting()
public ServiceSetting(ServiceSetting source)
public Long getAccessType()
public void setAccessType(Long AccessType)
AccessType
- 0:公网, 1:集群内访问, 2:NodePort, 3: VPC 内网访问
注意:此字段可能返回 null,表示取不到有效值。public ProtocolPort[] getProtocolPorts()
public void setProtocolPorts(ProtocolPort[] ProtocolPorts)
ProtocolPorts
- 容器端口映射
注意:此字段可能返回 null,表示取不到有效值。public String getSubnetId()
public void setSubnetId(String SubnetId)
SubnetId
- 子网ID
注意:此字段可能返回 null,表示取不到有效值。public Boolean getDisableService()
public void setDisableService(Boolean DisableService)
DisableService
- 是否创建 k8s service,默认为 false
注意:此字段可能返回 null,表示取不到有效值。public Boolean getHeadlessService()
public void setHeadlessService(Boolean HeadlessService)
HeadlessService
- service 是否为 headless 类型
注意:此字段可能返回 null,表示取不到有效值。public Boolean getAllowDeleteService()
public void setAllowDeleteService(Boolean AllowDeleteService)
AllowDeleteService
- 当为 true 且 DisableService 也为 true 时,会删除之前创建的 service,请小心使用
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2021. All rights reserved.