Class: Anthropic::Models::UserProfileCyberProgram

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/user_profile_cyber_program.rb,
sig/anthropic/models/user_profile_cyber_program.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

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(requirements:, status:, tiers:) ⇒ UserProfileCyberProgram

A user profile's standing in the Cyber Verification Program, which relaxes cyber safeguards for requests that name the profile.

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

Parameters:



# File 'lib/anthropic/models/user_profile_cyber_program.rb', line 38

Instance Attribute Details

#requirements ⇒ Anthropic::Models::UserProfileCyberRequirements?

What a request that names the profile must allow to get the relaxed safeguards of every active tier. null when no tier is active, and wherever tiers is {}.



12
# File 'lib/anthropic/models/user_profile_cyber_program.rb', line 12

required :requirements, -> { Anthropic::UserProfileCyberRequirements }, nil?: true

#status ⇒ Symbol, Anthropic::Models::UserProfileProgramStatus

active when at least one tier is active, or when the profile has the program's access to earlier models. That access is not a tier: a profile that has it alone reads active with every tier inactive, or with tiers {} on a response that does not report tiers. When nothing is active, pending means that an application or enrollment is under review, or that what Anthropic approved does not yet apply to this profile, and rejected means that the application or enrollment was declined.

Parameters:

  • value (Anthropic::Models::user_profile_program_status)

Returns:



24
# File 'lib/anthropic/models/user_profile_cyber_program.rb', line 24

required :status, enum: -> { Anthropic::UserProfileProgramStatus }

#tiers ⇒ Hash{Symbol=>Anthropic::Models::UserProfileCyberTier}

The program's tiers, keyed by tier: a (Specialized Access), b (Red Team Access) and c (Defense Access). A response reports either every tier or none. When it reports them, as retrieving the profile normally does, every tier has a key, whether or not it applies to the profile. When it does not, as in the list of user profiles, tiers is {}, which does not mean that the tiers are inactive. No tier implies another, so read the tier you need. Anthropic may add tiers; ignore a key you do not recognize.

Parameters:

Returns:



36
# File 'lib/anthropic/models/user_profile_cyber_program.rb', line 36

required :tiers, -> { Anthropic::Internal::Type::HashOf[Anthropic::UserProfileCyberTier] }

Instance Method Details

#to_hash ⇒ { requirements: Anthropic::UserProfileCyberRequirements?, status: Anthropic::Models::user_profile_program_status, tiers: ::Hash[Symbol, Anthropic::UserProfileCyberTier] }

Returns:



23
24
25
26
27
# File 'sig/anthropic/models/user_profile_cyber_program.rbs', line 23

def to_hash: -> {
  requirements: Anthropic::UserProfileCyberRequirements?,
  status: Anthropic::Models::user_profile_program_status,
  tiers: ::Hash[Symbol, Anthropic::UserProfileCyberTier]
}