Class: Xberg::CredentialProviderConfigVertexAdc
- Inherits:
-
Data
- Object
- Data
- Xberg::CredentialProviderConfigVertexAdc
- Extended by:
- T::Sig
- Includes:
- CredentialProviderConfig
- Defined in:
- lib/xberg/native.rb
Overview
Google Vertex AI Application Default Credentials, resolved from the GCE/GKE/Cloud Run metadata server. Carries no secret material at all.
Instance Attribute Summary collapse
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
Class Method Summary collapse
Instance Method Summary collapse
- #azure_ad? ⇒ Boolean
- #bedrock_web_identity? ⇒ Boolean
- #vertex_adc? ⇒ Boolean
- #vertex_oauth2? ⇒ Boolean
Instance Attribute Details
#scope ⇒ Object (readonly)
Returns the value of attribute scope
957 958 959 |
# File 'lib/xberg/native.rb', line 957 def scope @scope end |
Class Method Details
.from_hash(hash) ⇒ Object
975 976 977 |
# File 'lib/xberg/native.rb', line 975 def self.from_hash(hash) new(scope: hash[:scope] || hash["scope"]) end |
Instance Method Details
#azure_ad? ⇒ Boolean
965 |
# File 'lib/xberg/native.rb', line 965 def azure_ad? = false |
#bedrock_web_identity? ⇒ Boolean
971 972 973 |
# File 'lib/xberg/native.rb', line 971 def bedrock_web_identity? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#vertex_adc? ⇒ Boolean
969 |
# File 'lib/xberg/native.rb', line 969 def vertex_adc? = true |
#vertex_oauth2? ⇒ Boolean
967 |
# File 'lib/xberg/native.rb', line 967 def vertex_oauth2? = false |