Package com.morpheusdata.core
Interface MorpheusComputeTypeLayoutFactoryService
public interface MorpheusComputeTypeLayoutFactoryService
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<ComputeTypeLayout>
buildDockerLayout
(String codePrefix, String osVersion, String provisionTypeCode, String computeServerTypeCode, String virtualImageCode) Construct the scaffolding of a ComputeTypeLayout for defining the layout structure for a Docker server.
-
Method Details
-
buildDockerLayout
io.reactivex.rxjava3.core.Single<ComputeTypeLayout> buildDockerLayout(String codePrefix, String osVersion, String provisionTypeCode, String computeServerTypeCode, String virtualImageCode) Construct the scaffolding of a ComputeTypeLayout for defining the layout structure for a Docker server. The returned ComputeTypeLayout will have the associated ComputeTypeSet and ContainerType defined. The typical use of this method is to obtain the structure (modify if needed) and then pass back to Morpheus via a call to ProvisionProvider.getComputeTypeLayouts()- Parameters:
codePrefix
- a prefix to use on the ComputeTypeLayout, ComputeTypeSet, and ContainerTypeosVersion
- the operating system version (i.e. '18.04' for Ubuntu)provisionTypeCode
- the code of the ProvisionProvider to use when building the structurecomputeServerTypeCode
- the code of the ComputeServerType to use on the ComputeTypeLayout and ComputeTypeSetvirtualImageCode
- the VirtualImage code to use on the ContainerType- Returns:
- Observable the constructed ComputeTypeLayout
-