Class: OpenAI::Models::Beta::AgentSession::RequiredAction::ComputerUseApprovalRequest::Request::BrowserOriginAccess
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::AgentSession::RequiredAction::ComputerUseApprovalRequest::Request::BrowserOriginAccess
- Defined in:
- lib/openai/models/beta/agent_session.rb,
sig/openai/models/beta/agent_session.rbs
Instance Attribute Summary collapse
-
#origin ⇒ String
The origin the browser needs permission to access.
-
#reason ⇒ String?
The browser's explanation for this request, or null when unavailable.
-
#type ⇒ :browser_origin_access
The type of the object.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize ⇒ BrowserOriginAccess
constructor
A new instance of BrowserOriginAccess.
- #to_hash ⇒ { origin: String, reason: String?, ?type: :browser_origin_access }
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 ⇒ BrowserOriginAccess
Returns a new instance of BrowserOriginAccess.
596 597 598 599 600 |
# File 'sig/openai/models/beta/agent_session.rbs', line 596
def initialize: (
origin: String,
reason: String?,
?type: :browser_origin_access
) -> void
|
Instance Attribute Details
#origin ⇒ String
The origin the browser needs permission to access.
625 |
# File 'lib/openai/models/beta/agent_session.rb', line 625 required :origin, String |
#reason ⇒ String?
The browser's explanation for this request, or null when unavailable.
631 |
# File 'lib/openai/models/beta/agent_session.rb', line 631 required :reason, String, nil?: true |
#type ⇒ :browser_origin_access
The type of the object. Always browser_origin_access.
637 |
# File 'lib/openai/models/beta/agent_session.rb', line 637 required :type, const: :browser_origin_access |
Instance Method Details
#to_hash ⇒ { origin: String, reason: String?, ?type: :browser_origin_access }
602 603 604 605 606 |
# File 'sig/openai/models/beta/agent_session.rbs', line 602
def to_hash: -> {
origin: String,
reason: String?,
?type: :browser_origin_access
}
|