Class: OCI::Auth::Signers::RptPathProvider::ImdsRptPathProvider
- Inherits:
-
RptPathProvider
- Object
- RptPathProvider
- OCI::Auth::Signers::RptPathProvider::ImdsRptPathProvider
- Defined in:
- lib/oci/auth/signers/resource_principal_token_path_provider/imds_rpt_path_provider.rb
Overview
imds rpt path provider
Instance Method Summary collapse
-
#initialize(metadata_url) ⇒ ImdsRptPathProvider
constructor
A new instance of ImdsRptPathProvider.
- #replacement_dict ⇒ Object
Methods inherited from RptPathProvider
Constructor Details
#initialize(metadata_url) ⇒ ImdsRptPathProvider
Returns a new instance of ImdsRptPathProvider.
10 11 12 13 |
# File 'lib/oci/auth/signers/resource_principal_token_path_provider/imds_rpt_path_provider.rb', line 10 def initialize() @instance_id = OCI::Auth::Signers::RptPathProvider.instance_id_from_imds() super('/20180711/resourcePrincipalToken/{id}') end |
Instance Method Details
#replacement_dict ⇒ Object
15 16 17 |
# File 'lib/oci/auth/signers/resource_principal_token_path_provider/imds_rpt_path_provider.rb', line 15 def replacement_dict { 'id' => @instance_id } end |