Class: Anthropic::Models::UserProfileEnforcementActionRestriction
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::UserProfileEnforcementActionRestriction
- Defined in:
- lib/anthropic/models/user_profile_enforcement_action_restriction.rb,
sig/anthropic/models/user_profile_enforcement_action_restriction.rbs
Instance Attribute Summary collapse
-
#action ⇒ Symbol, ...
The next step on the action:
verifyornull. -
#expires_at ⇒ Time?
When the action ends on its own, in RFC 3339 format; it stops showing once this time has passed.
-
#id ⇒ String
The action's ID (
enac_...), stable while the action is open. -
#opened_at ⇒ Time
When Anthropic opened the action, in RFC 3339 format.
-
#reason ⇒ Symbol, Anthropic::Models::UserProfileEnforcementActionReason
Why Anthropic placed the limit:
unsupported_region,fraud_or_abuse,high_harm,usage_policy_violation,account_compromiseorunspecified. - #type ⇒ Symbol, :restriction
Instance Method Summary collapse
-
#initialize(id:, action:, expires_at:, opened_at:, reason:, type: :restriction) ⇒ UserProfileEnforcementActionRestriction
constructor
Anthropic has limited how it serves the end user until the action is resolved.
- #to_hash ⇒ { id: String, action: Anthropic::Models::user_profile_enforcement_action_next_step?, expires_at: Time?, opened_at: Time, reason: Anthropic::Models::user_profile_enforcement_action_reason, type: :restriction }
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(id:, action:, expires_at:, opened_at:, reason:, type: :restriction) ⇒ UserProfileEnforcementActionRestriction
Anthropic has limited how it serves the end user until the action is resolved. The end user may still be served in part.
Some parameter documentations has been truncated, see Anthropic::Models::UserProfileEnforcementActionRestriction for more details.
|
|
# File 'lib/anthropic/models/user_profile_enforcement_action_restriction.rb', line 47
|
Instance Attribute Details
#action ⇒ Symbol, ...
The next step on the action: verify or null. verify: the end user can
clear it now by passing an identity check. null: there is nothing the end user
can do now to clear it, including while Anthropic reviews an identity check the
end user submitted.
19 |
# File 'lib/anthropic/models/user_profile_enforcement_action_restriction.rb', line 19 required :action, enum: -> { Anthropic::UserProfileEnforcementActionNextStep }, nil?: true |
#expires_at ⇒ Time?
When the action ends on its own, in RFC 3339 format; it stops showing once this
time has passed. null when it has no end date, and always null when reason
is account_compromise.
27 |
# File 'lib/anthropic/models/user_profile_enforcement_action_restriction.rb', line 27 required :expires_at, Time, nil?: true |
#id ⇒ String
The action's ID (enac_...), stable while the action is open.
10 |
# File 'lib/anthropic/models/user_profile_enforcement_action_restriction.rb', line 10 required :id, String |
#opened_at ⇒ Time
When Anthropic opened the action, in RFC 3339 format.
33 |
# File 'lib/anthropic/models/user_profile_enforcement_action_restriction.rb', line 33 required :opened_at, Time |
#reason ⇒ Symbol, Anthropic::Models::UserProfileEnforcementActionReason
Why Anthropic placed the limit: unsupported_region, fraud_or_abuse,
high_harm, usage_policy_violation, account_compromise or unspecified.
40 |
# File 'lib/anthropic/models/user_profile_enforcement_action_restriction.rb', line 40 required :reason, enum: -> { Anthropic::UserProfileEnforcementActionReason } |
#type ⇒ Symbol, :restriction
45 |
# File 'lib/anthropic/models/user_profile_enforcement_action_restriction.rb', line 45 required :type, const: :restriction |
Instance Method Details
#to_hash ⇒ { id: String, action: Anthropic::Models::user_profile_enforcement_action_next_step?, expires_at: Time?, opened_at: Time, reason: Anthropic::Models::user_profile_enforcement_action_reason, type: :restriction }
35 36 37 38 39 40 41 42 |
# File 'sig/anthropic/models/user_profile_enforcement_action_restriction.rbs', line 35
def to_hash: -> {
id: String,
action: Anthropic::Models::user_profile_enforcement_action_next_step?,
expires_at: Time?,
opened_at: Time,
reason: Anthropic::Models::user_profile_enforcement_action_reason,
type: :restriction
}
|