Class: Anthropic::Models::Beta::Vaults::BetaManagedAgentsEnvironmentVariableUpdateParams

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_update_params.rb,
sig/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_update_params.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(injection_location: nil, networking: nil, secret_value: nil, type: :environment_variable) ⇒ BetaManagedAgentsEnvironmentVariableUpdateParams

Parameters for updating an environment variable credential. secret_name is immutable.

Parameters:



# File 'lib/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_update_params.rb', line 34

Instance Attribute Details

#injection_location ⇒ Anthropic::Models::Beta::Vaults::BetaManagedAgentsInjectionLocationUpdateParams?

Updated injection location.

Parameters:

  • (Anthropic::Beta::Vaults::BetaManagedAgentsInjectionLocationUpdateParams)

Returns:



17
18
# File 'lib/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_update_params.rb', line 17

optional :injection_location,
-> { Anthropic::Beta::Vaults::BetaManagedAgentsInjectionLocationUpdateParams }

#networking ⇒ Anthropic::Models::Beta::Vaults::BetaManagedAgentsUnrestrictedCredentialNetworkingParams, ...

The new networking scope, which replaces the stored one as a whole.

Parameters:

  • value (Anthropic::Models::Beta::Vaults::beta_managed_agents_credential_networking_params, nil)

Returns:



24
25
26
# File 'lib/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_update_params.rb', line 24

optional :networking,
union: -> { Anthropic::Beta::Vaults::BetaManagedAgentsCredentialNetworkingParams },
nil?: true

#secret_value ⇒ String?

The new secret value to replace the stored one.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


32
# File 'lib/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_update_params.rb', line 32

optional :secret_value, String, nil?: true

#type ⇒ Symbol, :environment_variable

Parameters:

  • value (:environment_variable)

Returns:

  • (Symbol, :environment_variable)


11
# File 'lib/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_update_params.rb', line 11

required :type, const: :environment_variable

Instance Method Details

#to_hash ⇒ { type: :environment_variable, injection_location: Anthropic::Beta::Vaults::BetaManagedAgentsInjectionLocationUpdateParams, networking: Anthropic::Models::Beta::Vaults::beta_managed_agents_credential_networking_params?, secret_value: String? }

Returns:

  • ({ type: :environment_variable, injection_location: Anthropic::Beta::Vaults::BetaManagedAgentsInjectionLocationUpdateParams, networking: Anthropic::Models::Beta::Vaults::beta_managed_agents_credential_networking_params?, secret_value: String? })


33
34
35
36
37
38
# File 'sig/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_update_params.rbs', line 33

def to_hash: -> {
  type: :environment_variable,
  injection_location: Anthropic::Beta::Vaults::BetaManagedAgentsInjectionLocationUpdateParams,
  networking: Anthropic::Models::Beta::Vaults::beta_managed_agents_credential_networking_params?,
  secret_value: String?
}