Class: Anthropic::Models::Beta::EnvironmentUpdateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/anthropic/models/beta/environment_update_params.rb,
sig/anthropic/models/beta/environment_update_params.rbs

Overview

See Also:

  • Anthropic::Resources::Beta::Environments#update

Defined Under Namespace

Modules: Config, Scope

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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(environment_id:, config: nil, description: nil, metadata: nil, name: nil, scope: nil, betas: nil, workspace_id: nil, request_options: {}) ⇒ EnvironmentUpdateParams

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

Parameters:

  • environment_id (String)
  • config (Anthropic::Models::Beta::BetaCloudConfigParams, Anthropic::Models::Beta::BetaSelfHostedConfigParams, nil) (defaults to: nil) —

    Updated environment configuration

  • description (String, nil) (defaults to: nil) —

    Updated description of the environment. Omit to preserve; null clears to null; a

  • metadata (Hash{Symbol=>String, nil}) (defaults to: nil) —

    User-provided metadata key-value pairs. Set a value to null or empty string to d

  • name (String, nil) (defaults to: nil) —

    Updated name for the environment

  • scope (Symbol, Anthropic::Models::Beta::EnvironmentUpdateParams::Scope, nil) (defaults to: nil) —

    The visibility scope for this environment. 'organization' makes the environment

  • betas (Array<Symbol, String, Anthropic::Models::AnthropicBeta>) (defaults to: nil) —

    Optional header to specify the beta version(s) you want to use.

  • workspace_id (String) (defaults to: nil) —

    Optional header to select the Workspace for this request. The value is a Workspa

  • request_options (Anthropic::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})
  • environment_id: (String)
  • config: (Anthropic::Models::Beta::EnvironmentUpdateParams::config, nil) (defaults to: nil)
  • description: (String, nil) (defaults to: nil)
  • metadata: (::Hash[Symbol, String?]) (defaults to: nil)
  • name: (String, nil) (defaults to: nil)
  • scope: (Anthropic::Models::Beta::EnvironmentUpdateParams::scope, nil) (defaults to: nil)
  • betas: (::Array[Anthropic::Models::anthropic_beta]) (defaults to: nil)
  • workspace_id: (String) (defaults to: nil)
  • request_options: (Anthropic::request_opts) (defaults to: {})


# File 'lib/anthropic/models/beta/environment_update_params.rb', line 67

Instance Attribute Details

#betas ⇒ Array<Symbol, String, Anthropic::Models::AnthropicBeta>?

Optional header to specify the beta version(s) you want to use.

Parameters:

  • (::Array[Anthropic::Models::anthropic_beta])

Returns:



54
# File 'lib/anthropic/models/beta/environment_update_params.rb', line 54

optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }

#config ⇒ Anthropic::Models::Beta::BetaCloudConfigParams, ...

Updated environment configuration

Parameters:

  • value (Anthropic::Models::Beta::EnvironmentUpdateParams::config, nil)

Returns:



20
# File 'lib/anthropic/models/beta/environment_update_params.rb', line 20

optional :config, union: -> { Anthropic::Beta::EnvironmentUpdateParams::Config }, nil?: true

#description ⇒ String?

Updated description of the environment. Omit to preserve; null clears to null; an empty string is stored as an empty string.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


27
# File 'lib/anthropic/models/beta/environment_update_params.rb', line 27

optional :description, String, nil?: true

#environment_id ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


14
# File 'lib/anthropic/models/beta/environment_update_params.rb', line 14

required :environment_id, String

#metadata ⇒ Hash{Symbol=>String, nil}?

User-provided metadata key-value pairs. Set a value to null or empty string to delete the key.

Parameters:

  • (::Hash[Symbol, String?])

Returns:

  • (Hash{Symbol=>String, nil}, nil)


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

optional :metadata, Anthropic::Internal::Type::HashOf[String, nil?: true]

#name ⇒ String?

Updated name for the environment

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


40
# File 'lib/anthropic/models/beta/environment_update_params.rb', line 40

optional :name, String, nil?: true

#scope ⇒ Symbol, ...

The visibility scope for this environment. 'organization' makes the environment visible to all accounts. 'account' restricts visibility to the owning account only.

Parameters:

  • value (Anthropic::Models::Beta::EnvironmentUpdateParams::scope, nil)

Returns:



48
# File 'lib/anthropic/models/beta/environment_update_params.rb', line 48

optional :scope, enum: -> { Anthropic::Beta::EnvironmentUpdateParams::Scope }, nil?: true

#workspace_id ⇒ String?

Optional header to select the Workspace for this request. The value is a Workspace ID (for example, wrkspc_011CZkZaBF1tNoB5wlCeusgy).

Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.

Parameters:

  • (String)

Returns:

  • (String, nil)


65
# File 'lib/anthropic/models/beta/environment_update_params.rb', line 65

optional :workspace_id, String

Instance Method Details

#to_hash ⇒ { environment_id: String, config: Anthropic::Models::Beta::EnvironmentUpdateParams::config?, description: String?, metadata: ::Hash[Symbol, String?], name: String?, scope: Anthropic::Models::Beta::EnvironmentUpdateParams::scope?, betas: ::Array[Anthropic::Models::anthropic_beta], workspace_id: String, request_options: Anthropic::RequestOptions }

Returns:

  • ({ environment_id: String, config: Anthropic::Models::Beta::EnvironmentUpdateParams::config?, description: String?, metadata: ::Hash[Symbol, String?], name: String?, scope: Anthropic::Models::Beta::EnvironmentUpdateParams::scope?, betas: ::Array[Anthropic::Models::anthropic_beta], workspace_id: String, request_options: Anthropic::RequestOptions })


57
58
59
60
61
62
63
64
65
66
67
# File 'sig/anthropic/models/beta/environment_update_params.rbs', line 57

def to_hash: -> {
  environment_id: String,
  config: Anthropic::Models::Beta::EnvironmentUpdateParams::config?,
  description: String?,
  metadata: ::Hash[Symbol, String?],
  name: String?,
  scope: Anthropic::Models::Beta::EnvironmentUpdateParams::scope?,
  betas: ::Array[Anthropic::Models::anthropic_beta],
  workspace_id: String,
  request_options: Anthropic::RequestOptions
}