Source code for mgnipy.V2.proxies.biomes
from typing import (
Any,
ClassVar,
Literal,
Optional,
)
from mgnipy.V2.proxies import MGnifyDetail, MGnifyList
from mgnipy.V2.mixins import BiomesTreeMixin
[docs]
class Biomes(BiomesTreeMixin, MGnifyList):
RESOURCE: ClassVar[Literal["biomes"]] = "biomes"
def __init__(
self,
*,
params: Optional[dict[str, Any]] = None,
config: Optional[dict] = None,
**kwargs,
):
super().__init__(params=params, config=config, **kwargs)
[docs]
class BiomeDetail(BiomesTreeMixin, MGnifyDetail):
RESOURCE: ClassVar[Literal["biome"]] = "biome"
def __init__(
self,
id: Optional[str] = None,
*,
biome_lineage: Optional[str] = None,
config: Optional[dict] = None,
**kwargs,
):
super().__init__(
id=id or biome_lineage,
config=config,
**kwargs,
)