Class: Cadenya::Models::WorkspaceAdminCreateParams::Metadata

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/cadenya/models/workspace_admin_create_params.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:, external_id: nil, labels: nil) ⇒ Object

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

CreateAccountResourceMetadata contains the user-provided fields for creating an account-scoped resource. Read-only fields (id, account_id, profile_id) are excluded since they are set by the server.

Parameters:

  • name (String)

    Human-readable name for the resource (e.g., “Production API Key”, “Staging Works

  • 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



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# File 'lib/cadenya/models/workspace_admin_create_params.rb', line 33

class Metadata < Cadenya::Internal::Type::BaseModel
  # @!attribute name
  #   Human-readable name for the resource (e.g., "Production API Key", "Staging
  #   Workspace")
  #
  #   @return [String]
  required :name, String

  # @!attribute external_id
  #   External ID for the resource (e.g., a workflow ID from an external system)
  #
  #   @return [String, nil]
  optional :external_id, String, api_name: :externalId

  # @!attribute labels
  #   Arbitrary key-value pairs for categorization and filtering Examples:
  #   {"environment": "production", "team": "platform", "version": "v2"}
  #
  #   @return [Hash{Symbol=>String}, nil]
  optional :labels, Cadenya::Internal::Type::HashOf[String]

  # @!method initialize(name:, external_id: nil, labels: nil)
  #   Some parameter documentations has been truncated, see
  #   {Cadenya::Models::WorkspaceAdminCreateParams::Metadata} for more details.
  #
  #   CreateAccountResourceMetadata contains the user-provided fields for creating an
  #   account-scoped resource. Read-only fields (id, account_id, profile_id) are
  #   excluded since they are set by the server.
  #
  #   @param name [String] Human-readable name for the resource (e.g., "Production API Key", "Staging Works
  #
  #   @param external_id [String] External ID for the resource (e.g., a workflow ID from an external system)
  #
  #   @param labels [Hash{Symbol=>String}] Arbitrary key-value pairs for categorization and filtering
end

Instance Attribute Details

#external_idString?

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

Returns:

  • (String, nil)


45
# File 'lib/cadenya/models/workspace_admin_create_params.rb', line 45

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)


52
# File 'lib/cadenya/models/workspace_admin_create_params.rb', line 52

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

#nameString

Human-readable name for the resource (e.g., “Production API Key”, “Staging Workspace”)

Returns:

  • (String)


39
# File 'lib/cadenya/models/workspace_admin_create_params.rb', line 39

required :name, String