yandex_music.account.deactivation#
- class yandex_music.account.deactivation.Deactivation(method: str, instructions: Optional[str] = None, client: Optional[Client] = None)#
Bases:
YandexMusicObject
Класс, представляющий способы деактивации мобильной услуги.
Note
Известные значения поля method: ussd.
- method#
Метод отключения.
- Type
str
- instructions#
Инструкция.
- Type
str
, optional
- client#
Клиент Yandex Music.
- Type
yandex_music.Client
, optional
- classmethod de_json(data: dict, client: Client) Optional[Deactivation] #
Десериализация объекта.
- Parameters
data (
dict
) – Поля и значения десериализуемого объекта.client (
yandex_music.Client
, optional) – Клиент Yandex Music.
- Returns
Способ отключения услуги.
- Return type
yandex_music.Deactivation
- classmethod de_list(data: dict, client: Client) List[Deactivation] #
Десериализация списка объектов.
- Parameters
data (
list
) – Список словарей с полями и значениями десериализуемого объекта.client (
yandex_music.Client
, optional) – Клиент Yandex Music.
- Returns
Способы отключения услуги.
- Return type
list
изyandex_music.Deactivation
- instructions: Optional[str] = None#
- method: str#