Module: Anthropic::Models::Beta::Organization::BetaAnalyticsActor
- Extended by:
- Internal::Type::Union
- Defined in:
- lib/anthropic/models/beta/organization/beta_analytics_actor.rb,
sig/anthropic/models/beta/organization/beta_analytics_actor.rbs
Defined Under Namespace
Modules: Type
Class Method Summary collapse
-
.new(type:, **args) ⇒ Anthropic::Models::Beta::Organization::BetaAnalyticsReportUserActor, ...
Creates a new instance of the variant class whose
typematches the given value, passing the remaining arguments to its constructor. - .values ⇒ Array<Symbol>
- .variants ⇒ Array(Anthropic::Models::Beta::Organization::BetaAnalyticsReportUserActor, Anthropic::Models::Beta::Organization::BetaAnalyticsServiceAccountActor, Anthropic::Models::Beta::Organization::BetaAnalyticsFederatedActor, Anthropic::Models::Beta::Organization::BetaAnalyticsAPIActor)
Methods included from Internal::Type::Union
==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Class Method Details
.new(type:, deleted:, email_address:, name:, user_id:) ⇒ Anthropic::Beta::Organization::BetaAnalyticsReportUserActor .new(type:, service_account_id:) ⇒ Anthropic::Beta::Organization::BetaAnalyticsServiceAccountActor .new(type:, provider:, subject:) ⇒ Anthropic::Beta::Organization::BetaAnalyticsFederatedActor .new(type:, api_key_id:) ⇒ Anthropic::Beta::Organization::BetaAnalyticsAPIActor .new(type:, deleted:, email_address:, name:, user_id:, service_account_id:, provider:, subject:, api_key_id:) ⇒ Anthropic::Models::Beta::Organization::beta_analytics_actor
Creates a new instance of the variant class whose type matches the given
value, passing the remaining arguments to its constructor.
Some parameter documentations has been truncated, see Anthropic::Models::Beta::Organization::BetaAnalyticsActor for more details.
63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/anthropic/models/beta/organization/beta_analytics_actor.rb', line 63 def self.new(type:, **args) case type.to_sym when :user_actor Anthropic::Beta::Organization::BetaAnalyticsReportUserActor.new(**args) when :service_account_actor Anthropic::Beta::Organization::BetaAnalyticsServiceAccountActor.new(**args) when :federated_actor Anthropic::Beta::Organization::BetaAnalyticsFederatedActor.new(**args) when :api_actor Anthropic::Beta::Organization::BetaAnalyticsAPIActor.new(**args) else raise ArgumentError, "unknown type: #{type}" end end |
.values ⇒ Array<Symbol>
|
|
# File 'lib/anthropic/models/beta/organization/beta_analytics_actor.rb', line 28
|
.variants ⇒ Array(Anthropic::Models::Beta::Organization::BetaAnalyticsReportUserActor, Anthropic::Models::Beta::Organization::BetaAnalyticsServiceAccountActor, Anthropic::Models::Beta::Organization::BetaAnalyticsFederatedActor, Anthropic::Models::Beta::Organization::BetaAnalyticsAPIActor)
|
|
# File 'lib/anthropic/models/beta/organization/beta_analytics_actor.rb', line 32
|