diff --git a/docs/conf.py b/docs/conf.py index 405c2e99a..2232ac84b 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # diff --git a/examples/basic_usage.py b/examples/basic_usage.py index a1ad25b0f..390316961 100644 --- a/examples/basic_usage.py +++ b/examples/basic_usage.py @@ -15,7 +15,7 @@ def example(): # Get all messages all_messages = client.messages.list() - print("There are {} messages in your account.".format(len(all_messages))) + print(f"There are {len(all_messages)} messages in your account.") # Get only last 10 messages... some_messages = client.messages.list(limit=10) @@ -25,7 +25,7 @@ def example(): # Get messages in smaller pages... all_messages = client.messages.list(page_size=10) - print("There are {} messages in your account.".format(len(all_messages))) + print(f"There are {len(all_messages)} messages in your account.") print("Sending a message...") new_message = client.messages.create(to="XXXX", from_="YYYY", body="Twilio rocks!") @@ -38,7 +38,7 @@ def example(): twiml_response.say("Hello!") twiml_response.hangup() twiml_xml = twiml_response.to_xml() - print("Generated twiml: {}".format(twiml_xml)) + print(f"Generated twiml: {twiml_xml}") if __name__ == "__main__": diff --git a/examples/client_validation.py b/examples/client_validation.py index a7bc08e81..120e589a0 100644 --- a/examples/client_validation.py +++ b/examples/client_validation.py @@ -64,7 +64,7 @@ def example(): print("Trying out client validation...") messages = client.messages.list(limit=10) for m in messages: - print("Message {}".format(m.sid)) + print(f"Message {m.sid}") print("Client validation works!") diff --git a/tests/__init__.py b/tests/__init__.py index 8a1553550..457db9433 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -6,7 +6,7 @@ class IntegrationTestCase(unittest.TestCase): def setUp(self): - super(IntegrationTestCase, self).setUp() + super().setUp() self.account_sid = "AC" + "a" * 32 self.auth_token = "AUTHTOKEN" self.holodeck = Holodeck() diff --git a/tests/holodeck.py b/tests/holodeck.py index 8f7151431..3ea5eb4e0 100644 --- a/tests/holodeck.py +++ b/tests/holodeck.py @@ -5,7 +5,7 @@ from twilio import __version__ -class Hologram(object): +class Hologram: def __init__(self, request, response): self.request = request self.response = response @@ -32,7 +32,7 @@ def add_standard_headers(self, request): platform.machine(), platform.python_version(), ), - "X-Twilio-Client": "python-{}".format(__version__), + "X-Twilio-Client": f"python-{__version__}", "Accept": "application/json", "Accept-Charset": "utf-8", } @@ -54,7 +54,7 @@ def assert_has_request(self, request): ) if self._requests: message += "Requests received:\n" - message += "\n".join(" * {}".format(r) for r in self.requests) + message += "\n".join(f" * {r}" for r in self.requests) else: message += "No Requests received" @@ -79,10 +79,10 @@ def request( if hologram.request == request: return hologram.response - message = "\nHolodeck has no hologram for: {}\n".format(request) + message = f"\nHolodeck has no hologram for: {request}\n" if self._holograms: message += "Holograms loaded:\n" - message += "\n".join(" - {}".format(h.request) for h in self._holograms) + message += "\n".join(f" - {h.request}" for h in self._holograms) else: message += "No Holograms loaded" diff --git a/tests/unit/__init__.py b/tests/unit/__init__.py index 8b1378917..e69de29bb 100644 --- a/tests/unit/__init__.py +++ b/tests/unit/__init__.py @@ -1 +0,0 @@ - diff --git a/tests/unit/base/__init__.py b/tests/unit/base/__init__.py index 8b1378917..e69de29bb 100644 --- a/tests/unit/base/__init__.py +++ b/tests/unit/base/__init__.py @@ -1 +0,0 @@ - diff --git a/tests/unit/base/test_version.py b/tests/unit/base/test_version.py index 1f1f6395e..a05598e6b 100644 --- a/tests/unit/base/test_version.py +++ b/tests/unit/base/test_version.py @@ -11,7 +11,7 @@ def get_instance(self, payload): class StreamTestCase(IntegrationTestCase): def setUp(self): - super(StreamTestCase, self).setUp() + super().setUp() self.holodeck.mock( Response( diff --git a/tests/unit/http/test_async_http_client.py b/tests/unit/http/test_async_http_client.py index df4360684..5e992d966 100644 --- a/tests/unit/http/test_async_http_client.py +++ b/tests/unit/http/test_async_http_client.py @@ -1,11 +1,11 @@ import aiounittest from aiohttp import ClientSession -from mock import patch, AsyncMock +from unittest.mock import patch, AsyncMock from twilio.http.async_http_client import AsyncTwilioHttpClient -class MockResponse(object): +class MockResponse: """ A mock of the aiohttp.ClientResponse class """ diff --git a/tests/unit/http/test_http_client.py b/tests/unit/http/test_http_client.py index 8484e57b1..1b6305d37 100644 --- a/tests/unit/http/test_http_client.py +++ b/tests/unit/http/test_http_client.py @@ -1,9 +1,8 @@ -# -*- coding: utf-8 -*- import os import unittest from collections import OrderedDict -from mock import Mock, patch +from unittest.mock import Mock, patch from requests import Session from twilio.base.exceptions import TwilioRestException diff --git a/tests/unit/http/test_validation_client.py b/tests/unit/http/test_validation_client.py index 5fdd4cb9f..89ef5cf25 100644 --- a/tests/unit/http/test_validation_client.py +++ b/tests/unit/http/test_validation_client.py @@ -1,8 +1,6 @@ -# -*- coding: utf-8 -*- - import unittest -from mock import patch, Mock +from unittest.mock import patch, Mock from requests import Request from requests import Session diff --git a/tests/unit/jwt/__init__.py b/tests/unit/jwt/__init__.py index 8b1378917..e69de29bb 100644 --- a/tests/unit/jwt/__init__.py +++ b/tests/unit/jwt/__init__.py @@ -1 +0,0 @@ - diff --git a/tests/unit/jwt/test_access_token.py b/tests/unit/jwt/test_access_token.py index 7f1e908b3..2dbea6f1b 100644 --- a/tests/unit/jwt/test_access_token.py +++ b/tests/unit/jwt/test_access_token.py @@ -22,11 +22,11 @@ def assert_is_not_none(obj): def assert_in(obj1, obj2): - assert obj1 in obj2, "%r is not in %r" % (obj1, obj2) + assert obj1 in obj2, "{!r} is not in {!r}".format(obj1, obj2) def assert_greater_equal(obj1, obj2): - assert obj1 > obj2, "%r is not greater than or equal to %r" % (obj1, obj2) + assert obj1 > obj2, "{!r} is not greater than or equal to {!r}".format(obj1, obj2) class AccessTokenTest(unittest.TestCase): diff --git a/tests/unit/jwt/test_client.py b/tests/unit/jwt/test_client.py index 3fa90de9f..ef05ea023 100644 --- a/tests/unit/jwt/test_client.py +++ b/tests/unit/jwt/test_client.py @@ -8,7 +8,7 @@ class ClientCapabilityTokenTest(unittest.TestCase): def assertIn(self, foo, bar, msg=None): """backport for 2.6""" - assert foo in bar, msg or "%s not found in %s" % (foo, bar) + assert foo in bar, msg or "{} not found in {}".format(foo, bar) def now(self): return int(time.time()) diff --git a/tests/unit/jwt/test_jwt.py b/tests/unit/jwt/test_jwt.py index 2f5aba62d..c9e86cbdf 100644 --- a/tests/unit/jwt/test_jwt.py +++ b/tests/unit/jwt/test_jwt.py @@ -2,7 +2,7 @@ import unittest import jwt as jwt_lib -from mock import patch +from unittest.mock import patch from twilio.jwt import Jwt, JwtDecodeError @@ -24,7 +24,7 @@ def __init__( headers=None, payload=None, ): - super(DummyJwt, self).__init__( + super().__init__( secret_key=secret_key, issuer=issuer, subject=subject, @@ -46,7 +46,7 @@ def _generate_headers(self): class JwtTest(unittest.TestCase): def assertIn(self, foo, bar, msg=None): """backport for 2.6""" - assert foo in bar, msg or "%s not found in %s" % (foo, bar) + assert foo in bar, msg or "{} not found in {}".format(foo, bar) def now(self): return int(real_time.time()) diff --git a/tests/unit/jwt/test_task_router.py b/tests/unit/jwt/test_task_router.py index f2333ef32..8fcecacd7 100644 --- a/tests/unit/jwt/test_task_router.py +++ b/tests/unit/jwt/test_task_router.py @@ -248,7 +248,7 @@ def test_defaults(self): decoded = WorkerCapabilityToken.decode(token, self.auth_token) self.assertNotEqual(None, decoded) - websocket_url = "https://event-bridge.twilio.com/v1/wschannels/{0}/{1}".format( + websocket_url = "https://event-bridge.twilio.com/v1/wschannels/{}/{}".format( self.account_sid, self.worker_sid ) @@ -297,7 +297,7 @@ def test_allow_activity_updates(self): self.assertEqual(len(policies), 7) policy = policies[6] - url = "https://taskrouter.twilio.com/v1/Workspaces/{0}/Workers/{1}".format( + url = "https://taskrouter.twilio.com/v1/Workspaces/{}/Workers/{}".format( self.workspace_sid, self.worker_sid ) @@ -322,13 +322,13 @@ def test_allow_reservation_updates(self): self.assertEqual(len(policies), 8) taskPolicy = policies[6] - tasksUrl = "https://taskrouter.twilio.com/v1/Workspaces/{0}/Tasks/**".format( + tasksUrl = "https://taskrouter.twilio.com/v1/Workspaces/{}/Tasks/**".format( self.workspace_sid ) self.check_policy("POST", tasksUrl, taskPolicy) workerReservationsPolicy = policies[7] - reservationsUrl = "https://taskrouter.twilio.com/v1/Workspaces/{0}/Workers/{1}/Reservations/**".format( + reservationsUrl = "https://taskrouter.twilio.com/v1/Workspaces/{}/Workers/{}/Reservations/**".format( self.workspace_sid, self.worker_sid ) self.check_policy("POST", reservationsUrl, workerReservationsPolicy) @@ -353,13 +353,13 @@ def test_pass_policies_in_constructor(self): self.assertEqual(len(policies), 8) taskPolicy = policies[6] - tasksUrl = "https://taskrouter.twilio.com/v1/Workspaces/{0}/Tasks/**".format( + tasksUrl = "https://taskrouter.twilio.com/v1/Workspaces/{}/Tasks/**".format( self.workspace_sid ) self.check_policy("POST", tasksUrl, taskPolicy) workerReservationsPolicy = policies[7] - reservationsUrl = "https://taskrouter.twilio.com/v1/Workspaces/{0}/Workers/{1}/Reservations/**".format( + reservationsUrl = "https://taskrouter.twilio.com/v1/Workspaces/{}/Workers/{}/Reservations/**".format( self.workspace_sid, self.worker_sid ) self.check_policy("POST", reservationsUrl, workerReservationsPolicy) diff --git a/tests/unit/rest/test_client.py b/tests/unit/rest/test_client.py index 9623dc52a..17a0caea4 100644 --- a/tests/unit/rest/test_client.py +++ b/tests/unit/rest/test_client.py @@ -1,7 +1,7 @@ import unittest import aiounittest -from mock import AsyncMock, Mock +from unittest.mock import AsyncMock, Mock from twilio.http.response import Response from twilio.rest import Client diff --git a/tests/unit/test_request_validator.py b/tests/unit/test_request_validator.py index 2159d4c91..0d9a176b3 100644 --- a/tests/unit/test_request_validator.py +++ b/tests/unit/test_request_validator.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import unittest from django.conf import settings diff --git a/tests/unit/twiml/test_voice_response.py b/tests/unit/twiml/test_voice_response.py index df10fc7d6..e4e96c941 100644 --- a/tests/unit/twiml/test_voice_response.py +++ b/tests/unit/twiml/test_voice_response.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from tests.unit.twiml import TwilioTest from twilio.twiml.voice_response import VoiceResponse, Dial, Enqueue, Gather diff --git a/twilio/base/client_base.py b/twilio/base/client_base.py index c9e0f9c48..ec9a32bd6 100644 --- a/twilio/base/client_base.py +++ b/twilio/base/client_base.py @@ -10,7 +10,7 @@ from twilio.http.response import Response -class ClientBase(object): +class ClientBase: """A client for accessing the Twilio API.""" def __init__( @@ -179,8 +179,8 @@ def get_headers( ) # Extensions for extension in self.user_agent_extensions: - headers["User-Agent"] += " {}".format(extension) - headers["X-Twilio-Client"] = "python-{}".format(__version__) + headers["User-Agent"] += f" {extension}" + headers["X-Twilio-Client"] = f"python-{__version__}" # Types, encodings, etc. headers["Accept-Charset"] = "utf-8" @@ -231,4 +231,4 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - return "".format(self.account_sid) + return f"" diff --git a/twilio/base/domain.py b/twilio/base/domain.py index 4f8395ddf..12fa6b7fd 100644 --- a/twilio/base/domain.py +++ b/twilio/base/domain.py @@ -3,7 +3,7 @@ from twilio.rest import Client -class Domain(object): +class Domain: """ This represents at Twilio API subdomain. diff --git a/twilio/base/exceptions.py b/twilio/base/exceptions.py index 8f3b7cc7a..04757148f 100644 --- a/twilio/base/exceptions.py +++ b/twilio/base/exceptions.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import sys from typing import Optional @@ -51,7 +50,7 @@ def teal(words: str) -> str: return "\033[36m\033[49m%s\033[0m" % words def get_uri(code: int) -> str: - return "https://www.twilio.com/docs/errors/{0}".format(code) + return f"https://www.twilio.com/docs/errors/{code}" # If it makes sense to print a human readable error message, try to # do it. The one problem is that someone might catch this error and @@ -62,7 +61,7 @@ def get_uri(code: int) -> str: "\n\n{twilio_returned}\n\n{message}\n".format( red_error=red("HTTP Error"), request_was=white("Your request was:"), - http_line=teal("%s %s" % (self.method, self.uri)), + http_line=teal("{} {}".format(self.method, self.uri)), twilio_returned=white("Twilio returned the following information:"), message=blue(str(self.msg)), ) @@ -79,4 +78,4 @@ def get_uri(code: int) -> str: ) return msg else: - return "HTTP {0} error: {1}".format(self.status, self.msg) + return f"HTTP {self.status} error: {self.msg}" diff --git a/twilio/base/instance_context.py b/twilio/base/instance_context.py index 44ff9a384..68cf6fcc0 100644 --- a/twilio/base/instance_context.py +++ b/twilio/base/instance_context.py @@ -1,6 +1,6 @@ from twilio.base.version import Version -class InstanceContext(object): +class InstanceContext: def __init__(self, version: Version): self._version = version diff --git a/twilio/base/instance_resource.py b/twilio/base/instance_resource.py index a05aac373..6b56a296b 100644 --- a/twilio/base/instance_resource.py +++ b/twilio/base/instance_resource.py @@ -1,6 +1,6 @@ from twilio.base.version import Version -class InstanceResource(object): +class InstanceResource: def __init__(self, version: Version): self._version = version diff --git a/twilio/base/list_resource.py b/twilio/base/list_resource.py index e3eb176d9..4ad429e03 100644 --- a/twilio/base/list_resource.py +++ b/twilio/base/list_resource.py @@ -1,6 +1,6 @@ from twilio.base.version import Version -class ListResource(object): +class ListResource: def __init__(self, version: Version): self._version = version diff --git a/twilio/base/obsolete.py b/twilio/base/obsolete.py index e0f4a0339..efccd1403 100644 --- a/twilio/base/obsolete.py +++ b/twilio/base/obsolete.py @@ -30,9 +30,9 @@ def deprecated_method(new_func=None): def deprecated_method_wrapper(func): @functools.wraps(func) def wrapper(*args, **kwargs): - msg = "Function method .{}() is deprecated".format(func.__name__) + msg = f"Function method .{func.__name__}() is deprecated" msg += ( - " in favor of .{}()".format(new_func) + f" in favor of .{new_func}()" if isinstance(new_func, str) else "" ) diff --git a/twilio/base/page.py b/twilio/base/page.py index 2238528da..768ad9cb3 100644 --- a/twilio/base/page.py +++ b/twilio/base/page.py @@ -5,7 +5,7 @@ from twilio.http.response import Response -class Page(object): +class Page: """ Represents a page of records in a collection. diff --git a/twilio/base/serialize.py b/twilio/base/serialize.py index cea91b04c..ac431ffc2 100644 --- a/twilio/base/serialize.py +++ b/twilio/base/serialize.py @@ -56,7 +56,7 @@ def flatten_dict(d, result=None, prv_keys=None): if isinstance(m, dict): flattened = flatten_dict(m) - return {"{}.{}".format(prefix, k): v for k, v in flattened.items()} + return {f"{prefix}.{k}": v for k, v in flattened.items()} return {} diff --git a/twilio/base/version.py b/twilio/base/version.py index 64cc601fa..90c2fb9d9 100644 --- a/twilio/base/version.py +++ b/twilio/base/version.py @@ -8,7 +8,7 @@ from twilio.http.response import Response -class Version(object): +class Version: """ Represents an API version. """ diff --git a/twilio/http/__init__.py b/twilio/http/__init__.py index 3e2482703..adf5f547d 100644 --- a/twilio/http/__init__.py +++ b/twilio/http/__init__.py @@ -9,7 +9,7 @@ from twilio.http.response import Response as TwilioResponse -class HttpClient(object): +class HttpClient: def __init__(self, logger: Logger, is_async: bool, timeout: Optional[float] = None): """ Constructor for the abstract HTTP client @@ -70,7 +70,7 @@ def log_request(self, kwargs: Dict[str, Any]) -> None: for key, value in kwargs["headers"].items(): # Do not log authorization headers if "authorization" not in key.lower(): - self.logger.info("{} : {}".format(key, value)) + self.logger.info(f"{key} : {value}") self.logger.info("-- END Twilio API Request --") @@ -78,8 +78,8 @@ def log_response(self, status_code: int, response: Response) -> None: """ Logs the HTTP response """ - self.logger.info("Response Status Code: {}".format(status_code)) - self.logger.info("Response Headers: {}".format(response.headers)) + self.logger.info(f"Response Status Code: {status_code}") + self.logger.info(f"Response Headers: {response.headers}") class AsyncHttpClient(HttpClient): diff --git a/twilio/http/request.py b/twilio/http/request.py index e75cf12b0..aae570b91 100644 --- a/twilio/http/request.py +++ b/twilio/http/request.py @@ -7,7 +7,7 @@ class Match(Enum): ANY = "*" -class Request(object): +class Request: """ An HTTP request. """ @@ -58,24 +58,24 @@ def __eq__(self, other) -> bool: def __str__(self) -> str: auth = "" if self.auth and self.auth != Match.ANY: - auth = "{} ".format(self.auth) + auth = f"{self.auth} " params = "" if self.params and self.params != Match.ANY: - params = "?{}".format(urlencode(self.params, doseq=True)) + params = f"?{urlencode(self.params, doseq=True)}" data = "" if self.data and self.data != Match.ANY: if self.method == "GET": data = "\n -G" data += "\n{}".format( - "\n".join(' -d "{}={}"'.format(k, v) for k, v in self.data.items()) + "\n".join(f' -d "{k}={v}"' for k, v in self.data.items()) ) headers = "" if self.headers and self.headers != Match.ANY: headers = "\n{}".format( - "\n".join(' -H "{}: {}"'.format(k, v) for k, v in self.headers.items()) + "\n".join(f' -H "{k}: {v}"' for k, v in self.headers.items()) ) return "{auth}{method} {url}{params}{data}{headers}".format( diff --git a/twilio/http/response.py b/twilio/http/response.py index af5a3b170..7a9b9dcec 100644 --- a/twilio/http/response.py +++ b/twilio/http/response.py @@ -1,7 +1,7 @@ from typing import Any, Optional -class Response(object): +class Response: def __init__( self, status_code: int, @@ -19,4 +19,4 @@ def text(self) -> str: return self.content def __repr__(self) -> str: - return "HTTP {} {}".format(self.status_code, self.content) + return f"HTTP {self.status_code} {self.content}" diff --git a/twilio/jwt/__init__.py b/twilio/jwt/__init__.py index 7a51ea70d..888c92e75 100644 --- a/twilio/jwt/__init__.py +++ b/twilio/jwt/__init__.py @@ -9,7 +9,7 @@ class JwtDecodeError(Exception): pass -class Jwt(object): +class Jwt: """Base class for building a Json Web Token""" GENERATE = object() @@ -158,4 +158,4 @@ def from_jwt(cls, jwt, key=""): return cls._from_jwt(headers, payload, key) def __str__(self): - return "".format(self.to_jwt()) + return f"" diff --git a/twilio/jwt/access_token/__init__.py b/twilio/jwt/access_token/__init__.py index 764b2a028..b3bb497ba 100644 --- a/twilio/jwt/access_token/__init__.py +++ b/twilio/jwt/access_token/__init__.py @@ -3,7 +3,7 @@ from twilio.jwt import Jwt -class AccessTokenGrant(object): +class AccessTokenGrant: """A Grant giving access to a Twilio Resource""" @property @@ -16,7 +16,7 @@ def to_payload(self): raise NotImplementedError("Grant must implement to_payload.") def __str__(self): - return "<{} {}>".format(self.__class__.__name__, self.to_payload()) + return f"<{self.__class__.__name__} {self.to_payload()}>" class AccessToken(Jwt): @@ -45,7 +45,7 @@ def __init__( self.identity = identity self.region = region self.grants = grants - super(AccessToken, self).__init__( + super().__init__( secret_key=secret, algorithm=self.ALGORITHM, issuer=signing_key_sid, @@ -70,7 +70,7 @@ def _generate_headers(self): def _generate_payload(self): now = int(time.time()) payload = { - "jti": "{}-{}".format(self.signing_key_sid, now), + "jti": f"{self.signing_key_sid}-{now}", "grants": {grant.key: grant.to_payload() for grant in self.grants}, } if self.identity: @@ -78,4 +78,4 @@ def _generate_payload(self): return payload def __str__(self): - return "<{} {}>".format(self.__class__.__name__, self.to_jwt()) + return f"<{self.__class__.__name__} {self.to_jwt()}>" diff --git a/twilio/jwt/access_token/grants.py b/twilio/jwt/access_token/grants.py index 16d19aa38..29d84bfec 100644 --- a/twilio/jwt/access_token/grants.py +++ b/twilio/jwt/access_token/grants.py @@ -12,7 +12,7 @@ def deprecated(func): def new_func(*args, **kwargs): warnings.simplefilter("always", DeprecationWarning) warnings.warn( - "Call to deprecated function {}.".format(func.__name__), + f"Call to deprecated function {func.__name__}.", category=DeprecationWarning, stacklevel=2, ) diff --git a/twilio/jwt/client/__init__.py b/twilio/jwt/client/__init__.py index d5c38c472..8d2a686c5 100644 --- a/twilio/jwt/client/__init__.py +++ b/twilio/jwt/client/__init__.py @@ -28,7 +28,7 @@ def __init__( :returns: A new CapabilityToken with zero permissions """ - super(ClientCapabilityToken, self).__init__( + super().__init__( algorithm=self.ALGORITHM, secret_key=auth_token, issuer=account_sid, @@ -93,7 +93,7 @@ def _generate_payload(self): return {"scope": " ".join(scope_uris)} -class ScopeURI(object): +class ScopeURI: """A single capability granted to Twilio Client and scoped to a service""" def __init__(self, service, privilege, params=None): @@ -108,10 +108,10 @@ def to_payload(self): if self.params: sorted_params = sorted([(k, v) for k, v in self.params.items()]) encoded_params = urlencode(sorted_params) - param_string = "?{}".format(encoded_params) + param_string = f"?{encoded_params}" else: param_string = "" - return "scope:{}:{}{}".format(self.service, self.privilege, param_string) + return f"scope:{self.service}:{self.privilege}{param_string}" def __str__(self): - return "".format(self.to_payload()) + return f"" diff --git a/twilio/jwt/taskrouter/__init__.py b/twilio/jwt/taskrouter/__init__.py index 5a01560df..94afb757f 100644 --- a/twilio/jwt/taskrouter/__init__.py +++ b/twilio/jwt/taskrouter/__init__.py @@ -26,7 +26,7 @@ def __init__(self, account_sid, auth_token, workspace_sid, channel_id, **kwargs) defaults to False :returns a new TaskRouterCapabilityToken with capabilities set depending on kwargs. """ - super(TaskRouterCapabilityToken, self).__init__( + super().__init__( secret_key=auth_token, issuer=account_sid, algorithm=self.ALGORITHM, @@ -130,13 +130,13 @@ def _make_policy(self, url, method, allowed, query_filter=None, post_filter=None def _validate_inputs(self, account_sid, workspace_sid, channel_id): if not account_sid or not account_sid.startswith("AC"): - raise ValueError("Invalid account sid provided {}".format(account_sid)) + raise ValueError(f"Invalid account sid provided {account_sid}") if not workspace_sid or not workspace_sid.startswith("WS"): - raise ValueError("Invalid workspace sid provided {}".format(workspace_sid)) + raise ValueError(f"Invalid workspace sid provided {workspace_sid}") if not channel_id or not channel_id.startswith(self.channel_prefix): - raise ValueError("Invalid channel id provided {}".format(channel_id)) + raise ValueError(f"Invalid channel id provided {channel_id}") def __str__(self): - return "".format(self.to_jwt()) + return f"" diff --git a/twilio/jwt/taskrouter/capabilities.py b/twilio/jwt/taskrouter/capabilities.py index 468a02701..c97ddee75 100644 --- a/twilio/jwt/taskrouter/capabilities.py +++ b/twilio/jwt/taskrouter/capabilities.py @@ -19,7 +19,7 @@ def __init__( :param bool allow_update_reservations: shortcut to calling allow_update_reservations, defaults to False """ - super(WorkerCapabilityToken, self).__init__( + super().__init__( account_sid=account_sid, auth_token=auth_token, workspace_sid=workspace_sid, @@ -41,7 +41,7 @@ def __init__( @property def resource_url(self): - return "{}/Workers/{}".format(self.workspace_url, self.channel_id) + return f"{self.workspace_url}/Workers/{self.channel_id}" @property def channel_prefix(self): @@ -65,14 +65,14 @@ def allow_update_reservations(self): self._make_policy(self.resource_url + "/Reservations/**", "POST", True) def __str__(self): - return "".format(self.to_jwt()) + return f"" class TaskQueueCapabilityToken(TaskRouterCapabilityToken): def __init__( self, account_sid, auth_token, workspace_sid, task_queue_sid, ttl=3600, **kwargs ): - super(TaskQueueCapabilityToken, self).__init__( + super().__init__( account_sid=account_sid, auth_token=auth_token, workspace_sid=workspace_sid, @@ -83,19 +83,19 @@ def __init__( @property def resource_url(self): - return "{}/TaskQueues/{}".format(self.workspace_url, self.channel_id) + return f"{self.workspace_url}/TaskQueues/{self.channel_id}" @property def channel_prefix(self): return "WQ" def __str__(self): - return "".format(self.to_jwt()) + return f"" class WorkspaceCapabilityToken(TaskRouterCapabilityToken): def __init__(self, account_sid, auth_token, workspace_sid, ttl=3600, **kwargs): - super(WorkspaceCapabilityToken, self).__init__( + super().__init__( account_sid=account_sid, auth_token=auth_token, workspace_sid=workspace_sid, @@ -113,4 +113,4 @@ def channel_prefix(self): return "WS" def __str__(self): - return "".format(self.to_jwt()) + return f"" diff --git a/twilio/jwt/validation/__init__.py b/twilio/jwt/validation/__init__.py index 837d6196e..cd009ca5d 100644 --- a/twilio/jwt/validation/__init__.py +++ b/twilio/jwt/validation/__init__.py @@ -21,7 +21,7 @@ def __init__( :param str private_key: The private key used to sign the JWT. :param ValidationPayload validation_payload: information from the request to sign """ - super(ClientValidationJwt, self).__init__( + super().__init__( secret_key=private_key, issuer=api_key_sid, subject=account_sid, @@ -45,7 +45,7 @@ def _generate_payload(self): # Stringify headers, only include headers in signed_headers headers_str = [ - "{}:{}".format(h, all_headers[h]) + f"{h}:{all_headers[h]}" for h in signed_headers if h in all_headers ] diff --git a/twilio/request_validator.py b/twilio/request_validator.py index f7a0db361..59fbb8cc0 100644 --- a/twilio/request_validator.py +++ b/twilio/request_validator.py @@ -58,7 +58,7 @@ def add_port(uri): return new_uri.geturl() -class RequestValidator(object): +class RequestValidator: def __init__(self, token): self.token = token.encode("utf-8") diff --git a/twilio/rest/accounts/v1/credential/aws.py b/twilio/rest/accounts/v1/credential/aws.py index ab7562092..cacaf806d 100644 --- a/twilio/rest/accounts/v1/credential/aws.py +++ b/twilio/rest/accounts/v1/credential/aws.py @@ -136,8 +136,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AwsContext(InstanceContext): @@ -271,8 +271,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AwsPage(Page): diff --git a/twilio/rest/accounts/v1/credential/public_key.py b/twilio/rest/accounts/v1/credential/public_key.py index 09018d1d2..a84476fbb 100644 --- a/twilio/rest/accounts/v1/credential/public_key.py +++ b/twilio/rest/accounts/v1/credential/public_key.py @@ -138,8 +138,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PublicKeyContext(InstanceContext): @@ -275,8 +275,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PublicKeyPage(Page): diff --git a/twilio/rest/api/v2010/account/__init__.py b/twilio/rest/api/v2010/account/__init__.py index adf2458f2..4c75a6428 100644 --- a/twilio/rest/api/v2010/account/__init__.py +++ b/twilio/rest/api/v2010/account/__init__.py @@ -52,12 +52,12 @@ class AccountInstance(InstanceResource): - class Status(object): + class Status: ACTIVE = "active" SUSPENDED = "suspended" CLOSED = "closed" - class Type(object): + class Type: TRIAL = "Trial" FULL = "Full" @@ -344,8 +344,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AccountContext(InstanceContext): @@ -778,8 +778,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AccountPage(Page): diff --git a/twilio/rest/api/v2010/account/address/__init__.py b/twilio/rest/api/v2010/account/address/__init__.py index fd7774710..3fb26511d 100644 --- a/twilio/rest/api/v2010/account/address/__init__.py +++ b/twilio/rest/api/v2010/account/address/__init__.py @@ -224,8 +224,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AddressContext(InstanceContext): @@ -442,8 +442,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AddressPage(Page): diff --git a/twilio/rest/api/v2010/account/address/dependent_phone_number.py b/twilio/rest/api/v2010/account/address/dependent_phone_number.py index 738f9baff..ab25a7a8d 100644 --- a/twilio/rest/api/v2010/account/address/dependent_phone_number.py +++ b/twilio/rest/api/v2010/account/address/dependent_phone_number.py @@ -24,13 +24,13 @@ class DependentPhoneNumberInstance(InstanceResource): - class AddressRequirement(object): + class AddressRequirement: NONE = "none" ANY = "any" LOCAL = "local" FOREIGN = "foreign" - class EmergencyStatus(object): + class EmergencyStatus: ACTIVE = "Active" INACTIVE = "Inactive" @@ -122,8 +122,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class DependentPhoneNumberPage(Page): diff --git a/twilio/rest/api/v2010/account/application.py b/twilio/rest/api/v2010/account/application.py index a3b11f028..2f5596df4 100644 --- a/twilio/rest/api/v2010/account/application.py +++ b/twilio/rest/api/v2010/account/application.py @@ -274,8 +274,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ApplicationContext(InstanceContext): @@ -527,8 +527,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ApplicationPage(Page): diff --git a/twilio/rest/api/v2010/account/authorized_connect_app.py b/twilio/rest/api/v2010/account/authorized_connect_app.py index 9359545cd..08491ada7 100644 --- a/twilio/rest/api/v2010/account/authorized_connect_app.py +++ b/twilio/rest/api/v2010/account/authorized_connect_app.py @@ -23,7 +23,7 @@ class AuthorizedConnectAppInstance(InstanceResource): - class Permission(object): + class Permission: GET_ALL = "get-all" POST_ALL = "post-all" @@ -112,8 +112,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AuthorizedConnectAppContext(InstanceContext): @@ -183,8 +183,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AuthorizedConnectAppPage(Page): diff --git a/twilio/rest/api/v2010/account/available_phone_number_country/__init__.py b/twilio/rest/api/v2010/account/available_phone_number_country/__init__.py index 14fcfc28d..88e8c9f29 100644 --- a/twilio/rest/api/v2010/account/available_phone_number_country/__init__.py +++ b/twilio/rest/api/v2010/account/available_phone_number_country/__init__.py @@ -159,7 +159,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) @@ -333,7 +333,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) diff --git a/twilio/rest/api/v2010/account/available_phone_number_country/local.py b/twilio/rest/api/v2010/account/available_phone_number_country/local.py index 43118d9f7..771c1a23f 100644 --- a/twilio/rest/api/v2010/account/available_phone_number_country/local.py +++ b/twilio/rest/api/v2010/account/available_phone_number_country/local.py @@ -72,8 +72,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class LocalPage(Page): diff --git a/twilio/rest/api/v2010/account/available_phone_number_country/machine_to_machine.py b/twilio/rest/api/v2010/account/available_phone_number_country/machine_to_machine.py index ee94aa944..69413a6d3 100644 --- a/twilio/rest/api/v2010/account/available_phone_number_country/machine_to_machine.py +++ b/twilio/rest/api/v2010/account/available_phone_number_country/machine_to_machine.py @@ -72,8 +72,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MachineToMachinePage(Page): diff --git a/twilio/rest/api/v2010/account/available_phone_number_country/mobile.py b/twilio/rest/api/v2010/account/available_phone_number_country/mobile.py index 622d2b859..cd8cc33fe 100644 --- a/twilio/rest/api/v2010/account/available_phone_number_country/mobile.py +++ b/twilio/rest/api/v2010/account/available_phone_number_country/mobile.py @@ -72,8 +72,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MobilePage(Page): diff --git a/twilio/rest/api/v2010/account/available_phone_number_country/national.py b/twilio/rest/api/v2010/account/available_phone_number_country/national.py index d0f3a63dd..f5d95b281 100644 --- a/twilio/rest/api/v2010/account/available_phone_number_country/national.py +++ b/twilio/rest/api/v2010/account/available_phone_number_country/national.py @@ -72,8 +72,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class NationalPage(Page): diff --git a/twilio/rest/api/v2010/account/available_phone_number_country/shared_cost.py b/twilio/rest/api/v2010/account/available_phone_number_country/shared_cost.py index 7b5b9b11c..47246c6d5 100644 --- a/twilio/rest/api/v2010/account/available_phone_number_country/shared_cost.py +++ b/twilio/rest/api/v2010/account/available_phone_number_country/shared_cost.py @@ -72,8 +72,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SharedCostPage(Page): diff --git a/twilio/rest/api/v2010/account/available_phone_number_country/toll_free.py b/twilio/rest/api/v2010/account/available_phone_number_country/toll_free.py index 436801800..354dfa884 100644 --- a/twilio/rest/api/v2010/account/available_phone_number_country/toll_free.py +++ b/twilio/rest/api/v2010/account/available_phone_number_country/toll_free.py @@ -72,8 +72,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class TollFreePage(Page): diff --git a/twilio/rest/api/v2010/account/available_phone_number_country/voip.py b/twilio/rest/api/v2010/account/available_phone_number_country/voip.py index e0615d5a6..b105854f4 100644 --- a/twilio/rest/api/v2010/account/available_phone_number_country/voip.py +++ b/twilio/rest/api/v2010/account/available_phone_number_country/voip.py @@ -72,8 +72,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class VoipPage(Page): diff --git a/twilio/rest/api/v2010/account/balance.py b/twilio/rest/api/v2010/account/balance.py index 0e90cdaae..144cdfb35 100644 --- a/twilio/rest/api/v2010/account/balance.py +++ b/twilio/rest/api/v2010/account/balance.py @@ -43,8 +43,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class BalanceList(ListResource): diff --git a/twilio/rest/api/v2010/account/call/__init__.py b/twilio/rest/api/v2010/account/call/__init__.py index b218709a2..40fd11700 100644 --- a/twilio/rest/api/v2010/account/call/__init__.py +++ b/twilio/rest/api/v2010/account/call/__init__.py @@ -36,7 +36,7 @@ class CallInstance(InstanceResource): - class Status(object): + class Status: QUEUED = "queued" RINGING = "ringing" IN_PROGRESS = "in-progress" @@ -46,7 +46,7 @@ class Status(object): NO_ANSWER = "no-answer" CANCELED = "canceled" - class UpdateStatus(object): + class UpdateStatus: CANCELED = "canceled" COMPLETED = "completed" @@ -323,8 +323,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CallContext(InstanceContext): @@ -641,8 +641,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CallPage(Page): diff --git a/twilio/rest/api/v2010/account/call/event.py b/twilio/rest/api/v2010/account/call/event.py index 7993dd00a..44f5a4d54 100644 --- a/twilio/rest/api/v2010/account/call/event.py +++ b/twilio/rest/api/v2010/account/call/event.py @@ -46,8 +46,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class EventPage(Page): diff --git a/twilio/rest/api/v2010/account/call/notification.py b/twilio/rest/api/v2010/account/call/notification.py index 44291b844..4db72e507 100644 --- a/twilio/rest/api/v2010/account/call/notification.py +++ b/twilio/rest/api/v2010/account/call/notification.py @@ -125,8 +125,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class NotificationContext(InstanceContext): @@ -202,8 +202,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class NotificationPage(Page): diff --git a/twilio/rest/api/v2010/account/call/payment.py b/twilio/rest/api/v2010/account/call/payment.py index d6252f527..0cb70587f 100644 --- a/twilio/rest/api/v2010/account/call/payment.py +++ b/twilio/rest/api/v2010/account/call/payment.py @@ -23,12 +23,12 @@ class PaymentInstance(InstanceResource): - class BankAccountType(object): + class BankAccountType: CONSUMER_CHECKING = "consumer-checking" CONSUMER_SAVINGS = "consumer-savings" COMMERCIAL_CHECKING = "commercial-checking" - class Capture(object): + class Capture: PAYMENT_CARD_NUMBER = "payment-card-number" EXPIRATION_DATE = "expiration-date" SECURITY_CODE = "security-code" @@ -36,15 +36,15 @@ class Capture(object): BANK_ROUTING_NUMBER = "bank-routing-number" BANK_ACCOUNT_NUMBER = "bank-account-number" - class PaymentMethod(object): + class PaymentMethod: CREDIT_CARD = "credit-card" ACH_DEBIT = "ach-debit" - class Status(object): + class Status: COMPLETE = "complete" CANCEL = "cancel" - class TokenType(object): + class TokenType: ONE_TIME = "one-time" REUSABLE = "reusable" @@ -156,8 +156,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PaymentContext(InstanceContext): @@ -271,8 +271,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PaymentList(ListResource): diff --git a/twilio/rest/api/v2010/account/call/recording.py b/twilio/rest/api/v2010/account/call/recording.py index b9653c4b5..05fccc4fe 100644 --- a/twilio/rest/api/v2010/account/call/recording.py +++ b/twilio/rest/api/v2010/account/call/recording.py @@ -24,7 +24,7 @@ class RecordingInstance(InstanceResource): - class Source(object): + class Source: DIALVERB = "DialVerb" CONFERENCE = "Conference" OUTBOUNDAPI = "OutboundAPI" @@ -33,7 +33,7 @@ class Source(object): STARTCALLRECORDINGAPI = "StartCallRecordingAPI" STARTCONFERENCERECORDINGAPI = "StartConferenceRecordingAPI" - class Status(object): + class Status: IN_PROGRESS = "in-progress" PAUSED = "paused" STOPPED = "stopped" @@ -201,8 +201,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class RecordingContext(InstanceContext): @@ -370,8 +370,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class RecordingPage(Page): diff --git a/twilio/rest/api/v2010/account/call/siprec.py b/twilio/rest/api/v2010/account/call/siprec.py index bcb537071..5def2f66e 100644 --- a/twilio/rest/api/v2010/account/call/siprec.py +++ b/twilio/rest/api/v2010/account/call/siprec.py @@ -23,16 +23,16 @@ class SiprecInstance(InstanceResource): - class Status(object): + class Status: IN_PROGRESS = "in-progress" STOPPED = "stopped" - class Track(object): + class Track: INBOUND_TRACK = "inbound_track" OUTBOUND_TRACK = "outbound_track" BOTH_TRACKS = "both_tracks" - class UpdateStatus(object): + class UpdateStatus: STOPPED = "stopped" """ @@ -121,8 +121,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SiprecContext(InstanceContext): @@ -212,8 +212,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SiprecList(ListResource): diff --git a/twilio/rest/api/v2010/account/call/stream.py b/twilio/rest/api/v2010/account/call/stream.py index a46d8f975..16c67790a 100644 --- a/twilio/rest/api/v2010/account/call/stream.py +++ b/twilio/rest/api/v2010/account/call/stream.py @@ -23,16 +23,16 @@ class StreamInstance(InstanceResource): - class Status(object): + class Status: IN_PROGRESS = "in-progress" STOPPED = "stopped" - class Track(object): + class Track: INBOUND_TRACK = "inbound_track" OUTBOUND_TRACK = "outbound_track" BOTH_TRACKS = "both_tracks" - class UpdateStatus(object): + class UpdateStatus: STOPPED = "stopped" """ @@ -121,8 +121,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class StreamContext(InstanceContext): @@ -214,8 +214,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class StreamList(ListResource): diff --git a/twilio/rest/api/v2010/account/call/user_defined_message.py b/twilio/rest/api/v2010/account/call/user_defined_message.py index 0e9d1f049..7c1204857 100644 --- a/twilio/rest/api/v2010/account/call/user_defined_message.py +++ b/twilio/rest/api/v2010/account/call/user_defined_message.py @@ -52,8 +52,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class UserDefinedMessageList(ListResource): diff --git a/twilio/rest/api/v2010/account/call/user_defined_message_subscription.py b/twilio/rest/api/v2010/account/call/user_defined_message_subscription.py index a0b7c1833..0f557ce99 100644 --- a/twilio/rest/api/v2010/account/call/user_defined_message_subscription.py +++ b/twilio/rest/api/v2010/account/call/user_defined_message_subscription.py @@ -96,7 +96,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) @@ -155,7 +155,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) diff --git a/twilio/rest/api/v2010/account/conference/__init__.py b/twilio/rest/api/v2010/account/conference/__init__.py index fff75dea5..f4ecda012 100644 --- a/twilio/rest/api/v2010/account/conference/__init__.py +++ b/twilio/rest/api/v2010/account/conference/__init__.py @@ -26,7 +26,7 @@ class ConferenceInstance(InstanceResource): - class ReasonConferenceEnded(object): + class ReasonConferenceEnded: CONFERENCE_ENDED_VIA_API = "conference-ended-via-api" PARTICIPANT_WITH_END_CONFERENCE_ON_EXIT_LEFT = ( "participant-with-end-conference-on-exit-left" @@ -37,12 +37,12 @@ class ReasonConferenceEnded(object): LAST_PARTICIPANT_KICKED = "last-participant-kicked" LAST_PARTICIPANT_LEFT = "last-participant-left" - class Status(object): + class Status: INIT = "init" IN_PROGRESS = "in-progress" COMPLETED = "completed" - class UpdateStatus(object): + class UpdateStatus: COMPLETED = "completed" """ @@ -194,8 +194,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ConferenceContext(InstanceContext): @@ -366,8 +366,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ConferencePage(Page): diff --git a/twilio/rest/api/v2010/account/conference/participant.py b/twilio/rest/api/v2010/account/conference/participant.py index 1f3fffd8a..563e05d94 100644 --- a/twilio/rest/api/v2010/account/conference/participant.py +++ b/twilio/rest/api/v2010/account/conference/participant.py @@ -24,7 +24,7 @@ class ParticipantInstance(InstanceResource): - class Status(object): + class Status: QUEUED = "queued" CONNECTING = "connecting" RINGING = "ringing" @@ -244,8 +244,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ParticipantContext(InstanceContext): @@ -477,8 +477,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ParticipantPage(Page): diff --git a/twilio/rest/api/v2010/account/conference/recording.py b/twilio/rest/api/v2010/account/conference/recording.py index dfb1d406e..02bc680ac 100644 --- a/twilio/rest/api/v2010/account/conference/recording.py +++ b/twilio/rest/api/v2010/account/conference/recording.py @@ -24,7 +24,7 @@ class RecordingInstance(InstanceResource): - class Source(object): + class Source: DIALVERB = "DialVerb" CONFERENCE = "Conference" OUTBOUNDAPI = "OutboundAPI" @@ -33,7 +33,7 @@ class Source(object): STARTCALLRECORDINGAPI = "StartCallRecordingAPI" STARTCONFERENCERECORDINGAPI = "StartConferenceRecordingAPI" - class Status(object): + class Status: IN_PROGRESS = "in-progress" PAUSED = "paused" STOPPED = "stopped" @@ -199,8 +199,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class RecordingContext(InstanceContext): @@ -368,8 +368,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class RecordingPage(Page): diff --git a/twilio/rest/api/v2010/account/connect_app.py b/twilio/rest/api/v2010/account/connect_app.py index 722e4e9b3..11839bc56 100644 --- a/twilio/rest/api/v2010/account/connect_app.py +++ b/twilio/rest/api/v2010/account/connect_app.py @@ -23,7 +23,7 @@ class ConnectAppInstance(InstanceResource): - class Permission(object): + class Permission: GET_ALL = "get-all" POST_ALL = "post-all" @@ -210,8 +210,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ConnectAppContext(InstanceContext): @@ -411,8 +411,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ConnectAppPage(Page): diff --git a/twilio/rest/api/v2010/account/incoming_phone_number/__init__.py b/twilio/rest/api/v2010/account/incoming_phone_number/__init__.py index 6fa4748b6..ae87bb8da 100644 --- a/twilio/rest/api/v2010/account/incoming_phone_number/__init__.py +++ b/twilio/rest/api/v2010/account/incoming_phone_number/__init__.py @@ -30,13 +30,13 @@ class IncomingPhoneNumberInstance(InstanceResource): - class AddressRequirement(object): + class AddressRequirement: NONE = "none" ANY = "any" LOCAL = "local" FOREIGN = "foreign" - class EmergencyAddressStatus(object): + class EmergencyAddressStatus: REGISTERED = "registered" UNREGISTERED = "unregistered" PENDING_REGISTRATION = "pending-registration" @@ -44,11 +44,11 @@ class EmergencyAddressStatus(object): PENDING_UNREGISTRATION = "pending-unregistration" UNREGISTRATION_FAILURE = "unregistration-failure" - class EmergencyStatus(object): + class EmergencyStatus: ACTIVE = "Active" INACTIVE = "Inactive" - class VoiceReceiveMode(object): + class VoiceReceiveMode: VOICE = "voice" FAX = "fax" @@ -390,8 +390,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class IncomingPhoneNumberContext(InstanceContext): @@ -704,8 +704,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class IncomingPhoneNumberPage(Page): diff --git a/twilio/rest/api/v2010/account/incoming_phone_number/assigned_add_on/__init__.py b/twilio/rest/api/v2010/account/incoming_phone_number/assigned_add_on/__init__.py index 12c6f961e..edca82eef 100644 --- a/twilio/rest/api/v2010/account/incoming_phone_number/assigned_add_on/__init__.py +++ b/twilio/rest/api/v2010/account/incoming_phone_number/assigned_add_on/__init__.py @@ -141,8 +141,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AssignedAddOnContext(InstanceContext): @@ -256,8 +256,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AssignedAddOnPage(Page): diff --git a/twilio/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.py b/twilio/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.py index 18504cafd..0412823a5 100644 --- a/twilio/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.py +++ b/twilio/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.py @@ -105,8 +105,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AssignedAddOnExtensionContext(InstanceContext): @@ -191,8 +191,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AssignedAddOnExtensionPage(Page): diff --git a/twilio/rest/api/v2010/account/incoming_phone_number/local.py b/twilio/rest/api/v2010/account/incoming_phone_number/local.py index 454872032..3df253490 100644 --- a/twilio/rest/api/v2010/account/incoming_phone_number/local.py +++ b/twilio/rest/api/v2010/account/incoming_phone_number/local.py @@ -24,13 +24,13 @@ class LocalInstance(InstanceResource): - class AddressRequirement(object): + class AddressRequirement: NONE = "none" ANY = "any" LOCAL = "local" FOREIGN = "foreign" - class EmergencyAddressStatus(object): + class EmergencyAddressStatus: REGISTERED = "registered" UNREGISTERED = "unregistered" PENDING_REGISTRATION = "pending-registration" @@ -38,11 +38,11 @@ class EmergencyAddressStatus(object): PENDING_UNREGISTRATION = "pending-unregistration" UNREGISTRATION_FAILURE = "unregistration-failure" - class EmergencyStatus(object): + class EmergencyStatus: ACTIVE = "Active" INACTIVE = "Inactive" - class VoiceReceiveMode(object): + class VoiceReceiveMode: VOICE = "voice" FAX = "fax" @@ -147,8 +147,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class LocalPage(Page): diff --git a/twilio/rest/api/v2010/account/incoming_phone_number/mobile.py b/twilio/rest/api/v2010/account/incoming_phone_number/mobile.py index 6147d4bfe..384da6ef7 100644 --- a/twilio/rest/api/v2010/account/incoming_phone_number/mobile.py +++ b/twilio/rest/api/v2010/account/incoming_phone_number/mobile.py @@ -24,13 +24,13 @@ class MobileInstance(InstanceResource): - class AddressRequirement(object): + class AddressRequirement: NONE = "none" ANY = "any" LOCAL = "local" FOREIGN = "foreign" - class EmergencyAddressStatus(object): + class EmergencyAddressStatus: REGISTERED = "registered" UNREGISTERED = "unregistered" PENDING_REGISTRATION = "pending-registration" @@ -38,11 +38,11 @@ class EmergencyAddressStatus(object): PENDING_UNREGISTRATION = "pending-unregistration" UNREGISTRATION_FAILURE = "unregistration-failure" - class EmergencyStatus(object): + class EmergencyStatus: ACTIVE = "Active" INACTIVE = "Inactive" - class VoiceReceiveMode(object): + class VoiceReceiveMode: VOICE = "voice" FAX = "fax" @@ -147,8 +147,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MobilePage(Page): diff --git a/twilio/rest/api/v2010/account/incoming_phone_number/toll_free.py b/twilio/rest/api/v2010/account/incoming_phone_number/toll_free.py index 806b7c050..75434e707 100644 --- a/twilio/rest/api/v2010/account/incoming_phone_number/toll_free.py +++ b/twilio/rest/api/v2010/account/incoming_phone_number/toll_free.py @@ -24,13 +24,13 @@ class TollFreeInstance(InstanceResource): - class AddressRequirement(object): + class AddressRequirement: NONE = "none" ANY = "any" LOCAL = "local" FOREIGN = "foreign" - class EmergencyAddressStatus(object): + class EmergencyAddressStatus: REGISTERED = "registered" UNREGISTERED = "unregistered" PENDING_REGISTRATION = "pending-registration" @@ -38,11 +38,11 @@ class EmergencyAddressStatus(object): PENDING_UNREGISTRATION = "pending-unregistration" UNREGISTRATION_FAILURE = "unregistration-failure" - class EmergencyStatus(object): + class EmergencyStatus: ACTIVE = "Active" INACTIVE = "Inactive" - class VoiceReceiveMode(object): + class VoiceReceiveMode: VOICE = "voice" FAX = "fax" @@ -147,8 +147,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class TollFreePage(Page): diff --git a/twilio/rest/api/v2010/account/key.py b/twilio/rest/api/v2010/account/key.py index 68a9feb0e..2723d2bee 100644 --- a/twilio/rest/api/v2010/account/key.py +++ b/twilio/rest/api/v2010/account/key.py @@ -138,8 +138,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class KeyContext(InstanceContext): @@ -287,8 +287,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class KeyPage(Page): diff --git a/twilio/rest/api/v2010/account/message/__init__.py b/twilio/rest/api/v2010/account/message/__init__.py index 972d80b17..bb3e409bf 100644 --- a/twilio/rest/api/v2010/account/message/__init__.py +++ b/twilio/rest/api/v2010/account/message/__init__.py @@ -26,28 +26,28 @@ class MessageInstance(InstanceResource): - class AddressRetention(object): + class AddressRetention: RETAIN = "retain" OBFUSCATE = "obfuscate" - class ContentRetention(object): + class ContentRetention: RETAIN = "retain" DISCARD = "discard" - class Direction(object): + class Direction: INBOUND = "inbound" OUTBOUND_API = "outbound-api" OUTBOUND_CALL = "outbound-call" OUTBOUND_REPLY = "outbound-reply" - class RiskCheck(object): + class RiskCheck: ENABLE = "enable" DISABLE = "disable" - class ScheduleType(object): + class ScheduleType: FIXED = "fixed" - class Status(object): + class Status: QUEUED = "queued" SENDING = "sending" SENT = "sent" @@ -62,7 +62,7 @@ class Status(object): PARTIALLY_DELIVERED = "partially_delivered" CANCELED = "canceled" - class UpdateStatus(object): + class UpdateStatus: CANCELED = "canceled" """ @@ -240,8 +240,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MessageContext(InstanceContext): @@ -430,8 +430,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MessagePage(Page): diff --git a/twilio/rest/api/v2010/account/message/feedback.py b/twilio/rest/api/v2010/account/message/feedback.py index 2ccce06a5..413a937a9 100644 --- a/twilio/rest/api/v2010/account/message/feedback.py +++ b/twilio/rest/api/v2010/account/message/feedback.py @@ -23,7 +23,7 @@ class FeedbackInstance(InstanceResource): - class Outcome(object): + class Outcome: CONFIRMED = "confirmed" UNCONFIRMED = "unconfirmed" @@ -67,8 +67,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class FeedbackList(ListResource): diff --git a/twilio/rest/api/v2010/account/message/media.py b/twilio/rest/api/v2010/account/message/media.py index 4068d0c35..7171d6676 100644 --- a/twilio/rest/api/v2010/account/message/media.py +++ b/twilio/rest/api/v2010/account/message/media.py @@ -121,8 +121,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MediaContext(InstanceContext): @@ -222,8 +222,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MediaPage(Page): diff --git a/twilio/rest/api/v2010/account/new_key.py b/twilio/rest/api/v2010/account/new_key.py index 015249ddf..09d6b2e89 100644 --- a/twilio/rest/api/v2010/account/new_key.py +++ b/twilio/rest/api/v2010/account/new_key.py @@ -53,8 +53,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class NewKeyList(ListResource): diff --git a/twilio/rest/api/v2010/account/new_signing_key.py b/twilio/rest/api/v2010/account/new_signing_key.py index 6bfa32324..fc69dbb90 100644 --- a/twilio/rest/api/v2010/account/new_signing_key.py +++ b/twilio/rest/api/v2010/account/new_signing_key.py @@ -53,8 +53,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class NewSigningKeyList(ListResource): diff --git a/twilio/rest/api/v2010/account/notification.py b/twilio/rest/api/v2010/account/notification.py index 0a2e13da3..d1b3f2d43 100644 --- a/twilio/rest/api/v2010/account/notification.py +++ b/twilio/rest/api/v2010/account/notification.py @@ -122,8 +122,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class NotificationContext(InstanceContext): @@ -193,8 +193,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class NotificationPage(Page): diff --git a/twilio/rest/api/v2010/account/outgoing_caller_id.py b/twilio/rest/api/v2010/account/outgoing_caller_id.py index 65ddfa1cd..fdf6dcd9e 100644 --- a/twilio/rest/api/v2010/account/outgoing_caller_id.py +++ b/twilio/rest/api/v2010/account/outgoing_caller_id.py @@ -146,8 +146,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class OutgoingCallerIdContext(InstanceContext): @@ -299,8 +299,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class OutgoingCallerIdPage(Page): diff --git a/twilio/rest/api/v2010/account/queue/__init__.py b/twilio/rest/api/v2010/account/queue/__init__.py index 4e6c87baa..9351ea2b6 100644 --- a/twilio/rest/api/v2010/account/queue/__init__.py +++ b/twilio/rest/api/v2010/account/queue/__init__.py @@ -170,8 +170,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class QueueContext(InstanceContext): @@ -344,8 +344,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class QueuePage(Page): diff --git a/twilio/rest/api/v2010/account/queue/member.py b/twilio/rest/api/v2010/account/queue/member.py index bf092ff28..672a8b8a0 100644 --- a/twilio/rest/api/v2010/account/queue/member.py +++ b/twilio/rest/api/v2010/account/queue/member.py @@ -131,8 +131,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MemberContext(InstanceContext): @@ -274,8 +274,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MemberPage(Page): diff --git a/twilio/rest/api/v2010/account/recording/__init__.py b/twilio/rest/api/v2010/account/recording/__init__.py index bc1ddccb7..3a284251d 100644 --- a/twilio/rest/api/v2010/account/recording/__init__.py +++ b/twilio/rest/api/v2010/account/recording/__init__.py @@ -26,7 +26,7 @@ class RecordingInstance(InstanceResource): - class Source(object): + class Source: DIALVERB = "DialVerb" CONFERENCE = "Conference" OUTBOUNDAPI = "OutboundAPI" @@ -35,7 +35,7 @@ class Source(object): STARTCALLRECORDINGAPI = "StartCallRecordingAPI" STARTCONFERENCERECORDINGAPI = "StartConferenceRecordingAPI" - class Status(object): + class Status: IN_PROGRESS = "in-progress" PAUSED = "paused" STOPPED = "stopped" @@ -193,8 +193,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class RecordingContext(InstanceContext): @@ -331,8 +331,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class RecordingPage(Page): diff --git a/twilio/rest/api/v2010/account/recording/add_on_result/__init__.py b/twilio/rest/api/v2010/account/recording/add_on_result/__init__.py index af1e75f4c..f92f36b65 100644 --- a/twilio/rest/api/v2010/account/recording/add_on_result/__init__.py +++ b/twilio/rest/api/v2010/account/recording/add_on_result/__init__.py @@ -25,7 +25,7 @@ class AddOnResultInstance(InstanceResource): - class Status(object): + class Status: CANCELED = "canceled" COMPLETED = "completed" DELETED = "deleted" @@ -152,8 +152,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AddOnResultContext(InstanceContext): @@ -269,8 +269,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AddOnResultPage(Page): diff --git a/twilio/rest/api/v2010/account/recording/add_on_result/payload.py b/twilio/rest/api/v2010/account/recording/add_on_result/payload.py index 1dc26e1d7..85df62326 100644 --- a/twilio/rest/api/v2010/account/recording/add_on_result/payload.py +++ b/twilio/rest/api/v2010/account/recording/add_on_result/payload.py @@ -136,8 +136,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PayloadContext(InstanceContext): @@ -246,8 +246,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PayloadPage(Page): diff --git a/twilio/rest/api/v2010/account/recording/transcription.py b/twilio/rest/api/v2010/account/recording/transcription.py index bb6e0e405..4c7c80c07 100644 --- a/twilio/rest/api/v2010/account/recording/transcription.py +++ b/twilio/rest/api/v2010/account/recording/transcription.py @@ -24,7 +24,7 @@ class TranscriptionInstance(InstanceResource): - class Status(object): + class Status: IN_PROGRESS = "in-progress" COMPLETED = "completed" FAILED = "failed" @@ -139,8 +139,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class TranscriptionContext(InstanceContext): @@ -240,8 +240,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class TranscriptionPage(Page): diff --git a/twilio/rest/api/v2010/account/short_code.py b/twilio/rest/api/v2010/account/short_code.py index 2af049a20..e32cb2407 100644 --- a/twilio/rest/api/v2010/account/short_code.py +++ b/twilio/rest/api/v2010/account/short_code.py @@ -170,8 +170,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ShortCodeContext(InstanceContext): @@ -331,8 +331,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ShortCodePage(Page): diff --git a/twilio/rest/api/v2010/account/signing_key.py b/twilio/rest/api/v2010/account/signing_key.py index 6ddc7b92b..12abbfb64 100644 --- a/twilio/rest/api/v2010/account/signing_key.py +++ b/twilio/rest/api/v2010/account/signing_key.py @@ -140,8 +140,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SigningKeyContext(InstanceContext): @@ -293,8 +293,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SigningKeyPage(Page): diff --git a/twilio/rest/api/v2010/account/sip/credential_list/__init__.py b/twilio/rest/api/v2010/account/sip/credential_list/__init__.py index 634500f8c..be4b999ba 100644 --- a/twilio/rest/api/v2010/account/sip/credential_list/__init__.py +++ b/twilio/rest/api/v2010/account/sip/credential_list/__init__.py @@ -152,8 +152,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CredentialListContext(InstanceContext): @@ -316,8 +316,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CredentialListPage(Page): diff --git a/twilio/rest/api/v2010/account/sip/credential_list/credential.py b/twilio/rest/api/v2010/account/sip/credential_list/credential.py index 3d2c24b99..edce81206 100644 --- a/twilio/rest/api/v2010/account/sip/credential_list/credential.py +++ b/twilio/rest/api/v2010/account/sip/credential_list/credential.py @@ -149,8 +149,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CredentialContext(InstanceContext): @@ -308,8 +308,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CredentialPage(Page): diff --git a/twilio/rest/api/v2010/account/sip/domain/__init__.py b/twilio/rest/api/v2010/account/sip/domain/__init__.py index b46962838..c387c9825 100644 --- a/twilio/rest/api/v2010/account/sip/domain/__init__.py +++ b/twilio/rest/api/v2010/account/sip/domain/__init__.py @@ -284,8 +284,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class DomainContext(InstanceContext): @@ -560,8 +560,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class DomainPage(Page): diff --git a/twilio/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_credential_list_mapping.py b/twilio/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_credential_list_mapping.py index 81bb5b0b0..758073670 100644 --- a/twilio/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_credential_list_mapping.py +++ b/twilio/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_credential_list_mapping.py @@ -117,7 +117,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) @@ -218,7 +218,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) diff --git a/twilio/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_ip_access_control_list_mapping.py b/twilio/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_ip_access_control_list_mapping.py index a690ef4b1..260eb4b7d 100644 --- a/twilio/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_ip_access_control_list_mapping.py +++ b/twilio/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_ip_access_control_list_mapping.py @@ -117,7 +117,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return ( "".format( context @@ -220,7 +220,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return ( "".format( context diff --git a/twilio/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations/auth_registrations_credential_list_mapping.py b/twilio/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations/auth_registrations_credential_list_mapping.py index 2b03bb299..cc6309215 100644 --- a/twilio/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations/auth_registrations_credential_list_mapping.py +++ b/twilio/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations/auth_registrations_credential_list_mapping.py @@ -117,7 +117,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) @@ -218,7 +218,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) diff --git a/twilio/rest/api/v2010/account/sip/domain/credential_list_mapping.py b/twilio/rest/api/v2010/account/sip/domain/credential_list_mapping.py index f7838bfc5..b4d689e02 100644 --- a/twilio/rest/api/v2010/account/sip/domain/credential_list_mapping.py +++ b/twilio/rest/api/v2010/account/sip/domain/credential_list_mapping.py @@ -121,8 +121,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CredentialListMappingContext(InstanceContext): @@ -220,8 +220,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CredentialListMappingPage(Page): diff --git a/twilio/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.py b/twilio/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.py index c619be386..26fb26b54 100644 --- a/twilio/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.py +++ b/twilio/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.py @@ -121,7 +121,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) @@ -222,8 +222,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class IpAccessControlListMappingPage(Page): diff --git a/twilio/rest/api/v2010/account/sip/ip_access_control_list/__init__.py b/twilio/rest/api/v2010/account/sip/ip_access_control_list/__init__.py index 7c2fd8214..b173b05fd 100644 --- a/twilio/rest/api/v2010/account/sip/ip_access_control_list/__init__.py +++ b/twilio/rest/api/v2010/account/sip/ip_access_control_list/__init__.py @@ -154,8 +154,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class IpAccessControlListContext(InstanceContext): @@ -320,8 +320,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class IpAccessControlListPage(Page): diff --git a/twilio/rest/api/v2010/account/sip/ip_access_control_list/ip_address.py b/twilio/rest/api/v2010/account/sip/ip_access_control_list/ip_address.py index 251bae965..53ab4e68f 100644 --- a/twilio/rest/api/v2010/account/sip/ip_access_control_list/ip_address.py +++ b/twilio/rest/api/v2010/account/sip/ip_access_control_list/ip_address.py @@ -171,8 +171,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class IpAddressContext(InstanceContext): @@ -350,8 +350,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class IpAddressPage(Page): diff --git a/twilio/rest/api/v2010/account/token.py b/twilio/rest/api/v2010/account/token.py index ec5acac97..76f9602c5 100644 --- a/twilio/rest/api/v2010/account/token.py +++ b/twilio/rest/api/v2010/account/token.py @@ -57,8 +57,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class TokenList(ListResource): diff --git a/twilio/rest/api/v2010/account/transcription.py b/twilio/rest/api/v2010/account/transcription.py index a77bc42fb..23af77a39 100644 --- a/twilio/rest/api/v2010/account/transcription.py +++ b/twilio/rest/api/v2010/account/transcription.py @@ -24,7 +24,7 @@ class TranscriptionInstance(InstanceResource): - class Status(object): + class Status: IN_PROGRESS = "in-progress" COMPLETED = "completed" FAILED = "failed" @@ -136,8 +136,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class TranscriptionContext(InstanceContext): @@ -231,8 +231,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class TranscriptionPage(Page): diff --git a/twilio/rest/api/v2010/account/usage/record/__init__.py b/twilio/rest/api/v2010/account/usage/record/__init__.py index 0afc8e347..7d42ae0e6 100644 --- a/twilio/rest/api/v2010/account/usage/record/__init__.py +++ b/twilio/rest/api/v2010/account/usage/record/__init__.py @@ -32,7 +32,7 @@ class RecordInstance(InstanceResource): - class Category(object): + class Category: A2P_REGISTRATION_FEES = "a2p-registration-fees" AGENT_CONFERENCE = "agent-conference" AMAZON_POLLY = "amazon-polly" @@ -408,8 +408,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class RecordPage(Page): diff --git a/twilio/rest/api/v2010/account/usage/record/all_time.py b/twilio/rest/api/v2010/account/usage/record/all_time.py index 7c0b6f5ce..41a6f9f82 100644 --- a/twilio/rest/api/v2010/account/usage/record/all_time.py +++ b/twilio/rest/api/v2010/account/usage/record/all_time.py @@ -24,7 +24,7 @@ class AllTimeInstance(InstanceResource): - class Category(object): + class Category: A2P_REGISTRATION_FEES = "a2p-registration-fees" AGENT_CONFERENCE = "agent-conference" AMAZON_POLLY = "amazon-polly" @@ -400,8 +400,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AllTimePage(Page): diff --git a/twilio/rest/api/v2010/account/usage/record/daily.py b/twilio/rest/api/v2010/account/usage/record/daily.py index a0acd62b2..203c86031 100644 --- a/twilio/rest/api/v2010/account/usage/record/daily.py +++ b/twilio/rest/api/v2010/account/usage/record/daily.py @@ -24,7 +24,7 @@ class DailyInstance(InstanceResource): - class Category(object): + class Category: A2P_REGISTRATION_FEES = "a2p-registration-fees" AGENT_CONFERENCE = "agent-conference" AMAZON_POLLY = "amazon-polly" @@ -400,8 +400,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class DailyPage(Page): diff --git a/twilio/rest/api/v2010/account/usage/record/last_month.py b/twilio/rest/api/v2010/account/usage/record/last_month.py index 21fa1e1b6..e09165ee3 100644 --- a/twilio/rest/api/v2010/account/usage/record/last_month.py +++ b/twilio/rest/api/v2010/account/usage/record/last_month.py @@ -24,7 +24,7 @@ class LastMonthInstance(InstanceResource): - class Category(object): + class Category: A2P_REGISTRATION_FEES = "a2p-registration-fees" AGENT_CONFERENCE = "agent-conference" AMAZON_POLLY = "amazon-polly" @@ -400,8 +400,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class LastMonthPage(Page): diff --git a/twilio/rest/api/v2010/account/usage/record/monthly.py b/twilio/rest/api/v2010/account/usage/record/monthly.py index 0eff14396..0bb298131 100644 --- a/twilio/rest/api/v2010/account/usage/record/monthly.py +++ b/twilio/rest/api/v2010/account/usage/record/monthly.py @@ -24,7 +24,7 @@ class MonthlyInstance(InstanceResource): - class Category(object): + class Category: A2P_REGISTRATION_FEES = "a2p-registration-fees" AGENT_CONFERENCE = "agent-conference" AMAZON_POLLY = "amazon-polly" @@ -400,8 +400,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MonthlyPage(Page): diff --git a/twilio/rest/api/v2010/account/usage/record/this_month.py b/twilio/rest/api/v2010/account/usage/record/this_month.py index 646b4a49d..5e01b2f8b 100644 --- a/twilio/rest/api/v2010/account/usage/record/this_month.py +++ b/twilio/rest/api/v2010/account/usage/record/this_month.py @@ -24,7 +24,7 @@ class ThisMonthInstance(InstanceResource): - class Category(object): + class Category: A2P_REGISTRATION_FEES = "a2p-registration-fees" AGENT_CONFERENCE = "agent-conference" AMAZON_POLLY = "amazon-polly" @@ -400,8 +400,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ThisMonthPage(Page): diff --git a/twilio/rest/api/v2010/account/usage/record/today.py b/twilio/rest/api/v2010/account/usage/record/today.py index 30de9d4cb..3cefd1786 100644 --- a/twilio/rest/api/v2010/account/usage/record/today.py +++ b/twilio/rest/api/v2010/account/usage/record/today.py @@ -24,7 +24,7 @@ class TodayInstance(InstanceResource): - class Category(object): + class Category: A2P_REGISTRATION_FEES = "a2p-registration-fees" AGENT_CONFERENCE = "agent-conference" AMAZON_POLLY = "amazon-polly" @@ -400,8 +400,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class TodayPage(Page): diff --git a/twilio/rest/api/v2010/account/usage/record/yearly.py b/twilio/rest/api/v2010/account/usage/record/yearly.py index fbe9dd1f6..e97065fc7 100644 --- a/twilio/rest/api/v2010/account/usage/record/yearly.py +++ b/twilio/rest/api/v2010/account/usage/record/yearly.py @@ -24,7 +24,7 @@ class YearlyInstance(InstanceResource): - class Category(object): + class Category: A2P_REGISTRATION_FEES = "a2p-registration-fees" AGENT_CONFERENCE = "agent-conference" AMAZON_POLLY = "amazon-polly" @@ -400,8 +400,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class YearlyPage(Page): diff --git a/twilio/rest/api/v2010/account/usage/record/yesterday.py b/twilio/rest/api/v2010/account/usage/record/yesterday.py index db5f9eb47..3ad7ba6c6 100644 --- a/twilio/rest/api/v2010/account/usage/record/yesterday.py +++ b/twilio/rest/api/v2010/account/usage/record/yesterday.py @@ -24,7 +24,7 @@ class YesterdayInstance(InstanceResource): - class Category(object): + class Category: A2P_REGISTRATION_FEES = "a2p-registration-fees" AGENT_CONFERENCE = "agent-conference" AMAZON_POLLY = "amazon-polly" @@ -400,8 +400,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class YesterdayPage(Page): diff --git a/twilio/rest/api/v2010/account/usage/trigger.py b/twilio/rest/api/v2010/account/usage/trigger.py index 66e86602a..9f10d489c 100644 --- a/twilio/rest/api/v2010/account/usage/trigger.py +++ b/twilio/rest/api/v2010/account/usage/trigger.py @@ -24,18 +24,18 @@ class TriggerInstance(InstanceResource): - class Recurring(object): + class Recurring: DAILY = "daily" MONTHLY = "monthly" YEARLY = "yearly" ALLTIME = "alltime" - class TriggerField(object): + class TriggerField: COUNT = "count" USAGE = "usage" PRICE = "price" - class UsageCategory(object): + class UsageCategory: A2P_REGISTRATION_FEES = "a2p-registration-fees" AGENT_CONFERENCE = "agent-conference" AMAZON_POLLY = "amazon-polly" @@ -519,8 +519,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class TriggerContext(InstanceContext): @@ -686,8 +686,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class TriggerPage(Page): diff --git a/twilio/rest/api/v2010/account/validation_request.py b/twilio/rest/api/v2010/account/validation_request.py index a949df2d0..149f8db06 100644 --- a/twilio/rest/api/v2010/account/validation_request.py +++ b/twilio/rest/api/v2010/account/validation_request.py @@ -48,8 +48,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ValidationRequestList(ListResource): diff --git a/twilio/rest/bulkexports/v1/export/__init__.py b/twilio/rest/bulkexports/v1/export/__init__.py index c5c11df08..04e3e5639 100644 --- a/twilio/rest/bulkexports/v1/export/__init__.py +++ b/twilio/rest/bulkexports/v1/export/__init__.py @@ -100,8 +100,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ExportContext(InstanceContext): @@ -192,8 +192,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ExportList(ListResource): diff --git a/twilio/rest/bulkexports/v1/export/day.py b/twilio/rest/bulkexports/v1/export/day.py index fcbc56e97..f0991422b 100644 --- a/twilio/rest/bulkexports/v1/export/day.py +++ b/twilio/rest/bulkexports/v1/export/day.py @@ -93,8 +93,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class DayContext(InstanceContext): @@ -162,8 +162,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class DayPage(Page): diff --git a/twilio/rest/bulkexports/v1/export/export_custom_job.py b/twilio/rest/bulkexports/v1/export/export_custom_job.py index 758398eba..b785ba4fa 100644 --- a/twilio/rest/bulkexports/v1/export/export_custom_job.py +++ b/twilio/rest/bulkexports/v1/export/export_custom_job.py @@ -63,8 +63,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ExportCustomJobPage(Page): diff --git a/twilio/rest/bulkexports/v1/export/job.py b/twilio/rest/bulkexports/v1/export/job.py index 48b2df1ab..33e920cca 100644 --- a/twilio/rest/bulkexports/v1/export/job.py +++ b/twilio/rest/bulkexports/v1/export/job.py @@ -117,8 +117,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class JobContext(InstanceContext): @@ -206,8 +206,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class JobList(ListResource): diff --git a/twilio/rest/bulkexports/v1/export_configuration.py b/twilio/rest/bulkexports/v1/export_configuration.py index c6629d21c..8d3d51702 100644 --- a/twilio/rest/bulkexports/v1/export_configuration.py +++ b/twilio/rest/bulkexports/v1/export_configuration.py @@ -129,8 +129,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ExportConfigurationContext(InstanceContext): @@ -260,8 +260,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ExportConfigurationList(ListResource): diff --git a/twilio/rest/chat/v1/credential.py b/twilio/rest/chat/v1/credential.py index 68ec9f4b4..f00c22d65 100644 --- a/twilio/rest/chat/v1/credential.py +++ b/twilio/rest/chat/v1/credential.py @@ -24,7 +24,7 @@ class CredentialInstance(InstanceResource): - class PushService(object): + class PushService: GCM = "gcm" APN = "apn" FCM = "fcm" @@ -180,8 +180,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CredentialContext(InstanceContext): @@ -349,8 +349,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CredentialPage(Page): diff --git a/twilio/rest/chat/v1/service/__init__.py b/twilio/rest/chat/v1/service/__init__.py index 1e2a5884a..4537faa3c 100644 --- a/twilio/rest/chat/v1/service/__init__.py +++ b/twilio/rest/chat/v1/service/__init__.py @@ -522,8 +522,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ServiceContext(InstanceContext): @@ -1039,8 +1039,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ServicePage(Page): diff --git a/twilio/rest/chat/v1/service/channel/__init__.py b/twilio/rest/chat/v1/service/channel/__init__.py index 158561394..e57421456 100644 --- a/twilio/rest/chat/v1/service/channel/__init__.py +++ b/twilio/rest/chat/v1/service/channel/__init__.py @@ -27,7 +27,7 @@ class ChannelInstance(InstanceResource): - class ChannelType(object): + class ChannelType: PUBLIC = "public" PRIVATE = "private" @@ -207,8 +207,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ChannelContext(InstanceContext): @@ -415,8 +415,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ChannelPage(Page): diff --git a/twilio/rest/chat/v1/service/channel/invite.py b/twilio/rest/chat/v1/service/channel/invite.py index 6beccffae..b67b8b811 100644 --- a/twilio/rest/chat/v1/service/channel/invite.py +++ b/twilio/rest/chat/v1/service/channel/invite.py @@ -127,8 +127,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class InviteContext(InstanceContext): @@ -228,8 +228,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class InvitePage(Page): diff --git a/twilio/rest/chat/v1/service/channel/member.py b/twilio/rest/chat/v1/service/channel/member.py index f0cd21448..2aab7dff2 100644 --- a/twilio/rest/chat/v1/service/channel/member.py +++ b/twilio/rest/chat/v1/service/channel/member.py @@ -169,8 +169,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MemberContext(InstanceContext): @@ -338,8 +338,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MemberPage(Page): diff --git a/twilio/rest/chat/v1/service/channel/message.py b/twilio/rest/chat/v1/service/channel/message.py index f524c9238..f969c9470 100644 --- a/twilio/rest/chat/v1/service/channel/message.py +++ b/twilio/rest/chat/v1/service/channel/message.py @@ -24,7 +24,7 @@ class MessageInstance(InstanceResource): - class OrderType(object): + class OrderType: ASC = "asc" DESC = "desc" @@ -174,8 +174,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MessageContext(InstanceContext): @@ -343,8 +343,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MessagePage(Page): diff --git a/twilio/rest/chat/v1/service/role.py b/twilio/rest/chat/v1/service/role.py index 1913986a4..4ad69bd8b 100644 --- a/twilio/rest/chat/v1/service/role.py +++ b/twilio/rest/chat/v1/service/role.py @@ -24,7 +24,7 @@ class RoleInstance(InstanceResource): - class RoleType(object): + class RoleType: CHANNEL = "channel" DEPLOYMENT = "deployment" @@ -151,8 +151,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class RoleContext(InstanceContext): @@ -298,8 +298,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class RolePage(Page): diff --git a/twilio/rest/chat/v1/service/user/__init__.py b/twilio/rest/chat/v1/service/user/__init__.py index b06509668..4145e8eeb 100644 --- a/twilio/rest/chat/v1/service/user/__init__.py +++ b/twilio/rest/chat/v1/service/user/__init__.py @@ -184,8 +184,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class UserContext(InstanceContext): @@ -364,8 +364,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class UserPage(Page): diff --git a/twilio/rest/chat/v1/service/user/user_channel.py b/twilio/rest/chat/v1/service/user/user_channel.py index 01e639cea..3e8c77158 100644 --- a/twilio/rest/chat/v1/service/user/user_channel.py +++ b/twilio/rest/chat/v1/service/user/user_channel.py @@ -23,7 +23,7 @@ class UserChannelInstance(InstanceResource): - class ChannelStatus(object): + class ChannelStatus: JOINED = "joined" INVITED = "invited" NOT_PARTICIPATING = "not_participating" @@ -70,8 +70,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class UserChannelPage(Page): diff --git a/twilio/rest/chat/v2/credential.py b/twilio/rest/chat/v2/credential.py index 8011ed0e1..ac771b221 100644 --- a/twilio/rest/chat/v2/credential.py +++ b/twilio/rest/chat/v2/credential.py @@ -24,7 +24,7 @@ class CredentialInstance(InstanceResource): - class PushService(object): + class PushService: GCM = "gcm" APN = "apn" FCM = "fcm" @@ -180,8 +180,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CredentialContext(InstanceContext): @@ -349,8 +349,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CredentialPage(Page): diff --git a/twilio/rest/chat/v2/service/__init__.py b/twilio/rest/chat/v2/service/__init__.py index f6fa9e2c4..3cc0494f9 100644 --- a/twilio/rest/chat/v2/service/__init__.py +++ b/twilio/rest/chat/v2/service/__init__.py @@ -404,8 +404,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ServiceContext(InstanceContext): @@ -808,8 +808,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ServicePage(Page): diff --git a/twilio/rest/chat/v2/service/binding.py b/twilio/rest/chat/v2/service/binding.py index 2f960c513..145a12952 100644 --- a/twilio/rest/chat/v2/service/binding.py +++ b/twilio/rest/chat/v2/service/binding.py @@ -24,7 +24,7 @@ class BindingInstance(InstanceResource): - class BindingType(object): + class BindingType: GCM = "gcm" APN = "apn" FCM = "fcm" @@ -136,8 +136,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class BindingContext(InstanceContext): @@ -229,8 +229,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class BindingPage(Page): diff --git a/twilio/rest/chat/v2/service/channel/__init__.py b/twilio/rest/chat/v2/service/channel/__init__.py index 2b49faf26..60d30e085 100644 --- a/twilio/rest/chat/v2/service/channel/__init__.py +++ b/twilio/rest/chat/v2/service/channel/__init__.py @@ -28,11 +28,11 @@ class ChannelInstance(InstanceResource): - class ChannelType(object): + class ChannelType: PUBLIC = "public" PRIVATE = "private" - class WebhookEnabledType(object): + class WebhookEnabledType: TRUE = "true" FALSE = "false" @@ -263,8 +263,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ChannelContext(InstanceContext): @@ -537,8 +537,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ChannelPage(Page): diff --git a/twilio/rest/chat/v2/service/channel/invite.py b/twilio/rest/chat/v2/service/channel/invite.py index 2c7333786..6c16aa89b 100644 --- a/twilio/rest/chat/v2/service/channel/invite.py +++ b/twilio/rest/chat/v2/service/channel/invite.py @@ -127,8 +127,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class InviteContext(InstanceContext): @@ -228,8 +228,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class InvitePage(Page): diff --git a/twilio/rest/chat/v2/service/channel/member.py b/twilio/rest/chat/v2/service/channel/member.py index c71d3e345..010151409 100644 --- a/twilio/rest/chat/v2/service/channel/member.py +++ b/twilio/rest/chat/v2/service/channel/member.py @@ -24,7 +24,7 @@ class MemberInstance(InstanceResource): - class WebhookEnabledType(object): + class WebhookEnabledType: TRUE = "true" FALSE = "false" @@ -226,8 +226,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MemberContext(InstanceContext): @@ -457,8 +457,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MemberPage(Page): diff --git a/twilio/rest/chat/v2/service/channel/message.py b/twilio/rest/chat/v2/service/channel/message.py index e98f526c7..af83ace61 100644 --- a/twilio/rest/chat/v2/service/channel/message.py +++ b/twilio/rest/chat/v2/service/channel/message.py @@ -24,11 +24,11 @@ class MessageInstance(InstanceResource): - class OrderType(object): + class OrderType: ASC = "asc" DESC = "desc" - class WebhookEnabledType(object): + class WebhookEnabledType: TRUE = "true" FALSE = "false" @@ -234,8 +234,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MessageContext(InstanceContext): @@ -461,8 +461,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MessagePage(Page): diff --git a/twilio/rest/chat/v2/service/channel/webhook.py b/twilio/rest/chat/v2/service/channel/webhook.py index ca738bac4..2d81b553d 100644 --- a/twilio/rest/chat/v2/service/channel/webhook.py +++ b/twilio/rest/chat/v2/service/channel/webhook.py @@ -24,11 +24,11 @@ class WebhookInstance(InstanceResource): - class Method(object): + class Method: GET = "GET" POST = "POST" - class Type(object): + class Type: WEBHOOK = "webhook" TRIGGER = "trigger" STUDIO = "studio" @@ -195,8 +195,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class WebhookContext(InstanceContext): @@ -396,8 +396,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class WebhookPage(Page): diff --git a/twilio/rest/chat/v2/service/role.py b/twilio/rest/chat/v2/service/role.py index 5bb373c9a..6181ab7da 100644 --- a/twilio/rest/chat/v2/service/role.py +++ b/twilio/rest/chat/v2/service/role.py @@ -24,7 +24,7 @@ class RoleInstance(InstanceResource): - class RoleType(object): + class RoleType: CHANNEL = "channel" DEPLOYMENT = "deployment" @@ -151,8 +151,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class RoleContext(InstanceContext): @@ -298,8 +298,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class RolePage(Page): diff --git a/twilio/rest/chat/v2/service/user/__init__.py b/twilio/rest/chat/v2/service/user/__init__.py index 2c4ac5a3b..d2ad930ff 100644 --- a/twilio/rest/chat/v2/service/user/__init__.py +++ b/twilio/rest/chat/v2/service/user/__init__.py @@ -26,7 +26,7 @@ class UserInstance(InstanceResource): - class WebhookEnabledType(object): + class WebhookEnabledType: TRUE = "true" FALSE = "false" @@ -207,8 +207,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class UserContext(InstanceContext): @@ -415,8 +415,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class UserPage(Page): diff --git a/twilio/rest/chat/v2/service/user/user_binding.py b/twilio/rest/chat/v2/service/user/user_binding.py index 4170c74fb..7597e6d32 100644 --- a/twilio/rest/chat/v2/service/user/user_binding.py +++ b/twilio/rest/chat/v2/service/user/user_binding.py @@ -24,7 +24,7 @@ class UserBindingInstance(InstanceResource): - class BindingType(object): + class BindingType: GCM = "gcm" APN = "apn" FCM = "fcm" @@ -139,8 +139,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class UserBindingContext(InstanceContext): @@ -238,8 +238,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class UserBindingPage(Page): diff --git a/twilio/rest/chat/v2/service/user/user_channel.py b/twilio/rest/chat/v2/service/user/user_channel.py index 1fd25254a..27fc4b603 100644 --- a/twilio/rest/chat/v2/service/user/user_channel.py +++ b/twilio/rest/chat/v2/service/user/user_channel.py @@ -24,16 +24,16 @@ class UserChannelInstance(InstanceResource): - class ChannelStatus(object): + class ChannelStatus: JOINED = "joined" INVITED = "invited" NOT_PARTICIPATING = "not_participating" - class NotificationLevel(object): + class NotificationLevel: DEFAULT = "default" MUTED = "muted" - class WebhookEnabledType(object): + class WebhookEnabledType: TRUE = "true" FALSE = "false" @@ -209,8 +209,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class UserChannelContext(InstanceContext): @@ -414,8 +414,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class UserChannelPage(Page): diff --git a/twilio/rest/chat/v3/channel.py b/twilio/rest/chat/v3/channel.py index e9d10b55b..07314ac5f 100644 --- a/twilio/rest/chat/v3/channel.py +++ b/twilio/rest/chat/v3/channel.py @@ -23,11 +23,11 @@ class ChannelInstance(InstanceResource): - class ChannelType(object): + class ChannelType: PUBLIC = "public" PRIVATE = "private" - class WebhookEnabledType(object): + class WebhookEnabledType: TRUE = "true" FALSE = "false" @@ -154,8 +154,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ChannelContext(InstanceContext): @@ -263,8 +263,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ChannelList(ListResource): diff --git a/twilio/rest/content/v1/content/__init__.py b/twilio/rest/content/v1/content/__init__.py index bdc1102ca..016461798 100644 --- a/twilio/rest/content/v1/content/__init__.py +++ b/twilio/rest/content/v1/content/__init__.py @@ -26,19 +26,19 @@ class ContentInstance(InstanceResource): - class AuthenticationActionType(object): + class AuthenticationActionType: COPY_CODE = "COPY_CODE" - class CallToActionActionType(object): + class CallToActionActionType: URL = "URL" PHONE_NUMBER = "PHONE_NUMBER" - class CardActionType(object): + class CardActionType: URL = "URL" PHONE_NUMBER = "PHONE_NUMBER" QUICK_REPLY = "QUICK_REPLY" - class QuickReplyActionType(object): + class QuickReplyActionType: QUICK_REPLY = "QUICK_REPLY" """ @@ -150,8 +150,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ContentContext(InstanceContext): @@ -266,8 +266,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ContentPage(Page): @@ -291,7 +291,7 @@ def __repr__(self) -> str: class ContentList(ListResource): - class AuthenticationAction(object): + class AuthenticationAction: """ :ivar type: :ivar copy_code_text: @@ -310,7 +310,7 @@ def to_dict(self): "copy_code_text": self.copy_code_text, } - class CallToActionAction(object): + class CallToActionAction: """ :ivar type: :ivar title: @@ -338,7 +338,7 @@ def to_dict(self): "id": self.id, } - class CardAction(object): + class CardAction: """ :ivar type: :ivar title: @@ -364,7 +364,7 @@ def to_dict(self): "id": self.id, } - class CatalogItem(object): + class CatalogItem: """ :ivar id: :ivar section_title: @@ -393,7 +393,7 @@ def to_dict(self): "description": self.description, } - class ContentCreateRequest(object): + class ContentCreateRequest: """ :ivar friendly_name: User defined name of the content :ivar variables: Key value pairs of variable name to value @@ -416,7 +416,7 @@ def to_dict(self): "types": self.types.to_dict(), } - class ListItem(object): + class ListItem: """ :ivar id: :ivar item: @@ -436,7 +436,7 @@ def to_dict(self): "description": self.description, } - class QuickReplyAction(object): + class QuickReplyAction: """ :ivar type: :ivar title: @@ -458,7 +458,7 @@ def to_dict(self): "id": self.id, } - class TwilioCallToAction(object): + class TwilioCallToAction: """ :ivar body: :ivar actions: @@ -477,7 +477,7 @@ def to_dict(self): "actions": [actions.to_dict() for actions in self.actions], } - class TwilioCard(object): + class TwilioCard: """ :ivar title: :ivar subtitle: @@ -502,7 +502,7 @@ def to_dict(self): "actions": [actions.to_dict() for actions in self.actions], } - class TwilioCatalog(object): + class TwilioCatalog: """ :ivar title: :ivar body: @@ -531,7 +531,7 @@ def to_dict(self): "dynamic_items": self.dynamic_items, } - class TwilioListPicker(object): + class TwilioListPicker: """ :ivar body: :ivar button: @@ -551,7 +551,7 @@ def to_dict(self): "items": [items.to_dict() for items in self.items], } - class TwilioLocation(object): + class TwilioLocation: """ :ivar latitude: :ivar longitude: @@ -571,7 +571,7 @@ def to_dict(self): "label": self.label, } - class TwilioMedia(object): + class TwilioMedia: """ :ivar body: :ivar media: @@ -588,7 +588,7 @@ def to_dict(self): "media": self.media, } - class TwilioQuickReply(object): + class TwilioQuickReply: """ :ivar body: :ivar actions: @@ -607,7 +607,7 @@ def to_dict(self): "actions": [actions.to_dict() for actions in self.actions], } - class TwilioText(object): + class TwilioText: """ :ivar body: """ @@ -621,7 +621,7 @@ def to_dict(self): "body": self.body, } - class Types(object): + class Types: """ :ivar twilio_text: :ivar twilio_media: @@ -682,7 +682,7 @@ def to_dict(self): "whatsapp_authentication": self.whatsapp_authentication.to_dict(), } - class WhatsappAuthentication(object): + class WhatsappAuthentication: """ :ivar add_security_recommendation: :ivar code_expiration_minutes: @@ -708,7 +708,7 @@ def to_dict(self): "actions": [actions.to_dict() for actions in self.actions], } - class WhatsappCard(object): + class WhatsappCard: """ :ivar body: :ivar footer: diff --git a/twilio/rest/content/v1/content/approval_create.py b/twilio/rest/content/v1/content/approval_create.py index 63a447430..b00488057 100644 --- a/twilio/rest/content/v1/content/approval_create.py +++ b/twilio/rest/content/v1/content/approval_create.py @@ -51,13 +51,13 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ApprovalCreateList(ListResource): - class ContentApprovalRequest(object): + class ContentApprovalRequest: """ :ivar name: Name of the template. :ivar category: A WhatsApp recognized template category. diff --git a/twilio/rest/content/v1/content/approval_fetch.py b/twilio/rest/content/v1/content/approval_fetch.py index f35ef6a48..fd73d04e1 100644 --- a/twilio/rest/content/v1/content/approval_fetch.py +++ b/twilio/rest/content/v1/content/approval_fetch.py @@ -79,8 +79,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ApprovalFetchContext(InstanceContext): @@ -144,8 +144,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ApprovalFetchList(ListResource): diff --git a/twilio/rest/conversations/v1/address_configuration.py b/twilio/rest/conversations/v1/address_configuration.py index 86cdb0806..d1e2b5e0a 100644 --- a/twilio/rest/conversations/v1/address_configuration.py +++ b/twilio/rest/conversations/v1/address_configuration.py @@ -24,16 +24,16 @@ class AddressConfigurationInstance(InstanceResource): - class AutoCreationType(object): + class AutoCreationType: WEBHOOK = "webhook" STUDIO = "studio" DEFAULT = "default" - class Method(object): + class Method: GET = "GET" POST = "POST" - class Type(object): + class Type: SMS = "sms" WHATSAPP = "whatsapp" MESSENGER = "messenger" @@ -221,7 +221,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) @@ -430,7 +430,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) diff --git a/twilio/rest/conversations/v1/configuration/webhook.py b/twilio/rest/conversations/v1/configuration/webhook.py index 4ece54232..1c0d1ab31 100644 --- a/twilio/rest/conversations/v1/configuration/webhook.py +++ b/twilio/rest/conversations/v1/configuration/webhook.py @@ -22,11 +22,11 @@ class WebhookInstance(InstanceResource): - class Method(object): + class Method: GET = "GET" POST = "POST" - class Target(object): + class Target: WEBHOOK = "webhook" FLEX = "flex" diff --git a/twilio/rest/conversations/v1/conversation/__init__.py b/twilio/rest/conversations/v1/conversation/__init__.py index bdb4bda32..cb0b9ab09 100644 --- a/twilio/rest/conversations/v1/conversation/__init__.py +++ b/twilio/rest/conversations/v1/conversation/__init__.py @@ -27,12 +27,12 @@ class ConversationInstance(InstanceResource): - class State(object): + class State: INACTIVE = "inactive" ACTIVE = "active" CLOSED = "closed" - class WebhookEnabledType(object): + class WebhookEnabledType: TRUE = "true" FALSE = "false" @@ -276,8 +276,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ConversationContext(InstanceContext): @@ -549,8 +549,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ConversationPage(Page): diff --git a/twilio/rest/conversations/v1/conversation/message/__init__.py b/twilio/rest/conversations/v1/conversation/message/__init__.py index e3e9dea1b..27f1819d0 100644 --- a/twilio/rest/conversations/v1/conversation/message/__init__.py +++ b/twilio/rest/conversations/v1/conversation/message/__init__.py @@ -27,11 +27,11 @@ class MessageInstance(InstanceResource): - class OrderType(object): + class OrderType: ASC = "asc" DESC = "desc" - class WebhookEnabledType(object): + class WebhookEnabledType: TRUE = "true" FALSE = "false" @@ -239,8 +239,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MessageContext(InstanceContext): @@ -473,8 +473,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MessagePage(Page): diff --git a/twilio/rest/conversations/v1/conversation/message/delivery_receipt.py b/twilio/rest/conversations/v1/conversation/message/delivery_receipt.py index 16af7892e..f57c0f4c8 100644 --- a/twilio/rest/conversations/v1/conversation/message/delivery_receipt.py +++ b/twilio/rest/conversations/v1/conversation/message/delivery_receipt.py @@ -24,7 +24,7 @@ class DeliveryReceiptInstance(InstanceResource): - class DeliveryStatus(object): + class DeliveryStatus: READ = "read" FAILED = "failed" DELIVERED = "delivered" @@ -121,8 +121,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class DeliveryReceiptContext(InstanceContext): @@ -198,8 +198,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class DeliveryReceiptPage(Page): diff --git a/twilio/rest/conversations/v1/conversation/participant.py b/twilio/rest/conversations/v1/conversation/participant.py index 499bdbf30..ae2275d13 100644 --- a/twilio/rest/conversations/v1/conversation/participant.py +++ b/twilio/rest/conversations/v1/conversation/participant.py @@ -24,7 +24,7 @@ class ParticipantInstance(InstanceResource): - class WebhookEnabledType(object): + class WebhookEnabledType: TRUE = "true" FALSE = "false" @@ -241,8 +241,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ParticipantContext(InstanceContext): @@ -478,8 +478,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ParticipantPage(Page): diff --git a/twilio/rest/conversations/v1/conversation/webhook.py b/twilio/rest/conversations/v1/conversation/webhook.py index 623887986..d29a83c1e 100644 --- a/twilio/rest/conversations/v1/conversation/webhook.py +++ b/twilio/rest/conversations/v1/conversation/webhook.py @@ -24,11 +24,11 @@ class WebhookInstance(InstanceResource): - class Method(object): + class Method: GET = "GET" POST = "POST" - class Target(object): + class Target: WEBHOOK = "webhook" TRIGGER = "trigger" STUDIO = "studio" @@ -184,8 +184,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class WebhookContext(InstanceContext): @@ -371,8 +371,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class WebhookPage(Page): diff --git a/twilio/rest/conversations/v1/credential.py b/twilio/rest/conversations/v1/credential.py index 120710f7e..abd44d497 100644 --- a/twilio/rest/conversations/v1/credential.py +++ b/twilio/rest/conversations/v1/credential.py @@ -24,7 +24,7 @@ class CredentialInstance(InstanceResource): - class PushType(object): + class PushType: APN = "apn" GCM = "gcm" FCM = "fcm" @@ -186,8 +186,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CredentialContext(InstanceContext): @@ -361,8 +361,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CredentialPage(Page): diff --git a/twilio/rest/conversations/v1/participant_conversation.py b/twilio/rest/conversations/v1/participant_conversation.py index 741304715..577b2bcbd 100644 --- a/twilio/rest/conversations/v1/participant_conversation.py +++ b/twilio/rest/conversations/v1/participant_conversation.py @@ -24,7 +24,7 @@ class ParticipantConversationInstance(InstanceResource): - class State(object): + class State: INACTIVE = "inactive" ACTIVE = "active" CLOSED = "closed" diff --git a/twilio/rest/conversations/v1/role.py b/twilio/rest/conversations/v1/role.py index b5d4d2c6d..637cc1058 100644 --- a/twilio/rest/conversations/v1/role.py +++ b/twilio/rest/conversations/v1/role.py @@ -24,7 +24,7 @@ class RoleInstance(InstanceResource): - class RoleType(object): + class RoleType: CONVERSATION = "conversation" SERVICE = "service" @@ -145,8 +145,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class RoleContext(InstanceContext): @@ -278,8 +278,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class RolePage(Page): diff --git a/twilio/rest/conversations/v1/service/__init__.py b/twilio/rest/conversations/v1/service/__init__.py index 2a9f12090..997092578 100644 --- a/twilio/rest/conversations/v1/service/__init__.py +++ b/twilio/rest/conversations/v1/service/__init__.py @@ -162,8 +162,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ServiceContext(InstanceContext): @@ -330,8 +330,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ServicePage(Page): diff --git a/twilio/rest/conversations/v1/service/binding.py b/twilio/rest/conversations/v1/service/binding.py index 6e6684449..4d90b5245 100644 --- a/twilio/rest/conversations/v1/service/binding.py +++ b/twilio/rest/conversations/v1/service/binding.py @@ -24,7 +24,7 @@ class BindingInstance(InstanceResource): - class BindingType(object): + class BindingType: APN = "apn" GCM = "gcm" FCM = "fcm" @@ -134,8 +134,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class BindingContext(InstanceContext): @@ -229,8 +229,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class BindingPage(Page): diff --git a/twilio/rest/conversations/v1/service/configuration/__init__.py b/twilio/rest/conversations/v1/service/configuration/__init__.py index 9ca23a435..3352cc94b 100644 --- a/twilio/rest/conversations/v1/service/configuration/__init__.py +++ b/twilio/rest/conversations/v1/service/configuration/__init__.py @@ -147,8 +147,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ConfigurationContext(InstanceContext): @@ -290,8 +290,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ConfigurationList(ListResource): diff --git a/twilio/rest/conversations/v1/service/configuration/notification.py b/twilio/rest/conversations/v1/service/configuration/notification.py index 2dee2d4d2..b7fe7554b 100644 --- a/twilio/rest/conversations/v1/service/configuration/notification.py +++ b/twilio/rest/conversations/v1/service/configuration/notification.py @@ -194,8 +194,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class NotificationContext(InstanceContext): @@ -403,8 +403,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class NotificationList(ListResource): diff --git a/twilio/rest/conversations/v1/service/configuration/webhook.py b/twilio/rest/conversations/v1/service/configuration/webhook.py index aa4015361..451300634 100644 --- a/twilio/rest/conversations/v1/service/configuration/webhook.py +++ b/twilio/rest/conversations/v1/service/configuration/webhook.py @@ -22,7 +22,7 @@ class WebhookInstance(InstanceResource): - class Method(object): + class Method: GET = "GET" POST = "POST" @@ -141,8 +141,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class WebhookContext(InstanceContext): @@ -280,8 +280,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class WebhookList(ListResource): diff --git a/twilio/rest/conversations/v1/service/conversation/__init__.py b/twilio/rest/conversations/v1/service/conversation/__init__.py index c347977a4..a821c2dff 100644 --- a/twilio/rest/conversations/v1/service/conversation/__init__.py +++ b/twilio/rest/conversations/v1/service/conversation/__init__.py @@ -29,12 +29,12 @@ class ConversationInstance(InstanceResource): - class State(object): + class State: INACTIVE = "inactive" ACTIVE = "active" CLOSED = "closed" - class WebhookEnabledType(object): + class WebhookEnabledType: TRUE = "true" FALSE = "false" @@ -284,8 +284,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ConversationContext(InstanceContext): @@ -576,8 +576,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ConversationPage(Page): diff --git a/twilio/rest/conversations/v1/service/conversation/message/__init__.py b/twilio/rest/conversations/v1/service/conversation/message/__init__.py index 753df1835..348c6f0c7 100644 --- a/twilio/rest/conversations/v1/service/conversation/message/__init__.py +++ b/twilio/rest/conversations/v1/service/conversation/message/__init__.py @@ -27,11 +27,11 @@ class MessageInstance(InstanceResource): - class OrderType(object): + class OrderType: ASC = "asc" DESC = "desc" - class WebhookEnabledType(object): + class WebhookEnabledType: TRUE = "true" FALSE = "false" @@ -244,8 +244,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MessageContext(InstanceContext): @@ -487,8 +487,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MessagePage(Page): diff --git a/twilio/rest/conversations/v1/service/conversation/message/delivery_receipt.py b/twilio/rest/conversations/v1/service/conversation/message/delivery_receipt.py index b9bf8a70c..4680b3cf4 100644 --- a/twilio/rest/conversations/v1/service/conversation/message/delivery_receipt.py +++ b/twilio/rest/conversations/v1/service/conversation/message/delivery_receipt.py @@ -24,7 +24,7 @@ class DeliveryReceiptInstance(InstanceResource): - class DeliveryStatus(object): + class DeliveryStatus: READ = "read" FAILED = "failed" DELIVERED = "delivered" @@ -126,8 +126,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class DeliveryReceiptContext(InstanceContext): @@ -212,8 +212,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class DeliveryReceiptPage(Page): diff --git a/twilio/rest/conversations/v1/service/conversation/participant.py b/twilio/rest/conversations/v1/service/conversation/participant.py index 6f6eee61e..950ee6868 100644 --- a/twilio/rest/conversations/v1/service/conversation/participant.py +++ b/twilio/rest/conversations/v1/service/conversation/participant.py @@ -24,7 +24,7 @@ class ParticipantInstance(InstanceResource): - class WebhookEnabledType(object): + class WebhookEnabledType: TRUE = "true" FALSE = "false" @@ -246,8 +246,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ParticipantContext(InstanceContext): @@ -491,8 +491,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ParticipantPage(Page): diff --git a/twilio/rest/conversations/v1/service/conversation/webhook.py b/twilio/rest/conversations/v1/service/conversation/webhook.py index 83b267406..57dd12750 100644 --- a/twilio/rest/conversations/v1/service/conversation/webhook.py +++ b/twilio/rest/conversations/v1/service/conversation/webhook.py @@ -24,11 +24,11 @@ class WebhookInstance(InstanceResource): - class Method(object): + class Method: GET = "GET" POST = "POST" - class Target(object): + class Target: WEBHOOK = "webhook" TRIGGER = "trigger" STUDIO = "studio" @@ -189,8 +189,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class WebhookContext(InstanceContext): @@ -384,8 +384,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class WebhookPage(Page): diff --git a/twilio/rest/conversations/v1/service/participant_conversation.py b/twilio/rest/conversations/v1/service/participant_conversation.py index 2c3bebcc1..2207e42ed 100644 --- a/twilio/rest/conversations/v1/service/participant_conversation.py +++ b/twilio/rest/conversations/v1/service/participant_conversation.py @@ -24,7 +24,7 @@ class ParticipantConversationInstance(InstanceResource): - class State(object): + class State: INACTIVE = "inactive" ACTIVE = "active" CLOSED = "closed" @@ -98,7 +98,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) diff --git a/twilio/rest/conversations/v1/service/role.py b/twilio/rest/conversations/v1/service/role.py index 3c0a0fc90..2c910194d 100644 --- a/twilio/rest/conversations/v1/service/role.py +++ b/twilio/rest/conversations/v1/service/role.py @@ -24,7 +24,7 @@ class RoleInstance(InstanceResource): - class RoleType(object): + class RoleType: CONVERSATION = "conversation" SERVICE = "service" @@ -151,8 +151,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class RoleContext(InstanceContext): @@ -298,8 +298,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class RolePage(Page): diff --git a/twilio/rest/conversations/v1/service/user/__init__.py b/twilio/rest/conversations/v1/service/user/__init__.py index 37a8d2e4f..d8e9c05a9 100644 --- a/twilio/rest/conversations/v1/service/user/__init__.py +++ b/twilio/rest/conversations/v1/service/user/__init__.py @@ -27,7 +27,7 @@ class UserInstance(InstanceResource): - class WebhookEnabledType(object): + class WebhookEnabledType: TRUE = "true" FALSE = "false" @@ -213,8 +213,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class UserContext(InstanceContext): @@ -427,8 +427,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class UserPage(Page): diff --git a/twilio/rest/conversations/v1/service/user/user_conversation.py b/twilio/rest/conversations/v1/service/user/user_conversation.py index 7a836505b..7f1535820 100644 --- a/twilio/rest/conversations/v1/service/user/user_conversation.py +++ b/twilio/rest/conversations/v1/service/user/user_conversation.py @@ -24,11 +24,11 @@ class UserConversationInstance(InstanceResource): - class NotificationLevel(object): + class NotificationLevel: DEFAULT = "default" MUTED = "muted" - class State(object): + class State: INACTIVE = "inactive" ACTIVE = "active" CLOSED = "closed" @@ -207,8 +207,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class UserConversationContext(InstanceContext): @@ -390,8 +390,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class UserConversationPage(Page): diff --git a/twilio/rest/conversations/v1/user/__init__.py b/twilio/rest/conversations/v1/user/__init__.py index d8017c510..0a90415a8 100644 --- a/twilio/rest/conversations/v1/user/__init__.py +++ b/twilio/rest/conversations/v1/user/__init__.py @@ -25,7 +25,7 @@ class UserInstance(InstanceResource): - class WebhookEnabledType(object): + class WebhookEnabledType: TRUE = "true" FALSE = "false" @@ -205,8 +205,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class UserContext(InstanceContext): @@ -404,8 +404,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class UserPage(Page): diff --git a/twilio/rest/conversations/v1/user/user_conversation.py b/twilio/rest/conversations/v1/user/user_conversation.py index e16244115..9b45ac1a7 100644 --- a/twilio/rest/conversations/v1/user/user_conversation.py +++ b/twilio/rest/conversations/v1/user/user_conversation.py @@ -24,11 +24,11 @@ class UserConversationInstance(InstanceResource): - class NotificationLevel(object): + class NotificationLevel: DEFAULT = "default" MUTED = "muted" - class State(object): + class State: INACTIVE = "inactive" ACTIVE = "active" CLOSED = "closed" @@ -204,8 +204,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class UserConversationContext(InstanceContext): @@ -375,8 +375,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class UserConversationPage(Page): diff --git a/twilio/rest/events/v1/event_type.py b/twilio/rest/events/v1/event_type.py index 7215df8f2..cde35592f 100644 --- a/twilio/rest/events/v1/event_type.py +++ b/twilio/rest/events/v1/event_type.py @@ -94,8 +94,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class EventTypeContext(InstanceContext): @@ -159,8 +159,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class EventTypePage(Page): diff --git a/twilio/rest/events/v1/schema/__init__.py b/twilio/rest/events/v1/schema/__init__.py index c3b6593c0..0aa69bfa8 100644 --- a/twilio/rest/events/v1/schema/__init__.py +++ b/twilio/rest/events/v1/schema/__init__.py @@ -98,8 +98,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SchemaContext(InstanceContext): @@ -177,8 +177,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SchemaList(ListResource): diff --git a/twilio/rest/events/v1/schema/schema_version.py b/twilio/rest/events/v1/schema/schema_version.py index 3557cb293..2e13aaf78 100644 --- a/twilio/rest/events/v1/schema/schema_version.py +++ b/twilio/rest/events/v1/schema/schema_version.py @@ -96,8 +96,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SchemaVersionContext(InstanceContext): @@ -165,8 +165,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SchemaVersionPage(Page): diff --git a/twilio/rest/events/v1/sink/__init__.py b/twilio/rest/events/v1/sink/__init__.py index b09b5edec..9242fa2a4 100644 --- a/twilio/rest/events/v1/sink/__init__.py +++ b/twilio/rest/events/v1/sink/__init__.py @@ -26,12 +26,12 @@ class SinkInstance(InstanceResource): - class SinkType(object): + class SinkType: KINESIS = "kinesis" WEBHOOK = "webhook" SEGMENT = "segment" - class Status(object): + class Status: INITIALIZED = "initialized" VALIDATING = "validating" ACTIVE = "active" @@ -170,8 +170,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SinkContext(InstanceContext): @@ -330,8 +330,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SinkPage(Page): diff --git a/twilio/rest/events/v1/sink/sink_test.py b/twilio/rest/events/v1/sink/sink_test.py index adf04f582..fa1e4a8e2 100644 --- a/twilio/rest/events/v1/sink/sink_test.py +++ b/twilio/rest/events/v1/sink/sink_test.py @@ -39,8 +39,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SinkTestList(ListResource): diff --git a/twilio/rest/events/v1/sink/sink_validate.py b/twilio/rest/events/v1/sink/sink_validate.py index 4c24dd76b..7f5360851 100644 --- a/twilio/rest/events/v1/sink/sink_validate.py +++ b/twilio/rest/events/v1/sink/sink_validate.py @@ -40,8 +40,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SinkValidateList(ListResource): diff --git a/twilio/rest/events/v1/subscription/__init__.py b/twilio/rest/events/v1/subscription/__init__.py index 666b26aa7..dcc1c3586 100644 --- a/twilio/rest/events/v1/subscription/__init__.py +++ b/twilio/rest/events/v1/subscription/__init__.py @@ -158,8 +158,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SubscriptionContext(InstanceContext): @@ -317,8 +317,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SubscriptionPage(Page): diff --git a/twilio/rest/events/v1/subscription/subscribed_event.py b/twilio/rest/events/v1/subscription/subscribed_event.py index 80c9ce149..6e101bf4b 100644 --- a/twilio/rest/events/v1/subscription/subscribed_event.py +++ b/twilio/rest/events/v1/subscription/subscribed_event.py @@ -139,8 +139,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SubscribedEventContext(InstanceContext): @@ -292,8 +292,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SubscribedEventPage(Page): diff --git a/twilio/rest/flex_api/v1/assessments.py b/twilio/rest/flex_api/v1/assessments.py index 23648b104..d6f9feb31 100644 --- a/twilio/rest/flex_api/v1/assessments.py +++ b/twilio/rest/flex_api/v1/assessments.py @@ -136,8 +136,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AssessmentsContext(InstanceContext): @@ -241,8 +241,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AssessmentsPage(Page): diff --git a/twilio/rest/flex_api/v1/channel.py b/twilio/rest/flex_api/v1/channel.py index f362d5b01..c80a157e5 100644 --- a/twilio/rest/flex_api/v1/channel.py +++ b/twilio/rest/flex_api/v1/channel.py @@ -114,8 +114,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ChannelContext(InstanceContext): @@ -203,8 +203,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ChannelPage(Page): diff --git a/twilio/rest/flex_api/v1/configuration.py b/twilio/rest/flex_api/v1/configuration.py index bec7034cf..25dd24f6a 100644 --- a/twilio/rest/flex_api/v1/configuration.py +++ b/twilio/rest/flex_api/v1/configuration.py @@ -23,7 +23,7 @@ class ConfigurationInstance(InstanceResource): - class Status(object): + class Status: OK = "ok" INPROGRESS = "inprogress" NOTSTARTED = "notstarted" diff --git a/twilio/rest/flex_api/v1/flex_flow.py b/twilio/rest/flex_api/v1/flex_flow.py index b11482937..c3e18aa82 100644 --- a/twilio/rest/flex_api/v1/flex_flow.py +++ b/twilio/rest/flex_api/v1/flex_flow.py @@ -24,7 +24,7 @@ class FlexFlowInstance(InstanceResource): - class ChannelType(object): + class ChannelType: WEB = "web" SMS = "sms" FACEBOOK = "facebook" @@ -32,7 +32,7 @@ class ChannelType(object): LINE = "line" CUSTOM = "custom" - class IntegrationType(object): + class IntegrationType: STUDIO = "studio" EXTERNAL = "external" TASK = "task" @@ -274,8 +274,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class FlexFlowContext(InstanceContext): @@ -517,8 +517,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class FlexFlowPage(Page): diff --git a/twilio/rest/flex_api/v1/insights_questionnaires.py b/twilio/rest/flex_api/v1/insights_questionnaires.py index 807f12995..a84e5aaa0 100644 --- a/twilio/rest/flex_api/v1/insights_questionnaires.py +++ b/twilio/rest/flex_api/v1/insights_questionnaires.py @@ -182,8 +182,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class InsightsQuestionnairesContext(InstanceContext): @@ -387,8 +387,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class InsightsQuestionnairesPage(Page): diff --git a/twilio/rest/flex_api/v1/insights_questionnaires_category.py b/twilio/rest/flex_api/v1/insights_questionnaires_category.py index 28057dbc0..66db5cbe3 100644 --- a/twilio/rest/flex_api/v1/insights_questionnaires_category.py +++ b/twilio/rest/flex_api/v1/insights_questionnaires_category.py @@ -126,7 +126,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) @@ -253,7 +253,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) diff --git a/twilio/rest/flex_api/v1/insights_questionnaires_question.py b/twilio/rest/flex_api/v1/insights_questionnaires_question.py index e4f2f4a4f..d2ce8f3e5 100644 --- a/twilio/rest/flex_api/v1/insights_questionnaires_question.py +++ b/twilio/rest/flex_api/v1/insights_questionnaires_question.py @@ -166,7 +166,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) @@ -321,7 +321,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) diff --git a/twilio/rest/flex_api/v1/interaction/__init__.py b/twilio/rest/flex_api/v1/interaction/__init__.py index 992cc9b01..ca651c03e 100644 --- a/twilio/rest/flex_api/v1/interaction/__init__.py +++ b/twilio/rest/flex_api/v1/interaction/__init__.py @@ -99,8 +99,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class InteractionContext(InstanceContext): @@ -178,8 +178,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class InteractionList(ListResource): diff --git a/twilio/rest/flex_api/v1/interaction/interaction_channel/__init__.py b/twilio/rest/flex_api/v1/interaction/interaction_channel/__init__.py index a26dc0425..8ef271fa4 100644 --- a/twilio/rest/flex_api/v1/interaction/interaction_channel/__init__.py +++ b/twilio/rest/flex_api/v1/interaction/interaction_channel/__init__.py @@ -29,14 +29,14 @@ class InteractionChannelInstance(InstanceResource): - class ChannelStatus(object): + class ChannelStatus: SETUP = "setup" ACTIVE = "active" FAILED = "failed" CLOSED = "closed" INACTIVE = "inactive" - class Type(object): + class Type: VOICE = "voice" SMS = "sms" EMAIL = "email" @@ -46,7 +46,7 @@ class Type(object): MESSENGER = "messenger" GBM = "gbm" - class UpdateChannelStatus(object): + class UpdateChannelStatus: CLOSED = "closed" INACTIVE = "inactive" @@ -177,8 +177,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class InteractionChannelContext(InstanceContext): @@ -343,8 +343,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class InteractionChannelPage(Page): diff --git a/twilio/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.py b/twilio/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.py index 5292297b9..2a416fad8 100644 --- a/twilio/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.py +++ b/twilio/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.py @@ -56,8 +56,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class InteractionChannelInvitePage(Page): diff --git a/twilio/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.py b/twilio/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.py index ba9f80f9a..79898ab68 100644 --- a/twilio/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.py +++ b/twilio/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.py @@ -23,11 +23,11 @@ class InteractionChannelParticipantInstance(InstanceResource): - class Status(object): + class Status: CLOSED = "closed" WRAPUP = "wrapup" - class Type(object): + class Type: SUPERVISOR = "supervisor" CUSTOMER = "customer" EXTERNAL = "external" @@ -122,7 +122,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) @@ -219,7 +219,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) diff --git a/twilio/rest/flex_api/v1/plugin/__init__.py b/twilio/rest/flex_api/v1/plugin/__init__.py index 09244d42d..918b82f61 100644 --- a/twilio/rest/flex_api/v1/plugin/__init__.py +++ b/twilio/rest/flex_api/v1/plugin/__init__.py @@ -160,8 +160,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PluginContext(InstanceContext): @@ -317,8 +317,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PluginPage(Page): diff --git a/twilio/rest/flex_api/v1/plugin/plugin_versions.py b/twilio/rest/flex_api/v1/plugin/plugin_versions.py index 6f492dbad..61f353281 100644 --- a/twilio/rest/flex_api/v1/plugin/plugin_versions.py +++ b/twilio/rest/flex_api/v1/plugin/plugin_versions.py @@ -114,8 +114,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PluginVersionsContext(InstanceContext): @@ -199,8 +199,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PluginVersionsPage(Page): diff --git a/twilio/rest/flex_api/v1/plugin_archive.py b/twilio/rest/flex_api/v1/plugin_archive.py index 68f9bce38..6c579e6a4 100644 --- a/twilio/rest/flex_api/v1/plugin_archive.py +++ b/twilio/rest/flex_api/v1/plugin_archive.py @@ -107,8 +107,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PluginArchiveContext(InstanceContext): @@ -180,8 +180,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PluginArchiveList(ListResource): diff --git a/twilio/rest/flex_api/v1/plugin_configuration/__init__.py b/twilio/rest/flex_api/v1/plugin_configuration/__init__.py index ebe173985..5c48e70a7 100644 --- a/twilio/rest/flex_api/v1/plugin_configuration/__init__.py +++ b/twilio/rest/flex_api/v1/plugin_configuration/__init__.py @@ -114,8 +114,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PluginConfigurationContext(InstanceContext): @@ -207,8 +207,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PluginConfigurationPage(Page): diff --git a/twilio/rest/flex_api/v1/plugin_configuration/configured_plugin.py b/twilio/rest/flex_api/v1/plugin_configuration/configured_plugin.py index 6e54012eb..e95e8281c 100644 --- a/twilio/rest/flex_api/v1/plugin_configuration/configured_plugin.py +++ b/twilio/rest/flex_api/v1/plugin_configuration/configured_plugin.py @@ -128,8 +128,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ConfiguredPluginContext(InstanceContext): @@ -213,8 +213,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ConfiguredPluginPage(Page): diff --git a/twilio/rest/flex_api/v1/plugin_configuration_archive.py b/twilio/rest/flex_api/v1/plugin_configuration_archive.py index 97d2f8120..71b6a757e 100644 --- a/twilio/rest/flex_api/v1/plugin_configuration_archive.py +++ b/twilio/rest/flex_api/v1/plugin_configuration_archive.py @@ -101,7 +101,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) @@ -182,7 +182,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) diff --git a/twilio/rest/flex_api/v1/plugin_release.py b/twilio/rest/flex_api/v1/plugin_release.py index f2e8efd30..68238d991 100644 --- a/twilio/rest/flex_api/v1/plugin_release.py +++ b/twilio/rest/flex_api/v1/plugin_release.py @@ -98,8 +98,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PluginReleaseContext(InstanceContext): @@ -177,8 +177,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PluginReleasePage(Page): diff --git a/twilio/rest/flex_api/v1/plugin_version_archive.py b/twilio/rest/flex_api/v1/plugin_version_archive.py index ae8d2f3df..0ed768e92 100644 --- a/twilio/rest/flex_api/v1/plugin_version_archive.py +++ b/twilio/rest/flex_api/v1/plugin_version_archive.py @@ -113,8 +113,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PluginVersionArchiveContext(InstanceContext): @@ -200,8 +200,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PluginVersionArchiveList(ListResource): diff --git a/twilio/rest/flex_api/v1/provisioning_status.py b/twilio/rest/flex_api/v1/provisioning_status.py index 9cc9144dc..e5a51784d 100644 --- a/twilio/rest/flex_api/v1/provisioning_status.py +++ b/twilio/rest/flex_api/v1/provisioning_status.py @@ -21,7 +21,7 @@ class ProvisioningStatusInstance(InstanceResource): - class Status(object): + class Status: ACTIVE = "active" IN_PROGRESS = "in-progress" NOT_CONFIGURED = "not-configured" diff --git a/twilio/rest/flex_api/v1/web_channel.py b/twilio/rest/flex_api/v1/web_channel.py index ddf9c8f90..b6a3d7512 100644 --- a/twilio/rest/flex_api/v1/web_channel.py +++ b/twilio/rest/flex_api/v1/web_channel.py @@ -24,7 +24,7 @@ class WebChannelInstance(InstanceResource): - class ChatStatus(object): + class ChatStatus: INACTIVE = "inactive" """ @@ -150,8 +150,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class WebChannelContext(InstanceContext): @@ -295,8 +295,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class WebChannelPage(Page): diff --git a/twilio/rest/frontline_api/v1/user.py b/twilio/rest/frontline_api/v1/user.py index 8c9dd9385..efadd56ad 100644 --- a/twilio/rest/frontline_api/v1/user.py +++ b/twilio/rest/frontline_api/v1/user.py @@ -22,7 +22,7 @@ class UserInstance(InstanceResource): - class StateType(object): + class StateType: ACTIVE = "active" DEACTIVATED = "deactivated" @@ -141,8 +141,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class UserContext(InstanceContext): @@ -274,8 +274,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class UserList(ListResource): diff --git a/twilio/rest/insights/v1/call/__init__.py b/twilio/rest/insights/v1/call/__init__.py index ff628b7d0..2948f4a67 100644 --- a/twilio/rest/insights/v1/call/__init__.py +++ b/twilio/rest/insights/v1/call/__init__.py @@ -112,8 +112,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CallContext(InstanceContext): @@ -230,8 +230,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CallList(ListResource): diff --git a/twilio/rest/insights/v1/call/annotation.py b/twilio/rest/insights/v1/call/annotation.py index d560003c0..833f2a460 100644 --- a/twilio/rest/insights/v1/call/annotation.py +++ b/twilio/rest/insights/v1/call/annotation.py @@ -22,12 +22,12 @@ class AnnotationInstance(InstanceResource): - class AnsweredBy(object): + class AnsweredBy: UNKNOWN_ANSWERED_BY = "unknown_answered_by" HUMAN = "human" MACHINE = "machine" - class ConnectivityIssue(object): + class ConnectivityIssue: UNKNOWN_CONNECTIVITY_ISSUE = "unknown_connectivity_issue" NO_CONNECTIVITY_ISSUE = "no_connectivity_issue" INVALID_NUMBER = "invalid_number" @@ -180,8 +180,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AnnotationContext(InstanceContext): @@ -339,8 +339,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AnnotationList(ListResource): diff --git a/twilio/rest/insights/v1/call/call_summary.py b/twilio/rest/insights/v1/call/call_summary.py index 0e256b36c..4ef1e71ed 100644 --- a/twilio/rest/insights/v1/call/call_summary.py +++ b/twilio/rest/insights/v1/call/call_summary.py @@ -23,7 +23,7 @@ class CallSummaryInstance(InstanceResource): - class AnsweredBy(object): + class AnsweredBy: UNKNOWN = "unknown" MACHINE_START = "machine_start" MACHINE_END_BEEP = "machine_end_beep" @@ -32,7 +32,7 @@ class AnsweredBy(object): HUMAN = "human" FAX = "fax" - class CallState(object): + class CallState: RINGING = "ringing" COMPLETED = "completed" BUSY = "busy" @@ -42,13 +42,13 @@ class CallState(object): ANSWERED = "answered" UNDIALED = "undialed" - class CallType(object): + class CallType: CARRIER = "carrier" SIP = "sip" TRUNKING = "trunking" CLIENT = "client" - class ProcessingState(object): + class ProcessingState: COMPLETE = "complete" PARTIAL = "partial" @@ -181,8 +181,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CallSummaryContext(InstanceContext): @@ -266,8 +266,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CallSummaryList(ListResource): diff --git a/twilio/rest/insights/v1/call/event.py b/twilio/rest/insights/v1/call/event.py index 89734f110..a2e47f20e 100644 --- a/twilio/rest/insights/v1/call/event.py +++ b/twilio/rest/insights/v1/call/event.py @@ -23,14 +23,14 @@ class EventInstance(InstanceResource): - class Level(object): + class Level: UNKNOWN = "UNKNOWN" DEBUG = "DEBUG" INFO = "INFO" WARNING = "WARNING" ERROR = "ERROR" - class TwilioEdge(object): + class TwilioEdge: UNKNOWN_EDGE = "unknown_edge" CARRIER_EDGE = "carrier_edge" SIP_EDGE = "sip_edge" @@ -76,8 +76,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class EventPage(Page): diff --git a/twilio/rest/insights/v1/call/metric.py b/twilio/rest/insights/v1/call/metric.py index 3cf9decc5..1a6a9ebd6 100644 --- a/twilio/rest/insights/v1/call/metric.py +++ b/twilio/rest/insights/v1/call/metric.py @@ -23,13 +23,13 @@ class MetricInstance(InstanceResource): - class StreamDirection(object): + class StreamDirection: UNKNOWN = "unknown" INBOUND = "inbound" OUTBOUND = "outbound" BOTH = "both" - class TwilioEdge(object): + class TwilioEdge: UNKNOWN_EDGE = "unknown_edge" CARRIER_EDGE = "carrier_edge" SIP_EDGE = "sip_edge" @@ -73,8 +73,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MetricPage(Page): diff --git a/twilio/rest/insights/v1/call_summaries.py b/twilio/rest/insights/v1/call_summaries.py index f68744eef..4da9e72f5 100644 --- a/twilio/rest/insights/v1/call_summaries.py +++ b/twilio/rest/insights/v1/call_summaries.py @@ -24,7 +24,7 @@ class CallSummariesInstance(InstanceResource): - class AnsweredBy(object): + class AnsweredBy: UNKNOWN = "unknown" MACHINE_START = "machine_start" MACHINE_END_BEEP = "machine_end_beep" @@ -33,7 +33,7 @@ class AnsweredBy(object): HUMAN = "human" FAX = "fax" - class CallState(object): + class CallState: RINGING = "ringing" COMPLETED = "completed" BUSY = "busy" @@ -43,23 +43,23 @@ class CallState(object): ANSWERED = "answered" UNDIALED = "undialed" - class CallType(object): + class CallType: CARRIER = "carrier" SIP = "sip" TRUNKING = "trunking" CLIENT = "client" - class ProcessingState(object): + class ProcessingState: COMPLETE = "complete" PARTIAL = "partial" - class ProcessingStateRequest(object): + class ProcessingStateRequest: COMPLETED = "completed" STARTED = "started" PARTIAL = "partial" ALL = "all" - class SortBy(object): + class SortBy: START_TIME = "start_time" END_TIME = "end_time" diff --git a/twilio/rest/insights/v1/conference/__init__.py b/twilio/rest/insights/v1/conference/__init__.py index 1ee8c09dc..f7e983465 100644 --- a/twilio/rest/insights/v1/conference/__init__.py +++ b/twilio/rest/insights/v1/conference/__init__.py @@ -27,7 +27,7 @@ class ConferenceInstance(InstanceResource): - class ConferenceEndReason(object): + class ConferenceEndReason: LAST_PARTICIPANT_LEFT = "last_participant_left" CONFERENCE_ENDED_VIA_API = "conference_ended_via_api" PARTICIPANT_WITH_END_CONFERENCE_ON_EXIT_LEFT = ( @@ -38,18 +38,18 @@ class ConferenceEndReason(object): "participant_with_end_conference_on_exit_kicked" ) - class ConferenceStatus(object): + class ConferenceStatus: IN_PROGRESS = "in_progress" NOT_STARTED = "not_started" COMPLETED = "completed" SUMMARY_TIMEOUT = "summary_timeout" - class ProcessingState(object): + class ProcessingState: COMPLETE = "complete" IN_PROGRESS = "in_progress" TIMEOUT = "timeout" - class Region(object): + class Region: US1 = "us1" AU1 = "au1" BR1 = "br1" @@ -58,7 +58,7 @@ class Region(object): SG1 = "sg1" DE1 = "de1" - class Tag(object): + class Tag: INVALID_REQUESTED_REGION = "invalid_requested_region" DUPLICATE_IDENTITY = "duplicate_identity" START_FAILURE = "start_failure" @@ -208,8 +208,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ConferenceContext(InstanceContext): @@ -287,8 +287,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ConferencePage(Page): diff --git a/twilio/rest/insights/v1/conference/conference_participant.py b/twilio/rest/insights/v1/conference/conference_participant.py index 68faa690b..57691419f 100644 --- a/twilio/rest/insights/v1/conference/conference_participant.py +++ b/twilio/rest/insights/v1/conference/conference_participant.py @@ -24,11 +24,11 @@ class ConferenceParticipantInstance(InstanceResource): - class CallDirection(object): + class CallDirection: INBOUND = "inbound" OUTBOUND = "outbound" - class CallStatus(object): + class CallStatus: ANSWERED = "answered" COMPLETED = "completed" BUSY = "busy" @@ -37,23 +37,23 @@ class CallStatus(object): RINGING = "ringing" CANCELED = "canceled" - class CallType(object): + class CallType: CARRIER = "carrier" CLIENT = "client" SIP = "sip" - class JitterBufferSize(object): + class JitterBufferSize: LARGE = "large" SMALL = "small" MEDIUM = "medium" OFF = "off" - class ProcessingState(object): + class ProcessingState: COMPLETE = "complete" IN_PROGRESS = "in_progress" TIMEOUT = "timeout" - class Region(object): + class Region: US1 = "us1" US2 = "us2" AU1 = "au1" @@ -220,8 +220,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ConferenceParticipantContext(InstanceContext): @@ -315,8 +315,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ConferenceParticipantPage(Page): diff --git a/twilio/rest/insights/v1/room/__init__.py b/twilio/rest/insights/v1/room/__init__.py index 7361018e2..7cf573e66 100644 --- a/twilio/rest/insights/v1/room/__init__.py +++ b/twilio/rest/insights/v1/room/__init__.py @@ -25,17 +25,17 @@ class RoomInstance(InstanceResource): - class Codec(object): + class Codec: VP8 = "VP8" H264 = "H264" VP9 = "VP9" - class CreatedMethod(object): + class CreatedMethod: SDK = "sdk" AD_HOC = "ad_hoc" API = "api" - class EdgeLocation(object): + class EdgeLocation: ASHBURN = "ashburn" DUBLIN = "dublin" FRANKFURT = "frankfurt" @@ -46,25 +46,25 @@ class EdgeLocation(object): UMATILLA = "umatilla" TOKYO = "tokyo" - class EndReason(object): + class EndReason: ROOM_ENDED_VIA_API = "room_ended_via_api" TIMEOUT = "timeout" - class ProcessingState(object): + class ProcessingState: COMPLETE = "complete" IN_PROGRESS = "in_progress" - class RoomStatus(object): + class RoomStatus: IN_PROGRESS = "in_progress" COMPLETED = "completed" - class RoomType(object): + class RoomType: GO = "go" PEER_TO_PEER = "peer_to_peer" GROUP = "group" GROUP_SMALL = "group_small" - class TwilioRealm(object): + class TwilioRealm: US1 = "us1" US2 = "us2" AU1 = "au1" @@ -218,8 +218,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class RoomContext(InstanceContext): @@ -297,8 +297,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class RoomPage(Page): diff --git a/twilio/rest/insights/v1/room/participant.py b/twilio/rest/insights/v1/room/participant.py index 0f6617f54..e27a8522d 100644 --- a/twilio/rest/insights/v1/room/participant.py +++ b/twilio/rest/insights/v1/room/participant.py @@ -24,12 +24,12 @@ class ParticipantInstance(InstanceResource): - class Codec(object): + class Codec: VP8 = "VP8" H264 = "H264" VP9 = "VP9" - class EdgeLocation(object): + class EdgeLocation: ASHBURN = "ashburn" DUBLIN = "dublin" FRANKFURT = "frankfurt" @@ -40,11 +40,11 @@ class EdgeLocation(object): UMATILLA = "umatilla" TOKYO = "tokyo" - class RoomStatus(object): + class RoomStatus: IN_PROGRESS = "in_progress" COMPLETED = "completed" - class TwilioRealm(object): + class TwilioRealm: US1 = "us1" US2 = "us2" AU1 = "au1" @@ -157,8 +157,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ParticipantContext(InstanceContext): @@ -228,8 +228,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ParticipantPage(Page): diff --git a/twilio/rest/intelligence/v2/service.py b/twilio/rest/intelligence/v2/service.py index d983be5b2..7c3f07581 100644 --- a/twilio/rest/intelligence/v2/service.py +++ b/twilio/rest/intelligence/v2/service.py @@ -24,7 +24,7 @@ class ServiceInstance(InstanceResource): - class HttpMethod(object): + class HttpMethod: GET = "GET" POST = "POST" NULL = "NULL" @@ -220,8 +220,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ServiceContext(InstanceContext): @@ -417,8 +417,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ServicePage(Page): diff --git a/twilio/rest/intelligence/v2/transcript/__init__.py b/twilio/rest/intelligence/v2/transcript/__init__.py index 30b97f89b..e950ad1d8 100644 --- a/twilio/rest/intelligence/v2/transcript/__init__.py +++ b/twilio/rest/intelligence/v2/transcript/__init__.py @@ -27,7 +27,7 @@ class TranscriptInstance(InstanceResource): - class Status(object): + class Status: QUEUED = "queued" IN_PROGRESS = "in-progress" COMPLETED = "completed" @@ -162,8 +162,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class TranscriptContext(InstanceContext): @@ -291,8 +291,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class TranscriptPage(Page): diff --git a/twilio/rest/intelligence/v2/transcript/media.py b/twilio/rest/intelligence/v2/transcript/media.py index 74d3ab995..c5e484d19 100644 --- a/twilio/rest/intelligence/v2/transcript/media.py +++ b/twilio/rest/intelligence/v2/transcript/media.py @@ -90,8 +90,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MediaContext(InstanceContext): @@ -167,8 +167,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MediaList(ListResource): diff --git a/twilio/rest/intelligence/v2/transcript/operator_result.py b/twilio/rest/intelligence/v2/transcript/operator_result.py index 9d1d614f4..af327daa6 100644 --- a/twilio/rest/intelligence/v2/transcript/operator_result.py +++ b/twilio/rest/intelligence/v2/transcript/operator_result.py @@ -23,7 +23,7 @@ class OperatorResultInstance(InstanceResource): - class OperatorType(object): + class OperatorType: CONVERSATION_CLASSIFY = "conversation_classify" UTTERANCE_CLASSIFY = "utterance_classify" EXTRACT = "extract" @@ -143,8 +143,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class OperatorResultContext(InstanceContext): @@ -230,8 +230,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class OperatorResultPage(Page): diff --git a/twilio/rest/intelligence/v2/transcript/sentence.py b/twilio/rest/intelligence/v2/transcript/sentence.py index 5bdd18b00..8f055e538 100644 --- a/twilio/rest/intelligence/v2/transcript/sentence.py +++ b/twilio/rest/intelligence/v2/transcript/sentence.py @@ -61,8 +61,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SentencePage(Page): diff --git a/twilio/rest/ip_messaging/v1/credential.py b/twilio/rest/ip_messaging/v1/credential.py index eac8e38cf..faa8c0c41 100644 --- a/twilio/rest/ip_messaging/v1/credential.py +++ b/twilio/rest/ip_messaging/v1/credential.py @@ -24,7 +24,7 @@ class CredentialInstance(InstanceResource): - class PushService(object): + class PushService: GCM = "gcm" APN = "apn" FCM = "fcm" @@ -180,8 +180,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CredentialContext(InstanceContext): @@ -349,8 +349,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CredentialPage(Page): diff --git a/twilio/rest/ip_messaging/v1/service/__init__.py b/twilio/rest/ip_messaging/v1/service/__init__.py index ad4f00251..7e42f8708 100644 --- a/twilio/rest/ip_messaging/v1/service/__init__.py +++ b/twilio/rest/ip_messaging/v1/service/__init__.py @@ -522,8 +522,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ServiceContext(InstanceContext): @@ -1039,8 +1039,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ServicePage(Page): diff --git a/twilio/rest/ip_messaging/v1/service/channel/__init__.py b/twilio/rest/ip_messaging/v1/service/channel/__init__.py index ef469e97f..2af35884f 100644 --- a/twilio/rest/ip_messaging/v1/service/channel/__init__.py +++ b/twilio/rest/ip_messaging/v1/service/channel/__init__.py @@ -27,7 +27,7 @@ class ChannelInstance(InstanceResource): - class ChannelType(object): + class ChannelType: PUBLIC = "public" PRIVATE = "private" @@ -207,8 +207,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ChannelContext(InstanceContext): @@ -415,8 +415,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ChannelPage(Page): diff --git a/twilio/rest/ip_messaging/v1/service/channel/invite.py b/twilio/rest/ip_messaging/v1/service/channel/invite.py index 7078058a4..13c7bb147 100644 --- a/twilio/rest/ip_messaging/v1/service/channel/invite.py +++ b/twilio/rest/ip_messaging/v1/service/channel/invite.py @@ -127,8 +127,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class InviteContext(InstanceContext): @@ -228,8 +228,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class InvitePage(Page): diff --git a/twilio/rest/ip_messaging/v1/service/channel/member.py b/twilio/rest/ip_messaging/v1/service/channel/member.py index c52fde5a8..c1ea03c8b 100644 --- a/twilio/rest/ip_messaging/v1/service/channel/member.py +++ b/twilio/rest/ip_messaging/v1/service/channel/member.py @@ -169,8 +169,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MemberContext(InstanceContext): @@ -338,8 +338,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MemberPage(Page): diff --git a/twilio/rest/ip_messaging/v1/service/channel/message.py b/twilio/rest/ip_messaging/v1/service/channel/message.py index f9f2a2b1a..7253b0587 100644 --- a/twilio/rest/ip_messaging/v1/service/channel/message.py +++ b/twilio/rest/ip_messaging/v1/service/channel/message.py @@ -24,7 +24,7 @@ class MessageInstance(InstanceResource): - class OrderType(object): + class OrderType: ASC = "asc" DESC = "desc" @@ -174,8 +174,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MessageContext(InstanceContext): @@ -343,8 +343,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MessagePage(Page): diff --git a/twilio/rest/ip_messaging/v1/service/role.py b/twilio/rest/ip_messaging/v1/service/role.py index 935a99e18..fb22993e8 100644 --- a/twilio/rest/ip_messaging/v1/service/role.py +++ b/twilio/rest/ip_messaging/v1/service/role.py @@ -24,7 +24,7 @@ class RoleInstance(InstanceResource): - class RoleType(object): + class RoleType: CHANNEL = "channel" DEPLOYMENT = "deployment" @@ -151,8 +151,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class RoleContext(InstanceContext): @@ -298,8 +298,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class RolePage(Page): diff --git a/twilio/rest/ip_messaging/v1/service/user/__init__.py b/twilio/rest/ip_messaging/v1/service/user/__init__.py index ef24fa776..60e8f9074 100644 --- a/twilio/rest/ip_messaging/v1/service/user/__init__.py +++ b/twilio/rest/ip_messaging/v1/service/user/__init__.py @@ -184,8 +184,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class UserContext(InstanceContext): @@ -364,8 +364,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class UserPage(Page): diff --git a/twilio/rest/ip_messaging/v1/service/user/user_channel.py b/twilio/rest/ip_messaging/v1/service/user/user_channel.py index 192aafb38..e51e4c745 100644 --- a/twilio/rest/ip_messaging/v1/service/user/user_channel.py +++ b/twilio/rest/ip_messaging/v1/service/user/user_channel.py @@ -23,7 +23,7 @@ class UserChannelInstance(InstanceResource): - class ChannelStatus(object): + class ChannelStatus: JOINED = "joined" INVITED = "invited" NOT_PARTICIPATING = "not_participating" @@ -70,8 +70,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class UserChannelPage(Page): diff --git a/twilio/rest/ip_messaging/v2/credential.py b/twilio/rest/ip_messaging/v2/credential.py index beec9fbeb..b412ed54f 100644 --- a/twilio/rest/ip_messaging/v2/credential.py +++ b/twilio/rest/ip_messaging/v2/credential.py @@ -24,7 +24,7 @@ class CredentialInstance(InstanceResource): - class PushService(object): + class PushService: GCM = "gcm" APN = "apn" FCM = "fcm" @@ -180,8 +180,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CredentialContext(InstanceContext): @@ -349,8 +349,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CredentialPage(Page): diff --git a/twilio/rest/ip_messaging/v2/service/__init__.py b/twilio/rest/ip_messaging/v2/service/__init__.py index b107a1197..cabcc31b9 100644 --- a/twilio/rest/ip_messaging/v2/service/__init__.py +++ b/twilio/rest/ip_messaging/v2/service/__init__.py @@ -404,8 +404,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ServiceContext(InstanceContext): @@ -808,8 +808,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ServicePage(Page): diff --git a/twilio/rest/ip_messaging/v2/service/binding.py b/twilio/rest/ip_messaging/v2/service/binding.py index 24c4f65a4..255ece2b3 100644 --- a/twilio/rest/ip_messaging/v2/service/binding.py +++ b/twilio/rest/ip_messaging/v2/service/binding.py @@ -24,7 +24,7 @@ class BindingInstance(InstanceResource): - class BindingType(object): + class BindingType: GCM = "gcm" APN = "apn" FCM = "fcm" @@ -136,8 +136,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class BindingContext(InstanceContext): @@ -229,8 +229,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class BindingPage(Page): diff --git a/twilio/rest/ip_messaging/v2/service/channel/__init__.py b/twilio/rest/ip_messaging/v2/service/channel/__init__.py index c4e03d453..8333dea18 100644 --- a/twilio/rest/ip_messaging/v2/service/channel/__init__.py +++ b/twilio/rest/ip_messaging/v2/service/channel/__init__.py @@ -28,11 +28,11 @@ class ChannelInstance(InstanceResource): - class ChannelType(object): + class ChannelType: PUBLIC = "public" PRIVATE = "private" - class WebhookEnabledType(object): + class WebhookEnabledType: TRUE = "true" FALSE = "false" @@ -263,8 +263,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ChannelContext(InstanceContext): @@ -537,8 +537,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ChannelPage(Page): diff --git a/twilio/rest/ip_messaging/v2/service/channel/invite.py b/twilio/rest/ip_messaging/v2/service/channel/invite.py index 0f863d70f..b6e346f51 100644 --- a/twilio/rest/ip_messaging/v2/service/channel/invite.py +++ b/twilio/rest/ip_messaging/v2/service/channel/invite.py @@ -127,8 +127,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class InviteContext(InstanceContext): @@ -228,8 +228,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class InvitePage(Page): diff --git a/twilio/rest/ip_messaging/v2/service/channel/member.py b/twilio/rest/ip_messaging/v2/service/channel/member.py index 5de4520ed..1ca5419d0 100644 --- a/twilio/rest/ip_messaging/v2/service/channel/member.py +++ b/twilio/rest/ip_messaging/v2/service/channel/member.py @@ -24,7 +24,7 @@ class MemberInstance(InstanceResource): - class WebhookEnabledType(object): + class WebhookEnabledType: TRUE = "true" FALSE = "false" @@ -226,8 +226,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MemberContext(InstanceContext): @@ -457,8 +457,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MemberPage(Page): diff --git a/twilio/rest/ip_messaging/v2/service/channel/message.py b/twilio/rest/ip_messaging/v2/service/channel/message.py index 057571c2a..1892217bd 100644 --- a/twilio/rest/ip_messaging/v2/service/channel/message.py +++ b/twilio/rest/ip_messaging/v2/service/channel/message.py @@ -24,11 +24,11 @@ class MessageInstance(InstanceResource): - class OrderType(object): + class OrderType: ASC = "asc" DESC = "desc" - class WebhookEnabledType(object): + class WebhookEnabledType: TRUE = "true" FALSE = "false" @@ -234,8 +234,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MessageContext(InstanceContext): @@ -461,8 +461,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MessagePage(Page): diff --git a/twilio/rest/ip_messaging/v2/service/channel/webhook.py b/twilio/rest/ip_messaging/v2/service/channel/webhook.py index 633acfd51..507f0fce6 100644 --- a/twilio/rest/ip_messaging/v2/service/channel/webhook.py +++ b/twilio/rest/ip_messaging/v2/service/channel/webhook.py @@ -24,11 +24,11 @@ class WebhookInstance(InstanceResource): - class Method(object): + class Method: GET = "GET" POST = "POST" - class Type(object): + class Type: WEBHOOK = "webhook" TRIGGER = "trigger" STUDIO = "studio" @@ -195,8 +195,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class WebhookContext(InstanceContext): @@ -396,8 +396,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class WebhookPage(Page): diff --git a/twilio/rest/ip_messaging/v2/service/role.py b/twilio/rest/ip_messaging/v2/service/role.py index 91fc1af93..5d64b3716 100644 --- a/twilio/rest/ip_messaging/v2/service/role.py +++ b/twilio/rest/ip_messaging/v2/service/role.py @@ -24,7 +24,7 @@ class RoleInstance(InstanceResource): - class RoleType(object): + class RoleType: CHANNEL = "channel" DEPLOYMENT = "deployment" @@ -151,8 +151,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class RoleContext(InstanceContext): @@ -298,8 +298,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class RolePage(Page): diff --git a/twilio/rest/ip_messaging/v2/service/user/__init__.py b/twilio/rest/ip_messaging/v2/service/user/__init__.py index 1b3ba1b39..6e4d66fd9 100644 --- a/twilio/rest/ip_messaging/v2/service/user/__init__.py +++ b/twilio/rest/ip_messaging/v2/service/user/__init__.py @@ -26,7 +26,7 @@ class UserInstance(InstanceResource): - class WebhookEnabledType(object): + class WebhookEnabledType: TRUE = "true" FALSE = "false" @@ -207,8 +207,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class UserContext(InstanceContext): @@ -415,8 +415,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class UserPage(Page): diff --git a/twilio/rest/ip_messaging/v2/service/user/user_binding.py b/twilio/rest/ip_messaging/v2/service/user/user_binding.py index 575a295cb..ed4bd8a0a 100644 --- a/twilio/rest/ip_messaging/v2/service/user/user_binding.py +++ b/twilio/rest/ip_messaging/v2/service/user/user_binding.py @@ -24,7 +24,7 @@ class UserBindingInstance(InstanceResource): - class BindingType(object): + class BindingType: GCM = "gcm" APN = "apn" FCM = "fcm" @@ -139,8 +139,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class UserBindingContext(InstanceContext): @@ -238,8 +238,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class UserBindingPage(Page): diff --git a/twilio/rest/ip_messaging/v2/service/user/user_channel.py b/twilio/rest/ip_messaging/v2/service/user/user_channel.py index d89e6cb80..d00951a2e 100644 --- a/twilio/rest/ip_messaging/v2/service/user/user_channel.py +++ b/twilio/rest/ip_messaging/v2/service/user/user_channel.py @@ -24,12 +24,12 @@ class UserChannelInstance(InstanceResource): - class ChannelStatus(object): + class ChannelStatus: JOINED = "joined" INVITED = "invited" NOT_PARTICIPATING = "not_participating" - class NotificationLevel(object): + class NotificationLevel: DEFAULT = "default" MUTED = "muted" @@ -189,8 +189,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class UserChannelContext(InstanceContext): @@ -374,8 +374,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class UserChannelPage(Page): diff --git a/twilio/rest/lookups/v1/phone_number.py b/twilio/rest/lookups/v1/phone_number.py index fe521c73e..3cb32bea4 100644 --- a/twilio/rest/lookups/v1/phone_number.py +++ b/twilio/rest/lookups/v1/phone_number.py @@ -121,8 +121,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PhoneNumberContext(InstanceContext): @@ -220,8 +220,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PhoneNumberList(ListResource): diff --git a/twilio/rest/lookups/v2/phone_number.py b/twilio/rest/lookups/v2/phone_number.py index 57491aa0a..d5b03ef2e 100644 --- a/twilio/rest/lookups/v2/phone_number.py +++ b/twilio/rest/lookups/v2/phone_number.py @@ -22,7 +22,7 @@ class PhoneNumberInstance(InstanceResource): - class ValidationError(object): + class ValidationError: TOO_SHORT = "TOO_SHORT" TOO_LONG = "TOO_LONG" INVALID_BUT_POSSIBLE = "INVALID_BUT_POSSIBLE" @@ -214,8 +214,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PhoneNumberContext(InstanceContext): @@ -367,8 +367,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PhoneNumberList(ListResource): diff --git a/twilio/rest/media/v1/media_processor.py b/twilio/rest/media/v1/media_processor.py index 7f1d2825b..caf0e6ee3 100644 --- a/twilio/rest/media/v1/media_processor.py +++ b/twilio/rest/media/v1/media_processor.py @@ -24,16 +24,16 @@ class MediaProcessorInstance(InstanceResource): - class Order(object): + class Order: ASC = "asc" DESC = "desc" - class Status(object): + class Status: FAILED = "failed" STARTED = "started" ENDED = "ended" - class UpdateStatus(object): + class UpdateStatus: ENDED = "ended" """ @@ -149,8 +149,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MediaProcessorContext(InstanceContext): @@ -262,8 +262,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MediaProcessorPage(Page): diff --git a/twilio/rest/media/v1/media_recording.py b/twilio/rest/media/v1/media_recording.py index fb916e527..a48e398bd 100644 --- a/twilio/rest/media/v1/media_recording.py +++ b/twilio/rest/media/v1/media_recording.py @@ -24,15 +24,15 @@ class MediaRecordingInstance(InstanceResource): - class Format(object): + class Format: MP4 = "mp4" WEBM = "webm" - class Order(object): + class Order: ASC = "asc" DESC = "desc" - class Status(object): + class Status: PROCESSING = "processing" COMPLETED = "completed" DELETED = "deleted" @@ -145,8 +145,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MediaRecordingContext(InstanceContext): @@ -234,8 +234,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MediaRecordingPage(Page): diff --git a/twilio/rest/media/v1/player_streamer/__init__.py b/twilio/rest/media/v1/player_streamer/__init__.py index 86832ba99..707a974ef 100644 --- a/twilio/rest/media/v1/player_streamer/__init__.py +++ b/twilio/rest/media/v1/player_streamer/__init__.py @@ -25,23 +25,23 @@ class PlayerStreamerInstance(InstanceResource): - class EndedReason(object): + class EndedReason: ENDED_VIA_API = "ended-via-api" MAX_DURATION_EXCEEDED = "max-duration-exceeded" STREAM_DISCONNECTED_BY_SOURCE = "stream-disconnected-by-source" UNEXPECTED_FAILURE = "unexpected-failure" - class Order(object): + class Order: ASC = "asc" DESC = "desc" - class Status(object): + class Status: CREATED = "created" STARTED = "started" ENDED = "ended" FAILED = "failed" - class UpdateStatus(object): + class UpdateStatus: ENDED = "ended" """ @@ -166,8 +166,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PlayerStreamerContext(InstanceContext): @@ -293,8 +293,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PlayerStreamerPage(Page): diff --git a/twilio/rest/media/v1/player_streamer/playback_grant.py b/twilio/rest/media/v1/player_streamer/playback_grant.py index a4cdbb402..b398fd484 100644 --- a/twilio/rest/media/v1/player_streamer/playback_grant.py +++ b/twilio/rest/media/v1/player_streamer/playback_grant.py @@ -121,8 +121,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PlaybackGrantContext(InstanceContext): @@ -236,8 +236,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PlaybackGrantList(ListResource): diff --git a/twilio/rest/messaging/v1/brand_registration/__init__.py b/twilio/rest/messaging/v1/brand_registration/__init__.py index b02af9491..c76d1bd54 100644 --- a/twilio/rest/messaging/v1/brand_registration/__init__.py +++ b/twilio/rest/messaging/v1/brand_registration/__init__.py @@ -28,20 +28,20 @@ class BrandRegistrationInstance(InstanceResource): - class BrandFeedback(object): + class BrandFeedback: TAX_ID = "TAX_ID" STOCK_SYMBOL = "STOCK_SYMBOL" NONPROFIT = "NONPROFIT" GOVERNMENT_ENTITY = "GOVERNMENT_ENTITY" OTHERS = "OTHERS" - class IdentityStatus(object): + class IdentityStatus: SELF_DECLARED = "SELF_DECLARED" UNVERIFIED = "UNVERIFIED" VERIFIED = "VERIFIED" VETTED_VERIFIED = "VETTED_VERIFIED" - class Status(object): + class Status: PENDING = "PENDING" APPROVED = "APPROVED" FAILED = "FAILED" @@ -193,8 +193,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class BrandRegistrationContext(InstanceContext): @@ -323,8 +323,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class BrandRegistrationPage(Page): diff --git a/twilio/rest/messaging/v1/brand_registration/brand_registration_otp.py b/twilio/rest/messaging/v1/brand_registration/brand_registration_otp.py index 20ce245b3..94b53cf18 100644 --- a/twilio/rest/messaging/v1/brand_registration/brand_registration_otp.py +++ b/twilio/rest/messaging/v1/brand_registration/brand_registration_otp.py @@ -45,8 +45,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class BrandRegistrationOtpList(ListResource): diff --git a/twilio/rest/messaging/v1/brand_registration/brand_vetting.py b/twilio/rest/messaging/v1/brand_registration/brand_vetting.py index c801cb12b..2755ea9e2 100644 --- a/twilio/rest/messaging/v1/brand_registration/brand_vetting.py +++ b/twilio/rest/messaging/v1/brand_registration/brand_vetting.py @@ -24,7 +24,7 @@ class BrandVettingInstance(InstanceResource): - class VettingProvider(object): + class VettingProvider: CAMPAIGN_VERIFY = "campaign-verify" """ @@ -112,8 +112,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class BrandVettingContext(InstanceContext): @@ -185,8 +185,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class BrandVettingPage(Page): diff --git a/twilio/rest/messaging/v1/domain_certs.py b/twilio/rest/messaging/v1/domain_certs.py index 3acc8a18f..32c2ec8be 100644 --- a/twilio/rest/messaging/v1/domain_certs.py +++ b/twilio/rest/messaging/v1/domain_certs.py @@ -144,8 +144,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class DomainCertsContext(InstanceContext): @@ -283,8 +283,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class DomainCertsList(ListResource): diff --git a/twilio/rest/messaging/v1/domain_config.py b/twilio/rest/messaging/v1/domain_config.py index 25d69342d..0d7a9eb78 100644 --- a/twilio/rest/messaging/v1/domain_config.py +++ b/twilio/rest/messaging/v1/domain_config.py @@ -148,8 +148,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class DomainConfigContext(InstanceContext): @@ -287,8 +287,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class DomainConfigList(ListResource): diff --git a/twilio/rest/messaging/v1/domain_config_messaging_service.py b/twilio/rest/messaging/v1/domain_config_messaging_service.py index 178ebd544..92c18c899 100644 --- a/twilio/rest/messaging/v1/domain_config_messaging_service.py +++ b/twilio/rest/messaging/v1/domain_config_messaging_service.py @@ -101,7 +101,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) @@ -170,7 +170,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) diff --git a/twilio/rest/messaging/v1/linkshortening_messaging_service.py b/twilio/rest/messaging/v1/linkshortening_messaging_service.py index 94ebfa617..73d4bbb1a 100644 --- a/twilio/rest/messaging/v1/linkshortening_messaging_service.py +++ b/twilio/rest/messaging/v1/linkshortening_messaging_service.py @@ -105,7 +105,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) @@ -200,7 +200,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) diff --git a/twilio/rest/messaging/v1/linkshortening_messaging_service_domain_association.py b/twilio/rest/messaging/v1/linkshortening_messaging_service_domain_association.py index a1252d2b3..1937762b3 100644 --- a/twilio/rest/messaging/v1/linkshortening_messaging_service_domain_association.py +++ b/twilio/rest/messaging/v1/linkshortening_messaging_service_domain_association.py @@ -87,7 +87,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) @@ -160,7 +160,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) diff --git a/twilio/rest/messaging/v1/service/__init__.py b/twilio/rest/messaging/v1/service/__init__.py index 75c798f4c..35d16f5f4 100644 --- a/twilio/rest/messaging/v1/service/__init__.py +++ b/twilio/rest/messaging/v1/service/__init__.py @@ -32,7 +32,7 @@ class ServiceInstance(InstanceResource): - class ScanMessageContent(object): + class ScanMessageContent: INHERIT = "inherit" ENABLE = "enable" DISABLE = "disable" @@ -336,8 +336,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ServiceContext(InstanceContext): @@ -660,8 +660,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ServicePage(Page): diff --git a/twilio/rest/messaging/v1/service/alpha_sender.py b/twilio/rest/messaging/v1/service/alpha_sender.py index 38d2d0d5e..2d4e3040e 100644 --- a/twilio/rest/messaging/v1/service/alpha_sender.py +++ b/twilio/rest/messaging/v1/service/alpha_sender.py @@ -120,8 +120,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AlphaSenderContext(InstanceContext): @@ -215,8 +215,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AlphaSenderPage(Page): diff --git a/twilio/rest/messaging/v1/service/channel_sender.py b/twilio/rest/messaging/v1/service/channel_sender.py index a8de3d0cf..5c7f84dd4 100644 --- a/twilio/rest/messaging/v1/service/channel_sender.py +++ b/twilio/rest/messaging/v1/service/channel_sender.py @@ -104,8 +104,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ChannelSenderContext(InstanceContext): @@ -175,8 +175,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ChannelSenderPage(Page): diff --git a/twilio/rest/messaging/v1/service/phone_number.py b/twilio/rest/messaging/v1/service/phone_number.py index 8b0b4c090..13a471e65 100644 --- a/twilio/rest/messaging/v1/service/phone_number.py +++ b/twilio/rest/messaging/v1/service/phone_number.py @@ -122,8 +122,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PhoneNumberContext(InstanceContext): @@ -217,8 +217,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PhoneNumberPage(Page): diff --git a/twilio/rest/messaging/v1/service/short_code.py b/twilio/rest/messaging/v1/service/short_code.py index 653787589..93fa4dfce 100644 --- a/twilio/rest/messaging/v1/service/short_code.py +++ b/twilio/rest/messaging/v1/service/short_code.py @@ -122,8 +122,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ShortCodeContext(InstanceContext): @@ -215,8 +215,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ShortCodePage(Page): diff --git a/twilio/rest/messaging/v1/service/us_app_to_person.py b/twilio/rest/messaging/v1/service/us_app_to_person.py index 9034e4e2e..6bb11e5a5 100644 --- a/twilio/rest/messaging/v1/service/us_app_to_person.py +++ b/twilio/rest/messaging/v1/service/us_app_to_person.py @@ -232,8 +232,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class UsAppToPersonContext(InstanceContext): @@ -423,8 +423,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class UsAppToPersonPage(Page): diff --git a/twilio/rest/messaging/v1/service/us_app_to_person_usecase.py b/twilio/rest/messaging/v1/service/us_app_to_person_usecase.py index debcf940d..2ecb08f0c 100644 --- a/twilio/rest/messaging/v1/service/us_app_to_person_usecase.py +++ b/twilio/rest/messaging/v1/service/us_app_to_person_usecase.py @@ -44,8 +44,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class UsAppToPersonUsecaseList(ListResource): diff --git a/twilio/rest/messaging/v1/tollfree_verification.py b/twilio/rest/messaging/v1/tollfree_verification.py index e742c5719..62962c7c8 100644 --- a/twilio/rest/messaging/v1/tollfree_verification.py +++ b/twilio/rest/messaging/v1/tollfree_verification.py @@ -24,14 +24,14 @@ class TollfreeVerificationInstance(InstanceResource): - class OptInType(object): + class OptInType: VERBAL = "VERBAL" WEB_FORM = "WEB_FORM" PAPER_FORM = "PAPER_FORM" VIA_TEXT = "VIA_TEXT" MOBILE_QR_CODE = "MOBILE_QR_CODE" - class Status(object): + class Status: PENDING_REVIEW = "PENDING_REVIEW" IN_REVIEW = "IN_REVIEW" TWILIO_APPROVED = "TWILIO_APPROVED" @@ -370,8 +370,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class TollfreeVerificationContext(InstanceContext): @@ -637,8 +637,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class TollfreeVerificationPage(Page): diff --git a/twilio/rest/microvisor/v1/account_config.py b/twilio/rest/microvisor/v1/account_config.py index 3d37b01cd..21360941b 100644 --- a/twilio/rest/microvisor/v1/account_config.py +++ b/twilio/rest/microvisor/v1/account_config.py @@ -128,8 +128,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AccountConfigContext(InstanceContext): @@ -261,8 +261,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AccountConfigPage(Page): diff --git a/twilio/rest/microvisor/v1/account_secret.py b/twilio/rest/microvisor/v1/account_secret.py index cca0e1d77..36a83c9e6 100644 --- a/twilio/rest/microvisor/v1/account_secret.py +++ b/twilio/rest/microvisor/v1/account_secret.py @@ -126,8 +126,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AccountSecretContext(InstanceContext): @@ -259,8 +259,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AccountSecretPage(Page): diff --git a/twilio/rest/microvisor/v1/app/__init__.py b/twilio/rest/microvisor/v1/app/__init__.py index 0c91fe3c5..e51a1c9b1 100644 --- a/twilio/rest/microvisor/v1/app/__init__.py +++ b/twilio/rest/microvisor/v1/app/__init__.py @@ -122,8 +122,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AppContext(InstanceContext): @@ -225,8 +225,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AppPage(Page): diff --git a/twilio/rest/microvisor/v1/app/app_manifest.py b/twilio/rest/microvisor/v1/app/app_manifest.py index 4f9eab075..9e8344bd2 100644 --- a/twilio/rest/microvisor/v1/app/app_manifest.py +++ b/twilio/rest/microvisor/v1/app/app_manifest.py @@ -79,8 +79,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AppManifestContext(InstanceContext): @@ -144,8 +144,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AppManifestList(ListResource): diff --git a/twilio/rest/microvisor/v1/device/__init__.py b/twilio/rest/microvisor/v1/device/__init__.py index 42a17340f..e6da08d08 100644 --- a/twilio/rest/microvisor/v1/device/__init__.py +++ b/twilio/rest/microvisor/v1/device/__init__.py @@ -162,8 +162,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class DeviceContext(InstanceContext): @@ -322,8 +322,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class DevicePage(Page): diff --git a/twilio/rest/microvisor/v1/device/device_config.py b/twilio/rest/microvisor/v1/device/device_config.py index 3607e971f..b2143169e 100644 --- a/twilio/rest/microvisor/v1/device/device_config.py +++ b/twilio/rest/microvisor/v1/device/device_config.py @@ -136,8 +136,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class DeviceConfigContext(InstanceContext): @@ -283,8 +283,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class DeviceConfigPage(Page): diff --git a/twilio/rest/microvisor/v1/device/device_secret.py b/twilio/rest/microvisor/v1/device/device_secret.py index 0ab9b1c72..89dad08b5 100644 --- a/twilio/rest/microvisor/v1/device/device_secret.py +++ b/twilio/rest/microvisor/v1/device/device_secret.py @@ -134,8 +134,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class DeviceSecretContext(InstanceContext): @@ -281,8 +281,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class DeviceSecretPage(Page): diff --git a/twilio/rest/monitor/v1/alert.py b/twilio/rest/monitor/v1/alert.py index ef8cf39dd..7b4ea4cac 100644 --- a/twilio/rest/monitor/v1/alert.py +++ b/twilio/rest/monitor/v1/alert.py @@ -120,8 +120,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AlertContext(InstanceContext): @@ -185,8 +185,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AlertPage(Page): diff --git a/twilio/rest/monitor/v1/event.py b/twilio/rest/monitor/v1/event.py index 6b67a9c02..df5ec2234 100644 --- a/twilio/rest/monitor/v1/event.py +++ b/twilio/rest/monitor/v1/event.py @@ -106,8 +106,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class EventContext(InstanceContext): @@ -171,8 +171,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class EventPage(Page): diff --git a/twilio/rest/notify/v1/credential.py b/twilio/rest/notify/v1/credential.py index 5cb86363a..fc29cc213 100644 --- a/twilio/rest/notify/v1/credential.py +++ b/twilio/rest/notify/v1/credential.py @@ -24,7 +24,7 @@ class CredentialInstance(InstanceResource): - class PushService(object): + class PushService: GCM = "gcm" APN = "apn" FCM = "fcm" @@ -180,8 +180,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CredentialContext(InstanceContext): @@ -349,8 +349,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CredentialPage(Page): diff --git a/twilio/rest/notify/v1/service/__init__.py b/twilio/rest/notify/v1/service/__init__.py index 0cd9adb68..1c67091be 100644 --- a/twilio/rest/notify/v1/service/__init__.py +++ b/twilio/rest/notify/v1/service/__init__.py @@ -274,8 +274,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ServiceContext(InstanceContext): @@ -522,8 +522,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ServicePage(Page): diff --git a/twilio/rest/notify/v1/service/binding.py b/twilio/rest/notify/v1/service/binding.py index a6b1e3f08..613368e8c 100644 --- a/twilio/rest/notify/v1/service/binding.py +++ b/twilio/rest/notify/v1/service/binding.py @@ -24,7 +24,7 @@ class BindingInstance(InstanceResource): - class BindingType(object): + class BindingType: APN = "apn" GCM = "gcm" SMS = "sms" @@ -143,8 +143,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class BindingContext(InstanceContext): @@ -236,8 +236,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class BindingPage(Page): diff --git a/twilio/rest/notify/v1/service/notification.py b/twilio/rest/notify/v1/service/notification.py index e2482be10..20fe13052 100644 --- a/twilio/rest/notify/v1/service/notification.py +++ b/twilio/rest/notify/v1/service/notification.py @@ -23,7 +23,7 @@ class NotificationInstance(InstanceResource): - class Priority(object): + class Priority: HIGH = "high" LOW = "low" @@ -90,8 +90,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class NotificationList(ListResource): diff --git a/twilio/rest/numbers/v1/bulk_eligibility.py b/twilio/rest/numbers/v1/bulk_eligibility.py index 391511641..5febba01a 100644 --- a/twilio/rest/numbers/v1/bulk_eligibility.py +++ b/twilio/rest/numbers/v1/bulk_eligibility.py @@ -96,8 +96,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class BulkEligibilityContext(InstanceContext): @@ -163,8 +163,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class BulkEligibilityList(ListResource): diff --git a/twilio/rest/numbers/v1/porting_bulk_portability.py b/twilio/rest/numbers/v1/porting_bulk_portability.py index c3fedcd5b..8c272f6f3 100644 --- a/twilio/rest/numbers/v1/porting_bulk_portability.py +++ b/twilio/rest/numbers/v1/porting_bulk_portability.py @@ -23,7 +23,7 @@ class PortingBulkPortabilityInstance(InstanceResource): - class Status(object): + class Status: IN_PROGRESS = "in-progress" COMPLETED = "completed" EXPIRED = "expired" @@ -97,8 +97,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PortingBulkPortabilityContext(InstanceContext): @@ -162,8 +162,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PortingBulkPortabilityList(ListResource): diff --git a/twilio/rest/numbers/v1/porting_port_in_fetch.py b/twilio/rest/numbers/v1/porting_port_in_fetch.py index 78e31afbd..6879ad6e7 100644 --- a/twilio/rest/numbers/v1/porting_port_in_fetch.py +++ b/twilio/rest/numbers/v1/porting_port_in_fetch.py @@ -110,8 +110,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PortingPortInFetchContext(InstanceContext): @@ -175,8 +175,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PortingPortInFetchList(ListResource): diff --git a/twilio/rest/numbers/v1/porting_portability.py b/twilio/rest/numbers/v1/porting_portability.py index f1cf0cb8c..c27d19fab 100644 --- a/twilio/rest/numbers/v1/porting_portability.py +++ b/twilio/rest/numbers/v1/porting_portability.py @@ -22,7 +22,7 @@ class PortingPortabilityInstance(InstanceResource): - class NumberType(object): + class NumberType: LOCAL = "LOCAL" UNKNOWN = "UNKNOWN" MOBILE = "MOBILE" @@ -122,8 +122,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PortingPortabilityContext(InstanceContext): @@ -203,8 +203,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PortingPortabilityList(ListResource): diff --git a/twilio/rest/numbers/v2/authorization_document/__init__.py b/twilio/rest/numbers/v2/authorization_document/__init__.py index 7e0a4d918..ab79bc14b 100644 --- a/twilio/rest/numbers/v2/authorization_document/__init__.py +++ b/twilio/rest/numbers/v2/authorization_document/__init__.py @@ -27,7 +27,7 @@ class AuthorizationDocumentInstance(InstanceResource): - class Status(object): + class Status: OPENED = "opened" SIGNING = "signing" SIGNED = "signed" @@ -136,8 +136,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AuthorizationDocumentContext(InstanceContext): @@ -243,8 +243,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AuthorizationDocumentPage(Page): diff --git a/twilio/rest/numbers/v2/authorization_document/dependent_hosted_number_order.py b/twilio/rest/numbers/v2/authorization_document/dependent_hosted_number_order.py index 7fc558fee..610c2df79 100644 --- a/twilio/rest/numbers/v2/authorization_document/dependent_hosted_number_order.py +++ b/twilio/rest/numbers/v2/authorization_document/dependent_hosted_number_order.py @@ -24,7 +24,7 @@ class DependentHostedNumberOrderInstance(InstanceResource): - class Status(object): + class Status: RECEIVED = "received" VERIFIED = "verified" PENDING_LOA = "pending-loa" @@ -98,7 +98,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) diff --git a/twilio/rest/numbers/v2/bulk_hosted_number_order.py b/twilio/rest/numbers/v2/bulk_hosted_number_order.py index 0e75a5067..7ca678d75 100644 --- a/twilio/rest/numbers/v2/bulk_hosted_number_order.py +++ b/twilio/rest/numbers/v2/bulk_hosted_number_order.py @@ -23,7 +23,7 @@ class BulkHostedNumberOrderInstance(InstanceResource): - class RequestStatus(object): + class RequestStatus: QUEUED = "QUEUED" IN_PROGRESS = "IN_PROGRESS" PROCESSED = "PROCESSED" @@ -120,8 +120,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class BulkHostedNumberOrderContext(InstanceContext): @@ -201,8 +201,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class BulkHostedNumberOrderList(ListResource): diff --git a/twilio/rest/numbers/v2/hosted_number_order.py b/twilio/rest/numbers/v2/hosted_number_order.py index 2063e7a87..d97af07d0 100644 --- a/twilio/rest/numbers/v2/hosted_number_order.py +++ b/twilio/rest/numbers/v2/hosted_number_order.py @@ -24,7 +24,7 @@ class HostedNumberOrderInstance(InstanceResource): - class Status(object): + class Status: RECEIVED = "received" VERIFIED = "verified" PENDING_LOA = "pending-loa" @@ -152,8 +152,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class HostedNumberOrderContext(InstanceContext): @@ -241,8 +241,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class HostedNumberOrderPage(Page): diff --git a/twilio/rest/numbers/v2/regulatory_compliance/bundle/__init__.py b/twilio/rest/numbers/v2/regulatory_compliance/bundle/__init__.py index d37caa0fb..34a34840c 100644 --- a/twilio/rest/numbers/v2/regulatory_compliance/bundle/__init__.py +++ b/twilio/rest/numbers/v2/regulatory_compliance/bundle/__init__.py @@ -36,19 +36,19 @@ class BundleInstance(InstanceResource): - class EndUserType(object): + class EndUserType: INDIVIDUAL = "individual" BUSINESS = "business" - class SortBy(object): + class SortBy: VALID_UNTIL = "valid-until" DATE_UPDATED = "date-updated" - class SortDirection(object): + class SortDirection: ASC = "ASC" DESC = "DESC" - class Status(object): + class Status: DRAFT = "draft" PENDING_REVIEW = "pending-review" IN_REVIEW = "in-review" @@ -233,8 +233,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class BundleContext(InstanceContext): @@ -443,8 +443,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class BundlePage(Page): diff --git a/twilio/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.py b/twilio/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.py index a8cf77fd1..bbc003fa2 100644 --- a/twilio/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.py +++ b/twilio/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.py @@ -24,7 +24,7 @@ class BundleCopyInstance(InstanceResource): - class Status(object): + class Status: DRAFT = "draft" PENDING_REVIEW = "pending-review" IN_REVIEW = "in-review" @@ -75,8 +75,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class BundleCopyPage(Page): diff --git a/twilio/rest/numbers/v2/regulatory_compliance/bundle/evaluation.py b/twilio/rest/numbers/v2/regulatory_compliance/bundle/evaluation.py index 39aae3b6e..2772ec3b9 100644 --- a/twilio/rest/numbers/v2/regulatory_compliance/bundle/evaluation.py +++ b/twilio/rest/numbers/v2/regulatory_compliance/bundle/evaluation.py @@ -24,7 +24,7 @@ class EvaluationInstance(InstanceResource): - class Status(object): + class Status: COMPLIANT = "compliant" NONCOMPLIANT = "noncompliant" @@ -105,8 +105,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class EvaluationContext(InstanceContext): @@ -178,8 +178,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class EvaluationPage(Page): diff --git a/twilio/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.py b/twilio/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.py index d22fc3139..19d5905bf 100644 --- a/twilio/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.py +++ b/twilio/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.py @@ -114,8 +114,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ItemAssignmentContext(InstanceContext): @@ -211,8 +211,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ItemAssignmentPage(Page): diff --git a/twilio/rest/numbers/v2/regulatory_compliance/bundle/replace_items.py b/twilio/rest/numbers/v2/regulatory_compliance/bundle/replace_items.py index 09e2823ad..7d12593aa 100644 --- a/twilio/rest/numbers/v2/regulatory_compliance/bundle/replace_items.py +++ b/twilio/rest/numbers/v2/regulatory_compliance/bundle/replace_items.py @@ -23,7 +23,7 @@ class ReplaceItemsInstance(InstanceResource): - class Status(object): + class Status: DRAFT = "draft" PENDING_REVIEW = "pending-review" IN_REVIEW = "in-review" @@ -74,8 +74,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ReplaceItemsList(ListResource): diff --git a/twilio/rest/numbers/v2/regulatory_compliance/end_user.py b/twilio/rest/numbers/v2/regulatory_compliance/end_user.py index 3f9e5ec85..5565f18f7 100644 --- a/twilio/rest/numbers/v2/regulatory_compliance/end_user.py +++ b/twilio/rest/numbers/v2/regulatory_compliance/end_user.py @@ -24,7 +24,7 @@ class EndUserInstance(InstanceResource): - class Type(object): + class Type: INDIVIDUAL = "individual" BUSINESS = "business" @@ -155,8 +155,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class EndUserContext(InstanceContext): @@ -300,8 +300,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class EndUserPage(Page): diff --git a/twilio/rest/numbers/v2/regulatory_compliance/end_user_type.py b/twilio/rest/numbers/v2/regulatory_compliance/end_user_type.py index ba155575a..f52804c7e 100644 --- a/twilio/rest/numbers/v2/regulatory_compliance/end_user_type.py +++ b/twilio/rest/numbers/v2/regulatory_compliance/end_user_type.py @@ -85,8 +85,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class EndUserTypeContext(InstanceContext): @@ -150,8 +150,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class EndUserTypePage(Page): diff --git a/twilio/rest/numbers/v2/regulatory_compliance/regulation.py b/twilio/rest/numbers/v2/regulatory_compliance/regulation.py index 9d9a50881..cf77e91f6 100644 --- a/twilio/rest/numbers/v2/regulatory_compliance/regulation.py +++ b/twilio/rest/numbers/v2/regulatory_compliance/regulation.py @@ -23,7 +23,7 @@ class RegulationInstance(InstanceResource): - class EndUserType(object): + class EndUserType: INDIVIDUAL = "individual" BUSINESS = "business" @@ -96,8 +96,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class RegulationContext(InstanceContext): @@ -161,8 +161,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class RegulationPage(Page): diff --git a/twilio/rest/numbers/v2/regulatory_compliance/supporting_document.py b/twilio/rest/numbers/v2/regulatory_compliance/supporting_document.py index f2cd4e13d..d60a4a30f 100644 --- a/twilio/rest/numbers/v2/regulatory_compliance/supporting_document.py +++ b/twilio/rest/numbers/v2/regulatory_compliance/supporting_document.py @@ -24,7 +24,7 @@ class SupportingDocumentInstance(InstanceResource): - class Status(object): + class Status: DRAFT = "draft" PENDING_REVIEW = "pending-review" REJECTED = "rejected" @@ -167,8 +167,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SupportingDocumentContext(InstanceContext): @@ -318,8 +318,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SupportingDocumentPage(Page): diff --git a/twilio/rest/numbers/v2/regulatory_compliance/supporting_document_type.py b/twilio/rest/numbers/v2/regulatory_compliance/supporting_document_type.py index 0c7dc7b30..d4a4f0c1e 100644 --- a/twilio/rest/numbers/v2/regulatory_compliance/supporting_document_type.py +++ b/twilio/rest/numbers/v2/regulatory_compliance/supporting_document_type.py @@ -85,8 +85,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SupportingDocumentTypeContext(InstanceContext): @@ -152,8 +152,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SupportingDocumentTypePage(Page): diff --git a/twilio/rest/preview/deployed_devices/fleet/__init__.py b/twilio/rest/preview/deployed_devices/fleet/__init__.py index 0f5c28446..0943d8789 100644 --- a/twilio/rest/preview/deployed_devices/fleet/__init__.py +++ b/twilio/rest/preview/deployed_devices/fleet/__init__.py @@ -186,8 +186,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class FleetContext(InstanceContext): @@ -384,8 +384,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class FleetPage(Page): diff --git a/twilio/rest/preview/deployed_devices/fleet/certificate.py b/twilio/rest/preview/deployed_devices/fleet/certificate.py index 1511a0613..6ffe3a1f2 100644 --- a/twilio/rest/preview/deployed_devices/fleet/certificate.py +++ b/twilio/rest/preview/deployed_devices/fleet/certificate.py @@ -158,8 +158,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CertificateContext(InstanceContext): @@ -317,8 +317,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CertificatePage(Page): diff --git a/twilio/rest/preview/deployed_devices/fleet/deployment.py b/twilio/rest/preview/deployed_devices/fleet/deployment.py index 5c0d109ea..e82bb6d96 100644 --- a/twilio/rest/preview/deployed_devices/fleet/deployment.py +++ b/twilio/rest/preview/deployed_devices/fleet/deployment.py @@ -156,8 +156,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class DeploymentContext(InstanceContext): @@ -315,8 +315,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class DeploymentPage(Page): diff --git a/twilio/rest/preview/deployed_devices/fleet/device.py b/twilio/rest/preview/deployed_devices/fleet/device.py index 7e9b81814..2bf3542f4 100644 --- a/twilio/rest/preview/deployed_devices/fleet/device.py +++ b/twilio/rest/preview/deployed_devices/fleet/device.py @@ -178,8 +178,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class DeviceContext(InstanceContext): @@ -349,8 +349,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class DevicePage(Page): diff --git a/twilio/rest/preview/deployed_devices/fleet/key.py b/twilio/rest/preview/deployed_devices/fleet/key.py index eabfc456c..d4abdab80 100644 --- a/twilio/rest/preview/deployed_devices/fleet/key.py +++ b/twilio/rest/preview/deployed_devices/fleet/key.py @@ -158,8 +158,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class KeyContext(InstanceContext): @@ -317,8 +317,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class KeyPage(Page): diff --git a/twilio/rest/preview/hosted_numbers/authorization_document/__init__.py b/twilio/rest/preview/hosted_numbers/authorization_document/__init__.py index 162d0b11a..96e579677 100644 --- a/twilio/rest/preview/hosted_numbers/authorization_document/__init__.py +++ b/twilio/rest/preview/hosted_numbers/authorization_document/__init__.py @@ -27,7 +27,7 @@ class AuthorizationDocumentInstance(InstanceResource): - class Status(object): + class Status: OPENED = "opened" SIGNING = "signing" SIGNED = "signed" @@ -184,7 +184,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) @@ -361,7 +361,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) diff --git a/twilio/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.py b/twilio/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.py index 35b67d71c..8ff60a0e8 100644 --- a/twilio/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.py +++ b/twilio/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.py @@ -24,7 +24,7 @@ class DependentHostedNumberOrderInstance(InstanceResource): - class Status(object): + class Status: RECEIVED = "received" PENDING_VERIFICATION = "pending-verification" VERIFIED = "verified" @@ -35,7 +35,7 @@ class Status(object): FAILED = "failed" ACTION_REQUIRED = "action-required" - class VerificationType(object): + class VerificationType: PHONE_CALL = "phone-call" PHONE_BILL = "phone-bill" @@ -118,7 +118,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) diff --git a/twilio/rest/preview/hosted_numbers/hosted_number_order.py b/twilio/rest/preview/hosted_numbers/hosted_number_order.py index 7e68f57b5..77246106d 100644 --- a/twilio/rest/preview/hosted_numbers/hosted_number_order.py +++ b/twilio/rest/preview/hosted_numbers/hosted_number_order.py @@ -24,7 +24,7 @@ class HostedNumberOrderInstance(InstanceResource): - class Status(object): + class Status: RECEIVED = "received" PENDING_VERIFICATION = "pending-verification" VERIFIED = "verified" @@ -35,7 +35,7 @@ class Status(object): FAILED = "failed" ACTION_REQUIRED = "action-required" - class VerificationType(object): + class VerificationType: PHONE_CALL = "phone-call" PHONE_BILL = "phone-bill" @@ -260,7 +260,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) @@ -463,7 +463,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) diff --git a/twilio/rest/preview/marketplace/available_add_on/__init__.py b/twilio/rest/preview/marketplace/available_add_on/__init__.py index 7743d8a8c..857ad8d79 100644 --- a/twilio/rest/preview/marketplace/available_add_on/__init__.py +++ b/twilio/rest/preview/marketplace/available_add_on/__init__.py @@ -101,8 +101,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AvailableAddOnContext(InstanceContext): @@ -180,8 +180,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AvailableAddOnPage(Page): diff --git a/twilio/rest/preview/marketplace/available_add_on/available_add_on_extension.py b/twilio/rest/preview/marketplace/available_add_on/available_add_on_extension.py index d27b74cbf..135e9a676 100644 --- a/twilio/rest/preview/marketplace/available_add_on/available_add_on_extension.py +++ b/twilio/rest/preview/marketplace/available_add_on/available_add_on_extension.py @@ -93,7 +93,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) @@ -166,7 +166,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) diff --git a/twilio/rest/preview/marketplace/installed_add_on/__init__.py b/twilio/rest/preview/marketplace/installed_add_on/__init__.py index d067f9fe7..c4eca29d9 100644 --- a/twilio/rest/preview/marketplace/installed_add_on/__init__.py +++ b/twilio/rest/preview/marketplace/installed_add_on/__init__.py @@ -164,8 +164,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class InstalledAddOnContext(InstanceContext): @@ -323,8 +323,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class InstalledAddOnPage(Page): diff --git a/twilio/rest/preview/marketplace/installed_add_on/installed_add_on_extension.py b/twilio/rest/preview/marketplace/installed_add_on/installed_add_on_extension.py index f8e65d12c..d0c569659 100644 --- a/twilio/rest/preview/marketplace/installed_add_on/installed_add_on_extension.py +++ b/twilio/rest/preview/marketplace/installed_add_on/installed_add_on_extension.py @@ -119,7 +119,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) @@ -246,7 +246,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) diff --git a/twilio/rest/preview/sync/service/__init__.py b/twilio/rest/preview/sync/service/__init__.py index cb8cdf791..faf299848 100644 --- a/twilio/rest/preview/sync/service/__init__.py +++ b/twilio/rest/preview/sync/service/__init__.py @@ -192,8 +192,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ServiceContext(InstanceContext): @@ -393,8 +393,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ServicePage(Page): diff --git a/twilio/rest/preview/sync/service/document/__init__.py b/twilio/rest/preview/sync/service/document/__init__.py index e7ab4ae8b..e7e0a37b8 100644 --- a/twilio/rest/preview/sync/service/document/__init__.py +++ b/twilio/rest/preview/sync/service/document/__init__.py @@ -168,8 +168,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class DocumentContext(InstanceContext): @@ -342,8 +342,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class DocumentPage(Page): diff --git a/twilio/rest/preview/sync/service/document/document_permission.py b/twilio/rest/preview/sync/service/document/document_permission.py index 48addbb16..5de474814 100644 --- a/twilio/rest/preview/sync/service/document/document_permission.py +++ b/twilio/rest/preview/sync/service/document/document_permission.py @@ -154,8 +154,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class DocumentPermissionContext(InstanceContext): @@ -323,8 +323,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class DocumentPermissionPage(Page): diff --git a/twilio/rest/preview/sync/service/sync_list/__init__.py b/twilio/rest/preview/sync/service/sync_list/__init__.py index fcd2f28ff..1ae3ec735 100644 --- a/twilio/rest/preview/sync/service/sync_list/__init__.py +++ b/twilio/rest/preview/sync/service/sync_list/__init__.py @@ -142,8 +142,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SyncListContext(InstanceContext): @@ -264,8 +264,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SyncListPage(Page): diff --git a/twilio/rest/preview/sync/service/sync_list/sync_list_item.py b/twilio/rest/preview/sync/service/sync_list/sync_list_item.py index 0cefd6c66..10688c0a0 100644 --- a/twilio/rest/preview/sync/service/sync_list/sync_list_item.py +++ b/twilio/rest/preview/sync/service/sync_list/sync_list_item.py @@ -24,11 +24,11 @@ class SyncListItemInstance(InstanceResource): - class QueryFromBoundType(object): + class QueryFromBoundType: INCLUSIVE = "inclusive" EXCLUSIVE = "exclusive" - class QueryResultOrder(object): + class QueryResultOrder: ASC = "asc" DESC = "desc" @@ -174,8 +174,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SyncListItemContext(InstanceContext): @@ -351,8 +351,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SyncListItemPage(Page): diff --git a/twilio/rest/preview/sync/service/sync_list/sync_list_permission.py b/twilio/rest/preview/sync/service/sync_list/sync_list_permission.py index 2fcaca5b2..e8dad4a7f 100644 --- a/twilio/rest/preview/sync/service/sync_list/sync_list_permission.py +++ b/twilio/rest/preview/sync/service/sync_list/sync_list_permission.py @@ -154,8 +154,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SyncListPermissionContext(InstanceContext): @@ -325,8 +325,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SyncListPermissionPage(Page): diff --git a/twilio/rest/preview/sync/service/sync_map/__init__.py b/twilio/rest/preview/sync/service/sync_map/__init__.py index 1d7993624..6c505c9f7 100644 --- a/twilio/rest/preview/sync/service/sync_map/__init__.py +++ b/twilio/rest/preview/sync/service/sync_map/__init__.py @@ -142,8 +142,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SyncMapContext(InstanceContext): @@ -264,8 +264,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SyncMapPage(Page): diff --git a/twilio/rest/preview/sync/service/sync_map/sync_map_item.py b/twilio/rest/preview/sync/service/sync_map/sync_map_item.py index 322c8ed22..6d33eee7e 100644 --- a/twilio/rest/preview/sync/service/sync_map/sync_map_item.py +++ b/twilio/rest/preview/sync/service/sync_map/sync_map_item.py @@ -24,11 +24,11 @@ class SyncMapItemInstance(InstanceResource): - class QueryFromBoundType(object): + class QueryFromBoundType: INCLUSIVE = "inclusive" EXCLUSIVE = "exclusive" - class QueryResultOrder(object): + class QueryResultOrder: ASC = "asc" DESC = "desc" @@ -174,8 +174,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SyncMapItemContext(InstanceContext): @@ -351,8 +351,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SyncMapItemPage(Page): diff --git a/twilio/rest/preview/sync/service/sync_map/sync_map_permission.py b/twilio/rest/preview/sync/service/sync_map/sync_map_permission.py index b626f07bd..415d20fae 100644 --- a/twilio/rest/preview/sync/service/sync_map/sync_map_permission.py +++ b/twilio/rest/preview/sync/service/sync_map/sync_map_permission.py @@ -154,8 +154,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SyncMapPermissionContext(InstanceContext): @@ -323,8 +323,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SyncMapPermissionPage(Page): diff --git a/twilio/rest/preview/wireless/command.py b/twilio/rest/preview/wireless/command.py index 755256bb6..077a54d06 100644 --- a/twilio/rest/preview/wireless/command.py +++ b/twilio/rest/preview/wireless/command.py @@ -102,8 +102,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CommandContext(InstanceContext): @@ -167,8 +167,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CommandPage(Page): diff --git a/twilio/rest/preview/wireless/rate_plan.py b/twilio/rest/preview/wireless/rate_plan.py index f3484efa6..4074b2c52 100644 --- a/twilio/rest/preview/wireless/rate_plan.py +++ b/twilio/rest/preview/wireless/rate_plan.py @@ -166,8 +166,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class RatePlanContext(InstanceContext): @@ -311,8 +311,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class RatePlanPage(Page): diff --git a/twilio/rest/preview/wireless/sim/__init__.py b/twilio/rest/preview/wireless/sim/__init__.py index 8620c03ba..8078e061a 100644 --- a/twilio/rest/preview/wireless/sim/__init__.py +++ b/twilio/rest/preview/wireless/sim/__init__.py @@ -254,8 +254,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SimContext(InstanceContext): @@ -473,8 +473,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SimPage(Page): diff --git a/twilio/rest/preview/wireless/sim/usage.py b/twilio/rest/preview/wireless/sim/usage.py index d90b5f9e8..cf8432087 100644 --- a/twilio/rest/preview/wireless/sim/usage.py +++ b/twilio/rest/preview/wireless/sim/usage.py @@ -108,8 +108,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class UsageContext(InstanceContext): @@ -195,8 +195,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class UsageList(ListResource): diff --git a/twilio/rest/preview_messaging/v1/message.py b/twilio/rest/preview_messaging/v1/message.py index c6212c7f4..93b6556e1 100644 --- a/twilio/rest/preview_messaging/v1/message.py +++ b/twilio/rest/preview_messaging/v1/message.py @@ -58,7 +58,7 @@ def __repr__(self) -> str: class MessageList(ListResource): - class CreateMessagesRequest(object): + class CreateMessagesRequest: """ :ivar messages: :ivar from_: A Twilio phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, an [alphanumeric sender ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), or a [Channel Endpoint address](https://www.twilio.com/docs/sms/channels#channel-addresses) that is enabled for the type of message you want to send. Phone numbers or [short codes](https://www.twilio.com/docs/sms/api/short-code) purchased from Twilio also work here. You cannot, for example, spoof messages from a private cell phone number. If you are using `messaging_service_sid`, this parameter must be empty. @@ -124,7 +124,7 @@ def to_dict(self): "application_sid": self.application_sid, } - class MessagingV1Message(object): + class MessagingV1Message: """ :ivar to: The destination phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format for SMS/MMS or [Channel user address](https://www.twilio.com/docs/sms/channels#channel-addresses) for other 3rd-party channels. :ivar body: The text of the message you want to send. Can be up to 1,600 characters in length. Overrides the request-level body and content template if provided. diff --git a/twilio/rest/pricing/v1/messaging/country.py b/twilio/rest/pricing/v1/messaging/country.py index 47f5707ce..627afe966 100644 --- a/twilio/rest/pricing/v1/messaging/country.py +++ b/twilio/rest/pricing/v1/messaging/country.py @@ -92,8 +92,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CountryContext(InstanceContext): @@ -157,8 +157,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CountryPage(Page): diff --git a/twilio/rest/pricing/v1/phone_number/country.py b/twilio/rest/pricing/v1/phone_number/country.py index b0822fff2..a1ea330d4 100644 --- a/twilio/rest/pricing/v1/phone_number/country.py +++ b/twilio/rest/pricing/v1/phone_number/country.py @@ -90,8 +90,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CountryContext(InstanceContext): @@ -155,8 +155,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CountryPage(Page): diff --git a/twilio/rest/pricing/v1/voice/country.py b/twilio/rest/pricing/v1/voice/country.py index e3b1496de..a13e68d8c 100644 --- a/twilio/rest/pricing/v1/voice/country.py +++ b/twilio/rest/pricing/v1/voice/country.py @@ -94,8 +94,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CountryContext(InstanceContext): @@ -159,8 +159,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CountryPage(Page): diff --git a/twilio/rest/pricing/v1/voice/number.py b/twilio/rest/pricing/v1/voice/number.py index 910919707..24afdcc5c 100644 --- a/twilio/rest/pricing/v1/voice/number.py +++ b/twilio/rest/pricing/v1/voice/number.py @@ -87,8 +87,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class NumberContext(InstanceContext): @@ -152,8 +152,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class NumberList(ListResource): diff --git a/twilio/rest/pricing/v2/country.py b/twilio/rest/pricing/v2/country.py index a058c071b..a583fec14 100644 --- a/twilio/rest/pricing/v2/country.py +++ b/twilio/rest/pricing/v2/country.py @@ -94,8 +94,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CountryContext(InstanceContext): @@ -159,8 +159,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CountryPage(Page): diff --git a/twilio/rest/pricing/v2/number.py b/twilio/rest/pricing/v2/number.py index 6c4cd9fe9..e522a96b7 100644 --- a/twilio/rest/pricing/v2/number.py +++ b/twilio/rest/pricing/v2/number.py @@ -107,8 +107,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class NumberContext(InstanceContext): @@ -186,8 +186,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class NumberList(ListResource): diff --git a/twilio/rest/pricing/v2/voice/country.py b/twilio/rest/pricing/v2/voice/country.py index 4a84bbd73..689d9b9b9 100644 --- a/twilio/rest/pricing/v2/voice/country.py +++ b/twilio/rest/pricing/v2/voice/country.py @@ -94,8 +94,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CountryContext(InstanceContext): @@ -159,8 +159,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CountryPage(Page): diff --git a/twilio/rest/pricing/v2/voice/number.py b/twilio/rest/pricing/v2/voice/number.py index 6dd876482..65422f252 100644 --- a/twilio/rest/pricing/v2/voice/number.py +++ b/twilio/rest/pricing/v2/voice/number.py @@ -105,8 +105,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class NumberContext(InstanceContext): @@ -184,8 +184,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class NumberList(ListResource): diff --git a/twilio/rest/proxy/v1/service/__init__.py b/twilio/rest/proxy/v1/service/__init__.py index 6be2def24..12b490b29 100644 --- a/twilio/rest/proxy/v1/service/__init__.py +++ b/twilio/rest/proxy/v1/service/__init__.py @@ -27,13 +27,13 @@ class ServiceInstance(InstanceResource): - class GeoMatchLevel(object): + class GeoMatchLevel: AREA_CODE = "area-code" OVERLAY = "overlay" RADIUS = "radius" COUNTRY = "country" - class NumberSelectionBehavior(object): + class NumberSelectionBehavior: AVOID_STICKY = "avoid-sticky" PREFER_STICKY = "prefer-sticky" @@ -247,8 +247,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ServiceContext(InstanceContext): @@ -472,8 +472,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ServicePage(Page): diff --git a/twilio/rest/proxy/v1/service/phone_number.py b/twilio/rest/proxy/v1/service/phone_number.py index 366b9ba11..023598261 100644 --- a/twilio/rest/proxy/v1/service/phone_number.py +++ b/twilio/rest/proxy/v1/service/phone_number.py @@ -156,8 +156,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PhoneNumberContext(InstanceContext): @@ -309,8 +309,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PhoneNumberPage(Page): diff --git a/twilio/rest/proxy/v1/service/session/__init__.py b/twilio/rest/proxy/v1/service/session/__init__.py index 26ff17788..4f2c77358 100644 --- a/twilio/rest/proxy/v1/service/session/__init__.py +++ b/twilio/rest/proxy/v1/service/session/__init__.py @@ -26,12 +26,12 @@ class SessionInstance(InstanceResource): - class Mode(object): + class Mode: MESSAGE_ONLY = "message-only" VOICE_ONLY = "voice-only" VOICE_AND_MESSAGE = "voice-and-message" - class Status(object): + class Status: OPEN = "open" IN_PROGRESS = "in-progress" CLOSED = "closed" @@ -215,8 +215,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SessionContext(InstanceContext): @@ -409,8 +409,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SessionPage(Page): diff --git a/twilio/rest/proxy/v1/service/session/interaction.py b/twilio/rest/proxy/v1/service/session/interaction.py index 6e4cac7c1..2352bce13 100644 --- a/twilio/rest/proxy/v1/service/session/interaction.py +++ b/twilio/rest/proxy/v1/service/session/interaction.py @@ -24,7 +24,7 @@ class InteractionInstance(InstanceResource): - class ResourceStatus(object): + class ResourceStatus: ACCEPTED = "accepted" ANSWERED = "answered" BUSY = "busy" @@ -47,7 +47,7 @@ class ResourceStatus(object): UNDELIVERED = "undelivered" UNKNOWN = "unknown" - class Type(object): + class Type: MESSAGE = "message" VOICE = "voice" UNKNOWN = "unknown" @@ -184,8 +184,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class InteractionContext(InstanceContext): @@ -285,8 +285,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class InteractionPage(Page): diff --git a/twilio/rest/proxy/v1/service/session/participant/__init__.py b/twilio/rest/proxy/v1/service/session/participant/__init__.py index 266396f08..ba57d380c 100644 --- a/twilio/rest/proxy/v1/service/session/participant/__init__.py +++ b/twilio/rest/proxy/v1/service/session/participant/__init__.py @@ -145,8 +145,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ParticipantContext(InstanceContext): @@ -262,8 +262,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ParticipantPage(Page): diff --git a/twilio/rest/proxy/v1/service/session/participant/message_interaction.py b/twilio/rest/proxy/v1/service/session/participant/message_interaction.py index b260b4693..b94947fd4 100644 --- a/twilio/rest/proxy/v1/service/session/participant/message_interaction.py +++ b/twilio/rest/proxy/v1/service/session/participant/message_interaction.py @@ -24,7 +24,7 @@ class MessageInteractionInstance(InstanceResource): - class ResourceStatus(object): + class ResourceStatus: ACCEPTED = "accepted" ANSWERED = "answered" BUSY = "busy" @@ -47,7 +47,7 @@ class ResourceStatus(object): UNDELIVERED = "undelivered" UNKNOWN = "unknown" - class Type(object): + class Type: MESSAGE = "message" VOICE = "voice" UNKNOWN = "unknown" @@ -171,8 +171,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MessageInteractionContext(InstanceContext): @@ -257,8 +257,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MessageInteractionPage(Page): diff --git a/twilio/rest/proxy/v1/service/short_code.py b/twilio/rest/proxy/v1/service/short_code.py index 712d6f82f..95cf3306c 100644 --- a/twilio/rest/proxy/v1/service/short_code.py +++ b/twilio/rest/proxy/v1/service/short_code.py @@ -152,8 +152,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ShortCodeContext(InstanceContext): @@ -303,8 +303,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ShortCodePage(Page): diff --git a/twilio/rest/routes/v2/phone_number.py b/twilio/rest/routes/v2/phone_number.py index 4f452e361..a2abe08ce 100644 --- a/twilio/rest/routes/v2/phone_number.py +++ b/twilio/rest/routes/v2/phone_number.py @@ -134,8 +134,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PhoneNumberContext(InstanceContext): @@ -259,8 +259,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PhoneNumberList(ListResource): diff --git a/twilio/rest/routes/v2/sip_domain.py b/twilio/rest/routes/v2/sip_domain.py index cad3a4922..ad03b351d 100644 --- a/twilio/rest/routes/v2/sip_domain.py +++ b/twilio/rest/routes/v2/sip_domain.py @@ -134,8 +134,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SipDomainContext(InstanceContext): @@ -259,8 +259,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SipDomainList(ListResource): diff --git a/twilio/rest/routes/v2/trunk.py b/twilio/rest/routes/v2/trunk.py index 2baf2788a..6552529f0 100644 --- a/twilio/rest/routes/v2/trunk.py +++ b/twilio/rest/routes/v2/trunk.py @@ -134,8 +134,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class TrunkContext(InstanceContext): @@ -259,8 +259,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class TrunkList(ListResource): diff --git a/twilio/rest/serverless/v1/service/__init__.py b/twilio/rest/serverless/v1/service/__init__.py index 0fe404c8f..640f74948 100644 --- a/twilio/rest/serverless/v1/service/__init__.py +++ b/twilio/rest/serverless/v1/service/__init__.py @@ -194,8 +194,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ServiceContext(InstanceContext): @@ -398,8 +398,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ServicePage(Page): diff --git a/twilio/rest/serverless/v1/service/asset/__init__.py b/twilio/rest/serverless/v1/service/asset/__init__.py index 2049c9d46..66749b7a1 100644 --- a/twilio/rest/serverless/v1/service/asset/__init__.py +++ b/twilio/rest/serverless/v1/service/asset/__init__.py @@ -152,8 +152,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AssetContext(InstanceContext): @@ -314,8 +314,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AssetPage(Page): diff --git a/twilio/rest/serverless/v1/service/asset/asset_version.py b/twilio/rest/serverless/v1/service/asset/asset_version.py index fbe7b3080..d9dad255a 100644 --- a/twilio/rest/serverless/v1/service/asset/asset_version.py +++ b/twilio/rest/serverless/v1/service/asset/asset_version.py @@ -24,7 +24,7 @@ class AssetVersionInstance(InstanceResource): - class Visibility(object): + class Visibility: PUBLIC = "public" PRIVATE = "private" PROTECTED = "protected" @@ -111,8 +111,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AssetVersionContext(InstanceContext): @@ -186,8 +186,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AssetVersionPage(Page): diff --git a/twilio/rest/serverless/v1/service/build/__init__.py b/twilio/rest/serverless/v1/service/build/__init__.py index 25997bec2..dac39bf2f 100644 --- a/twilio/rest/serverless/v1/service/build/__init__.py +++ b/twilio/rest/serverless/v1/service/build/__init__.py @@ -26,7 +26,7 @@ class BuildInstance(InstanceResource): - class Runtime(object): + class Runtime: NODE8 = "node8" NODE10 = "node10" NODE12 = "node12" @@ -34,7 +34,7 @@ class Runtime(object): NODE16 = "node16" NODE18 = "node18" - class Status(object): + class Status: BUILDING = "building" COMPLETED = "completed" FAILED = "failed" @@ -140,8 +140,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = ' '.join('{}={}'.format(k, v) for k, v in self._solution.items()) - return ''.format(context) + context = ' '.join(f'{k}={v}' for k, v in self._solution.items()) + return f'' class BuildContext(InstanceContext): @@ -241,8 +241,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = ' '.join('{}={}'.format(k, v) for k, v in self._solution.items()) - return ''.format(context) + context = ' '.join(f'{k}={v}' for k, v in self._solution.items()) + return f'' diff --git a/twilio/rest/serverless/v1/service/build/build_status.py b/twilio/rest/serverless/v1/service/build/build_status.py index 2613ae3cb..bf0386ff7 100644 --- a/twilio/rest/serverless/v1/service/build/build_status.py +++ b/twilio/rest/serverless/v1/service/build/build_status.py @@ -23,7 +23,7 @@ class BuildStatusInstance(InstanceResource): - class Status(object): + class Status: BUILDING = "building" COMPLETED = "completed" FAILED = "failed" @@ -90,8 +90,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = ' '.join('{}={}'.format(k, v) for k, v in self._solution.items()) - return ''.format(context) + context = ' '.join(f'{k}={v}' for k, v in self._solution.items()) + return f'' class BuildStatusContext(InstanceContext): @@ -158,8 +158,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = ' '.join('{}={}'.format(k, v) for k, v in self._solution.items()) - return ''.format(context) + context = ' '.join(f'{k}={v}' for k, v in self._solution.items()) + return f'' diff --git a/twilio/rest/serverless/v1/service/environment/__init__.py b/twilio/rest/serverless/v1/service/environment/__init__.py index 46b7ddacf..aa22e4a57 100644 --- a/twilio/rest/serverless/v1/service/environment/__init__.py +++ b/twilio/rest/serverless/v1/service/environment/__init__.py @@ -150,8 +150,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class EnvironmentContext(InstanceContext): @@ -288,8 +288,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class EnvironmentPage(Page): diff --git a/twilio/rest/serverless/v1/service/environment/deployment.py b/twilio/rest/serverless/v1/service/environment/deployment.py index 1ff896f93..1f185148b 100644 --- a/twilio/rest/serverless/v1/service/environment/deployment.py +++ b/twilio/rest/serverless/v1/service/environment/deployment.py @@ -105,8 +105,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class DeploymentContext(InstanceContext): @@ -182,8 +182,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class DeploymentPage(Page): diff --git a/twilio/rest/serverless/v1/service/environment/log.py b/twilio/rest/serverless/v1/service/environment/log.py index e1aff5214..5bfe102ca 100644 --- a/twilio/rest/serverless/v1/service/environment/log.py +++ b/twilio/rest/serverless/v1/service/environment/log.py @@ -24,7 +24,7 @@ class LogInstance(InstanceResource): - class Level(object): + class Level: INFO = "info" WARN = "warn" ERROR = "error" @@ -117,8 +117,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class LogContext(InstanceContext): @@ -196,8 +196,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class LogPage(Page): diff --git a/twilio/rest/serverless/v1/service/environment/variable.py b/twilio/rest/serverless/v1/service/environment/variable.py index f69c129f8..7a6dbdde9 100644 --- a/twilio/rest/serverless/v1/service/environment/variable.py +++ b/twilio/rest/serverless/v1/service/environment/variable.py @@ -161,8 +161,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class VariableContext(InstanceContext): @@ -330,8 +330,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class VariablePage(Page): diff --git a/twilio/rest/serverless/v1/service/function/__init__.py b/twilio/rest/serverless/v1/service/function/__init__.py index 71bbad846..e3c215488 100644 --- a/twilio/rest/serverless/v1/service/function/__init__.py +++ b/twilio/rest/serverless/v1/service/function/__init__.py @@ -154,8 +154,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class FunctionContext(InstanceContext): @@ -316,8 +316,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class FunctionPage(Page): diff --git a/twilio/rest/serverless/v1/service/function/function_version/__init__.py b/twilio/rest/serverless/v1/service/function/function_version/__init__.py index e915894f1..6ad3ea495 100644 --- a/twilio/rest/serverless/v1/service/function/function_version/__init__.py +++ b/twilio/rest/serverless/v1/service/function/function_version/__init__.py @@ -27,7 +27,7 @@ class FunctionVersionInstance(InstanceResource): - class Visibility(object): + class Visibility: PUBLIC = "public" PRIVATE = "private" PROTECTED = "protected" @@ -123,8 +123,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class FunctionVersionContext(InstanceContext): @@ -216,8 +216,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class FunctionVersionPage(Page): diff --git a/twilio/rest/serverless/v1/service/function/function_version/function_version_content.py b/twilio/rest/serverless/v1/service/function/function_version/function_version_content.py index c58fa574e..c2ad025e7 100644 --- a/twilio/rest/serverless/v1/service/function/function_version/function_version_content.py +++ b/twilio/rest/serverless/v1/service/function/function_version/function_version_content.py @@ -94,7 +94,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) @@ -171,8 +171,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class FunctionVersionContentList(ListResource): diff --git a/twilio/rest/studio/v1/flow/__init__.py b/twilio/rest/studio/v1/flow/__init__.py index bb0f78658..830ae5115 100644 --- a/twilio/rest/studio/v1/flow/__init__.py +++ b/twilio/rest/studio/v1/flow/__init__.py @@ -26,7 +26,7 @@ class FlowInstance(InstanceResource): - class Status(object): + class Status: DRAFT = "draft" PUBLISHED = "published" @@ -137,8 +137,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class FlowContext(InstanceContext): @@ -253,8 +253,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class FlowPage(Page): diff --git a/twilio/rest/studio/v1/flow/engagement/__init__.py b/twilio/rest/studio/v1/flow/engagement/__init__.py index f6d95abd5..687f18838 100644 --- a/twilio/rest/studio/v1/flow/engagement/__init__.py +++ b/twilio/rest/studio/v1/flow/engagement/__init__.py @@ -28,7 +28,7 @@ class EngagementInstance(InstanceResource): - class Status(object): + class Status: ACTIVE = "active" ENDED = "ended" @@ -151,8 +151,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class EngagementContext(InstanceContext): @@ -273,8 +273,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class EngagementPage(Page): diff --git a/twilio/rest/studio/v1/flow/engagement/engagement_context.py b/twilio/rest/studio/v1/flow/engagement/engagement_context.py index f534db692..0fce8eb1d 100644 --- a/twilio/rest/studio/v1/flow/engagement/engagement_context.py +++ b/twilio/rest/studio/v1/flow/engagement/engagement_context.py @@ -89,8 +89,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class EngagementContextContext(InstanceContext): @@ -160,8 +160,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class EngagementContextList(ListResource): diff --git a/twilio/rest/studio/v1/flow/engagement/step/__init__.py b/twilio/rest/studio/v1/flow/engagement/step/__init__.py index 1a2d8570c..63ddac4bd 100644 --- a/twilio/rest/studio/v1/flow/engagement/step/__init__.py +++ b/twilio/rest/studio/v1/flow/engagement/step/__init__.py @@ -121,8 +121,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class StepContext(InstanceContext): @@ -212,8 +212,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class StepPage(Page): diff --git a/twilio/rest/studio/v1/flow/engagement/step/step_context.py b/twilio/rest/studio/v1/flow/engagement/step/step_context.py index 69c4c2246..37b2548c9 100644 --- a/twilio/rest/studio/v1/flow/engagement/step/step_context.py +++ b/twilio/rest/studio/v1/flow/engagement/step/step_context.py @@ -94,8 +94,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class StepContextContext(InstanceContext): @@ -171,8 +171,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class StepContextList(ListResource): diff --git a/twilio/rest/studio/v1/flow/execution/__init__.py b/twilio/rest/studio/v1/flow/execution/__init__.py index 57239e515..53836aa44 100644 --- a/twilio/rest/studio/v1/flow/execution/__init__.py +++ b/twilio/rest/studio/v1/flow/execution/__init__.py @@ -26,7 +26,7 @@ class ExecutionInstance(InstanceResource): - class Status(object): + class Status: ACTIVE = "active" ENDED = "ended" @@ -175,8 +175,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ExecutionContext(InstanceContext): @@ -353,8 +353,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ExecutionPage(Page): diff --git a/twilio/rest/studio/v1/flow/execution/execution_context.py b/twilio/rest/studio/v1/flow/execution/execution_context.py index a2765bbc9..7620f1b7c 100644 --- a/twilio/rest/studio/v1/flow/execution/execution_context.py +++ b/twilio/rest/studio/v1/flow/execution/execution_context.py @@ -89,8 +89,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ExecutionContextContext(InstanceContext): @@ -160,8 +160,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ExecutionContextList(ListResource): diff --git a/twilio/rest/studio/v1/flow/execution/execution_step/__init__.py b/twilio/rest/studio/v1/flow/execution/execution_step/__init__.py index 6e19ca445..cac67afab 100644 --- a/twilio/rest/studio/v1/flow/execution/execution_step/__init__.py +++ b/twilio/rest/studio/v1/flow/execution/execution_step/__init__.py @@ -123,8 +123,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ExecutionStepContext(InstanceContext): @@ -214,8 +214,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ExecutionStepPage(Page): diff --git a/twilio/rest/studio/v1/flow/execution/execution_step/execution_step_context.py b/twilio/rest/studio/v1/flow/execution/execution_step/execution_step_context.py index 224f92d0f..1f9dec187 100644 --- a/twilio/rest/studio/v1/flow/execution/execution_step/execution_step_context.py +++ b/twilio/rest/studio/v1/flow/execution/execution_step/execution_step_context.py @@ -94,8 +94,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ExecutionStepContextContext(InstanceContext): @@ -171,8 +171,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ExecutionStepContextList(ListResource): diff --git a/twilio/rest/studio/v2/flow/__init__.py b/twilio/rest/studio/v2/flow/__init__.py index 21138d29c..3ace1a1cf 100644 --- a/twilio/rest/studio/v2/flow/__init__.py +++ b/twilio/rest/studio/v2/flow/__init__.py @@ -27,7 +27,7 @@ class FlowInstance(InstanceResource): - class Status(object): + class Status: DRAFT = "draft" PUBLISHED = "published" @@ -205,8 +205,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class FlowContext(InstanceContext): @@ -402,8 +402,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class FlowPage(Page): diff --git a/twilio/rest/studio/v2/flow/execution/__init__.py b/twilio/rest/studio/v2/flow/execution/__init__.py index 38d3b2b53..08a6dcc5c 100644 --- a/twilio/rest/studio/v2/flow/execution/__init__.py +++ b/twilio/rest/studio/v2/flow/execution/__init__.py @@ -26,7 +26,7 @@ class ExecutionInstance(InstanceResource): - class Status(object): + class Status: ACTIVE = "active" ENDED = "ended" @@ -173,8 +173,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ExecutionContext(InstanceContext): @@ -351,8 +351,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ExecutionPage(Page): diff --git a/twilio/rest/studio/v2/flow/execution/execution_context.py b/twilio/rest/studio/v2/flow/execution/execution_context.py index facb52eed..ebbfcde53 100644 --- a/twilio/rest/studio/v2/flow/execution/execution_context.py +++ b/twilio/rest/studio/v2/flow/execution/execution_context.py @@ -89,8 +89,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ExecutionContextContext(InstanceContext): @@ -160,8 +160,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ExecutionContextList(ListResource): diff --git a/twilio/rest/studio/v2/flow/execution/execution_step/__init__.py b/twilio/rest/studio/v2/flow/execution/execution_step/__init__.py index 257e16b1d..60d2f1931 100644 --- a/twilio/rest/studio/v2/flow/execution/execution_step/__init__.py +++ b/twilio/rest/studio/v2/flow/execution/execution_step/__init__.py @@ -123,8 +123,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ExecutionStepContext(InstanceContext): @@ -214,8 +214,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ExecutionStepPage(Page): diff --git a/twilio/rest/studio/v2/flow/execution/execution_step/execution_step_context.py b/twilio/rest/studio/v2/flow/execution/execution_step/execution_step_context.py index 41661238b..0670a0597 100644 --- a/twilio/rest/studio/v2/flow/execution/execution_step/execution_step_context.py +++ b/twilio/rest/studio/v2/flow/execution/execution_step/execution_step_context.py @@ -94,8 +94,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ExecutionStepContextContext(InstanceContext): @@ -171,8 +171,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ExecutionStepContextList(ListResource): diff --git a/twilio/rest/studio/v2/flow/flow_revision.py b/twilio/rest/studio/v2/flow/flow_revision.py index 0de91513e..088ca6580 100644 --- a/twilio/rest/studio/v2/flow/flow_revision.py +++ b/twilio/rest/studio/v2/flow/flow_revision.py @@ -24,7 +24,7 @@ class FlowRevisionInstance(InstanceResource): - class Status(object): + class Status: DRAFT = "draft" PUBLISHED = "published" @@ -115,8 +115,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class FlowRevisionContext(InstanceContext): @@ -184,8 +184,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class FlowRevisionPage(Page): diff --git a/twilio/rest/studio/v2/flow/flow_test_user.py b/twilio/rest/studio/v2/flow/flow_test_user.py index 346563235..5def57675 100644 --- a/twilio/rest/studio/v2/flow/flow_test_user.py +++ b/twilio/rest/studio/v2/flow/flow_test_user.py @@ -102,8 +102,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class FlowTestUserContext(InstanceContext): @@ -211,8 +211,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class FlowTestUserList(ListResource): diff --git a/twilio/rest/studio/v2/flow_validate.py b/twilio/rest/studio/v2/flow_validate.py index 6994e6af1..8b5d60305 100644 --- a/twilio/rest/studio/v2/flow_validate.py +++ b/twilio/rest/studio/v2/flow_validate.py @@ -22,7 +22,7 @@ class FlowValidateInstance(InstanceResource): - class Status(object): + class Status: DRAFT = "draft" PUBLISHED = "published" diff --git a/twilio/rest/supersim/v1/esim_profile.py b/twilio/rest/supersim/v1/esim_profile.py index 847bcae33..911e5084c 100644 --- a/twilio/rest/supersim/v1/esim_profile.py +++ b/twilio/rest/supersim/v1/esim_profile.py @@ -24,7 +24,7 @@ class EsimProfileInstance(InstanceResource): - class Status(object): + class Status: NEW = "new" RESERVING = "reserving" AVAILABLE = "available" @@ -117,8 +117,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class EsimProfileContext(InstanceContext): @@ -182,8 +182,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class EsimProfilePage(Page): diff --git a/twilio/rest/supersim/v1/fleet.py b/twilio/rest/supersim/v1/fleet.py index 2003eb77b..139b2c3ae 100644 --- a/twilio/rest/supersim/v1/fleet.py +++ b/twilio/rest/supersim/v1/fleet.py @@ -24,7 +24,7 @@ class FleetInstance(InstanceResource): - class DataMetering(object): + class DataMetering: PAYG = "payg" """ @@ -184,8 +184,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class FleetContext(InstanceContext): @@ -335,8 +335,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class FleetPage(Page): diff --git a/twilio/rest/supersim/v1/ip_command.py b/twilio/rest/supersim/v1/ip_command.py index b7610efec..0bab347e6 100644 --- a/twilio/rest/supersim/v1/ip_command.py +++ b/twilio/rest/supersim/v1/ip_command.py @@ -24,15 +24,15 @@ class IpCommandInstance(InstanceResource): - class Direction(object): + class Direction: TO_SIM = "to_sim" FROM_SIM = "from_sim" - class PayloadType(object): + class PayloadType: TEXT = "text" BINARY = "binary" - class Status(object): + class Status: QUEUED = "queued" SENT = "sent" RECEIVED = "received" @@ -127,8 +127,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class IpCommandContext(InstanceContext): @@ -192,8 +192,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class IpCommandPage(Page): diff --git a/twilio/rest/supersim/v1/network.py b/twilio/rest/supersim/v1/network.py index 0d4f6a94f..655d7944e 100644 --- a/twilio/rest/supersim/v1/network.py +++ b/twilio/rest/supersim/v1/network.py @@ -85,8 +85,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class NetworkContext(InstanceContext): @@ -150,8 +150,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class NetworkPage(Page): diff --git a/twilio/rest/supersim/v1/network_access_profile/__init__.py b/twilio/rest/supersim/v1/network_access_profile/__init__.py index d0b537469..330d7a074 100644 --- a/twilio/rest/supersim/v1/network_access_profile/__init__.py +++ b/twilio/rest/supersim/v1/network_access_profile/__init__.py @@ -132,8 +132,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class NetworkAccessProfileContext(InstanceContext): @@ -263,8 +263,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class NetworkAccessProfilePage(Page): diff --git a/twilio/rest/supersim/v1/network_access_profile/network_access_profile_network.py b/twilio/rest/supersim/v1/network_access_profile/network_access_profile_network.py index 50a259550..2f807bf6e 100644 --- a/twilio/rest/supersim/v1/network_access_profile/network_access_profile_network.py +++ b/twilio/rest/supersim/v1/network_access_profile/network_access_profile_network.py @@ -113,7 +113,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) @@ -212,7 +212,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) diff --git a/twilio/rest/supersim/v1/settings_update.py b/twilio/rest/supersim/v1/settings_update.py index f94615028..62d8fbf9e 100644 --- a/twilio/rest/supersim/v1/settings_update.py +++ b/twilio/rest/supersim/v1/settings_update.py @@ -24,7 +24,7 @@ class SettingsUpdateInstance(InstanceResource): - class Status(object): + class Status: SCHEDULED = "scheduled" IN_PROGRESS = "in-progress" SUCCESSFUL = "successful" diff --git a/twilio/rest/supersim/v1/sim/__init__.py b/twilio/rest/supersim/v1/sim/__init__.py index b1ba64733..166df4ede 100644 --- a/twilio/rest/supersim/v1/sim/__init__.py +++ b/twilio/rest/supersim/v1/sim/__init__.py @@ -26,14 +26,14 @@ class SimInstance(InstanceResource): - class Status(object): + class Status: NEW = "new" READY = "ready" ACTIVE = "active" INACTIVE = "inactive" SCHEDULED = "scheduled" - class StatusUpdate(object): + class StatusUpdate: READY = "ready" ACTIVE = "active" INACTIVE = "inactive" @@ -189,8 +189,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SimContext(InstanceContext): @@ -361,8 +361,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SimPage(Page): diff --git a/twilio/rest/supersim/v1/sim/billing_period.py b/twilio/rest/supersim/v1/sim/billing_period.py index e6fb96183..5ece0f18c 100644 --- a/twilio/rest/supersim/v1/sim/billing_period.py +++ b/twilio/rest/supersim/v1/sim/billing_period.py @@ -24,7 +24,7 @@ class BillingPeriodInstance(InstanceResource): - class BpType(object): + class BpType: READY = "ready" ACTIVE = "active" @@ -71,8 +71,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class BillingPeriodPage(Page): diff --git a/twilio/rest/supersim/v1/sim/sim_ip_address.py b/twilio/rest/supersim/v1/sim/sim_ip_address.py index 7c2b70e50..7bbdfebd7 100644 --- a/twilio/rest/supersim/v1/sim/sim_ip_address.py +++ b/twilio/rest/supersim/v1/sim/sim_ip_address.py @@ -23,7 +23,7 @@ class SimIpAddressInstance(InstanceResource): - class IpAddressVersion(object): + class IpAddressVersion: IPV4 = "IPv4" IPV6 = "IPv6" @@ -50,8 +50,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SimIpAddressPage(Page): diff --git a/twilio/rest/supersim/v1/sms_command.py b/twilio/rest/supersim/v1/sms_command.py index 0eb209410..46736a28c 100644 --- a/twilio/rest/supersim/v1/sms_command.py +++ b/twilio/rest/supersim/v1/sms_command.py @@ -24,11 +24,11 @@ class SmsCommandInstance(InstanceResource): - class Direction(object): + class Direction: TO_SIM = "to_sim" FROM_SIM = "from_sim" - class Status(object): + class Status: QUEUED = "queued" SENT = "sent" DELIVERED = "delivered" @@ -112,8 +112,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SmsCommandContext(InstanceContext): @@ -177,8 +177,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SmsCommandPage(Page): diff --git a/twilio/rest/supersim/v1/usage_record.py b/twilio/rest/supersim/v1/usage_record.py index 86a335d0d..51655a8c4 100644 --- a/twilio/rest/supersim/v1/usage_record.py +++ b/twilio/rest/supersim/v1/usage_record.py @@ -24,12 +24,12 @@ class UsageRecordInstance(InstanceResource): - class Granularity(object): + class Granularity: HOUR = "hour" DAY = "day" ALL = "all" - class Group(object): + class Group: SIM = "sim" FLEET = "fleet" NETWORK = "network" diff --git a/twilio/rest/sync/v1/service/__init__.py b/twilio/rest/sync/v1/service/__init__.py index 0bf1045f2..d0b37e172 100644 --- a/twilio/rest/sync/v1/service/__init__.py +++ b/twilio/rest/sync/v1/service/__init__.py @@ -232,8 +232,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ServiceContext(InstanceContext): @@ -472,8 +472,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ServicePage(Page): diff --git a/twilio/rest/sync/v1/service/document/__init__.py b/twilio/rest/sync/v1/service/document/__init__.py index f3b89cfe6..41101cbf9 100644 --- a/twilio/rest/sync/v1/service/document/__init__.py +++ b/twilio/rest/sync/v1/service/document/__init__.py @@ -182,8 +182,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class DocumentContext(InstanceContext): @@ -366,8 +366,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class DocumentPage(Page): diff --git a/twilio/rest/sync/v1/service/document/document_permission.py b/twilio/rest/sync/v1/service/document/document_permission.py index 40f524832..7d8bdbed2 100644 --- a/twilio/rest/sync/v1/service/document/document_permission.py +++ b/twilio/rest/sync/v1/service/document/document_permission.py @@ -154,8 +154,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class DocumentPermissionContext(InstanceContext): @@ -323,8 +323,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class DocumentPermissionPage(Page): diff --git a/twilio/rest/sync/v1/service/sync_list/__init__.py b/twilio/rest/sync/v1/service/sync_list/__init__.py index 7e9ca672c..57764533d 100644 --- a/twilio/rest/sync/v1/service/sync_list/__init__.py +++ b/twilio/rest/sync/v1/service/sync_list/__init__.py @@ -182,8 +182,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SyncListContext(InstanceContext): @@ -370,8 +370,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SyncListPage(Page): diff --git a/twilio/rest/sync/v1/service/sync_list/sync_list_item.py b/twilio/rest/sync/v1/service/sync_list/sync_list_item.py index 02dafcd49..9ce035fc3 100644 --- a/twilio/rest/sync/v1/service/sync_list/sync_list_item.py +++ b/twilio/rest/sync/v1/service/sync_list/sync_list_item.py @@ -24,11 +24,11 @@ class SyncListItemInstance(InstanceResource): - class QueryFromBoundType(object): + class QueryFromBoundType: INCLUSIVE = "inclusive" EXCLUSIVE = "exclusive" - class QueryResultOrder(object): + class QueryResultOrder: ASC = "asc" DESC = "desc" @@ -200,8 +200,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SyncListItemContext(InstanceContext): @@ -399,8 +399,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SyncListItemPage(Page): diff --git a/twilio/rest/sync/v1/service/sync_list/sync_list_permission.py b/twilio/rest/sync/v1/service/sync_list/sync_list_permission.py index 07fce14b9..3ebc6da16 100644 --- a/twilio/rest/sync/v1/service/sync_list/sync_list_permission.py +++ b/twilio/rest/sync/v1/service/sync_list/sync_list_permission.py @@ -154,8 +154,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SyncListPermissionContext(InstanceContext): @@ -325,8 +325,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SyncListPermissionPage(Page): diff --git a/twilio/rest/sync/v1/service/sync_map/__init__.py b/twilio/rest/sync/v1/service/sync_map/__init__.py index 1a68e8ef4..24b5fff61 100644 --- a/twilio/rest/sync/v1/service/sync_map/__init__.py +++ b/twilio/rest/sync/v1/service/sync_map/__init__.py @@ -182,8 +182,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SyncMapContext(InstanceContext): @@ -370,8 +370,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SyncMapPage(Page): diff --git a/twilio/rest/sync/v1/service/sync_map/sync_map_item.py b/twilio/rest/sync/v1/service/sync_map/sync_map_item.py index 7c621f8ad..662f4f1d3 100644 --- a/twilio/rest/sync/v1/service/sync_map/sync_map_item.py +++ b/twilio/rest/sync/v1/service/sync_map/sync_map_item.py @@ -24,11 +24,11 @@ class SyncMapItemInstance(InstanceResource): - class QueryFromBoundType(object): + class QueryFromBoundType: INCLUSIVE = "inclusive" EXCLUSIVE = "exclusive" - class QueryResultOrder(object): + class QueryResultOrder: ASC = "asc" DESC = "desc" @@ -200,8 +200,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SyncMapItemContext(InstanceContext): @@ -399,8 +399,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SyncMapItemPage(Page): diff --git a/twilio/rest/sync/v1/service/sync_map/sync_map_permission.py b/twilio/rest/sync/v1/service/sync_map/sync_map_permission.py index ba056906c..e609f9e99 100644 --- a/twilio/rest/sync/v1/service/sync_map/sync_map_permission.py +++ b/twilio/rest/sync/v1/service/sync_map/sync_map_permission.py @@ -154,8 +154,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SyncMapPermissionContext(InstanceContext): @@ -323,8 +323,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SyncMapPermissionPage(Page): diff --git a/twilio/rest/sync/v1/service/sync_stream/__init__.py b/twilio/rest/sync/v1/service/sync_stream/__init__.py index aa10d164a..69ad4b5ad 100644 --- a/twilio/rest/sync/v1/service/sync_stream/__init__.py +++ b/twilio/rest/sync/v1/service/sync_stream/__init__.py @@ -160,8 +160,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SyncStreamContext(InstanceContext): @@ -324,8 +324,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SyncStreamPage(Page): diff --git a/twilio/rest/sync/v1/service/sync_stream/stream_message.py b/twilio/rest/sync/v1/service/sync_stream/stream_message.py index 88a7604a7..514179802 100644 --- a/twilio/rest/sync/v1/service/sync_stream/stream_message.py +++ b/twilio/rest/sync/v1/service/sync_stream/stream_message.py @@ -49,8 +49,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class StreamMessageList(ListResource): diff --git a/twilio/rest/taskrouter/v1/workspace/__init__.py b/twilio/rest/taskrouter/v1/workspace/__init__.py index f1202197c..532383249 100644 --- a/twilio/rest/taskrouter/v1/workspace/__init__.py +++ b/twilio/rest/taskrouter/v1/workspace/__init__.py @@ -40,7 +40,7 @@ class WorkspaceInstance(InstanceResource): - class QueueOrder(object): + class QueueOrder: FIFO = "FIFO" LIFO = "LIFO" @@ -291,8 +291,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class WorkspaceContext(InstanceContext): @@ -601,8 +601,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class WorkspacePage(Page): diff --git a/twilio/rest/taskrouter/v1/workspace/activity.py b/twilio/rest/taskrouter/v1/workspace/activity.py index bae49d5ef..0122a56fe 100644 --- a/twilio/rest/taskrouter/v1/workspace/activity.py +++ b/twilio/rest/taskrouter/v1/workspace/activity.py @@ -150,8 +150,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ActivityContext(InstanceContext): @@ -303,8 +303,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ActivityPage(Page): diff --git a/twilio/rest/taskrouter/v1/workspace/event.py b/twilio/rest/taskrouter/v1/workspace/event.py index 534d9cd12..b1c4c3524 100644 --- a/twilio/rest/taskrouter/v1/workspace/event.py +++ b/twilio/rest/taskrouter/v1/workspace/event.py @@ -118,8 +118,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class EventContext(InstanceContext): @@ -187,8 +187,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class EventPage(Page): diff --git a/twilio/rest/taskrouter/v1/workspace/task/__init__.py b/twilio/rest/taskrouter/v1/workspace/task/__init__.py index f5c306b65..030018fd1 100644 --- a/twilio/rest/taskrouter/v1/workspace/task/__init__.py +++ b/twilio/rest/taskrouter/v1/workspace/task/__init__.py @@ -25,7 +25,7 @@ class TaskInstance(InstanceResource): - class Status(object): + class Status: PENDING = "pending" RESERVED = "reserved" ASSIGNED = "assigned" @@ -249,8 +249,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class TaskContext(InstanceContext): @@ -467,8 +467,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class TaskPage(Page): diff --git a/twilio/rest/taskrouter/v1/workspace/task/reservation.py b/twilio/rest/taskrouter/v1/workspace/task/reservation.py index 50b1ed127..ab538a7a2 100644 --- a/twilio/rest/taskrouter/v1/workspace/task/reservation.py +++ b/twilio/rest/taskrouter/v1/workspace/task/reservation.py @@ -24,13 +24,13 @@ class ReservationInstance(InstanceResource): - class CallStatus(object): + class CallStatus: INITIATED = "initiated" RINGING = "ringing" ANSWERED = "answered" COMPLETED = "completed" - class ConferenceEvent(object): + class ConferenceEvent: START = "start" END = "end" JOIN = "join" @@ -39,7 +39,7 @@ class ConferenceEvent(object): HOLD = "hold" SPEAKER = "speaker" - class Status(object): + class Status: PENDING = "pending" ACCEPTED = "accepted" REJECTED = "rejected" @@ -49,7 +49,7 @@ class Status(object): WRAPPING = "wrapping" COMPLETED = "completed" - class SupervisorMode(object): + class SupervisorMode: MONITOR = "monitor" WHISPER = "whisper" BARGE = "barge" @@ -510,8 +510,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ReservationContext(InstanceContext): @@ -1017,8 +1017,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ReservationPage(Page): diff --git a/twilio/rest/taskrouter/v1/workspace/task_channel.py b/twilio/rest/taskrouter/v1/workspace/task_channel.py index 099f85efb..197630c4c 100644 --- a/twilio/rest/taskrouter/v1/workspace/task_channel.py +++ b/twilio/rest/taskrouter/v1/workspace/task_channel.py @@ -162,8 +162,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class TaskChannelContext(InstanceContext): @@ -327,8 +327,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class TaskChannelPage(Page): diff --git a/twilio/rest/taskrouter/v1/workspace/task_queue/__init__.py b/twilio/rest/taskrouter/v1/workspace/task_queue/__init__.py index 794fd216d..08f421ce9 100644 --- a/twilio/rest/taskrouter/v1/workspace/task_queue/__init__.py +++ b/twilio/rest/taskrouter/v1/workspace/task_queue/__init__.py @@ -39,7 +39,7 @@ class TaskQueueInstance(InstanceResource): - class TaskOrder(object): + class TaskOrder: FIFO = "FIFO" LIFO = "LIFO" @@ -247,8 +247,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class TaskQueueContext(InstanceContext): @@ -475,8 +475,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class TaskQueuePage(Page): diff --git a/twilio/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.py b/twilio/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.py index 0556e6bb4..7a9620173 100644 --- a/twilio/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.py +++ b/twilio/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.py @@ -52,7 +52,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return ( "".format( context diff --git a/twilio/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.py b/twilio/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.py index acb8b79a2..58028efe0 100644 --- a/twilio/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.py +++ b/twilio/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.py @@ -197,7 +197,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) @@ -310,7 +310,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) diff --git a/twilio/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.py b/twilio/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.py index faca80470..6d856460e 100644 --- a/twilio/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.py +++ b/twilio/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.py @@ -138,7 +138,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) @@ -225,7 +225,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) diff --git a/twilio/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.py b/twilio/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.py index 2a09f62a6..ee05d0a28 100644 --- a/twilio/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.py +++ b/twilio/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.py @@ -129,8 +129,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class TaskQueueStatisticsContext(InstanceContext): @@ -242,8 +242,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class TaskQueueStatisticsList(ListResource): diff --git a/twilio/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.py b/twilio/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.py index bec2d81b4..c54cab46d 100644 --- a/twilio/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.py +++ b/twilio/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.py @@ -50,8 +50,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class TaskQueuesStatisticsPage(Page): diff --git a/twilio/rest/taskrouter/v1/workspace/worker/__init__.py b/twilio/rest/taskrouter/v1/workspace/worker/__init__.py index a236fcae8..01c36b50e 100644 --- a/twilio/rest/taskrouter/v1/workspace/worker/__init__.py +++ b/twilio/rest/taskrouter/v1/workspace/worker/__init__.py @@ -227,8 +227,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class WorkerContext(InstanceContext): @@ -465,8 +465,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class WorkerPage(Page): diff --git a/twilio/rest/taskrouter/v1/workspace/worker/reservation.py b/twilio/rest/taskrouter/v1/workspace/worker/reservation.py index b7dc4bca9..7519e77f5 100644 --- a/twilio/rest/taskrouter/v1/workspace/worker/reservation.py +++ b/twilio/rest/taskrouter/v1/workspace/worker/reservation.py @@ -24,13 +24,13 @@ class ReservationInstance(InstanceResource): - class CallStatus(object): + class CallStatus: INITIATED = "initiated" RINGING = "ringing" ANSWERED = "answered" COMPLETED = "completed" - class ConferenceEvent(object): + class ConferenceEvent: START = "start" END = "end" JOIN = "join" @@ -39,7 +39,7 @@ class ConferenceEvent(object): HOLD = "hold" SPEAKER = "speaker" - class Status(object): + class Status: PENDING = "pending" ACCEPTED = "accepted" REJECTED = "rejected" @@ -489,8 +489,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ReservationContext(InstanceContext): @@ -978,8 +978,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ReservationPage(Page): diff --git a/twilio/rest/taskrouter/v1/workspace/worker/worker_channel.py b/twilio/rest/taskrouter/v1/workspace/worker/worker_channel.py index f48ebb3a6..7adac4314 100644 --- a/twilio/rest/taskrouter/v1/workspace/worker/worker_channel.py +++ b/twilio/rest/taskrouter/v1/workspace/worker/worker_channel.py @@ -159,8 +159,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class WorkerChannelContext(InstanceContext): @@ -304,8 +304,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class WorkerChannelPage(Page): diff --git a/twilio/rest/taskrouter/v1/workspace/worker/worker_statistics.py b/twilio/rest/taskrouter/v1/workspace/worker/worker_statistics.py index 61618d296..15779ae6c 100644 --- a/twilio/rest/taskrouter/v1/workspace/worker/worker_statistics.py +++ b/twilio/rest/taskrouter/v1/workspace/worker/worker_statistics.py @@ -121,8 +121,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class WorkerStatisticsContext(InstanceContext): @@ -228,8 +228,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class WorkerStatisticsList(ListResource): diff --git a/twilio/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.py b/twilio/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.py index b18e7f123..ce2391049 100644 --- a/twilio/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.py +++ b/twilio/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.py @@ -145,7 +145,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) @@ -248,7 +248,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) diff --git a/twilio/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.py b/twilio/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.py index 277889ae7..7c85ad564 100644 --- a/twilio/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.py +++ b/twilio/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.py @@ -96,7 +96,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) @@ -179,7 +179,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) diff --git a/twilio/rest/taskrouter/v1/workspace/worker/workers_statistics.py b/twilio/rest/taskrouter/v1/workspace/worker/workers_statistics.py index 0cd09ec12..001882056 100644 --- a/twilio/rest/taskrouter/v1/workspace/worker/workers_statistics.py +++ b/twilio/rest/taskrouter/v1/workspace/worker/workers_statistics.py @@ -131,8 +131,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class WorkersStatisticsContext(InstanceContext): @@ -250,8 +250,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class WorkersStatisticsList(ListResource): diff --git a/twilio/rest/taskrouter/v1/workspace/workflow/__init__.py b/twilio/rest/taskrouter/v1/workspace/workflow/__init__.py index f01e76d37..a728d3db4 100644 --- a/twilio/rest/taskrouter/v1/workspace/workflow/__init__.py +++ b/twilio/rest/taskrouter/v1/workspace/workflow/__init__.py @@ -226,8 +226,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class WorkflowContext(InstanceContext): @@ -454,8 +454,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class WorkflowPage(Page): diff --git a/twilio/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.py b/twilio/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.py index e06cab011..8e43e7215 100644 --- a/twilio/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.py +++ b/twilio/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.py @@ -197,7 +197,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) @@ -310,7 +310,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) diff --git a/twilio/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.py b/twilio/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.py index 415d4223e..bd0706c2d 100644 --- a/twilio/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.py +++ b/twilio/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.py @@ -118,7 +118,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) @@ -205,7 +205,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) diff --git a/twilio/rest/taskrouter/v1/workspace/workflow/workflow_statistics.py b/twilio/rest/taskrouter/v1/workspace/workflow/workflow_statistics.py index f86590e40..032718098 100644 --- a/twilio/rest/taskrouter/v1/workspace/workflow/workflow_statistics.py +++ b/twilio/rest/taskrouter/v1/workspace/workflow/workflow_statistics.py @@ -129,8 +129,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class WorkflowStatisticsContext(InstanceContext): @@ -242,8 +242,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class WorkflowStatisticsList(ListResource): diff --git a/twilio/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.py b/twilio/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.py index 2b223641a..9d5f47b65 100644 --- a/twilio/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.py +++ b/twilio/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.py @@ -187,7 +187,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) @@ -296,7 +296,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) diff --git a/twilio/rest/taskrouter/v1/workspace/workspace_real_time_statistics.py b/twilio/rest/taskrouter/v1/workspace/workspace_real_time_statistics.py index 35b50c0b2..7cb5dfdcb 100644 --- a/twilio/rest/taskrouter/v1/workspace/workspace_real_time_statistics.py +++ b/twilio/rest/taskrouter/v1/workspace/workspace_real_time_statistics.py @@ -116,7 +116,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) @@ -199,7 +199,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) diff --git a/twilio/rest/taskrouter/v1/workspace/workspace_statistics.py b/twilio/rest/taskrouter/v1/workspace/workspace_statistics.py index 19eb88567..10f28d68a 100644 --- a/twilio/rest/taskrouter/v1/workspace/workspace_statistics.py +++ b/twilio/rest/taskrouter/v1/workspace/workspace_statistics.py @@ -119,8 +119,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class WorkspaceStatisticsContext(InstanceContext): @@ -224,8 +224,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class WorkspaceStatisticsList(ListResource): diff --git a/twilio/rest/trunking/v1/trunk/__init__.py b/twilio/rest/trunking/v1/trunk/__init__.py index 16125ead0..3d28c13f9 100644 --- a/twilio/rest/trunking/v1/trunk/__init__.py +++ b/twilio/rest/trunking/v1/trunk/__init__.py @@ -29,11 +29,11 @@ class TrunkInstance(InstanceResource): - class TransferCallerId(object): + class TransferCallerId: FROM_TRANSFEREE = "from-transferee" FROM_TRANSFEROR = "from-transferor" - class TransferSetting(object): + class TransferSetting: DISABLE_ALL = "disable-all" ENABLE_ALL = "enable-all" SIP_ONLY = "sip-only" @@ -264,8 +264,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class TrunkContext(InstanceContext): @@ -515,8 +515,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class TrunkPage(Page): diff --git a/twilio/rest/trunking/v1/trunk/credential_list.py b/twilio/rest/trunking/v1/trunk/credential_list.py index 7dc043d28..6c78a6773 100644 --- a/twilio/rest/trunking/v1/trunk/credential_list.py +++ b/twilio/rest/trunking/v1/trunk/credential_list.py @@ -118,8 +118,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CredentialListContext(InstanceContext): @@ -211,8 +211,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CredentialListPage(Page): diff --git a/twilio/rest/trunking/v1/trunk/ip_access_control_list.py b/twilio/rest/trunking/v1/trunk/ip_access_control_list.py index b361e7fe9..d12fef3d4 100644 --- a/twilio/rest/trunking/v1/trunk/ip_access_control_list.py +++ b/twilio/rest/trunking/v1/trunk/ip_access_control_list.py @@ -118,8 +118,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class IpAccessControlListContext(InstanceContext): @@ -213,8 +213,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class IpAccessControlListPage(Page): diff --git a/twilio/rest/trunking/v1/trunk/origination_url.py b/twilio/rest/trunking/v1/trunk/origination_url.py index bcf0c5205..f035ebb77 100644 --- a/twilio/rest/trunking/v1/trunk/origination_url.py +++ b/twilio/rest/trunking/v1/trunk/origination_url.py @@ -180,8 +180,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class OriginationUrlContext(InstanceContext): @@ -357,8 +357,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class OriginationUrlPage(Page): diff --git a/twilio/rest/trunking/v1/trunk/phone_number.py b/twilio/rest/trunking/v1/trunk/phone_number.py index 7f0adbeef..29528c863 100644 --- a/twilio/rest/trunking/v1/trunk/phone_number.py +++ b/twilio/rest/trunking/v1/trunk/phone_number.py @@ -24,7 +24,7 @@ class PhoneNumberInstance(InstanceResource): - class AddressRequirement(object): + class AddressRequirement: NONE = "none" ANY = "any" LOCAL = "local" @@ -169,8 +169,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PhoneNumberContext(InstanceContext): @@ -262,8 +262,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PhoneNumberPage(Page): diff --git a/twilio/rest/trunking/v1/trunk/recording.py b/twilio/rest/trunking/v1/trunk/recording.py index 1a431b496..7c0d139b2 100644 --- a/twilio/rest/trunking/v1/trunk/recording.py +++ b/twilio/rest/trunking/v1/trunk/recording.py @@ -22,14 +22,14 @@ class RecordingInstance(InstanceResource): - class RecordingMode(object): + class RecordingMode: DO_NOT_RECORD = "do-not-record" RECORD_FROM_RINGING = "record-from-ringing" RECORD_FROM_ANSWER = "record-from-answer" RECORD_FROM_RINGING_DUAL = "record-from-ringing-dual" RECORD_FROM_ANSWER_DUAL = "record-from-answer-dual" - class RecordingTrim(object): + class RecordingTrim: TRIM_SILENCE = "trim-silence" DO_NOT_TRIM = "do-not-trim" @@ -124,8 +124,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class RecordingContext(InstanceContext): @@ -249,8 +249,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class RecordingList(ListResource): diff --git a/twilio/rest/trusthub/v1/compliance_inquiries.py b/twilio/rest/trusthub/v1/compliance_inquiries.py index b1b52a4f7..eb21fdd64 100644 --- a/twilio/rest/trusthub/v1/compliance_inquiries.py +++ b/twilio/rest/trusthub/v1/compliance_inquiries.py @@ -93,8 +93,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ComplianceInquiriesContext(InstanceContext): @@ -172,8 +172,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ComplianceInquiriesList(ListResource): diff --git a/twilio/rest/trusthub/v1/compliance_registration_inquiries.py b/twilio/rest/trusthub/v1/compliance_registration_inquiries.py index d86b72db0..f374715c7 100644 --- a/twilio/rest/trusthub/v1/compliance_registration_inquiries.py +++ b/twilio/rest/trusthub/v1/compliance_registration_inquiries.py @@ -22,23 +22,23 @@ class ComplianceRegistrationInquiriesInstance(InstanceResource): - class BusinessIdentityType(object): + class BusinessIdentityType: DIRECT_CUSTOMER = "direct_customer" ISV_RESELLER_OR_PARTNER = "isv_reseller_or_partner" UNKNOWN = "unknown" - class BusinessRegistrationAuthority(object): + class BusinessRegistrationAuthority: UK_CRN = "UK:CRN" US_EIN = "US:EIN" CA_CBN = "CA:CBN" AU_ACN = "AU:ACN" OTHER = "Other" - class EndUserType(object): + class EndUserType: INDIVIDUAL = "Individual" BUSINESS = "Business" - class PhoneNumberType(object): + class PhoneNumberType: LOCAL = "local" NATIONAL = "national" MOBILE = "mobile" diff --git a/twilio/rest/trusthub/v1/compliance_tollfree_inquiries.py b/twilio/rest/trusthub/v1/compliance_tollfree_inquiries.py index 6c9d5b3d9..a5ea212d0 100644 --- a/twilio/rest/trusthub/v1/compliance_tollfree_inquiries.py +++ b/twilio/rest/trusthub/v1/compliance_tollfree_inquiries.py @@ -22,7 +22,7 @@ class ComplianceTollfreeInquiriesInstance(InstanceResource): - class OptInType(object): + class OptInType: VERBAL = "VERBAL" WEB_FORM = "WEB_FORM" PAPER_FORM = "PAPER_FORM" diff --git a/twilio/rest/trusthub/v1/customer_profiles/__init__.py b/twilio/rest/trusthub/v1/customer_profiles/__init__.py index a16ae0e73..d0c36cf9c 100644 --- a/twilio/rest/trusthub/v1/customer_profiles/__init__.py +++ b/twilio/rest/trusthub/v1/customer_profiles/__init__.py @@ -33,7 +33,7 @@ class CustomerProfilesInstance(InstanceResource): - class Status(object): + class Status: DRAFT = "draft" PENDING_REVIEW = "pending-review" IN_REVIEW = "in-review" @@ -214,8 +214,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CustomerProfilesContext(InstanceContext): @@ -429,8 +429,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CustomerProfilesPage(Page): diff --git a/twilio/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.py b/twilio/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.py index 4cb14c5cc..3f93758f1 100644 --- a/twilio/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.py +++ b/twilio/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.py @@ -116,7 +116,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) @@ -213,7 +213,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) diff --git a/twilio/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.py b/twilio/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.py index 5a19ccaab..69d6e70ee 100644 --- a/twilio/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.py +++ b/twilio/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.py @@ -114,7 +114,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return ( "".format( context @@ -215,7 +215,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return ( "".format( context diff --git a/twilio/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.py b/twilio/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.py index 60538ee22..00ec975a8 100644 --- a/twilio/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.py +++ b/twilio/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.py @@ -24,7 +24,7 @@ class CustomerProfilesEvaluationsInstance(InstanceResource): - class Status(object): + class Status: COMPLIANT = "compliant" NONCOMPLIANT = "noncompliant" @@ -107,7 +107,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) @@ -180,7 +180,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) diff --git a/twilio/rest/trusthub/v1/end_user.py b/twilio/rest/trusthub/v1/end_user.py index b8b08d65c..3abaaecb2 100644 --- a/twilio/rest/trusthub/v1/end_user.py +++ b/twilio/rest/trusthub/v1/end_user.py @@ -150,8 +150,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class EndUserContext(InstanceContext): @@ -295,8 +295,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class EndUserPage(Page): diff --git a/twilio/rest/trusthub/v1/end_user_type.py b/twilio/rest/trusthub/v1/end_user_type.py index d336385b2..cec779fd5 100644 --- a/twilio/rest/trusthub/v1/end_user_type.py +++ b/twilio/rest/trusthub/v1/end_user_type.py @@ -85,8 +85,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class EndUserTypeContext(InstanceContext): @@ -150,8 +150,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class EndUserTypePage(Page): diff --git a/twilio/rest/trusthub/v1/policies.py b/twilio/rest/trusthub/v1/policies.py index a39b1e0e6..c60096cb0 100644 --- a/twilio/rest/trusthub/v1/policies.py +++ b/twilio/rest/trusthub/v1/policies.py @@ -83,8 +83,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PoliciesContext(InstanceContext): @@ -148,8 +148,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PoliciesPage(Page): diff --git a/twilio/rest/trusthub/v1/supporting_document.py b/twilio/rest/trusthub/v1/supporting_document.py index a18293fd8..d1cbe1535 100644 --- a/twilio/rest/trusthub/v1/supporting_document.py +++ b/twilio/rest/trusthub/v1/supporting_document.py @@ -24,7 +24,7 @@ class SupportingDocumentInstance(InstanceResource): - class Status(object): + class Status: DRAFT = "draft" PENDING_REVIEW = "pending-review" REJECTED = "rejected" @@ -165,8 +165,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SupportingDocumentContext(InstanceContext): @@ -314,8 +314,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SupportingDocumentPage(Page): diff --git a/twilio/rest/trusthub/v1/supporting_document_type.py b/twilio/rest/trusthub/v1/supporting_document_type.py index f1a93c59b..f2082a306 100644 --- a/twilio/rest/trusthub/v1/supporting_document_type.py +++ b/twilio/rest/trusthub/v1/supporting_document_type.py @@ -85,8 +85,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SupportingDocumentTypeContext(InstanceContext): @@ -150,8 +150,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SupportingDocumentTypePage(Page): diff --git a/twilio/rest/trusthub/v1/trust_products/__init__.py b/twilio/rest/trusthub/v1/trust_products/__init__.py index a638f680f..09647b3b0 100644 --- a/twilio/rest/trusthub/v1/trust_products/__init__.py +++ b/twilio/rest/trusthub/v1/trust_products/__init__.py @@ -33,7 +33,7 @@ class TrustProductsInstance(InstanceResource): - class Status(object): + class Status: DRAFT = "draft" PENDING_REVIEW = "pending-review" IN_REVIEW = "in-review" @@ -212,8 +212,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class TrustProductsContext(InstanceContext): @@ -419,8 +419,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class TrustProductsPage(Page): diff --git a/twilio/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.py b/twilio/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.py index ef2b589ff..2d89038ef 100644 --- a/twilio/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.py +++ b/twilio/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.py @@ -116,7 +116,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) @@ -213,7 +213,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) diff --git a/twilio/rest/trusthub/v1/trust_products/trust_products_entity_assignments.py b/twilio/rest/trusthub/v1/trust_products/trust_products_entity_assignments.py index 16f07a892..b7714f652 100644 --- a/twilio/rest/trusthub/v1/trust_products/trust_products_entity_assignments.py +++ b/twilio/rest/trusthub/v1/trust_products/trust_products_entity_assignments.py @@ -114,7 +114,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) @@ -211,7 +211,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) diff --git a/twilio/rest/trusthub/v1/trust_products/trust_products_evaluations.py b/twilio/rest/trusthub/v1/trust_products/trust_products_evaluations.py index dfb929bac..72718d659 100644 --- a/twilio/rest/trusthub/v1/trust_products/trust_products_evaluations.py +++ b/twilio/rest/trusthub/v1/trust_products/trust_products_evaluations.py @@ -24,7 +24,7 @@ class TrustProductsEvaluationsInstance(InstanceResource): - class Status(object): + class Status: COMPLIANT = "compliant" NONCOMPLIANT = "noncompliant" @@ -107,7 +107,7 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) return "".format( context ) @@ -180,8 +180,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class TrustProductsEvaluationsPage(Page): diff --git a/twilio/rest/verify/v2/form.py b/twilio/rest/verify/v2/form.py index 6e3231fcd..fc87b5096 100644 --- a/twilio/rest/verify/v2/form.py +++ b/twilio/rest/verify/v2/form.py @@ -21,7 +21,7 @@ class FormInstance(InstanceResource): - class FormTypes(object): + class FormTypes: FORM_PUSH = "form-push" """ @@ -88,8 +88,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class FormContext(InstanceContext): @@ -153,8 +153,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class FormList(ListResource): diff --git a/twilio/rest/verify/v2/safelist.py b/twilio/rest/verify/v2/safelist.py index fb71369fb..625a3c861 100644 --- a/twilio/rest/verify/v2/safelist.py +++ b/twilio/rest/verify/v2/safelist.py @@ -101,8 +101,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SafelistContext(InstanceContext): @@ -190,8 +190,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SafelistList(ListResource): diff --git a/twilio/rest/verify/v2/service/__init__.py b/twilio/rest/verify/v2/service/__init__.py index 9e4d69d52..b3312b359 100644 --- a/twilio/rest/verify/v2/service/__init__.py +++ b/twilio/rest/verify/v2/service/__init__.py @@ -334,8 +334,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ServiceContext(InstanceContext): @@ -679,8 +679,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ServicePage(Page): diff --git a/twilio/rest/verify/v2/service/access_token.py b/twilio/rest/verify/v2/service/access_token.py index 0bb888a08..65ad101ee 100644 --- a/twilio/rest/verify/v2/service/access_token.py +++ b/twilio/rest/verify/v2/service/access_token.py @@ -23,7 +23,7 @@ class AccessTokenInstance(InstanceResource): - class FactorTypes(object): + class FactorTypes: PUSH = "push" """ @@ -109,8 +109,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AccessTokenContext(InstanceContext): @@ -180,8 +180,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AccessTokenList(ListResource): diff --git a/twilio/rest/verify/v2/service/entity/__init__.py b/twilio/rest/verify/v2/service/entity/__init__.py index 41541a4ca..d64397be7 100644 --- a/twilio/rest/verify/v2/service/entity/__init__.py +++ b/twilio/rest/verify/v2/service/entity/__init__.py @@ -144,8 +144,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class EntityContext(InstanceContext): @@ -282,8 +282,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class EntityPage(Page): diff --git a/twilio/rest/verify/v2/service/entity/challenge/__init__.py b/twilio/rest/verify/v2/service/entity/challenge/__init__.py index ab8c7f8d1..13983b831 100644 --- a/twilio/rest/verify/v2/service/entity/challenge/__init__.py +++ b/twilio/rest/verify/v2/service/entity/challenge/__init__.py @@ -25,22 +25,22 @@ class ChallengeInstance(InstanceResource): - class ChallengeReasons(object): + class ChallengeReasons: NONE = "none" NOT_NEEDED = "not_needed" NOT_REQUESTED = "not_requested" - class ChallengeStatuses(object): + class ChallengeStatuses: PENDING = "pending" EXPIRED = "expired" APPROVED = "approved" DENIED = "denied" - class FactorTypes(object): + class FactorTypes: PUSH = "push" TOTP = "totp" - class ListOrders(object): + class ListOrders: ASC = "asc" DESC = "desc" @@ -199,8 +199,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ChallengeContext(InstanceContext): @@ -360,8 +360,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ChallengePage(Page): diff --git a/twilio/rest/verify/v2/service/entity/challenge/notification.py b/twilio/rest/verify/v2/service/entity/challenge/notification.py index 0cfae0a60..7064b23e8 100644 --- a/twilio/rest/verify/v2/service/entity/challenge/notification.py +++ b/twilio/rest/verify/v2/service/entity/challenge/notification.py @@ -68,8 +68,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class NotificationList(ListResource): diff --git a/twilio/rest/verify/v2/service/entity/factor.py b/twilio/rest/verify/v2/service/entity/factor.py index 8900fcbfc..d45942cd5 100644 --- a/twilio/rest/verify/v2/service/entity/factor.py +++ b/twilio/rest/verify/v2/service/entity/factor.py @@ -24,15 +24,15 @@ class FactorInstance(InstanceResource): - class FactorStatuses(object): + class FactorStatuses: UNVERIFIED = "unverified" VERIFIED = "verified" - class FactorTypes(object): + class FactorTypes: PUSH = "push" TOTP = "totp" - class TotpAlgorithms(object): + class TotpAlgorithms: SHA1 = "sha1" SHA256 = "sha256" SHA512 = "sha512" @@ -227,8 +227,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class FactorContext(InstanceContext): @@ -436,8 +436,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class FactorPage(Page): diff --git a/twilio/rest/verify/v2/service/entity/new_factor.py b/twilio/rest/verify/v2/service/entity/new_factor.py index 7b260a4a3..0d58f16f7 100644 --- a/twilio/rest/verify/v2/service/entity/new_factor.py +++ b/twilio/rest/verify/v2/service/entity/new_factor.py @@ -23,20 +23,20 @@ class NewFactorInstance(InstanceResource): - class FactorStatuses(object): + class FactorStatuses: UNVERIFIED = "unverified" VERIFIED = "verified" - class FactorTypes(object): + class FactorTypes: PUSH = "push" TOTP = "totp" - class NotificationPlatforms(object): + class NotificationPlatforms: APN = "apn" FCM = "fcm" NONE = "none" - class TotpAlgorithms(object): + class TotpAlgorithms: SHA1 = "sha1" SHA256 = "sha256" SHA512 = "sha512" @@ -97,8 +97,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class NewFactorList(ListResource): diff --git a/twilio/rest/verify/v2/service/messaging_configuration.py b/twilio/rest/verify/v2/service/messaging_configuration.py index f412aba1e..aa45c1db9 100644 --- a/twilio/rest/verify/v2/service/messaging_configuration.py +++ b/twilio/rest/verify/v2/service/messaging_configuration.py @@ -144,8 +144,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MessagingConfigurationContext(InstanceContext): @@ -295,8 +295,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class MessagingConfigurationPage(Page): diff --git a/twilio/rest/verify/v2/service/rate_limit/__init__.py b/twilio/rest/verify/v2/service/rate_limit/__init__.py index 2d4a18bf0..f4dae54d4 100644 --- a/twilio/rest/verify/v2/service/rate_limit/__init__.py +++ b/twilio/rest/verify/v2/service/rate_limit/__init__.py @@ -158,8 +158,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class RateLimitContext(InstanceContext): @@ -324,8 +324,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class RateLimitPage(Page): diff --git a/twilio/rest/verify/v2/service/rate_limit/bucket.py b/twilio/rest/verify/v2/service/rate_limit/bucket.py index ca4ffaf77..5d6c3e768 100644 --- a/twilio/rest/verify/v2/service/rate_limit/bucket.py +++ b/twilio/rest/verify/v2/service/rate_limit/bucket.py @@ -161,8 +161,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class BucketContext(InstanceContext): @@ -332,8 +332,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class BucketPage(Page): diff --git a/twilio/rest/verify/v2/service/verification.py b/twilio/rest/verify/v2/service/verification.py index 1c42043a3..090499421 100644 --- a/twilio/rest/verify/v2/service/verification.py +++ b/twilio/rest/verify/v2/service/verification.py @@ -23,18 +23,18 @@ class VerificationInstance(InstanceResource): - class Channel(object): + class Channel: SMS = "sms" CALL = "call" EMAIL = "email" WHATSAPP = "whatsapp" SNA = "sna" - class RiskCheck(object): + class RiskCheck: ENABLE = "enable" DISABLE = "disable" - class Status(object): + class Status: CANCELED = "canceled" APPROVED = "approved" @@ -159,8 +159,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class VerificationContext(InstanceContext): @@ -286,8 +286,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class VerificationList(ListResource): diff --git a/twilio/rest/verify/v2/service/verification_check.py b/twilio/rest/verify/v2/service/verification_check.py index 9cd92487e..7e81fb25d 100644 --- a/twilio/rest/verify/v2/service/verification_check.py +++ b/twilio/rest/verify/v2/service/verification_check.py @@ -23,7 +23,7 @@ class VerificationCheckInstance(InstanceResource): - class Channel(object): + class Channel: SMS = "sms" CALL = "call" EMAIL = "email" @@ -79,8 +79,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class VerificationCheckList(ListResource): diff --git a/twilio/rest/verify/v2/service/webhook.py b/twilio/rest/verify/v2/service/webhook.py index 4f8772574..c7f20c2b2 100644 --- a/twilio/rest/verify/v2/service/webhook.py +++ b/twilio/rest/verify/v2/service/webhook.py @@ -24,15 +24,15 @@ class WebhookInstance(InstanceResource): - class Methods(object): + class Methods: GET = "GET" POST = "POST" - class Status(object): + class Status: ENABLED = "enabled" DISABLED = "disabled" - class Version(object): + class Version: V1 = "v1" V2 = "v2" @@ -197,8 +197,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class WebhookContext(InstanceContext): @@ -374,8 +374,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class WebhookPage(Page): diff --git a/twilio/rest/verify/v2/verification_attempt.py b/twilio/rest/verify/v2/verification_attempt.py index 2c1f914d3..020db4cdd 100644 --- a/twilio/rest/verify/v2/verification_attempt.py +++ b/twilio/rest/verify/v2/verification_attempt.py @@ -24,13 +24,13 @@ class VerificationAttemptInstance(InstanceResource): - class Channels(object): + class Channels: SMS = "sms" CALL = "call" EMAIL = "email" WHATSAPP = "whatsapp" - class ConversionStatus(object): + class ConversionStatus: CONVERTED = "converted" UNCONVERTED = "unconverted" @@ -117,8 +117,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class VerificationAttemptContext(InstanceContext): @@ -182,8 +182,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class VerificationAttemptPage(Page): diff --git a/twilio/rest/verify/v2/verification_attempts_summary.py b/twilio/rest/verify/v2/verification_attempts_summary.py index 1f2d3d395..8b7c4e049 100644 --- a/twilio/rest/verify/v2/verification_attempts_summary.py +++ b/twilio/rest/verify/v2/verification_attempts_summary.py @@ -23,7 +23,7 @@ class VerificationAttemptsSummaryInstance(InstanceResource): - class Channels(object): + class Channels: SMS = "sms" CALL = "call" EMAIL = "email" diff --git a/twilio/rest/video/v1/composition.py b/twilio/rest/video/v1/composition.py index 30aa33fff..a33014432 100644 --- a/twilio/rest/video/v1/composition.py +++ b/twilio/rest/video/v1/composition.py @@ -24,11 +24,11 @@ class CompositionInstance(InstanceResource): - class Format(object): + class Format: MP4 = "mp4" WEBM = "webm" - class Status(object): + class Status: ENQUEUED = "enqueued" PROCESSING = "processing" COMPLETED = "completed" @@ -160,8 +160,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CompositionContext(InstanceContext): @@ -249,8 +249,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CompositionPage(Page): diff --git a/twilio/rest/video/v1/composition_hook.py b/twilio/rest/video/v1/composition_hook.py index 027a27f74..70fb505c7 100644 --- a/twilio/rest/video/v1/composition_hook.py +++ b/twilio/rest/video/v1/composition_hook.py @@ -24,7 +24,7 @@ class CompositionHookInstance(InstanceResource): - class Format(object): + class Format: MP4 = "mp4" WEBM = "webm" @@ -221,8 +221,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CompositionHookContext(InstanceContext): @@ -422,8 +422,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CompositionHookPage(Page): diff --git a/twilio/rest/video/v1/recording.py b/twilio/rest/video/v1/recording.py index 20c836d2b..3708f4986 100644 --- a/twilio/rest/video/v1/recording.py +++ b/twilio/rest/video/v1/recording.py @@ -24,23 +24,23 @@ class RecordingInstance(InstanceResource): - class Codec(object): + class Codec: VP8 = "VP8" H264 = "H264" OPUS = "OPUS" PCMU = "PCMU" - class Format(object): + class Format: MKA = "mka" MKV = "mkv" - class Status(object): + class Status: PROCESSING = "processing" COMPLETED = "completed" DELETED = "deleted" FAILED = "failed" - class Type(object): + class Type: AUDIO = "audio" VIDEO = "video" DATA = "data" @@ -160,8 +160,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class RecordingContext(InstanceContext): @@ -249,8 +249,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class RecordingPage(Page): diff --git a/twilio/rest/video/v1/room/__init__.py b/twilio/rest/video/v1/room/__init__.py index a8ffdb895..e3191dabd 100644 --- a/twilio/rest/video/v1/room/__init__.py +++ b/twilio/rest/video/v1/room/__init__.py @@ -27,18 +27,18 @@ class RoomInstance(InstanceResource): - class RoomStatus(object): + class RoomStatus: IN_PROGRESS = "in-progress" COMPLETED = "completed" FAILED = "failed" - class RoomType(object): + class RoomType: GO = "go" PEER_TO_PEER = "peer-to-peer" GROUP = "group" GROUP_SMALL = "group-small" - class VideoCodec(object): + class VideoCodec: VP8 = "VP8" H264 = "H264" @@ -210,8 +210,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class RoomContext(InstanceContext): @@ -359,8 +359,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class RoomPage(Page): diff --git a/twilio/rest/video/v1/room/participant/__init__.py b/twilio/rest/video/v1/room/participant/__init__.py index 145d95429..8c24ee749 100644 --- a/twilio/rest/video/v1/room/participant/__init__.py +++ b/twilio/rest/video/v1/room/participant/__init__.py @@ -28,7 +28,7 @@ class ParticipantInstance(InstanceResource): - class Status(object): + class Status: CONNECTED = "connected" DISCONNECTED = "disconnected" @@ -179,8 +179,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ParticipantContext(InstanceContext): @@ -363,8 +363,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ParticipantPage(Page): diff --git a/twilio/rest/video/v1/room/participant/anonymize.py b/twilio/rest/video/v1/room/participant/anonymize.py index e9a7f1383..b89cda082 100644 --- a/twilio/rest/video/v1/room/participant/anonymize.py +++ b/twilio/rest/video/v1/room/participant/anonymize.py @@ -23,7 +23,7 @@ class AnonymizeInstance(InstanceResource): - class Status(object): + class Status: CONNECTED = "connected" DISCONNECTED = "disconnected" @@ -112,8 +112,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AnonymizeContext(InstanceContext): @@ -187,8 +187,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class AnonymizeList(ListResource): diff --git a/twilio/rest/video/v1/room/participant/published_track.py b/twilio/rest/video/v1/room/participant/published_track.py index 1fa84827b..4aecb3a83 100644 --- a/twilio/rest/video/v1/room/participant/published_track.py +++ b/twilio/rest/video/v1/room/participant/published_track.py @@ -24,7 +24,7 @@ class PublishedTrackInstance(InstanceResource): - class Kind(object): + class Kind: AUDIO = "audio" VIDEO = "video" DATA = "data" @@ -113,8 +113,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PublishedTrackContext(InstanceContext): @@ -188,8 +188,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class PublishedTrackPage(Page): diff --git a/twilio/rest/video/v1/room/participant/subscribe_rules.py b/twilio/rest/video/v1/room/participant/subscribe_rules.py index 3015163e6..9ed01a0cf 100644 --- a/twilio/rest/video/v1/room/participant/subscribe_rules.py +++ b/twilio/rest/video/v1/room/participant/subscribe_rules.py @@ -60,8 +60,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SubscribeRulesList(ListResource): diff --git a/twilio/rest/video/v1/room/participant/subscribed_track.py b/twilio/rest/video/v1/room/participant/subscribed_track.py index 7c915095e..baee63c0c 100644 --- a/twilio/rest/video/v1/room/participant/subscribed_track.py +++ b/twilio/rest/video/v1/room/participant/subscribed_track.py @@ -24,7 +24,7 @@ class SubscribedTrackInstance(InstanceResource): - class Kind(object): + class Kind: AUDIO = "audio" VIDEO = "video" DATA = "data" @@ -115,8 +115,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SubscribedTrackContext(InstanceContext): @@ -190,8 +190,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SubscribedTrackPage(Page): diff --git a/twilio/rest/video/v1/room/recording_rules.py b/twilio/rest/video/v1/room/recording_rules.py index 6e731a145..d91b350b6 100644 --- a/twilio/rest/video/v1/room/recording_rules.py +++ b/twilio/rest/video/v1/room/recording_rules.py @@ -51,8 +51,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class RecordingRulesList(ListResource): diff --git a/twilio/rest/video/v1/room/room_recording.py b/twilio/rest/video/v1/room/room_recording.py index db67f2994..346408734 100644 --- a/twilio/rest/video/v1/room/room_recording.py +++ b/twilio/rest/video/v1/room/room_recording.py @@ -24,23 +24,23 @@ class RoomRecordingInstance(InstanceResource): - class Codec(object): + class Codec: VP8 = "VP8" H264 = "H264" OPUS = "OPUS" PCMU = "PCMU" - class Format(object): + class Format: MKA = "mka" MKV = "mkv" - class Status(object): + class Status: PROCESSING = "processing" COMPLETED = "completed" DELETED = "deleted" FAILED = "failed" - class Type(object): + class Type: AUDIO = "audio" VIDEO = "video" DATA = "data" @@ -162,8 +162,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class RoomRecordingContext(InstanceContext): @@ -255,8 +255,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class RoomRecordingPage(Page): diff --git a/twilio/rest/voice/v1/archived_call.py b/twilio/rest/voice/v1/archived_call.py index ec8a5bb68..bf6e26653 100644 --- a/twilio/rest/voice/v1/archived_call.py +++ b/twilio/rest/voice/v1/archived_call.py @@ -68,8 +68,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ArchivedCallList(ListResource): diff --git a/twilio/rest/voice/v1/byoc_trunk.py b/twilio/rest/voice/v1/byoc_trunk.py index a85cae660..5f8ceeec1 100644 --- a/twilio/rest/voice/v1/byoc_trunk.py +++ b/twilio/rest/voice/v1/byoc_trunk.py @@ -214,8 +214,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ByocTrunkContext(InstanceContext): @@ -407,8 +407,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ByocTrunkPage(Page): diff --git a/twilio/rest/voice/v1/connection_policy/__init__.py b/twilio/rest/voice/v1/connection_policy/__init__.py index d1d8aac89..d10621fe2 100644 --- a/twilio/rest/voice/v1/connection_policy/__init__.py +++ b/twilio/rest/voice/v1/connection_policy/__init__.py @@ -150,8 +150,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ConnectionPolicyContext(InstanceContext): @@ -305,8 +305,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ConnectionPolicyPage(Page): diff --git a/twilio/rest/voice/v1/connection_policy/connection_policy_target.py b/twilio/rest/voice/v1/connection_policy/connection_policy_target.py index 2fa490880..b6c5768c3 100644 --- a/twilio/rest/voice/v1/connection_policy/connection_policy_target.py +++ b/twilio/rest/voice/v1/connection_policy/connection_policy_target.py @@ -180,8 +180,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ConnectionPolicyTargetContext(InstanceContext): @@ -359,8 +359,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class ConnectionPolicyTargetPage(Page): diff --git a/twilio/rest/voice/v1/dialing_permissions/country/__init__.py b/twilio/rest/voice/v1/dialing_permissions/country/__init__.py index 2b9285c11..b0d3d3146 100644 --- a/twilio/rest/voice/v1/dialing_permissions/country/__init__.py +++ b/twilio/rest/voice/v1/dialing_permissions/country/__init__.py @@ -109,8 +109,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CountryContext(InstanceContext): @@ -188,8 +188,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CountryPage(Page): diff --git a/twilio/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.py b/twilio/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.py index 9303f2c9a..c9a12c1c5 100644 --- a/twilio/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.py +++ b/twilio/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.py @@ -41,8 +41,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class HighriskSpecialPrefixPage(Page): diff --git a/twilio/rest/voice/v1/ip_record.py b/twilio/rest/voice/v1/ip_record.py index ee409ba78..b7d40aa51 100644 --- a/twilio/rest/voice/v1/ip_record.py +++ b/twilio/rest/voice/v1/ip_record.py @@ -144,8 +144,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class IpRecordContext(InstanceContext): @@ -281,8 +281,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class IpRecordPage(Page): diff --git a/twilio/rest/voice/v1/source_ip_mapping.py b/twilio/rest/voice/v1/source_ip_mapping.py index 8a0d4a912..0145f4215 100644 --- a/twilio/rest/voice/v1/source_ip_mapping.py +++ b/twilio/rest/voice/v1/source_ip_mapping.py @@ -134,8 +134,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SourceIpMappingContext(InstanceContext): @@ -271,8 +271,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SourceIpMappingPage(Page): diff --git a/twilio/rest/wireless/v1/command.py b/twilio/rest/wireless/v1/command.py index f310db891..e095b3245 100644 --- a/twilio/rest/wireless/v1/command.py +++ b/twilio/rest/wireless/v1/command.py @@ -24,22 +24,22 @@ class CommandInstance(InstanceResource): - class CommandMode(object): + class CommandMode: TEXT = "text" BINARY = "binary" - class Direction(object): + class Direction: FROM_SIM = "from_sim" TO_SIM = "to_sim" - class Status(object): + class Status: QUEUED = "queued" SENT = "sent" DELIVERED = "delivered" RECEIVED = "received" FAILED = "failed" - class Transport(object): + class Transport: SMS = "sms" IP = "ip" @@ -146,8 +146,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CommandContext(InstanceContext): @@ -235,8 +235,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class CommandPage(Page): diff --git a/twilio/rest/wireless/v1/rate_plan.py b/twilio/rest/wireless/v1/rate_plan.py index 0ee1e205a..12ee3e251 100644 --- a/twilio/rest/wireless/v1/rate_plan.py +++ b/twilio/rest/wireless/v1/rate_plan.py @@ -174,8 +174,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class RatePlanContext(InstanceContext): @@ -319,8 +319,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class RatePlanPage(Page): diff --git a/twilio/rest/wireless/v1/sim/__init__.py b/twilio/rest/wireless/v1/sim/__init__.py index f0d21c447..8aeba0399 100644 --- a/twilio/rest/wireless/v1/sim/__init__.py +++ b/twilio/rest/wireless/v1/sim/__init__.py @@ -26,10 +26,10 @@ class SimInstance(InstanceResource): - class ResetStatus(object): + class ResetStatus: RESETTING = "resetting" - class Status(object): + class Status: NEW = "new" READY = "ready" ACTIVE = "active" @@ -312,8 +312,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SimContext(InstanceContext): @@ -580,8 +580,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class SimPage(Page): diff --git a/twilio/rest/wireless/v1/sim/data_session.py b/twilio/rest/wireless/v1/sim/data_session.py index 649eb4963..4085543c3 100644 --- a/twilio/rest/wireless/v1/sim/data_session.py +++ b/twilio/rest/wireless/v1/sim/data_session.py @@ -82,8 +82,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class DataSessionPage(Page): diff --git a/twilio/rest/wireless/v1/sim/usage_record.py b/twilio/rest/wireless/v1/sim/usage_record.py index 8b1db6d0d..7cb359dcd 100644 --- a/twilio/rest/wireless/v1/sim/usage_record.py +++ b/twilio/rest/wireless/v1/sim/usage_record.py @@ -24,7 +24,7 @@ class UsageRecordInstance(InstanceResource): - class Granularity(object): + class Granularity: HOURLY = "hourly" DAILY = "daily" ALL = "all" @@ -56,8 +56,8 @@ def __repr__(self) -> str: :returns: Machine friendly representation """ - context = " ".join("{}={}".format(k, v) for k, v in self._solution.items()) - return "".format(context) + context = " ".join(f"{k}={v}" for k, v in self._solution.items()) + return f"" class UsageRecordPage(Page): diff --git a/twilio/rest/wireless/v1/usage_record.py b/twilio/rest/wireless/v1/usage_record.py index 43e34469c..c1312c434 100644 --- a/twilio/rest/wireless/v1/usage_record.py +++ b/twilio/rest/wireless/v1/usage_record.py @@ -24,7 +24,7 @@ class UsageRecordInstance(InstanceResource): - class Granularity(object): + class Granularity: HOURLY = "hourly" DAILY = "daily" ALL = "all" diff --git a/twilio/twiml/__init__.py b/twilio/twiml/__init__.py index 70a4df830..ed65a0a6d 100644 --- a/twilio/twiml/__init__.py +++ b/twilio/twiml/__init__.py @@ -30,7 +30,7 @@ class TwiMLException(Exception): pass -class TwiML(object): +class TwiML: MAP = { "from_": "from", "xml_lang": "xml:lang", @@ -66,7 +66,7 @@ def to_xml(self, xml_declaration=True): """ xml = ET.tostring(self.xml(), encoding="utf-8").decode("utf-8") return ( - '{}'.format(xml) + f'{xml}' if xml_declaration else xml ) @@ -135,6 +135,6 @@ def add_child(self, name, value=None, **kwargs): class GenericNode(TwiML): def __init__(self, name, value, **kwargs): - super(GenericNode, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = name self.value = value diff --git a/twilio/twiml/fax_response.py b/twilio/twiml/fax_response.py index 89233bd40..1c91594b0 100644 --- a/twilio/twiml/fax_response.py +++ b/twilio/twiml/fax_response.py @@ -1,4 +1,3 @@ -# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ @@ -15,7 +14,7 @@ class FaxResponse(TwiML): """ TwiML for Faxes""" def __init__(self, **kwargs): - super(FaxResponse, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Response" def receive( @@ -55,5 +54,5 @@ class Receive(TwiML): """ TwiML Verb""" def __init__(self, **kwargs): - super(Receive, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Receive" diff --git a/twilio/twiml/messaging_response.py b/twilio/twiml/messaging_response.py index ec36c74c0..f639278a4 100644 --- a/twilio/twiml/messaging_response.py +++ b/twilio/twiml/messaging_response.py @@ -1,4 +1,3 @@ -# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ @@ -15,7 +14,7 @@ class MessagingResponse(TwiML): """ TwiML for Messages""" def __init__(self, **kwargs): - super(MessagingResponse, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Response" def message( @@ -70,7 +69,7 @@ class Redirect(TwiML): """ TwiML Verb""" def __init__(self, url, **kwargs): - super(Redirect, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Redirect" self.value = url @@ -79,7 +78,7 @@ class Message(TwiML): """ TwiML Verb""" def __init__(self, body=None, **kwargs): - super(Message, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Message" if body: self.value = body @@ -111,7 +110,7 @@ class Media(TwiML): """ TwiML Noun""" def __init__(self, url, **kwargs): - super(Media, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Media" self.value = url @@ -120,6 +119,6 @@ class Body(TwiML): """ TwiML Noun""" def __init__(self, message, **kwargs): - super(Body, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Body" self.value = message diff --git a/twilio/twiml/voice_response.py b/twilio/twiml/voice_response.py index 6beb109dc..6994a7410 100644 --- a/twilio/twiml/voice_response.py +++ b/twilio/twiml/voice_response.py @@ -1,4 +1,3 @@ -# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ @@ -15,7 +14,7 @@ class VoiceResponse(TwiML): """ TwiML for Voice""" def __init__(self, **kwargs): - super(VoiceResponse, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Response" def connect(self, action=None, method=None, **kwargs): @@ -565,7 +564,7 @@ class Refer(TwiML): """ TwiML Verb""" def __init__(self, **kwargs): - super(Refer, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Refer" def sip(self, sip_url, **kwargs): @@ -584,7 +583,7 @@ class ReferSip(TwiML): """ TwiML Noun used in """ def __init__(self, sip_url, **kwargs): - super(ReferSip, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Sip" self.value = sip_url @@ -593,7 +592,7 @@ class Stop(TwiML): """ TwiML Verb""" def __init__(self, **kwargs): - super(Stop, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Stop" def stream( @@ -668,7 +667,7 @@ class Siprec(TwiML): """ TwiML Noun""" def __init__(self, **kwargs): - super(Siprec, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Siprec" def parameter(self, name=None, value=None, **kwargs): @@ -688,7 +687,7 @@ class Parameter(TwiML): """ TwiML Noun""" def __init__(self, **kwargs): - super(Parameter, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Parameter" @@ -696,7 +695,7 @@ class Stream(TwiML): """ TwiML Noun""" def __init__(self, **kwargs): - super(Stream, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Stream" def parameter(self, name=None, value=None, **kwargs): @@ -716,7 +715,7 @@ class Start(TwiML): """ TwiML Verb""" def __init__(self, **kwargs): - super(Start, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Start" def stream( @@ -791,7 +790,7 @@ class Prompt(TwiML): """ Twiml Verb""" def __init__(self, **kwargs): - super(Prompt, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Prompt" def say(self, message=None, voice=None, loop=None, language=None, **kwargs): @@ -839,7 +838,7 @@ class Pause(TwiML): """ TwiML Verb""" def __init__(self, **kwargs): - super(Pause, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Pause" @@ -847,7 +846,7 @@ class Play(TwiML): """ TwiML Verb""" def __init__(self, url=None, **kwargs): - super(Play, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Play" if url: self.value = url @@ -857,7 +856,7 @@ class Say(TwiML): """ TwiML Verb""" def __init__(self, message=None, **kwargs): - super(Say, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Say" if message: self.value = message @@ -993,7 +992,7 @@ class SsmlW(TwiML): """Improving Pronunciation by Specifying Parts of Speech in """ def __init__(self, words=None, **kwargs): - super(SsmlW, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "w" if words: self.value = words @@ -1083,7 +1082,7 @@ class SsmlSub(TwiML): """Pronouncing Acronyms and Abbreviations in """ def __init__(self, words, **kwargs): - super(SsmlSub, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "sub" self.value = words @@ -1092,7 +1091,7 @@ class SsmlSayAs(TwiML): """Controlling How Special Types of Words Are Spoken in """ def __init__(self, words, **kwargs): - super(SsmlSayAs, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "say-as" self.value = words @@ -1101,7 +1100,7 @@ class SsmlProsody(TwiML): """Controling Volume, Speaking Rate, and Pitch in """ def __init__(self, words=None, **kwargs): - super(SsmlProsody, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "prosody" if words: self.value = words @@ -1237,7 +1236,7 @@ class SsmlS(TwiML): """Adding A Pause Between Sentences in """ def __init__(self, words=None, **kwargs): - super(SsmlS, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "s" if words: self.value = words @@ -1351,7 +1350,7 @@ class SsmlPhoneme(TwiML): """Using Phonetic Pronunciation in """ def __init__(self, words, **kwargs): - super(SsmlPhoneme, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "phoneme" self.value = words @@ -1360,7 +1359,7 @@ class SsmlLang(TwiML): """Specifying Another Language for Specific Words in """ def __init__(self, words=None, **kwargs): - super(SsmlLang, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "lang" if words: self.value = words @@ -1496,7 +1495,7 @@ class SsmlP(TwiML): """Adding a Pause Between Paragraphs in """ def __init__(self, words=None, **kwargs): - super(SsmlP, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "p" if words: self.value = words @@ -1621,7 +1620,7 @@ class SsmlEmphasis(TwiML): """Emphasizing Words in """ def __init__(self, words=None, **kwargs): - super(SsmlEmphasis, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "emphasis" if words: self.value = words @@ -1735,7 +1734,7 @@ class SsmlBreak(TwiML): """Adding a Pause in """ def __init__(self, **kwargs): - super(SsmlBreak, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "break" @@ -1743,7 +1742,7 @@ class Pay(TwiML): """ Twiml Verb""" def __init__(self, **kwargs): - super(Pay, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Pay" def prompt( @@ -1795,7 +1794,7 @@ class Sms(TwiML): """ TwiML Noun""" def __init__(self, message, **kwargs): - super(Sms, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Sms" self.value = message @@ -1804,7 +1803,7 @@ class Reject(TwiML): """ TwiML Verb""" def __init__(self, **kwargs): - super(Reject, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Reject" def parameter(self, name=None, value=None, **kwargs): @@ -1824,7 +1823,7 @@ class Redirect(TwiML): """ TwiML Verb""" def __init__(self, url, **kwargs): - super(Redirect, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Redirect" self.value = url @@ -1833,7 +1832,7 @@ class Record(TwiML): """ TwiML Verb""" def __init__(self, **kwargs): - super(Record, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Record" @@ -1841,7 +1840,7 @@ class Queue(TwiML): """ TwiML Noun""" def __init__(self, name, **kwargs): - super(Queue, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Queue" self.value = name @@ -1850,7 +1849,7 @@ class Leave(TwiML): """ TwiML Verb""" def __init__(self, **kwargs): - super(Leave, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Leave" @@ -1858,7 +1857,7 @@ class Hangup(TwiML): """ TwiML Verb""" def __init__(self, **kwargs): - super(Hangup, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Hangup" def parameter(self, name=None, value=None, **kwargs): @@ -1878,7 +1877,7 @@ class Gather(TwiML): """ TwiML Verb""" def __init__(self, **kwargs): - super(Gather, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Gather" def say(self, message=None, voice=None, loop=None, language=None, **kwargs): @@ -1926,7 +1925,7 @@ class Enqueue(TwiML): """ TwiML Noun""" def __init__(self, name=None, **kwargs): - super(Enqueue, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Enqueue" if name: self.value = name @@ -1949,7 +1948,7 @@ class Task(TwiML): """ TwiML Noun""" def __init__(self, body, **kwargs): - super(Task, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Task" self.value = body @@ -1958,7 +1957,7 @@ class Echo(TwiML): """ TwiML Verb""" def __init__(self, **kwargs): - super(Echo, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Echo" @@ -1966,7 +1965,7 @@ class Dial(TwiML): """ TwiML Verb""" def __init__(self, number=None, **kwargs): - super(Dial, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Dial" if number: self.value = number @@ -2299,7 +2298,7 @@ class Application(TwiML): """ TwiML Noun""" def __init__(self, application_sid=None, **kwargs): - super(Application, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Application" if application_sid: self.value = application_sid @@ -2332,7 +2331,7 @@ class ApplicationSid(TwiML): """ TwiML Noun""" def __init__(self, sid, **kwargs): - super(ApplicationSid, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "ApplicationSid" self.value = sid @@ -2341,7 +2340,7 @@ class Sip(TwiML): """ TwiML Noun""" def __init__(self, sip_url, **kwargs): - super(Sip, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Sip" self.value = sip_url @@ -2350,7 +2349,7 @@ class Sim(TwiML): """ TwiML Noun""" def __init__(self, sim_sid, **kwargs): - super(Sim, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Sim" self.value = sim_sid @@ -2359,7 +2358,7 @@ class Number(TwiML): """ TwiML Noun""" def __init__(self, phone_number, **kwargs): - super(Number, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Number" self.value = phone_number @@ -2368,7 +2367,7 @@ class Conference(TwiML): """ TwiML Noun""" def __init__(self, name, **kwargs): - super(Conference, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Conference" self.value = name @@ -2377,7 +2376,7 @@ class Client(TwiML): """ TwiML Noun""" def __init__(self, identity=None, **kwargs): - super(Client, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Client" if identity: self.value = identity @@ -2410,7 +2409,7 @@ class Identity(TwiML): """ TwiML Noun""" def __init__(self, client_identity, **kwargs): - super(Identity, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Identity" self.value = client_identity @@ -2419,7 +2418,7 @@ class Connect(TwiML): """ TwiML Verb""" def __init__(self, **kwargs): - super(Connect, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Connect" def room(self, name, participant_identity=None, **kwargs): @@ -2578,7 +2577,7 @@ class Conversation(TwiML): """ TwiML Noun""" def __init__(self, **kwargs): - super(Conversation, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Conversation" @@ -2586,7 +2585,7 @@ class VirtualAgent(TwiML): """ TwiML Noun""" def __init__(self, **kwargs): - super(VirtualAgent, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "VirtualAgent" def config(self, name=None, value=None, **kwargs): @@ -2618,7 +2617,7 @@ class Config(TwiML): """ TwiML Noun""" def __init__(self, **kwargs): - super(Config, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Config" @@ -2626,7 +2625,7 @@ class Autopilot(TwiML): """ TwiML Noun""" def __init__(self, name, **kwargs): - super(Autopilot, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Autopilot" self.value = name @@ -2635,6 +2634,6 @@ class Room(TwiML): """ TwiML Noun""" def __init__(self, name, **kwargs): - super(Room, self).__init__(**kwargs) + super().__init__(**kwargs) self.name = "Room" self.value = name