Class: OpenAI::Models::Admin::Organization::ExternalStorageCreateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/openai/models/admin/organization/external_storage_create_params.rb,
sig/openai/models/admin/organization/external_storage_create_params.rbs

Overview

See Also:

  • OpenAI::Resources::Admin::Organization::ExternalStorage#create

Defined Under Namespace

Modules: Provider

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 ⇒ ExternalStorageCreateParams

Returns a new instance of ExternalStorageCreateParams.

Parameters:

  • project_id: (String)
  • provider: (OpenAI::Models::Admin::Organization::ExternalStorageCreateParams::provider, { bucket: String, role_arn: String, type: :aws }, { account_name: String, container: String, resource_group: String, subscription_id: String, tenant_id: String, type: :azure }, { bucket: String, type: :gcp, workload_identity_pool_id: String, workload_identity_project_number: String, workload_identity_provider_id: String }, { bucket: String, region: String, tenancy_ocid: String, type: :oci })
  • request_options: (OpenAI::request_opts)


68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# File 'sig/openai/models/admin/organization/external_storage_create_params.rbs', line 68

def initialize: (
  project_id: String,
  provider: OpenAI::Models::Admin::Organization::ExternalStorageCreateParams::provider
  | { bucket: String, role_arn: String, type: :aws }
  | {
    account_name: String,
    container: String,
    resource_group: String,
    subscription_id: String,
    tenant_id: String,
    type: :azure
  }
  | {
    bucket: String,
    type: :gcp,
    workload_identity_pool_id: String,
    workload_identity_project_number: String,
    workload_identity_provider_id: String
  }
  | {
    bucket: String,
    region: String,
    tenancy_ocid: String,
    type: :oci
  },
  ?request_options: OpenAI::request_opts
) -> void

Instance Attribute Details

#project_id ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


15
# File 'lib/openai/models/admin/organization/external_storage_create_params.rb', line 15

required :project_id, String

#provider ⇒ OpenAI::Models::Admin::Organization::ExternalStorageCreateParams::Provider::Aws, ...

Parameters:

  • (OpenAI::Models::Admin::Organization::ExternalStorageCreateParams::provider, { bucket: String, role_arn: String, type: :aws }, { account_name: String, container: String, resource_group: String, subscription_id: String, tenant_id: String, type: :azure }, { bucket: String, type: :gcp, workload_identity_pool_id: String, workload_identity_project_number: String, workload_identity_provider_id: String }, { bucket: String, region: String, tenancy_ocid: String, type: :oci })

Returns:



20
# File 'lib/openai/models/admin/organization/external_storage_create_params.rb', line 20

required :provider, union: -> { OpenAI::Admin::Organization::ExternalStorageCreateParams::Provider }

Instance Method Details

#to_hash ⇒ { project_id: String, provider: OpenAI::Models::Admin::Organization::ExternalStorageCreateParams::provider, ?request_options: OpenAI::RequestOptions }

Returns:

  • ({ project_id: String, provider: OpenAI::Models::Admin::Organization::ExternalStorageCreateParams::provider, ?request_options: OpenAI::RequestOptions })


96
97
98
99
100
# File 'sig/openai/models/admin/organization/external_storage_create_params.rbs', line 96

def to_hash: -> {
  project_id: String,
  provider: OpenAI::Models::Admin::Organization::ExternalStorageCreateParams::provider,
  ?request_options: OpenAI::RequestOptions
}