Class: Anthropic::Models::Organization::WorkspaceCreateParams

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

Overview

See Also:

  • Anthropic::Resources::Organization::Workspaces#create

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(name:, data_residency: nil, display_color: nil, external_key_id: nil, tags: nil, user_profile_id: nil, request_options: {}) ⇒ WorkspaceCreateParams

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

Parameters:

  • name (String) —

    Name of the Workspace.

  • data_residency (Anthropic::Models::Organization::DataResidencyCreateConfig, nil) (defaults to: nil) —

    Data residency configuration for the workspace. If omitted, defaults to

  • display_color (String, nil) (defaults to: nil) —

    Hex color code representing the Workspace in the Anthropic Console.

  • external_key_id (String, nil) (defaults to: nil) —

    ID of the customer-managed encryption key (CMEK) configuration to use for this

  • tags (Hash{Symbol=>String}, nil) (defaults to: nil) —

    User-defined tags as string key-value pairs. Keys may not begin with anthropic

  • user_profile_id (String, nil) (defaults to: nil) —

    ID of a user profile to attach to the Workspace. Every inference request through

  • request_options (Anthropic::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})
  • name: (String)
  • data_residency: (Anthropic::Organization::DataResidencyCreateConfig, nil) (defaults to: nil)
  • display_color: (String, nil) (defaults to: nil)
  • external_key_id: (String, nil) (defaults to: nil)
  • tags: (::Hash[Symbol, String], nil) (defaults to: nil)
  • user_profile_id: (String, nil) (defaults to: nil)
  • request_options: (Anthropic::request_opts) (defaults to: {})


# File 'lib/anthropic/models/organization/workspace_create_params.rb', line 64

Instance Attribute Details

#data_residency ⇒ Anthropic::Models::Organization::DataResidencyCreateConfig?

Data residency configuration for the workspace. If omitted, defaults to workspace_geo: "us", allowed_inference_geos: "unrestricted", and default_inference_geo: "global".

Parameters:

  • value (Anthropic::Organization::DataResidencyCreateConfig, nil)

Returns:



23
# File 'lib/anthropic/models/organization/workspace_create_params.rb', line 23

optional :data_residency, -> { Anthropic::Organization::DataResidencyCreateConfig }, nil?: true

#display_color ⇒ String?

Hex color code representing the Workspace in the Anthropic Console.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


29
# File 'lib/anthropic/models/organization/workspace_create_params.rb', line 29

optional :display_color, String, nil?: true

#external_key_id ⇒ String?

ID of the customer-managed encryption key (CMEK) configuration to use for this Workspace. Setting this field requires CMEK to be enabled for your organization. When set, data stored for this Workspace is encrypted with the referenced key. Create key configurations with the External Keys API. On Claude Platform on AWS the value for an AWS KMS key is the key's ARN, and your organization's own key must be a single-Region key in the same Region as the Workspace. If that key is outside the Workspace's AWS account, it can be attached only by updating an active Workspace. On that platform the key is validated against this Workspace when it is attached, so a key-policy problem is reported as an error on this request. This field is write-once: once a key is attached to a Workspace it cannot be detached or replaced. To rotate key material, rotate the underlying key on your cloud KMS; the external_key_id stays the same.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


46
# File 'lib/anthropic/models/organization/workspace_create_params.rb', line 46

optional :external_key_id, String, nil?: true

#name ⇒ String

Name of the Workspace.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :name, String

#tags ⇒ Hash{Symbol=>String}?

User-defined tags as string key-value pairs. Keys may not begin with anthropic.

Parameters:

  • value (::Hash[Symbol, String], nil)

Returns:

  • (Hash{Symbol=>String}, nil)


53
# File 'lib/anthropic/models/organization/workspace_create_params.rb', line 53

optional :tags, Anthropic::Internal::Type::HashOf[String], nil?: true

#user_profile_id ⇒ String?

ID of a user profile to attach to the Workspace. Every inference request through the Workspace must then name this user profile; the API rejects a request that names none or a different one. The user profile can't be replaced or removed later; only deleting the user profile clears it.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


62
# File 'lib/anthropic/models/organization/workspace_create_params.rb', line 62

optional :user_profile_id, String, nil?: true

Instance Method Details

#to_hash ⇒ { name: String, data_residency: Anthropic::Organization::DataResidencyCreateConfig?, display_color: String?, external_key_id: String?, tags: ::Hash[Symbol, String]?, user_profile_id: String?, request_options: Anthropic::RequestOptions }

Returns:

  • ({ name: String, data_residency: Anthropic::Organization::DataResidencyCreateConfig?, display_color: String?, external_key_id: String?, tags: ::Hash[Symbol, String]?, user_profile_id: String?, request_options: Anthropic::RequestOptions })


41
42
43
44
45
46
47
48
49
# File 'sig/anthropic/models/organization/workspace_create_params.rbs', line 41

def to_hash: -> {
  name: String,
  data_residency: Anthropic::Organization::DataResidencyCreateConfig?,
  display_color: String?,
  external_key_id: String?,
  tags: ::Hash[Symbol, String]?,
  user_profile_id: String?,
  request_options: Anthropic::RequestOptions
}