Class: Xberg::CredentialProviderConfigVertexAdc

Inherits:
Data
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#scopeObject (readonly)

Returns the value of attribute scope

Returns:

  • (Object)

    the current value of 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

Returns:

  • (Boolean)


965
# File 'lib/xberg/native.rb', line 965

def azure_ad? = false

#bedrock_web_identity?Boolean

Returns:

  • (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

Returns:

  • (Boolean)


969
# File 'lib/xberg/native.rb', line 969

def vertex_adc? = true

#vertex_oauth2?Boolean

Returns:

  • (Boolean)


967
# File 'lib/xberg/native.rb', line 967

def vertex_oauth2? = false