# `Twilio.Memory.V1.ControlPlane.Store.TraitGroupService`
[🔗](https://github.com/jeffhuen/twilio_elixir/blob/main/lib/twilio/memory/v1/control_plane/store/trait_group_service.ex#L2)

Service for TraitGroup API operations.

Operations: `list`, `create`, `fetch`, `delete`

# `create`

```elixir
@spec create(Twilio.Client.t(), String.t(), map(), keyword()) ::
  {:ok, Twilio.Resources.Memory.V1.ControlPlane.Store.TraitGroup.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}
```

Creates a Trait Group with declarative trait schemas for this Memory Store.

Operation: `CreateTraitGroup` | Tags: TraitGroup

# `delete`

```elixir
@spec delete(Twilio.Client.t(), String.t(), String.t(), keyword()) ::
  {:ok, map()} | {:ok, map(), map()} | :ok | {:error, Twilio.Error.t()}
```

Deletes the Trait Group and all associated Traits from the Memory Store.

Operation: `DeleteTraitGroup` | Tags: TraitGroup

# `fetch`

```elixir
@spec fetch(Twilio.Client.t(), String.t(), String.t(), keyword()) ::
  {:ok, Twilio.Resources.Memory.V1.ControlPlane.Store.TraitGroup.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}
```

Retrieve a specific Trait Group by its unique name for this Memory Store, with optional traits information.

Operation: `FetchTraitGroup` | Tags: TraitGroup

## Query Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `includeTraits` | boolean | Whether to include trait definitions in the response |

# `list`

```elixir
@spec list(Twilio.Client.t(), String.t(), map(), keyword()) ::
  {:ok, Twilio.Page.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}
```

Returns a list of Trait Groups for this Memory Store, with optional traits information.

Operation: `ListTraitGroups` | Tags: TraitGroup

## Query Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `includeTraits` | boolean | Whether to include trait definitions in the response |

# `stream`

```elixir
@spec stream(Twilio.Client.t(), String.t(), map(), keyword()) :: Enumerable.t()
```

Stream: Returns a list of Trait Groups for this Memory Store, with optional traits information. (lazy auto-pagination).

---

*Consult [api-reference.md](api-reference.md) for complete listing*
