Class OracleCloudMetadataConfiguration
java.lang.Object
io.micronaut.discovery.cloud.oraclecloud.OracleCloudMetadataConfiguration
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable
@ConfigurationProperties("micronaut.application.oraclecloud.metadata")
@Requires(env="oraclecloud") @Requires(classes=io.micronaut.runtime.ApplicationConfiguration.class)
@Primary
public class OracleCloudMetadataConfiguration
extends Object
implements io.micronaut.core.util.Toggleable
Default configuration for retrieving Oracle Cloud metadata for
ComputePlatform.ORACLE_CLOUD
.- Since:
- 1.2.0
- Author:
- Todd Sharp
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetUrl()
* Default value ("http://169.254.169.254/opc/v1/vnics/").boolean
void
setEnabled
(boolean enabled) Default value (true).void
setInstanceDocumentUrl
(String instanceDocumentUrl) void
setMetadataUrl
(String metadataUrl) void
Default value ("http://169.254.169.254/opc/v1/instance/").void
setVnicUrl
(String vnicUrl)
-
Field Details
-
PREFIX
Prefix for Oracle Cloud configuration metadata.- See Also:
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDThe default enable value.- See Also:
-
DEFAULT_URL
The default url value.- See Also:
-
DEFAULT_VNIC_URL
- See Also:
-
-
Constructor Details
-
OracleCloudMetadataConfiguration
public OracleCloudMetadataConfiguration()
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
- Returns:
- Whether the Oracle Cloud configuration is enabled
-
setEnabled
public void setEnabled(boolean enabled) Default value (true).- Parameters:
enabled
- Enable or disable the Oracle Cloud configuration
-
getUrl
- Returns:
- The Url
-
setUrl
Default value ("http://169.254.169.254/opc/v1/instance/").- Parameters:
url
- The url
-
getMetadataUrl
- Returns:
- The metadata Url
-
setMetadataUrl
- Parameters:
metadataUrl
- The metadata Url
-
getInstanceDocumentUrl
- Returns:
- The instance document Url
-
setInstanceDocumentUrl
- Parameters:
instanceDocumentUrl
- The instance document Url
-
getVnicUrl
* Default value ("http://169.254.169.254/opc/v1/vnics/").- Returns:
- The VNIC Url
-
setVnicUrl
- Parameters:
vnicUrl
- The instance document Url
-