Class: OpenAI::Models::Admin::Organization::ExternalStorageCreateParams::Provider::Gcp

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

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

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

Returns a new instance of Gcp.

Parameters:

  • bucket: (String)
  • workload_identity_pool_id: (String)
  • workload_identity_project_number: (String)
  • workload_identity_provider_id: (String)
  • type: (:gcp)


191
192
193
194
195
196
197
# File 'sig/openai/models/admin/organization/external_storage_create_params.rbs', line 191

def initialize: (
  bucket: String,
  workload_identity_pool_id: String,
  workload_identity_project_number: String,
  workload_identity_provider_id: String,
  ?type: :gcp
) -> void

Instance Attribute Details

#bucket ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


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

required :bucket, String

#type ⇒ Symbol, :gcp

Parameters:

  • value (:gcp)

Returns:

  • (Symbol, :gcp)


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

required :type, const: :gcp

#workload_identity_pool_id ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


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

required :workload_identity_pool_id, String

#workload_identity_project_number ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


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

required :workload_identity_project_number, String

#workload_identity_provider_id ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


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

required :workload_identity_provider_id, String

Instance Method Details

#to_hash ⇒ { bucket: String, ?type: :gcp, workload_identity_pool_id: String, workload_identity_project_number: String, workload_identity_provider_id: String }

Returns:

  • ({ bucket: String, ?type: :gcp, workload_identity_pool_id: String, workload_identity_project_number: String, workload_identity_provider_id: String })


199
200
201
202
203
204
205
# File 'sig/openai/models/admin/organization/external_storage_create_params.rbs', line 199

def to_hash: -> {
  bucket: String,
  ?type: :gcp,
  workload_identity_pool_id: String,
  workload_identity_project_number: String,
  workload_identity_provider_id: String
}