Skip to content

Commit

Permalink
[Librarian] Regenerated @ 5eb406c4977c9f6976e6053cb5b581056f541a59
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-dx committed Nov 6, 2023
1 parent 304f89b commit 66591f5
Show file tree
Hide file tree
Showing 8 changed files with 521 additions and 0 deletions.
18 changes: 18 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,24 @@ twilio-python Changelog

Here you can see the full list of changes between each twilio-python release.

[2023-11-06] Version 8.10.1
---------------------------
**Flex**
- Adding `provisioning_status` for Email Manager

**Intelligence**
- Add text-generation operator (for example conversation summary) results to existing OperatorResults collection.

**Messaging**
- Add DELETE support to Tollfree Verification resource

**Serverless**
- Add node18 as a valid Build runtime

**Verify**
- Update Verify TOTP maturity to GA.


[2023-10-19] Version 8.10.0
---------------------------
**Library - Fix**
Expand Down
8 changes: 8 additions & 0 deletions twilio/rest/flex_api/v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
)
from twilio.rest.flex_api.v1.insights_user_roles import InsightsUserRolesList
from twilio.rest.flex_api.v1.interaction import InteractionList
from twilio.rest.flex_api.v1.provisioning_status import ProvisioningStatusList
from twilio.rest.flex_api.v1.web_channel import WebChannelList


Expand Down Expand Up @@ -74,6 +75,7 @@ def __init__(self, domain: Domain):
self._insights_settings_comment: Optional[InsightsSettingsCommentList] = None
self._insights_user_roles: Optional[InsightsUserRolesList] = None
self._interaction: Optional[InteractionList] = None
self._provisioning_status: Optional[ProvisioningStatusList] = None
self._web_channel: Optional[WebChannelList] = None

@property
Expand Down Expand Up @@ -170,6 +172,12 @@ def interaction(self) -> InteractionList:
self._interaction = InteractionList(self)
return self._interaction

@property
def provisioning_status(self) -> ProvisioningStatusList:
if self._provisioning_status is None:
self._provisioning_status = ProvisioningStatusList(self)
return self._provisioning_status

@property
def web_channel(self) -> WebChannelList:
if self._web_channel is None:
Expand Down
174 changes: 174 additions & 0 deletions twilio/rest/flex_api/v1/provisioning_status.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
r"""
This code was generated by
___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
| | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
| |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
Twilio - Flex
This is the public Twilio REST API.
NOTE: This class is auto generated by OpenAPI Generator.
https://openapi-generator.tech
Do not edit the class manually.
"""


from typing import Any, Dict, Optional
from twilio.base.instance_context import InstanceContext
from twilio.base.instance_resource import InstanceResource
from twilio.base.list_resource import ListResource
from twilio.base.version import Version


class ProvisioningStatusInstance(InstanceResource):
class Status(object):
ACTIVE = "active"
IN_PROGRESS = "in-progress"
NOT_CONFIGURED = "not-configured"
FAILED = "failed"

"""
:ivar status:
:ivar url: The absolute URL of the resource.
"""

def __init__(self, version: Version, payload: Dict[str, Any]):
super().__init__(version)

self.status: Optional["ProvisioningStatusInstance.Status"] = payload.get(
"status"
)
self.url: Optional[str] = payload.get("url")

self._context: Optional[ProvisioningStatusContext] = None

@property
def _proxy(self) -> "ProvisioningStatusContext":
"""
Generate an instance context for the instance, the context is capable of
performing various actions. All instance actions are proxied to the context
:returns: ProvisioningStatusContext for this ProvisioningStatusInstance
"""
if self._context is None:
self._context = ProvisioningStatusContext(
self._version,
)
return self._context

def fetch(self) -> "ProvisioningStatusInstance":
"""
Fetch the ProvisioningStatusInstance
:returns: The fetched ProvisioningStatusInstance
"""
return self._proxy.fetch()

async def fetch_async(self) -> "ProvisioningStatusInstance":
"""
Asynchronous coroutine to fetch the ProvisioningStatusInstance
:returns: The fetched ProvisioningStatusInstance
"""
return await self._proxy.fetch_async()

def __repr__(self) -> str:
"""
Provide a friendly representation
:returns: Machine friendly representation
"""

return "<Twilio.FlexApi.V1.ProvisioningStatusInstance>"


class ProvisioningStatusContext(InstanceContext):
def __init__(self, version: Version):
"""
Initialize the ProvisioningStatusContext
:param version: Version that contains the resource
"""
super().__init__(version)

self._uri = "/account/provision/status"

def fetch(self) -> ProvisioningStatusInstance:
"""
Fetch the ProvisioningStatusInstance
:returns: The fetched ProvisioningStatusInstance
"""

payload = self._version.fetch(
method="GET",
uri=self._uri,
)

return ProvisioningStatusInstance(
self._version,
payload,
)

async def fetch_async(self) -> ProvisioningStatusInstance:
"""
Asynchronous coroutine to fetch the ProvisioningStatusInstance
:returns: The fetched ProvisioningStatusInstance
"""

payload = await self._version.fetch_async(
method="GET",
uri=self._uri,
)

return ProvisioningStatusInstance(
self._version,
payload,
)

def __repr__(self) -> str:
"""
Provide a friendly representation
:returns: Machine friendly representation
"""

return "<Twilio.FlexApi.V1.ProvisioningStatusContext>"


class ProvisioningStatusList(ListResource):
def __init__(self, version: Version):
"""
Initialize the ProvisioningStatusList
:param version: Version that contains the resource
"""
super().__init__(version)

def get(self) -> ProvisioningStatusContext:
"""
Constructs a ProvisioningStatusContext
"""
return ProvisioningStatusContext(self._version)

def __call__(self) -> ProvisioningStatusContext:
"""
Constructs a ProvisioningStatusContext
"""
return ProvisioningStatusContext(self._version)

def __repr__(self) -> str:
"""
Provide a friendly representation
:returns: Machine friendly representation
"""
return "<Twilio.FlexApi.V1.ProvisioningStatusList>"
4 changes: 4 additions & 0 deletions twilio/rest/intelligence/v2/transcript/operator_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class OperatorType(object):
:ivar predicted_probability: Percentage of 'matching' class needed to consider a sentence matches.
:ivar label_probabilities: The labels probabilities. This might be available on conversation classify model outputs.
:ivar extract_results: List of text extraction results. This might be available on classify-extract model outputs.
:ivar text_generation_results: Output of a text generation operator for example Conversation Sumamary.
:ivar transcript_sid: A 34 character string that uniquely identifies this Transcript.
:ivar url: The URL of this resource.
"""
Expand Down Expand Up @@ -80,6 +81,9 @@ def __init__(
self.extract_results: Optional[Dict[str, object]] = payload.get(
"extract_results"
)
self.text_generation_results: Optional[Dict[str, object]] = payload.get(
"text_generation_results"
)
self.transcript_sid: Optional[str] = payload.get("transcript_sid")
self.url: Optional[str] = payload.get("url")

Expand Down
42 changes: 42 additions & 0 deletions twilio/rest/messaging/v1/tollfree_verification.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,24 @@ def _proxy(self) -> "TollfreeVerificationContext":
)
return self._context

def delete(self) -> bool:
"""
Deletes the TollfreeVerificationInstance
:returns: True if delete succeeds, False otherwise
"""
return self._proxy.delete()

async def delete_async(self) -> bool:
"""
Asynchronous coroutine that deletes the TollfreeVerificationInstance
:returns: True if delete succeeds, False otherwise
"""
return await self._proxy.delete_async()

def fetch(self) -> "TollfreeVerificationInstance":
"""
Fetch the TollfreeVerificationInstance
Expand Down Expand Up @@ -360,6 +378,30 @@ def __init__(self, version: Version, sid: str):
}
self._uri = "/Tollfree/Verifications/{sid}".format(**self._solution)

def delete(self) -> bool:
"""
Deletes the TollfreeVerificationInstance
:returns: True if delete succeeds, False otherwise
"""
return self._version.delete(
method="DELETE",
uri=self._uri,
)

async def delete_async(self) -> bool:
"""
Asynchronous coroutine that deletes the TollfreeVerificationInstance
:returns: True if delete succeeds, False otherwise
"""
return await self._version.delete_async(
method="DELETE",
uri=self._uri,
)

def fetch(self) -> TollfreeVerificationInstance:
"""
Fetch the TollfreeVerificationInstance
Expand Down
1 change: 1 addition & 0 deletions twilio/rest/serverless/v1/service/build/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class Runtime(object):
NODE12 = "node12"
NODE14 = "node14"
NODE16 = "node16"
NODE18 = "node18"

class Status(object):
BUILDING = "building"
Expand Down
12 changes: 12 additions & 0 deletions twilio/rest/trusthub/v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
from twilio.base.version import Version
from twilio.base.domain import Domain
from twilio.rest.trusthub.v1.compliance_inquiries import ComplianceInquiriesList
from twilio.rest.trusthub.v1.compliance_tollfree_inquiries import (
ComplianceTollfreeInquiriesList,
)
from twilio.rest.trusthub.v1.customer_profiles import CustomerProfilesList
from twilio.rest.trusthub.v1.end_user import EndUserList
from twilio.rest.trusthub.v1.end_user_type import EndUserTypeList
Expand All @@ -34,6 +37,9 @@ def __init__(self, domain: Domain):
"""
super().__init__(domain, "v1")
self._compliance_inquiries: Optional[ComplianceInquiriesList] = None
self._compliance_tollfree_inquiries: Optional[
ComplianceTollfreeInquiriesList
] = None
self._customer_profiles: Optional[CustomerProfilesList] = None
self._end_users: Optional[EndUserList] = None
self._end_user_types: Optional[EndUserTypeList] = None
Expand All @@ -48,6 +54,12 @@ def compliance_inquiries(self) -> ComplianceInquiriesList:
self._compliance_inquiries = ComplianceInquiriesList(self)
return self._compliance_inquiries

@property
def compliance_tollfree_inquiries(self) -> ComplianceTollfreeInquiriesList:
if self._compliance_tollfree_inquiries is None:
self._compliance_tollfree_inquiries = ComplianceTollfreeInquiriesList(self)
return self._compliance_tollfree_inquiries

@property
def customer_profiles(self) -> CustomerProfilesList:
if self._customer_profiles is None:
Expand Down
Loading

0 comments on commit 66591f5

Please sign in to comment.