Class OpenstackProviderSpec
- java.lang.Object
-
- io.fabric8.openshift.api.model.machine.v1alpha1.OpenstackProviderSpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<OpenstackProviderSpecBuilder>,io.fabric8.kubernetes.api.model.HasMetadata,io.fabric8.kubernetes.api.model.KubernetesResource,io.fabric8.kubernetes.api.model.Namespaced,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class OpenstackProviderSpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<OpenstackProviderSpecBuilder>, io.fabric8.kubernetes.api.model.HasMetadata, io.fabric8.kubernetes.api.model.Namespaced
OpenstackProviderSpec is the type that will be embedded in a Machine.Spec.ProviderSpec field for an OpenStack Instance. It is used by the Openstack machine actuator to create a single machine instance. Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OpenstackProviderSpec()No args constructor for use in serializationOpenstackProviderSpec(List<AdditionalBlockDevice> additionalBlockDevices, String apiVersion, String availabilityZone, String cloudName, io.fabric8.kubernetes.api.model.SecretReference cloudsSecret, Boolean configDrive, String flavor, String floatingIP, String image, String keyName, String kind, io.fabric8.kubernetes.api.model.ObjectMeta metadata, List<NetworkParam> networks, List<PortOpts> ports, String primarySubnet, RootVolume rootVolume, List<SecurityGroupParam> securityGroups, String serverGroupID, String serverGroupName, Map<String,String> serverMetadata, String sshUserName, List<String> tags, Boolean trunk, io.fabric8.kubernetes.api.model.SecretReference userDataSecret)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OpenstackProviderSpecBuilderedit()List<AdditionalBlockDevice>getAdditionalBlockDevices()additionalBlockDevices is a list of specifications for additional block devices to attach to the server instanceMap<String,Object>getAdditionalProperties()StringgetApiVersion()APIVersion defines the versioned schema of this representation of an object.StringgetAvailabilityZone()The availability zone from which to launch the server.StringgetCloudName()The name of the cloud to use from the clouds secretio.fabric8.kubernetes.api.model.SecretReferencegetCloudsSecret()OpenstackProviderSpec is the type that will be embedded in a Machine.Spec.ProviderSpec field for an OpenStack Instance.BooleangetConfigDrive()Config Drive supportStringgetFlavor()The flavor reference for the flavor for your server instance.StringgetFloatingIP()floatingIP specifies a floating IP to be associated with the machine.StringgetImage()The name of the image to use for your server instance.StringgetKeyName()The ssh key to inject in the instanceStringgetKind()Kind is a string value representing the REST resource this object represents.io.fabric8.kubernetes.api.model.ObjectMetagetMetadata()OpenstackProviderSpec is the type that will be embedded in a Machine.Spec.ProviderSpec field for an OpenStack Instance.List<NetworkParam>getNetworks()A networks object.List<PortOpts>getPorts()Create and assign additional ports to instancesStringgetPrimarySubnet()The subnet that a set of machines will get ingress/egress traffic from Deprecated: primarySubnet is silently ignored.RootVolumegetRootVolume()OpenstackProviderSpec is the type that will be embedded in a Machine.Spec.ProviderSpec field for an OpenStack Instance.List<SecurityGroupParam>getSecurityGroups()The names of the security groups to assign to the instanceStringgetServerGroupID()The server group to assign the machine to.StringgetServerGroupName()The server group to assign the machine to.Map<String,String>getServerMetadata()Metadata mapping.StringgetSshUserName()The machine ssh username Deprecated: sshUserName is silently ignored.List<String>getTags()Machine tags Requires Nova api 2.52 minimum!BooleangetTrunk()Whether the server instance is created on a trunk port or not.io.fabric8.kubernetes.api.model.SecretReferencegetUserDataSecret()OpenstackProviderSpec is the type that will be embedded in a Machine.Spec.ProviderSpec field for an OpenStack Instance.voidsetAdditionalBlockDevices(List<AdditionalBlockDevice> additionalBlockDevices)additionalBlockDevices is a list of specifications for additional block devices to attach to the server instancevoidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetApiVersion(String apiVersion)APIVersion defines the versioned schema of this representation of an object.voidsetAvailabilityZone(String availabilityZone)The availability zone from which to launch the server.voidsetCloudName(String cloudName)The name of the cloud to use from the clouds secretvoidsetCloudsSecret(io.fabric8.kubernetes.api.model.SecretReference cloudsSecret)OpenstackProviderSpec is the type that will be embedded in a Machine.Spec.ProviderSpec field for an OpenStack Instance.voidsetConfigDrive(Boolean configDrive)Config Drive supportvoidsetFlavor(String flavor)The flavor reference for the flavor for your server instance.voidsetFloatingIP(String floatingIP)floatingIP specifies a floating IP to be associated with the machine.voidsetImage(String image)The name of the image to use for your server instance.voidsetKeyName(String keyName)The ssh key to inject in the instancevoidsetKind(String kind)Kind is a string value representing the REST resource this object represents.voidsetMetadata(io.fabric8.kubernetes.api.model.ObjectMeta metadata)OpenstackProviderSpec is the type that will be embedded in a Machine.Spec.ProviderSpec field for an OpenStack Instance.voidsetNetworks(List<NetworkParam> networks)A networks object.voidsetPorts(List<PortOpts> ports)Create and assign additional ports to instancesvoidsetPrimarySubnet(String primarySubnet)The subnet that a set of machines will get ingress/egress traffic from Deprecated: primarySubnet is silently ignored.voidsetRootVolume(RootVolume rootVolume)OpenstackProviderSpec is the type that will be embedded in a Machine.Spec.ProviderSpec field for an OpenStack Instance.voidsetSecurityGroups(List<SecurityGroupParam> securityGroups)The names of the security groups to assign to the instancevoidsetServerGroupID(String serverGroupID)The server group to assign the machine to.voidsetServerGroupName(String serverGroupName)The server group to assign the machine to.voidsetServerMetadata(Map<String,String> serverMetadata)Metadata mapping.voidsetSshUserName(String sshUserName)The machine ssh username Deprecated: sshUserName is silently ignored.voidsetTags(List<String> tags)Machine tags Requires Nova api 2.52 minimum!voidsetTrunk(Boolean trunk)Whether the server instance is created on a trunk port or not.voidsetUserDataSecret(io.fabric8.kubernetes.api.model.SecretReference userDataSecret)OpenstackProviderSpec is the type that will be embedded in a Machine.Spec.ProviderSpec field for an OpenStack Instance.OpenstackProviderSpecBuildertoBuilder()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.fabric8.kubernetes.api.model.HasMetadata
addFinalizer, addOwnerReference, addOwnerReference, getFinalizers, getFullResourceName, getOwnerReferenceFor, getOwnerReferenceFor, getPlural, getSingular, hasFinalizer, hasOwnerReferenceFor, hasOwnerReferenceFor, initNameAndNamespaceFrom, isFinalizerValid, isMarkedForDeletion, optionalMetadata, removeFinalizer, removeOwnerReference, removeOwnerReference
-
-
-
-
Constructor Detail
-
OpenstackProviderSpec
public OpenstackProviderSpec()
No args constructor for use in serialization
-
OpenstackProviderSpec
public OpenstackProviderSpec(List<AdditionalBlockDevice> additionalBlockDevices, String apiVersion, String availabilityZone, String cloudName, io.fabric8.kubernetes.api.model.SecretReference cloudsSecret, Boolean configDrive, String flavor, String floatingIP, String image, String keyName, String kind, io.fabric8.kubernetes.api.model.ObjectMeta metadata, List<NetworkParam> networks, List<PortOpts> ports, String primarySubnet, RootVolume rootVolume, List<SecurityGroupParam> securityGroups, String serverGroupID, String serverGroupName, Map<String,String> serverMetadata, String sshUserName, List<String> tags, Boolean trunk, io.fabric8.kubernetes.api.model.SecretReference userDataSecret)
-
-
Method Detail
-
getAdditionalBlockDevices
public List<AdditionalBlockDevice> getAdditionalBlockDevices()
additionalBlockDevices is a list of specifications for additional block devices to attach to the server instance
-
setAdditionalBlockDevices
public void setAdditionalBlockDevices(List<AdditionalBlockDevice> additionalBlockDevices)
additionalBlockDevices is a list of specifications for additional block devices to attach to the server instance
-
getApiVersion
public String getApiVersion()
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources- Specified by:
getApiVersionin interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
setApiVersion
public void setApiVersion(String apiVersion)
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources- Specified by:
setApiVersionin interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
getAvailabilityZone
public String getAvailabilityZone()
The availability zone from which to launch the server.
-
setAvailabilityZone
public void setAvailabilityZone(String availabilityZone)
The availability zone from which to launch the server.
-
getCloudName
public String getCloudName()
The name of the cloud to use from the clouds secret
-
setCloudName
public void setCloudName(String cloudName)
The name of the cloud to use from the clouds secret
-
getCloudsSecret
public io.fabric8.kubernetes.api.model.SecretReference getCloudsSecret()
OpenstackProviderSpec is the type that will be embedded in a Machine.Spec.ProviderSpec field for an OpenStack Instance. It is used by the Openstack machine actuator to create a single machine instance. Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support.
-
setCloudsSecret
public void setCloudsSecret(io.fabric8.kubernetes.api.model.SecretReference cloudsSecret)
OpenstackProviderSpec is the type that will be embedded in a Machine.Spec.ProviderSpec field for an OpenStack Instance. It is used by the Openstack machine actuator to create a single machine instance. Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support.
-
getConfigDrive
public Boolean getConfigDrive()
Config Drive support
-
setConfigDrive
public void setConfigDrive(Boolean configDrive)
Config Drive support
-
getFlavor
public String getFlavor()
The flavor reference for the flavor for your server instance.
-
setFlavor
public void setFlavor(String flavor)
The flavor reference for the flavor for your server instance.
-
getFloatingIP
public String getFloatingIP()
floatingIP specifies a floating IP to be associated with the machine. Note that it is not safe to use this parameter in a MachineSet, as only one Machine may be assigned the same floating IP.Deprecated: floatingIP will be removed in a future release as it cannot be implemented correctly.
-
setFloatingIP
public void setFloatingIP(String floatingIP)
floatingIP specifies a floating IP to be associated with the machine. Note that it is not safe to use this parameter in a MachineSet, as only one Machine may be assigned the same floating IP.Deprecated: floatingIP will be removed in a future release as it cannot be implemented correctly.
-
getImage
public String getImage()
The name of the image to use for your server instance. If the RootVolume is specified, this will be ignored and use rootVolume directly.
-
setImage
public void setImage(String image)
The name of the image to use for your server instance. If the RootVolume is specified, this will be ignored and use rootVolume directly.
-
getKeyName
public String getKeyName()
The ssh key to inject in the instance
-
setKeyName
public void setKeyName(String keyName)
The ssh key to inject in the instance
-
getKind
public String getKind()
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds- Specified by:
getKindin interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
setKind
public void setKind(String kind)
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-
getMetadata
public io.fabric8.kubernetes.api.model.ObjectMeta getMetadata()
OpenstackProviderSpec is the type that will be embedded in a Machine.Spec.ProviderSpec field for an OpenStack Instance. It is used by the Openstack machine actuator to create a single machine instance. Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support.- Specified by:
getMetadatain interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
setMetadata
public void setMetadata(io.fabric8.kubernetes.api.model.ObjectMeta metadata)
OpenstackProviderSpec is the type that will be embedded in a Machine.Spec.ProviderSpec field for an OpenStack Instance. It is used by the Openstack machine actuator to create a single machine instance. Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support.- Specified by:
setMetadatain interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
getNetworks
public List<NetworkParam> getNetworks()
A networks object. Required parameter when there are multiple networks defined for the tenant. When you do not specify the networks parameter, the server attaches to the only network created for the current tenant.
-
setNetworks
public void setNetworks(List<NetworkParam> networks)
A networks object. Required parameter when there are multiple networks defined for the tenant. When you do not specify the networks parameter, the server attaches to the only network created for the current tenant.
-
setPorts
public void setPorts(List<PortOpts> ports)
Create and assign additional ports to instances
-
getPrimarySubnet
public String getPrimarySubnet()
The subnet that a set of machines will get ingress/egress traffic from Deprecated: primarySubnet is silently ignored. Use subnets instead.
-
setPrimarySubnet
public void setPrimarySubnet(String primarySubnet)
The subnet that a set of machines will get ingress/egress traffic from Deprecated: primarySubnet is silently ignored. Use subnets instead.
-
getRootVolume
public RootVolume getRootVolume()
OpenstackProviderSpec is the type that will be embedded in a Machine.Spec.ProviderSpec field for an OpenStack Instance. It is used by the Openstack machine actuator to create a single machine instance. Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support.
-
setRootVolume
public void setRootVolume(RootVolume rootVolume)
OpenstackProviderSpec is the type that will be embedded in a Machine.Spec.ProviderSpec field for an OpenStack Instance. It is used by the Openstack machine actuator to create a single machine instance. Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support.
-
getSecurityGroups
public List<SecurityGroupParam> getSecurityGroups()
The names of the security groups to assign to the instance
-
setSecurityGroups
public void setSecurityGroups(List<SecurityGroupParam> securityGroups)
The names of the security groups to assign to the instance
-
getServerGroupID
public String getServerGroupID()
The server group to assign the machine to.
-
setServerGroupID
public void setServerGroupID(String serverGroupID)
The server group to assign the machine to.
-
getServerGroupName
public String getServerGroupName()
The server group to assign the machine to. A server group with that name will be created if it does not exist. If both ServerGroupID and ServerGroupName are non-empty, they must refer to the same OpenStack resource.
-
setServerGroupName
public void setServerGroupName(String serverGroupName)
The server group to assign the machine to. A server group with that name will be created if it does not exist. If both ServerGroupID and ServerGroupName are non-empty, they must refer to the same OpenStack resource.
-
getServerMetadata
public Map<String,String> getServerMetadata()
Metadata mapping. Allows you to create a map of key value pairs to add to the server instance.
-
setServerMetadata
public void setServerMetadata(Map<String,String> serverMetadata)
Metadata mapping. Allows you to create a map of key value pairs to add to the server instance.
-
getSshUserName
public String getSshUserName()
The machine ssh username Deprecated: sshUserName is silently ignored.
-
setSshUserName
public void setSshUserName(String sshUserName)
The machine ssh username Deprecated: sshUserName is silently ignored.
-
getTrunk
public Boolean getTrunk()
Whether the server instance is created on a trunk port or not.
-
setTrunk
public void setTrunk(Boolean trunk)
Whether the server instance is created on a trunk port or not.
-
getUserDataSecret
public io.fabric8.kubernetes.api.model.SecretReference getUserDataSecret()
OpenstackProviderSpec is the type that will be embedded in a Machine.Spec.ProviderSpec field for an OpenStack Instance. It is used by the Openstack machine actuator to create a single machine instance. Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support.
-
setUserDataSecret
public void setUserDataSecret(io.fabric8.kubernetes.api.model.SecretReference userDataSecret)
OpenstackProviderSpec is the type that will be embedded in a Machine.Spec.ProviderSpec field for an OpenStack Instance. It is used by the Openstack machine actuator to create a single machine instance. Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support.
-
edit
public OpenstackProviderSpecBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<OpenstackProviderSpecBuilder>
-
toBuilder
public OpenstackProviderSpecBuilder toBuilder()
-
-