oracle / oci-java-sdk

Oracle Cloud Infrastructure SDK for Java
https://cloud.oracle.com/cloud-infrastructure
Other
192 stars 153 forks source link

Shape SymmetricMultithreading set during Launch Instance #612

Open vdeolali opened 4 days ago

vdeolali commented 4 days ago

Hi, I see that there is an option (bmc-core/src/main/java/com/oracle/bmc/core/model/ShapeSymmetricMultiThreadingEnabledPlatformOptions.java) to build platform config which sets the SMT toggle. I can use it in Terraform and CLI (API exists), but in Java SDK, I cannot figure out how to use it when launching an instance. The example provided in https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/CreateInstanceExample.java does not build platform config.

On the CLI, I create a platform_config file with appropriate values and pass that on command line. Is that possible with a pre-compiled java client for OCI? If not, how do I set the default value for SMT in platform config?