Class: Anthropic::Models::Organization::ExternalKeyCreateParams

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

Overview

See Also:

  • Anthropic::Resources::Organization::ExternalKeys#create

Defined Under Namespace

Modules: Geo, ProviderConfig

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

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

==, #==, #[], 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

#initialize(provider_config:, display_name: nil, geo: nil, user_profile_id: nil, request_options: {}) ⇒ ExternalKeyCreateParams

Some parameter documentations has been truncated, see Anthropic::Models::Organization::ExternalKeyCreateParams for more details.

Parameters:



# File 'lib/anthropic/models/organization/external_key_create_params.rb', line 41

Instance Attribute Details

#display_name ⇒ String?

Human-friendly display name.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


21
# File 'lib/anthropic/models/organization/external_key_create_params.rb', line 21

optional :display_name, String, nil?: true

#geo ⇒ Symbol, ...

Data residency geo. Only us is supported.

Parameters:

  • (Anthropic::Models::Organization::ExternalKeyCreateParams::geo)

Returns:



27
# File 'lib/anthropic/models/organization/external_key_create_params.rb', line 27

optional :geo, enum: -> { Anthropic::Organization::ExternalKeyCreateParams::Geo }

#provider_config ⇒ Anthropic::Models::Organization::AWSExternalKeyConfig, ...

KMS provider identity and auth coordinates.

Parameters:

  • value (Anthropic::Models::Organization::ExternalKeyCreateParams::provider_config)

Returns:



15
# File 'lib/anthropic/models/organization/external_key_create_params.rb', line 15

required :provider_config, union: -> { Anthropic::Organization::ExternalKeyCreateParams::ProviderConfig }

#user_profile_id ⇒ String?

ID of a user profile to bind the key to. A user profile represents one of your customers: bind a customer's key to that customer's user profile. A key bound to a user profile can only be attached to a Workspace that has the same user profile, and the binding cannot be changed later. Omit this field only for your organization's own key, never a customer's. A key created without a user profile ID can't be attached to a Workspace that has a user profile, and you can't add one to the key later.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


39
# File 'lib/anthropic/models/organization/external_key_create_params.rb', line 39

optional :user_profile_id, String, nil?: true

Instance Method Details

#to_hash ⇒ { provider_config: Anthropic::Models::Organization::ExternalKeyCreateParams::provider_config, display_name: String?, geo: Anthropic::Models::Organization::ExternalKeyCreateParams::geo, user_profile_id: String?, request_options: Anthropic::RequestOptions }

Returns:

  • ({ provider_config: Anthropic::Models::Organization::ExternalKeyCreateParams::provider_config, display_name: String?, geo: Anthropic::Models::Organization::ExternalKeyCreateParams::geo, user_profile_id: String?, request_options: Anthropic::RequestOptions })


37
38
39
40
41
42
43
# File 'sig/anthropic/models/organization/external_key_create_params.rbs', line 37

def to_hash: -> {
  provider_config: Anthropic::Models::Organization::ExternalKeyCreateParams::provider_config,
  display_name: String?,
  geo: Anthropic::Models::Organization::ExternalKeyCreateParams::geo,
  user_profile_id: String?,
  request_options: Anthropic::RequestOptions
}