|
| 1 | +r""" |
| 2 | + This code was generated by |
| 3 | + ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ |
| 4 | + | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ |
| 5 | + | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ |
| 6 | +
|
| 7 | + Twilio - Alarms |
| 8 | + Manages Twilio Alarms |
| 9 | +
|
| 10 | + NOTE: This class is auto generated by OpenAPI Generator. |
| 11 | + https://openapi-generator.tech |
| 12 | + Do not edit the class manually. |
| 13 | +""" |
| 14 | + |
| 15 | +from typing import Optional |
| 16 | +from twilio.base.version import Version |
| 17 | +from twilio.base.domain import Domain |
| 18 | +from twilio.rest.monitor.v2.alarm import AlarmList |
| 19 | +from twilio.rest.monitor.v2.status import StatusList |
| 20 | + |
| 21 | + |
| 22 | +class V2(Version): |
| 23 | + |
| 24 | + def __init__(self, domain: Domain): |
| 25 | + """ |
| 26 | + Initialize the V2 version of Monitor |
| 27 | +
|
| 28 | + :param domain: The Twilio.monitor domain |
| 29 | + """ |
| 30 | + super().__init__(domain, "v2") |
| 31 | + self._alarms: Optional[AlarmList] = None |
| 32 | + self._status: Optional[StatusList] = None |
| 33 | + |
| 34 | + @property |
| 35 | + def alarms(self) -> AlarmList: |
| 36 | + if self._alarms is None: |
| 37 | + self._alarms = AlarmList(self) |
| 38 | + return self._alarms |
| 39 | + |
| 40 | + @property |
| 41 | + def status(self) -> StatusList: |
| 42 | + if self._status is None: |
| 43 | + self._status = StatusList(self) |
| 44 | + return self._status |
| 45 | + |
| 46 | + def __repr__(self) -> str: |
| 47 | + """ |
| 48 | + Provide a friendly representation |
| 49 | + :returns: Machine friendly representation |
| 50 | + """ |
| 51 | + return "<Twilio.Monitor.V2>" |
0 commit comments