Class: OpenAI::Models::Admin::Organization::Projects::ServiceAccounts::APIKeyCreateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Admin::Organization::Projects::ServiceAccounts::APIKeyCreateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/openai/models/admin/organization/projects/service_accounts/api_key_create_params.rb,
sig/openai/models/admin/organization/projects/service_accounts/api_key_create_params.rbs
Overview
Instance Attribute Summary collapse
-
#name ⇒ String?
API key name.
-
#project_id ⇒ String
The ID of the project.
-
#scopes ⇒ Array<String>?
API key scopes.
-
#service_account_id ⇒ String
The ID of the service account.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
- #initialize(project_id:, service_account_id:, name: nil, scopes: nil, request_options: {}) ⇒ Object constructor
- #to_hash ⇒ {
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(project_id:, service_account_id:, name: nil, scopes: nil, request_options: {}) ⇒ Object
|
|
# File 'lib/openai/models/admin/organization/projects/service_accounts/api_key_create_params.rb', line 38
|
Instance Attribute Details
#name ⇒ String?
API key name.
30 |
# File 'lib/openai/models/admin/organization/projects/service_accounts/api_key_create_params.rb', line 30 optional :name, String |
#project_id ⇒ String
The ID of the project.
18 |
# File 'lib/openai/models/admin/organization/projects/service_accounts/api_key_create_params.rb', line 18 required :project_id, String |
#scopes ⇒ Array<String>?
API key scopes.
36 |
# File 'lib/openai/models/admin/organization/projects/service_accounts/api_key_create_params.rb', line 36 optional :scopes, OpenAI::Internal::Type::ArrayOf[String] |
#service_account_id ⇒ String
The ID of the service account.
24 |
# File 'lib/openai/models/admin/organization/projects/service_accounts/api_key_create_params.rb', line 24 required :service_account_id, String |
Instance Method Details
#to_hash ⇒ {
40 |
# File 'sig/openai/models/admin/organization/projects/service_accounts/api_key_create_params.rbs', line 40
def to_hash: -> {
|