public final class Workloads
extends java.lang.Object
implements java.io.Serializable, com.vmware.vapi.bindings.StaticStructure
Workloads
class describes configuration that affects the behavior
and lifecycle of Kubernetes workloads.
Modifier and Type | Class and Description |
---|---|
static class |
Workloads.Builder
Builder class for
Workloads . |
Modifier and Type | Field and Description |
---|---|
protected com.vmware.vapi.data.StructValue |
__dynamicStructureFields |
Modifier | Constructor and Description |
---|---|
|
Workloads()
Default constructor.
|
protected |
Workloads(com.vmware.vapi.data.StructValue __dynamicStructureFields) |
Modifier and Type | Method and Description |
---|---|
<T extends com.vmware.vapi.bindings.Structure> |
_convertTo(java.lang.Class<T> clazz) |
java.lang.String |
_getCanonicalName() |
static java.lang.String |
_getCanonicalTypeName()
Returns the canonical type name.
|
static com.vmware.vapi.bindings.type.StructType |
_getClassType()
WARNING: Internal method, subject to change in future versions.
|
com.vmware.vapi.data.StructValue |
_getDataValue() |
com.vmware.vapi.data.DataValue |
_getDynamicField(java.lang.String fieldName) |
java.util.Set<java.lang.String> |
_getDynamicFieldNames() |
com.vmware.vapi.bindings.type.StructType |
_getType() |
boolean |
_hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz) |
static Workloads |
_newInstance(com.vmware.vapi.data.StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Returns new instance of this binding class and injects the provided data value. WARNING: The returned object is not fully initialized. |
static Workloads |
_newInstance2(com.vmware.vapi.data.StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Serves as a versioning mechanism. |
void |
_setDynamicField(java.lang.String fieldName,
com.vmware.vapi.data.DataValue fieldValue) |
protected void |
_updateDataValue(com.vmware.vapi.data.StructValue structValue) |
void |
_validate() |
boolean |
equals(java.lang.Object obj) |
Edge |
getEdge()
getEdge()
configuration determines how network traffic will enter and leave the
cluster. |
ImageSyncConfig |
getImages()
getImages()
specifies how images will be stored and pulled into the cluster. |
KubeAPIServerOptions |
getKubeAPIServerOptions()
getKubeAPIServerOptions()
declares configuration options for the Kubernetes API Server. |
Network |
getNetwork()
The workloads
getNetwork()
describes configuration for the primary workload network. |
WorkloadsStorageConfig |
getStorage()
getStorage()
specifies which persistent storage is configured and accessible for workloads to
consume. |
int |
hashCode() |
void |
setEdge(Edge edge)
getEdge()
configuration determines how network traffic will enter and leave the
cluster. |
void |
setImages(ImageSyncConfig images)
getImages()
specifies how images will be stored and pulled into the cluster. |
void |
setKubeAPIServerOptions(KubeAPIServerOptions kubeAPIServerOptions)
getKubeAPIServerOptions()
declares configuration options for the Kubernetes API Server. |
void |
setNetwork(Network network)
The workloads
getNetwork()
describes configuration for the primary workload network. |
void |
setStorage(WorkloadsStorageConfig storage)
getStorage()
specifies which persistent storage is configured and accessible for workloads to
consume. |
java.lang.String |
toString() |
protected com.vmware.vapi.data.StructValue __dynamicStructureFields
public Workloads()
protected Workloads(com.vmware.vapi.data.StructValue __dynamicStructureFields)
public Network getNetwork()
The workloads getNetwork()
describes configuration for the primary workload network.
Workloads will communicate with each other and will reach external networks over this network.
The IP ranges configured on this network are managed primarily within Kubernetes.
. This property was added in vSphere API 8.0.0.1.public void setNetwork(Network network)
The workloads getNetwork()
describes configuration for the primary workload network.
Workloads will communicate with each other and will reach external networks over this network.
The IP ranges configured on this network are managed primarily within Kubernetes.
. This property was added in vSphere API 8.0.0.1.network
- New value for the property.public Edge getEdge()
getEdge()
configuration determines how network traffic will enter and leave the
cluster.
The IP ranges configured on this network are managed by the Supervisor and the load balancer.
. This property was added in vSphere API 8.0.0.1.public void setEdge(Edge edge)
getEdge()
configuration determines how network traffic will enter and leave the
cluster.
The IP ranges configured on this network are managed by the Supervisor and the load balancer.
. This property was added in vSphere API 8.0.0.1.edge
- New value for the property.public KubeAPIServerOptions getKubeAPIServerOptions()
getKubeAPIServerOptions()
declares configuration options for the Kubernetes API Server.
null
, the default configuration will be used.public void setKubeAPIServerOptions(KubeAPIServerOptions kubeAPIServerOptions)
getKubeAPIServerOptions()
declares configuration options for the Kubernetes API Server.
null
, the default configuration will be used.kubeAPIServerOptions
- New value for the property.public ImageSyncConfig getImages()
getImages()
specifies how images will be stored and pulled into the cluster.
null
, image sync configuration will default to the settings described
within the ImageSyncConfig
class.public void setImages(ImageSyncConfig images)
getImages()
specifies how images will be stored and pulled into the cluster.
null
, image sync configuration will default to the settings described
within the ImageSyncConfig
class.images
- New value for the property.public WorkloadsStorageConfig getStorage()
getStorage()
specifies which persistent storage is configured and accessible for workloads to
consume. You can configure policies for both images and volumes.
null
, configuration will be copied from the control plane when
possible. If not, some storage features may be unavailable.public void setStorage(WorkloadsStorageConfig storage)
getStorage()
specifies which persistent storage is configured and accessible for workloads to
consume. You can configure policies for both images and volumes.
null
, configuration will be copied from the control plane when
possible. If not, some storage features may be unavailable.storage
- New value for the property.public com.vmware.vapi.bindings.type.StructType _getType()
_getType
in interface com.vmware.vapi.bindings.StaticStructure
public com.vmware.vapi.data.StructValue _getDataValue()
_getDataValue
in interface com.vmware.vapi.bindings.Structure
protected void _updateDataValue(com.vmware.vapi.data.StructValue structValue)
public void _validate()
_validate
in interface com.vmware.vapi.bindings.StaticStructure
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in interface com.vmware.vapi.bindings.StaticStructure
toString
in class java.lang.Object
public boolean _hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz)
_hasTypeNameOf
in interface com.vmware.vapi.bindings.Structure
public <T extends com.vmware.vapi.bindings.Structure> T _convertTo(java.lang.Class<T> clazz)
_convertTo
in interface com.vmware.vapi.bindings.Structure
public void _setDynamicField(java.lang.String fieldName, com.vmware.vapi.data.DataValue fieldValue)
_setDynamicField
in interface com.vmware.vapi.bindings.StaticStructure
public com.vmware.vapi.data.DataValue _getDynamicField(java.lang.String fieldName)
_getDynamicField
in interface com.vmware.vapi.bindings.StaticStructure
public java.util.Set<java.lang.String> _getDynamicFieldNames()
_getDynamicFieldNames
in interface com.vmware.vapi.bindings.StaticStructure
public static com.vmware.vapi.bindings.type.StructType _getClassType()
StructType
instance representing the static bindings
type for this Structure
.public java.lang.String _getCanonicalName()
_getCanonicalName
in interface com.vmware.vapi.bindings.Structure
public static java.lang.String _getCanonicalTypeName()
_getCanonicalName()
.public static Workloads _newInstance(com.vmware.vapi.data.StructValue structValue)
structValue
- the source of the data contained in the binding object. Could
contain more data than fields of this class can describe i.e.
newer version of the binding object. Could be null.StructType
public static Workloads _newInstance2(com.vmware.vapi.data.StructValue structValue)