Interface OciComputeSource
- All Superinterfaces:
ComputeSource,Credentialed,Identified,Named,Serializable
- All Known Implementing Classes:
OciInstancePoolComputeSource,OciInstancesComputeSource
Derives from
ComputeSource to provide the interface for all AWS compute source model objects.-
Field Summary
Fields inherited from interface co.yellowdog.platform.model.ComputeSource
DEFAULT_ASSIGN_PUBLIC_IP -
Method Summary
Modifier and TypeMethodDescriptionThe OCI availability domain where instances will be provisioned.@NotBlank StringThe OCI compartment ID (ocid) where instances will be provisioned.@NotBlank String@Min(0L) FloatThe number of OCPUs to provision on a flex type machine shape@Min(0L) FloatThe amount of ram in GB to provision on a flex type machine shapeGets the custom instance tags to be set on the provisioned instance at startup.default StringGets the provider-specific instance type of the instances that will be provisioned.default CloudProviderGets the Cloud Provider for this source.@NotBlank StringgetShape()The machine shape to use for the provisioned instances.The public SSH key.@NotBlank StringThe region-specific OCI Subnet ID (ocid) for the subnet to use for the provisioned instances.default StringGets the provider-specific subregion (aka Availability Domain, Availability Zone or Zone) where instances will be provisioned.booleandefault voidsetInstanceType(String instanceType) Sets the provider-specific instance type of the instances that will be provisioned.voidThe machine shape to use for the provisioned instances.Methods inherited from interface co.yellowdog.platform.model.ComputeSource
getCreatedFromId, getExhaustion, getId, getImageId, getInstancePricing, getInstanceSummary, getLimit, getName, getRegion, getStatus, getStatusMessage, getSupportingResourceCreated, getTraits, getUserData, setCreatedFromId, setExhaustion, setId, setImageId, setInstanceSummary, setInstanceTags, setLimit, setName, setStatus, setStatusMessage, setUserDataMethods inherited from interface co.yellowdog.platform.model.Credentialed
getCredentials
-
Method Details
-
getProvider
Description copied from interface:ComputeSourceGets the Cloud Provider for this source.- Specified by:
getProviderin interfaceComputeSource- Returns:
- the Cloud Provider for this source
-
getSubregion
Description copied from interface:ComputeSourceGets the provider-specific subregion (aka Availability Domain, Availability Zone or Zone) where instances will be provisioned.- Specified by:
getSubregionin interfaceComputeSource- Returns:
- the provider-specific subregion where instances will be provisioned
-
getInstanceType
Description copied from interface:ComputeSourceGets the provider-specific instance type of the instances that will be provisioned.- Specified by:
getInstanceTypein interfaceComputeSource- Returns:
- the provider-specific instance type of the instances that will be provisioned
-
setInstanceType
Description copied from interface:ComputeSourceSets the provider-specific instance type of the instances that will be provisioned.- Specified by:
setInstanceTypein interfaceComputeSource- Parameters:
instanceType- the provider-specific instance type of the instances that will be provisioned
-
getCredential
- Specified by:
getCredentialin interfaceComputeSource
-
getCompartmentId
@NotBlank @JsonPropertyDescription("The OCI compartment ID (ocid) where instances will be provisioned") @NotBlank String getCompartmentId()The OCI compartment ID (ocid) where instances will be provisioned.- Returns:
- the OCI compartment ID (ocid) where instances will be provisioned
-
getAvailabilityDomain
@JsonPropertyDescription("The OCI availability domain where instances will be provisioned") String getAvailabilityDomain()The OCI availability domain where instances will be provisioned.- Returns:
- the OCI availability domain where instances will be provisioned
-
getSubnetId
@NotBlank @JsonPropertyDescription("The region-specific OCI Subnet ID (ocid) for the subnet to use for provisioned instances") @NotBlank String getSubnetId()The region-specific OCI Subnet ID (ocid) for the subnet to use for the provisioned instances.- Returns:
- the region-specific OCI Subnet ID (ocid) for the subnet to use for the provisioned instances
-
getShape
@NotBlank @JsonPropertyDescription("The machine shape (aka instance type) of the instances that will be provisioned") @NotBlank String getShape()The machine shape to use for the provisioned instances.- Returns:
- the machine shape to use for the provisioned instances
-
setShape
The machine shape to use for the provisioned instances.- Parameters:
shape- the machine shape to use for the provisioned instances
-
getFlexOcpus
@Min(0L) @JsonPropertyDescription("The number of OCPUs to provision on a flex type machine shape") @Min(0L) Float getFlexOcpus()The number of OCPUs to provision on a flex type machine shape- Returns:
- the number of OCPUs to provision on a flex type machine shape
-
getFlexRam
@Min(0L) @JsonPropertyDescription("The amount of ram in GB to provision on a flex type machine shape") @Min(0L) Float getFlexRam()The amount of ram in GB to provision on a flex type machine shape- Returns:
- the amount of ram in GB to provision on a flex type machine shape
-
getSshKey
@JsonPropertyDescription("The public SSH key to allow instances to be accessible with the matching private key through SSH") String getSshKey()The public SSH key. If provided, instances will be accessible with the matching private key through SSH.- Returns:
- the public SSH key
-
isAssignPublicIp
@JsonPropertyDescription("Assign public IP address to provisioned instances") boolean isAssignPublicIp() -
getInstanceTags
Description copied from interface:ComputeSourceGets the custom instance tags to be set on the provisioned instance at startup.- Specified by:
getInstanceTagsin interfaceComputeSource- Returns:
- the custom instance tags
-