Class: Anthropic::Models::Beta::Organization::Workspaces::ServiceAccountUpdateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::Organization::Workspaces::ServiceAccountUpdateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/anthropic/models/beta/organization/workspaces/service_account_update_params.rb,
sig/anthropic/models/beta/organization/workspaces/service_account_update_params.rbs
Overview
Instance Attribute Summary collapse
-
#betas ⇒ Array<Symbol, String, Anthropic::Models::AnthropicBeta>?
Optional header to specify the beta version(s) you want to use.
-
#service_account_id ⇒ String
ID of the service account.
-
#workspace_id ⇒ String
ID of the workspace.
-
#workspace_role ⇒ Symbol, Anthropic::Models::Beta::Organization::BetaNoBillingWorkspaceRole
New role for the service account in this workspace.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize(workspace_id:, service_account_id:, workspace_role:, betas: nil, request_options: {}) ⇒ ServiceAccountUpdateParams
constructor
A new instance of ServiceAccountUpdateParams.
- #to_hash ⇒ { workspace_id: String, service_account_id: String, workspace_role: Anthropic::Models::Beta::Organization::beta_no_billing_workspace_role, betas: ::Array[Anthropic::Models::anthropic_beta], request_options: Anthropic::RequestOptions }
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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(workspace_id:, service_account_id:, workspace_role:, betas: nil, request_options: {}) ⇒ ServiceAccountUpdateParams
Returns a new instance of ServiceAccountUpdateParams.
|
|
# File 'lib/anthropic/models/beta/organization/workspaces/service_account_update_params.rb', line 37
|
Instance Attribute Details
#betas ⇒ Array<Symbol, String, Anthropic::Models::AnthropicBeta>?
Optional header to specify the beta version(s) you want to use.
35 |
# File 'lib/anthropic/models/beta/organization/workspaces/service_account_update_params.rb', line 35 optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] } |
#service_account_id ⇒ String
ID of the service account.
23 |
# File 'lib/anthropic/models/beta/organization/workspaces/service_account_update_params.rb', line 23 required :service_account_id, String |
#workspace_id ⇒ String
ID of the workspace.
17 |
# File 'lib/anthropic/models/beta/organization/workspaces/service_account_update_params.rb', line 17 required :workspace_id, String |
#workspace_role ⇒ Symbol, Anthropic::Models::Beta::Organization::BetaNoBillingWorkspaceRole
New role for the service account in this workspace.
29 |
# File 'lib/anthropic/models/beta/organization/workspaces/service_account_update_params.rb', line 29 required :workspace_role, enum: -> { Anthropic::Beta::Organization::BetaNoBillingWorkspaceRole } |
Instance Method Details
#to_hash ⇒ { workspace_id: String, service_account_id: String, workspace_role: Anthropic::Models::Beta::Organization::beta_no_billing_workspace_role, betas: ::Array[Anthropic::Models::anthropic_beta], request_options: Anthropic::RequestOptions }
39 40 41 42 43 44 45 |
# File 'sig/anthropic/models/beta/organization/workspaces/service_account_update_params.rbs', line 39
def to_hash: -> {
workspace_id: String,
service_account_id: String,
workspace_role: Anthropic::Models::Beta::Organization::beta_no_billing_workspace_role,
betas: ::Array[Anthropic::Models::anthropic_beta],
request_options: Anthropic::RequestOptions
}
|