Class: OpenAI::Models::Beta::Agents::AutomationUpdateParams

Inherits:
Internal::Type::BaseModel show all
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

See Also:

  • OpenAI::Resources::Beta::Agents::Automations#update

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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.

Parameters:

  • expression (defaults to: nil) —

    Only accepted for periodic automations.

  • metadata (defaults to: nil) —

    Replaces all metadata; omit to leave unchanged.

  • run_at (defaults to: nil) —

    A future Unix timestamp in seconds; accepted only before a one-time scheduled invocation exists.

  • target (defaults to: nil) —

    Replaces the complete target, retaining its type and any creator session.

  • timezone (defaults to: nil) —

    Only accepted for periodic automations.

  • automation_id: (String)
  • expression: (String) (defaults to: nil)
  • metadata: (::Hash[Symbol, String]) (defaults to: nil)
  • name: (String) (defaults to: nil)
  • run_at: (Integer) (defaults to: nil)
  • target: (OpenAI::Models::Beta::Agents::automation_target_param) (defaults to: nil)
  • timezone: (String) (defaults to: nil)
  • request_options: (OpenAI::request_opts) (defaults to: {})


# File 'lib/openai/models/beta/agents/automation_update_params.rb', line 53

Instance Attribute Details

#automation_id ⇒ String

Parameters:

  • value (String)

Returns:

  • (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.

Returns:

  • (String, nil)


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.

Returns:

  • (::Hash[Symbol, String], nil)


27
# File 'lib/openai/models/beta/agents/automation_update_params.rb', line 27

optional :metadata, OpenAI::Internal::Type::HashOf[String]

#name ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


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.

Returns:

  • (Integer, nil)


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.

Returns:

  • (OpenAI::Models::Beta::Agents::automation_target_param, nil)


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.

Returns:

  • (String, nil)


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 }

Returns:

  • ({ 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
}