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 String
The OCI compartment ID (ocid) where instances will be provisioned.@NotBlank String
@Min(0L) Float
The number of OCPUs to provision on a flex type machine shape@Min(0L) Float
The amount of ram in GB to provision on a flex type machine shapedefault String
Gets the provider-specific instance type of the instances that will be provisioned.default CloudProvider
Gets the Cloud Provider for this source.@NotBlank String
getShape()
The machine shape to use for the provisioned instances.The public SSH key.@NotBlank String
The region-specific OCI Subnet ID (ocid) for the subnet to use for the provisioned instances.default String
Gets the provider-specific subregion (aka Availability Domain, Availability Zone or Zone) where instances will be provisioned.boolean
default void
setInstanceType
(String instanceType) Sets the provider-specific instance type of the instances that will be provisioned.void
The machine shape to use for the provisioned instances.Methods inherited from interface co.yellowdog.platform.model.ComputeSource
getCreatedFromId, getExhaustion, getId, getImageId, getInstancePricing, getInstanceSummary, getInstanceTags, getLimit, getName, getRegion, getStatus, getStatusMessage, getSupportingResourceCreated, getTraits, getUserData, setCreatedFromId, setExhaustion, setId, setImageId, setInstanceSummary, setInstanceTags, setLimit, setName, setStatus, setStatusMessage, setUserData
Methods inherited from interface co.yellowdog.platform.model.Credentialed
getCredentials
-
Method Details
-
getProvider
Description copied from interface:ComputeSource
Gets the Cloud Provider for this source.- Specified by:
getProvider
in interfaceComputeSource
- Returns:
- the Cloud Provider for this source
-
getSubregion
Description copied from interface:ComputeSource
Gets the provider-specific subregion (aka Availability Domain, Availability Zone or Zone) where instances will be provisioned.- Specified by:
getSubregion
in interfaceComputeSource
- Returns:
- the provider-specific subregion where instances will be provisioned
-
getInstanceType
Description copied from interface:ComputeSource
Gets the provider-specific instance type of the instances that will be provisioned.- Specified by:
getInstanceType
in interfaceComputeSource
- Returns:
- the provider-specific instance type of the instances that will be provisioned
-
setInstanceType
Description copied from interface:ComputeSource
Sets the provider-specific instance type of the instances that will be provisioned.- Specified by:
setInstanceType
in interfaceComputeSource
- Parameters:
instanceType
- the provider-specific instance type of the instances that will be provisioned
-
getCredential
- Specified by:
getCredential
in 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()
-