Class: OpenAI::Auth::WorkloadIdentity

Inherits:
Object
  • Object
show all
Defined in:
lib/openai/auth/workload_identity.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client_id:, identity_provider_id:, service_account_id:, provider:, refresh_buffer_seconds: 1200) ⇒ WorkloadIdentity

Returns a new instance of WorkloadIdentity.



8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/openai/auth/workload_identity.rb', line 8

def initialize(
  client_id:,
  identity_provider_id:,
  service_account_id:,
  provider:,
  refresh_buffer_seconds: 1200
)
  @client_id = client_id.to_s
  @identity_provider_id = identity_provider_id.to_s
  @service_account_id = .to_s
  @provider = provider
  @refresh_buffer_seconds = refresh_buffer_seconds.to_i
end

Instance Attribute Details

#client_idObject (readonly)

Returns the value of attribute client_id.



6
7
8
# File 'lib/openai/auth/workload_identity.rb', line 6

def client_id
  @client_id
end

#identity_provider_idObject (readonly)

Returns the value of attribute identity_provider_id.



6
7
8
# File 'lib/openai/auth/workload_identity.rb', line 6

def identity_provider_id
  @identity_provider_id
end

#providerObject (readonly)

Returns the value of attribute provider.



6
7
8
# File 'lib/openai/auth/workload_identity.rb', line 6

def provider
  @provider
end

#refresh_buffer_secondsObject (readonly)

Returns the value of attribute refresh_buffer_seconds.



6
7
8
# File 'lib/openai/auth/workload_identity.rb', line 6

def refresh_buffer_seconds
  @refresh_buffer_seconds
end

#service_account_idObject (readonly)

Returns the value of attribute service_account_id.



6
7
8
# File 'lib/openai/auth/workload_identity.rb', line 6

def 
  @service_account_id
end