Class: OpenAI::Models::Admin::Organization::Projects::ProjectHostedToolPermissions::ImageGeneration

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/openai/models/admin/organization/projects/project_hosted_tool_permissions.rb,
sig/openai/models/admin/organization/projects/project_hosted_tool_permissions.rbs

Overview

See Also:

  • OpenAI::Models::Admin::Organization::Projects::ProjectHostedToolPermissions#image_generation

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#initializeImageGeneration

Returns a new instance of ImageGeneration.

Parameters:



69
# File 'sig/openai/models/admin/organization/projects/project_hosted_tool_permissions.rbs', line 69

def initialize: (enabled: bool) -> void

Instance Attribute Details

#enabledBoolean

Whether the hosted tool is enabled for the project.

Parameters:

Returns:



91
# File 'lib/openai/models/admin/organization/projects/project_hosted_tool_permissions.rb', line 91

required :enabled, OpenAI::Internal::Type::Boolean

Instance Method Details

#to_hash{ enabled: bool }

Returns:

  • ({ enabled: bool })


71
# File 'sig/openai/models/admin/organization/projects/project_hosted_tool_permissions.rbs', line 71

def to_hash: -> { enabled: bool }