Class: OpenAI::Models::Beta::Agents::AutomationUpdateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::Agents::AutomationUpdateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/openai/models/beta/agents/automation_update_params.rb,
sig/openai/models/beta/agents/automation_update_params.rbs
Overview
Instance Attribute Summary collapse
- #automation_id ⇒ String
-
#expression ⇒ String?
Only accepted for periodic automations.
-
#metadata ⇒ ::Hash[Symbol, String]?
Replaces all metadata; omit to leave unchanged.
- #name ⇒ String?
-
#run_at ⇒ Integer?
A future Unix timestamp in seconds; accepted only before a one-time scheduled invocation exists.
-
#target ⇒ OpenAI::Models::Beta::Agents::automation_target_param?
Replaces the complete target, retaining its type and any creator session.
-
#timezone ⇒ String?
Only accepted for periodic automations.
Attributes included from Internal::Type::RequestParameters
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(automation_id:, expression: nil, metadata: nil, name: nil, run_at: nil, target: nil, timezone: nil, request_options: {}) ⇒ AutomationUpdateParams
constructor
A new instance of AutomationUpdateParams.
- #to_hash ⇒ { automation_id: String, ?expression: String, ?metadata: ::Hash[Symbol, String], ?name: String, ?run_at: Integer, ?target: OpenAI::Models::Beta::Agents::automation_target_param, ?timezone: String, ?request_options: OpenAI::RequestOptions }
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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(automation_id:, expression: nil, metadata: nil, name: nil, run_at: nil, target: nil, timezone: nil, request_options: {}) ⇒ AutomationUpdateParams
Returns a new instance of AutomationUpdateParams.
|
|
# File 'lib/openai/models/beta/agents/automation_update_params.rb', line 53
|
Instance Attribute Details
#automation_id ⇒ String
15 |
# File 'lib/openai/models/beta/agents/automation_update_params.rb', line 15 required :automation_id, String |
#expression ⇒ String?
Only accepted for periodic automations.
21 |
# File 'lib/openai/models/beta/agents/automation_update_params.rb', line 21 optional :expression, String |
#metadata ⇒ ::Hash[Symbol, String]?
Replaces all metadata; omit to leave unchanged.
27 |
# File 'lib/openai/models/beta/agents/automation_update_params.rb', line 27 optional :metadata, OpenAI::Internal::Type::HashOf[String] |
#name ⇒ String?
32 |
# File 'lib/openai/models/beta/agents/automation_update_params.rb', line 32 optional :name, String |
#run_at ⇒ Integer?
A future Unix timestamp in seconds; accepted only before a one-time scheduled invocation exists.
39 |
# File 'lib/openai/models/beta/agents/automation_update_params.rb', line 39 optional :run_at, Integer |
#target ⇒ OpenAI::Models::Beta::Agents::automation_target_param?
Replaces the complete target, retaining its type and any creator session.
45 |
# File 'lib/openai/models/beta/agents/automation_update_params.rb', line 45 optional :target, union: -> { OpenAI::Beta::Agents::AutomationTargetParam } |
#timezone ⇒ String?
Only accepted for periodic automations.
51 |
# File 'lib/openai/models/beta/agents/automation_update_params.rb', line 51 optional :timezone, String |
Instance Method Details
#to_hash ⇒ { automation_id: String, ?expression: String, ?metadata: ::Hash[Symbol, String], ?name: String, ?run_at: Integer, ?target: OpenAI::Models::Beta::Agents::automation_target_param, ?timezone: String, ?request_options: OpenAI::RequestOptions }
83 84 85 86 87 88 89 90 91 92 |
# File 'sig/openai/models/beta/agents/automation_update_params.rbs', line 83
def to_hash: -> {
automation_id: String,
?expression: String,
?metadata: ::Hash[Symbol, String],
?name: String,
?run_at: Integer,
?target: OpenAI::Models::Beta::Agents::automation_target_param,
?timezone: String,
?request_options: OpenAI::RequestOptions
}
|