Class OciConfigResourcePrincipal
- java.lang.Object
-
- io.helidon.integrations.oci.connect.OciConfigResourcePrincipal
-
- All Implemented Interfaces:
OciConfigProvider
@Deprecated(since="2.5.0", forRemoval=true) public class OciConfigResourcePrincipal extends Object implements OciConfigProvider
Deprecated, for removal: This API element is subject to removal in a future version.OCI SDK insteadOCI connectivity configuration based on resource principal. This is used when running within functions. TODO THIS CLASS IS NOT YET IMPLEMENTED AND WILL THROW AN EXCEPTION
-
-
Constructor Summary
Constructors Constructor Description OciConfigResourcePrincipal()
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static OciConfigResourcePrincipal
create()
Deprecated, for removal: This API element is subject to removal in a future version.Create a new instance from environment.Single<OciSignatureData>
refresh()
Deprecated, for removal: This API element is subject to removal in a future version.Refresh may be used for providers that can be reloaded.String
region()
Deprecated, for removal: This API element is subject to removal in a future version.Current OCI region.OciSignatureData
signatureData()
Deprecated, for removal: This API element is subject to removal in a future version.Get the current signature data.String
tenancyOcid()
Deprecated, for removal: This API element is subject to removal in a future version.OCID of the tenancy.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.helidon.integrations.oci.connect.OciConfigProvider
domain
-
-
-
-
Method Detail
-
create
public static OciConfigResourcePrincipal create()
Deprecated, for removal: This API element is subject to removal in a future version.Create a new instance from environment.- Returns:
- new config provider
-
signatureData
public OciSignatureData signatureData()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:OciConfigProvider
Get the current signature data.- Specified by:
signatureData
in interfaceOciConfigProvider
- Returns:
- current signature data
-
region
public String region()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:OciConfigProvider
Current OCI region.- Specified by:
region
in interfaceOciConfigProvider
- Returns:
- OCI region, such as
eu-frankfurt-1
-
tenancyOcid
public String tenancyOcid()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:OciConfigProvider
OCID of the tenancy.- Specified by:
tenancyOcid
in interfaceOciConfigProvider
- Returns:
- tenancy OCID
-
refresh
public Single<OciSignatureData> refresh()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:OciConfigProvider
Refresh may be used for providers that can be reloaded. The method is called when an invocation fails (for the first time) with a 401 exception.- Specified by:
refresh
in interfaceOciConfigProvider
- Returns:
- future with signature data, if no refresh was done, the instance will be the same as when
OciConfigProvider.signatureData()
was called.
-
-