Class: OpenAI::Models::Beta::AgentSession::RequiredAction::ComputerUseApprovalRequest::Request::BrowserAuthentication::Field
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::AgentSession::RequiredAction::ComputerUseApprovalRequest::Request::BrowserAuthentication::Field
- Defined in:
- lib/openai/models/beta/agent_session.rb,
sig/openai/models/beta/agent_session.rbs
Instance Attribute Summary collapse
-
#id ⇒ String
The field ID to submit as field_id in a fields entry.
-
#label ⇒ String
The label to display beside the control.
-
#required ⇒ Boolean
Whether this control requires a nonempty value.
-
#type ⇒ String
The rendering type, such as email, password, or text.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(credential_origin:, fields:, options:, reason:, type: :browser_authentication) ⇒ Field
constructor
A new instance of Field.
- #to_hash ⇒ { id: String, label: String, required: bool, type: String }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, 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(credential_origin:, fields:, options:, reason:, type: :browser_authentication) ⇒ Field
Returns a new instance of Field.
546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 |
# File 'lib/openai/models/beta/agent_session.rb', line 546 class Field < OpenAI::Internal::Type::BaseModel # @!attribute id # The field ID to submit as field_id in a fields entry. # # @return [String] required :id, String # @!attribute label # The label to display beside the control. # # @return [String] required :label, String # @!attribute required # Whether this control requires a nonempty value. # # @return [Boolean] required :required, OpenAI::Internal::Type::Boolean # @!attribute type # The rendering type, such as email, password, or text. # # @return [String] required :type, String # @!method initialize(id:, label:, required:, type:) # A control in a registered browser-login form. # # @param id [String] # The field ID to submit as field_id in a fields entry. # # @param label [String] # The label to display beside the control. # # @param required [Boolean] # Whether this control requires a nonempty value. # # @param type [String] # The rendering type, such as email, password, or text. end |
Instance Attribute Details
#id ⇒ String
The field ID to submit as field_id in a fields entry.
551 |
# File 'lib/openai/models/beta/agent_session.rb', line 551 required :id, String |
#label ⇒ String
The label to display beside the control.
557 |
# File 'lib/openai/models/beta/agent_session.rb', line 557 required :label, String |
#required ⇒ Boolean
Whether this control requires a nonempty value.
563 |
# File 'lib/openai/models/beta/agent_session.rb', line 563 required :required, OpenAI::Internal::Type::Boolean |
#type ⇒ String
The rendering type, such as email, password, or text.
569 |
# File 'lib/openai/models/beta/agent_session.rb', line 569 required :type, String |
Instance Method Details
#to_hash ⇒ { id: String, label: String, required: bool, type: String }
532 533 534 535 536 537 |
# File 'sig/openai/models/beta/agent_session.rbs', line 532
def to_hash: -> {
id: String,
label: String,
required: bool,
type: String
}
|