Class: OpenAI::Auth::WorkloadIdentity
- Inherits:
-
Object
- Object
- OpenAI::Auth::WorkloadIdentity
- Defined in:
- lib/openai/auth/workload_identity.rb
Instance Attribute Summary collapse
-
#client_id ⇒ Object
readonly
Returns the value of attribute client_id.
-
#identity_provider_id ⇒ Object
readonly
Returns the value of attribute identity_provider_id.
-
#provider ⇒ Object
readonly
Returns the value of attribute provider.
-
#refresh_buffer_seconds ⇒ Object
readonly
Returns the value of attribute refresh_buffer_seconds.
-
#service_account_id ⇒ Object
readonly
Returns the value of attribute service_account_id.
Instance Method Summary collapse
-
#initialize(client_id:, identity_provider_id:, service_account_id:, provider:, refresh_buffer_seconds: 1200) ⇒ WorkloadIdentity
constructor
A new instance of WorkloadIdentity.
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 = service_account_id.to_s @provider = provider @refresh_buffer_seconds = refresh_buffer_seconds.to_i end |
Instance Attribute Details
#client_id ⇒ Object (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_id ⇒ Object (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 |
#provider ⇒ Object (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_seconds ⇒ Object (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_id ⇒ Object (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 @service_account_id end |