Class: Cadenya::Models::CreateResourceMetadata

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/cadenya/models/create_resource_metadata.rb

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(name:, bundle_key: nil, external_id: nil, labels: nil) ⇒ Object

Some parameter documentations has been truncated, see Cadenya::Models::CreateResourceMetadata for more details.

CreateResourceMetadata contains the user-provided fields for creating a workspace-scoped resource. Read-only fields (id, account_id, workspace_id, profile_id, created_at) are excluded since they are set by the server.

Parameters:

  • name (String)

    Human-readable name for the resource (e.g., “Customer Support Agent”, “Email Too

  • bundle_key (String) (defaults to: nil)

    Optional bundle ownership key. See ResourceMetadata.bundle_key.

  • external_id (String) (defaults to: nil)

    External ID for the resource (e.g., a workflow ID from an external system)

  • labels (Hash{Symbol=>String}) (defaults to: nil)

    Arbitrary key-value pairs for categorization and filtering



# File 'lib/cadenya/models/create_resource_metadata.rb', line 32

Instance Attribute Details

#bundle_keyString?

Optional bundle ownership key. See ResourceMetadata.bundle_key.

Returns:

  • (String, nil)


17
# File 'lib/cadenya/models/create_resource_metadata.rb', line 17

optional :bundle_key, String, api_name: :bundleKey

#external_idString?

External ID for the resource (e.g., a workflow ID from an external system)

Returns:

  • (String, nil)


23
# File 'lib/cadenya/models/create_resource_metadata.rb', line 23

optional :external_id, String, api_name: :externalId

#labelsHash{Symbol=>String}?

Arbitrary key-value pairs for categorization and filtering Examples: “production”, “team”: “platform”, “version”: “v2”

Returns:

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


30
# File 'lib/cadenya/models/create_resource_metadata.rb', line 30

optional :labels, Cadenya::Internal::Type::HashOf[String]

#nameString

Human-readable name for the resource (e.g., “Customer Support Agent”, “Email Tool”)

Returns:

  • (String)


11
# File 'lib/cadenya/models/create_resource_metadata.rb', line 11

required :name, String