Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ test-docker:
docker run twilio/twilio-python pytest tests --ignore=tests/cluster

develop: venv
. venv/bin/activate; pip install -e . --use-mirrors
. venv/bin/activate; pip install -e .
. venv/bin/activate; pip install -r tests/requirements.txt

analysis:
Expand Down
51 changes: 51 additions & 0 deletions twilio/rest/monitor/v2/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
r"""
This code was generated by
___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
| | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
| |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \

Twilio - Alarms
Manages Twilio Alarms

NOTE: This class is auto generated by OpenAPI Generator.
https://openapi-generator.tech
Do not edit the class manually.
"""

from typing import Optional
from twilio.base.version import Version
from twilio.base.domain import Domain
from twilio.rest.monitor.v2.alarm import AlarmList
from twilio.rest.monitor.v2.status import StatusList


class V2(Version):

def __init__(self, domain: Domain):
"""
Initialize the V2 version of Monitor

:param domain: The Twilio.monitor domain
"""
super().__init__(domain, "v2")
self._alarms: Optional[AlarmList] = None
self._status: Optional[StatusList] = None

@property
def alarms(self) -> AlarmList:
if self._alarms is None:
self._alarms = AlarmList(self)
return self._alarms

@property
def status(self) -> StatusList:
if self._status is None:
self._status = StatusList(self)
return self._status

def __repr__(self) -> str:
"""
Provide a friendly representation
:returns: Machine friendly representation
"""
return "<Twilio.Monitor.V2>"
Loading
Loading