Class: OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::Body::Azure

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

Defined Under Namespace

Modules: Purpose

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(key_name:, name:, tenant_id:, vault_uri:, key_version: nil, purpose: nil, type: :azure) ⇒ Azure

Returns a new instance of Azure.

Parameters:

  • key_name —

    The name of the Azure Key Vault master key that you manage

  • name —

    A friendly name to identify this config

  • tenant_id —

    Your Azure tenant UUID

  • vault_uri —

    The URI of the Azure vault containing the master key you manage

  • key_version (defaults to: nil) —

    An exact Azure Key Vault key version. Required for PSP decryption; not accepted for EKM.

  • key_name: (String)
  • name: (String)
  • tenant_id: (String)
  • vault_uri: (String)
  • key_version: (String) (defaults to: nil)
  • purpose: (OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::Body::Azure::purpose) (defaults to: nil)
  • type: (:azure) (defaults to: :azure)


# File 'lib/openai/models/admin/organization/external_key_create_params.rb', line 273

Instance Attribute Details

#key_name ⇒ String

The name of the Azure Key Vault master key that you manage

Returns:

  • (String)


233
# File 'lib/openai/models/admin/organization/external_key_create_params.rb', line 233

required :key_name, String

#key_version ⇒ String?

An exact Azure Key Vault key version. Required for PSP decryption; not accepted for EKM.

Returns:

  • (String, nil)


263
# File 'lib/openai/models/admin/organization/external_key_create_params.rb', line 263

optional :key_version, String

#name ⇒ String

A friendly name to identify this config

Returns:

  • (String)


239
# File 'lib/openai/models/admin/organization/external_key_create_params.rb', line 239

required :name, String

#purpose ⇒ Symbol, ...

Parameters:

  • (OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::Body::Azure::purpose)

Returns:



268
269
270
271
# File 'lib/openai/models/admin/organization/external_key_create_params.rb', line 268

optional(
  :purpose,
  enum: -> { OpenAI::Admin::Organization::ExternalKeyCreateParams::Body::Azure::Purpose }
)

#tenant_id ⇒ String

Your Azure tenant UUID

Returns:

  • (String)


245
# File 'lib/openai/models/admin/organization/external_key_create_params.rb', line 245

required :tenant_id, String

#type ⇒ Symbol, :azure

Parameters:

  • value (:azure)

Returns:

  • (Symbol, :azure)


250
# File 'lib/openai/models/admin/organization/external_key_create_params.rb', line 250

required :type, const: :azure

#vault_uri ⇒ String

The URI of the Azure vault containing the master key you manage

Returns:

  • (String)


256
# File 'lib/openai/models/admin/organization/external_key_create_params.rb', line 256

required :vault_uri, String

Instance Method Details

#to_hash ⇒ { key_name: String, name: String, tenant_id: String, ?type: :azure, vault_uri: String, ?key_version: String, ?purpose: OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::Body::Azure::purpose }

Returns:

  • ({ key_name: String, name: String, tenant_id: String, ?type: :azure, vault_uri: String, ?key_version: String, ?purpose: OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::Body::Azure::purpose })


423
424
425
426
427
428
429
430
431
# File 'sig/openai/models/admin/organization/external_key_create_params.rbs', line 423

def to_hash: -> {
  key_name: String,
  name: String,
  tenant_id: String,
  ?type: :azure,
  vault_uri: String,
  ?key_version: String,
  ?purpose: OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::Body::Azure::purpose
}