Interface OciConfigProvider
- All Known Implementing Classes:
OciConfigInstancePrincipal,OciConfigProfile,OciConfigResourcePrincipal
public interface OciConfigProvider
Provider of data needed to connect to OCI, and to use its APIs.
-
Method Summary
Modifier and TypeMethodDescriptiondomain()OCI domain to use.default Single<OciSignatureData>refresh()Refresh may be used for providers that can be reloaded.region()Current OCI region.Get the current signature data.OCID of the tenancy.
-
Method Details
-
signatureData
OciSignatureData signatureData()Get the current signature data.- Returns:
- current signature data
-
region
String region()Current OCI region.- Returns:
- OCI region, such as
eu-frankfurt-1
-
tenancyOcid
String tenancyOcid()OCID of the tenancy.- Returns:
- tenancy OCID
-
domain
OCI domain to use. If not available REST API will use the default or configured domain to call REST services.- Returns:
- current OCI domain if avialable
-
refresh
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.- Returns:
- future with signature data, if no refresh was done, the instance will be the same as when
signatureData()was called.
-