public static final class ClustersTypes.UpdateSpec extends java.lang.Object implements java.io.Serializable, StaticStructure
UpdateSpec
class contains the specification required to update the
configuration on the Cluster. This class is applied partially, and only the
specified fields will replace or modify their existing counterparts.Modifier and Type | Class and Description |
---|---|
static class |
ClustersTypes.UpdateSpec.Builder
Builder class for
ClustersTypes.UpdateSpec . |
Modifier and Type | Field and Description |
---|---|
protected StructValue |
__dynamicStructureFields |
Modifier | Constructor and Description |
---|---|
|
UpdateSpec()
Default constructor.
|
protected |
UpdateSpec(StructValue __dynamicStructureFields) |
Modifier and Type | Method and Description |
---|---|
<T extends Structure> |
_convertTo(java.lang.Class<T> clazz)
Converts this structure into an instance of the provided class structure
if possible.
|
java.lang.String |
_getCanonicalName()
Returns the canonical name of the structure.
|
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.
|
StructValue |
_getDataValue()
Returns this
Structure represented in the dynamic
DataValue model. |
DataValue |
_getDynamicField(java.lang.String fieldName)
Get dynamic filed value.
|
java.util.Set<java.lang.String> |
_getDynamicFieldNames()
Get the names of the dynamic fields in the structure.
|
com.vmware.vapi.bindings.type.StructType |
_getType()
WARNING: Internal method, subject to change in future versions.
|
boolean |
_hasTypeNameOf(java.lang.Class<? extends Structure> clazz)
Checks if the runtime type name of this structure matches the type
represented by the specified binding class.
|
static ClustersTypes.UpdateSpec |
_newInstance(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 ClustersTypes.UpdateSpec |
_newInstance2(StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Serves as a versioning mechanism. |
void |
_setDynamicField(java.lang.String fieldName,
DataValue fieldValue)
Sets a dynamic field value.
|
protected void |
_updateDataValue(StructValue structValue) |
void |
_validate()
Validates the state of the discriminated unions and HasFieldsOf
restrictions (if any) in this Java language binding
Structure . |
boolean |
equals(java.lang.Object obj) |
ClustersTypes.ImageRegistry |
getDefaultImageRegistry()
Default image registry to use when Kubernetes Pod container specification does
not specify it as part of the container image name.
|
java.lang.String |
getDefaultImageRepository()
Default image repository to use when Kubernetes Pod container specification does
not specify it as part of the container image name.
|
java.lang.String |
getDefaultKubernetesServiceContentLibrary()
Identifier of the Content Library which holds the VM Images for vSphere
Kubernetes Service.
|
java.lang.String |
getEphemeralStoragePolicy()
Identifier of storage policy associated with ephemeral disks of all the
Kubernetes Pods in the cluster.
|
ClustersTypes.ImageStorageSpec |
getImageStorage()
Specification for storage to be used for container images.
|
java.lang.String |
getLoginBanner()
Disclaimer to be displayed prior to login via the Kubectl plugin.
|
java.util.List<java.lang.String> |
getMasterDNS()
List of DNS server IP addresses to use on Kubernetes API server, specified in
order of preference.
|
java.util.List<java.lang.String> |
getMasterDNSSearchDomains()
List of domains (for example "vmware.com") to be searched when trying to lookup
a host name on Kubernetes API server, specified in order of preference.
|
java.util.List<java.lang.String> |
getMasterNTPServers()
List of NTP server DNS names or IP addresses to use on Kubernetes API server,
specified in order of preference.
|
java.lang.String |
getMasterStoragePolicy()
Identifier of storage policy associated with Kubernetes API server.
|
ClustersTypes.NCPClusterNetworkUpdateSpec |
getNcpClusterNetworkSpec()
Updated specification for the cluster network configuration.
|
ClustersTypes.NetworkProvider |
getNetworkProvider()
The provider of cluster networking for this vSphere Namespaces cluster.
|
SizingHint |
getSizeHint()
This affects the size and resources allocated to the Kubernetes API server.
|
java.lang.String |
getTlsEndpointCertificate()
Certificate issued for Kubernetes API Server.
|
java.util.List<java.lang.String> |
getWorkerDNS()
List of DNS server IP addresses to use on the worker nodes, specified in order
of preference.
|
java.util.List<java.lang.String> |
getWorkloadNtpServers()
List of NTP server DNS names or IP addresses to use for workloads such as Tanzu
Kubernetes Grid VMs, specified in order of preference.
|
int |
hashCode() |
void |
setDefaultImageRegistry(ClustersTypes.ImageRegistry defaultImageRegistry)
Default image registry to use when Kubernetes Pod container specification does
not specify it as part of the container image name.
|
void |
setDefaultImageRepository(java.lang.String defaultImageRepository)
Default image repository to use when Kubernetes Pod container specification does
not specify it as part of the container image name.
|
void |
setDefaultKubernetesServiceContentLibrary(java.lang.String defaultKubernetesServiceContentLibrary)
Identifier of the Content Library which holds the VM Images for vSphere
Kubernetes Service.
|
void |
setEphemeralStoragePolicy(java.lang.String ephemeralStoragePolicy)
Identifier of storage policy associated with ephemeral disks of all the
Kubernetes Pods in the cluster.
|
void |
setImageStorage(ClustersTypes.ImageStorageSpec imageStorage)
Specification for storage to be used for container images.
|
void |
setLoginBanner(java.lang.String loginBanner)
Disclaimer to be displayed prior to login via the Kubectl plugin.
|
void |
setMasterDNS(java.util.List<java.lang.String> masterDNS)
List of DNS server IP addresses to use on Kubernetes API server, specified in
order of preference.
|
void |
setMasterDNSSearchDomains(java.util.List<java.lang.String> masterDNSSearchDomains)
List of domains (for example "vmware.com") to be searched when trying to lookup
a host name on Kubernetes API server, specified in order of preference.
|
void |
setMasterNTPServers(java.util.List<java.lang.String> masterNTPServers)
List of NTP server DNS names or IP addresses to use on Kubernetes API server,
specified in order of preference.
|
void |
setMasterStoragePolicy(java.lang.String masterStoragePolicy)
Identifier of storage policy associated with Kubernetes API server.
|
void |
setNcpClusterNetworkSpec(ClustersTypes.NCPClusterNetworkUpdateSpec ncpClusterNetworkSpec)
Updated specification for the cluster network configuration.
|
void |
setNetworkProvider(ClustersTypes.NetworkProvider networkProvider)
The provider of cluster networking for this vSphere Namespaces cluster.
|
void |
setSizeHint(SizingHint sizeHint)
This affects the size and resources allocated to the Kubernetes API server.
|
void |
setTlsEndpointCertificate(java.lang.String tlsEndpointCertificate)
Certificate issued for Kubernetes API Server.
|
void |
setWorkerDNS(java.util.List<java.lang.String> workerDNS)
List of DNS server IP addresses to use on the worker nodes, specified in order
of preference.
|
void |
setWorkloadNtpServers(java.util.List<java.lang.String> workloadNtpServers)
List of NTP server DNS names or IP addresses to use for workloads such as Tanzu
Kubernetes Grid VMs, specified in order of preference.
|
java.lang.String |
toString()
Returns a string representation of this structure.
|
protected StructValue __dynamicStructureFields
public UpdateSpec()
protected UpdateSpec(StructValue __dynamicStructureFields)
public SizingHint getSizeHint()
null
, size and resources allocated to Kubernetes API server will not
be modified.public void setSizeHint(SizingHint sizeHint)
null
, size and resources allocated to Kubernetes API server will not
be modified.sizeHint
- New value for the property.public ClustersTypes.NetworkProvider getNetworkProvider()
null
, the existing effective cluster network specification will not
be modified.public void setNetworkProvider(ClustersTypes.NetworkProvider networkProvider)
null
, the existing effective cluster network specification will not
be modified.networkProvider
- New value for the property.public ClustersTypes.NCPClusterNetworkUpdateSpec getNcpClusterNetworkSpec()
null
, the
existing effective cluster network specification will not be modified.public void setNcpClusterNetworkSpec(ClustersTypes.NCPClusterNetworkUpdateSpec ncpClusterNetworkSpec)
null
, the
existing effective cluster network specification will not be modified.ncpClusterNetworkSpec
- New value for the property.public java.util.List<java.lang.String> getMasterDNS()
Set
, DNS servers set on Kubernetes API server will be
replaced. Otherwise, they will not be modified.public void setMasterDNS(java.util.List<java.lang.String> masterDNS)
Set
, DNS servers set on Kubernetes API server will be
replaced. Otherwise, they will not be modified.masterDNS
- New value for the property.public java.util.List<java.lang.String> getWorkerDNS()
Set
, DNS servers set on worker nodes will be replaced.
Otherwise, they will not be modified.public void setWorkerDNS(java.util.List<java.lang.String> workerDNS)
Set
, DNS servers set on worker nodes will be replaced.
Otherwise, they will not be modified.workerDNS
- New value for the property.public java.util.List<java.lang.String> getMasterDNSSearchDomains()
Set
, DNS search domains on Kubernetes API server will be
replaced. Otherwise, they will not be modified.public void setMasterDNSSearchDomains(java.util.List<java.lang.String> masterDNSSearchDomains)
Set
, DNS search domains on Kubernetes API server will be
replaced. Otherwise, they will not be modified.masterDNSSearchDomains
- New value for the property.public java.util.List<java.lang.String> getMasterNTPServers()
Set
, NTP servers on Kubernetes API server will be replaced.
Otherwise, they will not be modified.public void setMasterNTPServers(java.util.List<java.lang.String> masterNTPServers)
Set
, NTP servers on Kubernetes API server will be replaced.
Otherwise, they will not be modified.masterNTPServers
- New value for the property.public java.lang.String getMasterStoragePolicy()
null
, storage policy associated with Kubernetes API server will not
be modified.SpsStorageProfile
. When methods return
a value of this class as a return value, the property will be an identifier for
the resource type: SpsStorageProfile
.public void setMasterStoragePolicy(java.lang.String masterStoragePolicy)
null
, storage policy associated with Kubernetes API server will not
be modified.masterStoragePolicy
- New value for the property.
When clients pass a value of this class as a parameter, the property must be an
identifier for the resource type: SpsStorageProfile
. When methods return
a value of this class as a return value, the property will be an identifier for
the resource type: SpsStorageProfile
.public java.lang.String getEphemeralStoragePolicy()
null
, storage policy associated with ephemeral disks of all the
Kubernetes Pods will not be modified.SpsStorageProfile
. When methods return
a value of this class as a return value, the property will be an identifier for
the resource type: SpsStorageProfile
.public void setEphemeralStoragePolicy(java.lang.String ephemeralStoragePolicy)
null
, storage policy associated with ephemeral disks of all the
Kubernetes Pods will not be modified.ephemeralStoragePolicy
- New value for the property.
When clients pass a value of this class as a parameter, the property must be an
identifier for the resource type: SpsStorageProfile
. When methods return
a value of this class as a return value, the property will be an identifier for
the resource type: SpsStorageProfile
.public java.lang.String getLoginBanner()
null
, disclaimer to be displayed prior to login via the Kubectl
plugin will not be modified.public void setLoginBanner(java.lang.String loginBanner)
null
, disclaimer to be displayed prior to login via the Kubectl
plugin will not be modified.loginBanner
- New value for the property.public ClustersTypes.ImageStorageSpec getImageStorage()
null
, configuration of storage used for container images is not
modified.public void setImageStorage(ClustersTypes.ImageStorageSpec imageStorage)
null
, configuration of storage used for container images is not
modified.imageStorage
- New value for the property.public ClustersTypes.ImageRegistry getDefaultImageRegistry()
null
, default image registry will not be modified.public void setDefaultImageRegistry(ClustersTypes.ImageRegistry defaultImageRegistry)
null
, default image registry will not be modified.defaultImageRegistry
- New value for the property.public java.lang.String getDefaultImageRepository()
null
, default image repository will not be modified.public void setDefaultImageRepository(java.lang.String defaultImageRepository)
null
, default image repository will not be modified.defaultImageRepository
- New value for the property.public java.lang.String getTlsEndpointCertificate()
com.vmware.vcenter.namespace_management.certificates.Request.create
Because a
CertificateSigningRequest
is created on an existing Namespaces-enabled
Cluster
, you must use the UpdateSpec
to specify this tlsEndpointCertificate
on an existing Cluster
rather than during
initially enabling Namespaces on a Cluster
.
If null
, Kubernetes API Server certificate will not be modified.public void setTlsEndpointCertificate(java.lang.String tlsEndpointCertificate)
com.vmware.vcenter.namespace_management.certificates.Request.create
Because a
CertificateSigningRequest
is created on an existing Namespaces-enabled
Cluster
, you must use the UpdateSpec
to specify this tlsEndpointCertificate
on an existing Cluster
rather than during
initially enabling Namespaces on a Cluster
.
If null
, Kubernetes API Server certificate will not be modified.tlsEndpointCertificate
- New value for the property.public java.lang.String getDefaultKubernetesServiceContentLibrary()
null
, the Content Library identifier will not be modified.com.vmware.content.Library
. When
methods return a value of this class as a return value, the property will be an
identifier for the resource type: com.vmware.content.Library
.public void setDefaultKubernetesServiceContentLibrary(java.lang.String defaultKubernetesServiceContentLibrary)
null
, the Content Library identifier will not be modified.defaultKubernetesServiceContentLibrary
- New value for the property.
When clients pass a value of this class as a parameter, the property must be an
identifier for the resource type: com.vmware.content.Library
. When
methods return a value of this class as a return value, the property will be an
identifier for the resource type: com.vmware.content.Library
.public java.util.List<java.lang.String> getWorkloadNtpServers()
null
, NTP servers for workloads will be unmodified.public void setWorkloadNtpServers(java.util.List<java.lang.String> workloadNtpServers)
null
, NTP servers for workloads will be unmodified.workloadNtpServers
- New value for the property.public com.vmware.vapi.bindings.type.StructType _getType()
StaticStructure
StructType
instance representing the static bindings
type for this Structure
._getType
in interface StaticStructure
StructType
public StructValue _getDataValue()
Structure
Structure
represented in the dynamic
DataValue
model.
Attempts to change the returned StructValue
representation are not required to change the state of this structure.
Actually the behavior is implementation dependent and is unspecified.
In general the returned value shouldn't be changed.
_getDataValue
in interface Structure
StructValue
representing this structureprotected void _updateDataValue(StructValue structValue)
public void _validate()
StaticStructure
Structure
.
More precisely, for each union: given value of the discriminant/tag
field (@UnionTag
in the IDL) of an union in this structure,
validates that:
_validate
in interface 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()
StaticStructure
In general no code should depend on the format of the resulting string. E.g. there must be no attempts to parse for re-creation of the original instance.
toString
in interface StaticStructure
toString
in class java.lang.Object
public boolean _hasTypeNameOf(java.lang.Class<? extends Structure> clazz)
Structure
This can be used as efficient check to determine if this instance
can be successfully converted
to the target
type.
_hasTypeNameOf
in interface Structure
clazz
- bindings class for the target structure; must not be null
public <T extends Structure> T _convertTo(java.lang.Class<T> clazz)
Structure
_convertTo
in interface Structure
clazz
- type of the result structure. cannot be null.CoreException
is thrown otherwise.public void _setDynamicField(java.lang.String fieldName, DataValue fieldValue)
StaticStructure
_setDynamicField
in interface StaticStructure
fieldName
- canonical name of the dynamic field to setfieldValue
- the value of the fieldpublic DataValue _getDynamicField(java.lang.String fieldName)
StaticStructure
_getDynamicField
in interface StaticStructure
fieldName
- the canonical name of the dynamic fieldDataValue
of the dynamic fieldpublic java.util.Set<java.lang.String> _getDynamicFieldNames()
StaticStructure
_getDynamicFieldNames
in interface 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()
Structure
org.example.FooBar
would turn into
org.example.foo_bar
._getCanonicalName
in interface Structure
public static java.lang.String _getCanonicalTypeName()
_getCanonicalName()
.public static ClustersTypes.UpdateSpec _newInstance(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 ClustersTypes.UpdateSpec _newInstance2(StructValue structValue)