> For the complete documentation index, see [llms.txt](https://pyot.iann838.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pyot.iann838.com/models/lol/tournament.md).

# Tournament

Module: `pyot.models.lol.tournament`

### *class* `Tournament`

Type: `PyotCore`

Definitions:

* `__init__` -> `None`
  * `region`: `str = empty`

Endpoints:

* `tournament_v4_tournaments`: `[]`

Body Params:

* `name`: `str`
* `provider_id`: `int`

Attributes:

* `id` -> `int`
* `region` -> `str`

### *class* `TournamentCode`

Type: `PyotCore`

Definitions:

* `__init__` -> `None`
  * `code`: `str = empty`
  * `region`: `str = empty`

Endpoints:

* `tournament_v4_codes_by_code`: `['code']`

Body Params:

* `map_type`: `str`
* `pick_type`: `str`
* `spectator_type`: `str`
* `allowed_summoner_ids`: `List[str] = empty`

Attributes:

* `code` -> `str`
* `spectators` -> `str`
* `lobby_name` -> `str`
* `meta_data` -> `str`
* `password` -> `str`
* `team_size` -> `int`
* `provider_id` -> `int`
* `pick_type` -> `str`
* `tournament_id` -> `int`
* `id` -> `int`
* `map` -> `str`
* `hosted_region` -> `str`
* `summoner_ids` -> `List[str]`

Properties:

* *property* `summoners` -> `Summoner`

### *class* `TournamentCodes`

Type: `PyotCore`

Definitions:

* `__init__` -> `None`
  * `region`: `str = empty`

Endpoints:

* `tournament_v4_codes`: `[]`

Query Params:

* `tournament_id`: `int`
* `count`: `int = empty`

Body Params:

* `map_type`: `str`
* `pick_type`: `str`
* `team_size`: `int`
* `spectator_type`: `str`
* `allowed_summoner_ids`: `List[str] = empty`
* `metadata`: `str = empty`

Attributes:

* `codes` -> `List[str]`
* `region` -> `str`

Properties:

* *property* `tournament_codes` -> `List[pyot.models.lol.tournament.TournamentCode]`

### *class* `TournamentLobbyEvents`

Type: `PyotCore`

Definitions:

* `__init__` -> `None`
  * `code`: `int = empty`
  * `region`: `str = empty`
* `__iter__` -> `Iterator[pyot.models.lol.tournament.TournamentLobbyEventData]`
* `__len__` -> `int`

Endpoints:

* `tournament_v4_lobby_events`: `['code']`

Attributes:

* `events` -> `List[pyot.models.lol.tournament.TournamentLobbyEventData]`
* `region` -> `str`

### *class* `TournamentProvider`

Type: `PyotCore`

Definitions:

* `__init__` -> `None`
  * `region`: `str = empty`

Endpoints:

* `tournament_v4_providers`: `[]`

Body Params:

* `region`: `str`
* `url`: `str`

Attributes:

* `id` -> `int`
* `region` -> `str`

### *class* `TournamentStub`

Type: `PyotCore`

Extends:

* `pyot.models.lol.tournament.Tournament`

Definitions:

Endpoints:

* `tournament_stub_v4_tournaments`: `[]`

Body Params:

* `name`: `str`
* `provider_id`: `int`

Attributes:

* `id` -> `int`
* `region` -> `str`

### *class* `TournamentStubCodes`

Type: `PyotCore`

Extends:

* `pyot.models.lol.tournament.TournamentCodes`

Definitions:

Endpoints:

* `tournament_stub_v4_codes`: `[]`

Query Params:

* `tournament_id`: `int`
* `count`: `int = empty`

Body Params:

* `map_type`: `str`
* `pick_type`: `str`
* `team_size`: `int`
* `spectator_type`: `str`
* `allowed_summoner_ids`: `List[str] = empty`
* `metadata`: `str = empty`

Attributes:

* `codes` -> `List[str]`
* `region` -> `str`

### *class* `TournamentStubLobbyEvents`

Type: `PyotCore`

Extends:

* `pyot.models.lol.tournament.TournamentLobbyEvents`

Definitions:

Endpoints:

* `tournament_stub_v4_lobby_events`: `['code']`

Attributes:

* `events` -> `List[pyot.models.lol.tournament.TournamentLobbyEventData]`
* `region` -> `str`

### *class* `TournamentStubProvider`

Type: `PyotCore`

Extends:

* `pyot.models.lol.tournament.TournamentProvider`

Definitions:

Endpoints:

* `tournament_stub_v4_providers`: `[]`

Body Params:

* `region`: `str`
* `url`: `str`

Attributes:

* `id` -> `int`
* `region` -> `str`

### *class* `TournamentLobbyEventData`

Type: `PyotStatic`

Attributes:

* `summoner_id` -> `str`
* `event_type` -> `str`
* `timestamp` -> `str`
