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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ __pycache__/
# C extensions
*.so

# MacOS Files
.DS_Store

# Distribution / packaging
.Python
env/
Expand Down
6 changes: 3 additions & 3 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ bandwidth/model/forbidden_request.py
bandwidth/model/list_message_direction_enum.py
bandwidth/model/list_message_item.py
bandwidth/model/lookup_request.py
bandwidth/model/lookup_result.py
bandwidth/model/lookup_status.py
bandwidth/model/lookup_status_enum.py
bandwidth/model/lookup_status_result_inner.py
bandwidth/model/machine_detection_configuration.py
bandwidth/model/machine_detection_mode_enum.py
bandwidth/model/media.py
Expand Down Expand Up @@ -118,9 +118,9 @@ docs/ForbiddenRequest.md
docs/ListMessageDirectionEnum.md
docs/ListMessageItem.md
docs/LookupRequest.md
docs/LookupResult.md
docs/LookupStatus.md
docs/LookupStatusEnum.md
docs/LookupStatusResultInner.md
docs/MFAApi.md
docs/MachineDetectionConfiguration.md
docs/MachineDetectionModeEnum.md
Expand Down Expand Up @@ -202,9 +202,9 @@ test/test_forbidden_request.py
test/test_list_message_direction_enum.py
test/test_list_message_item.py
test/test_lookup_request.py
test/test_lookup_result.py
test/test_lookup_status.py
test/test_lookup_status_enum.py
test/test_lookup_status_result_inner.py
test/test_machine_detection_configuration.py
test/test_machine_detection_mode_enum.py
test/test_media.py
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,9 @@ Class | Method | HTTP request | Description
- [ListMessageDirectionEnum](docs/ListMessageDirectionEnum.md)
- [ListMessageItem](docs/ListMessageItem.md)
- [LookupRequest](docs/LookupRequest.md)
- [LookupResult](docs/LookupResult.md)
- [LookupStatus](docs/LookupStatus.md)
- [LookupStatusEnum](docs/LookupStatusEnum.md)
- [LookupStatusResultInner](docs/LookupStatusResultInner.md)
- [MachineDetectionConfiguration](docs/MachineDetectionConfiguration.md)
- [MachineDetectionModeEnum](docs/MachineDetectionModeEnum.md)
- [Media](docs/Media.md)
Expand Down
102 changes: 53 additions & 49 deletions bandwidth.json
Original file line number Diff line number Diff line change
Expand Up @@ -4156,7 +4156,58 @@
"type": "string"
},
"status": {
"type": "string"
"$ref": "#/components/schemas/lookupStatusEnum"
}
}
},
"lookupResult": {
"type": "object",
"description": "Carrier information results for the specified telephone number.",
"properties": {
"Response Code": {
"type": "integer",
"description": "Our vendor's response code.",
"example": 0
},
"Message": {
"type": "string",
"description": "Message associated with the response code.",
"example": "NOERROR"
},
"E.164 Format": {
"type": "string",
"description": "The telephone number in E.164 format.",
"example": "+19195551234"
},
"Formatted": {
"type": "string",
"description": "The formatted version of the telephone number.",
"example": "(919) 555-1234"
},
"Country": {
"type": "string",
"description": "The country of the telephone number.",
"example": "US"
},
"Line Type": {
"type": "string",
"description": "The line type of the telephone number.",
"example": "Mobile"
},
"Line Provider": {
"type": "string",
"description": "The messaging service provider of the telephone number.",
"example": "Verizon Wireless"
},
"Mobile Country Code": {
"type": "string",
"description": "The first half of the Home Network Identity (HNI).",
"example": "310"
},
"Mobile Network Code": {
"type": "string",
"description": "The second half of the HNI.",
"example": "010"
}
}
},
Expand All @@ -4176,54 +4227,7 @@
"type": "array",
"description": "The carrier information results for the specified telephone number.",
"items": {
"type": "object",
"properties": {
"Response Code": {
"type": "integer",
"description": "Our vendor's response code.",
"example": 0
},
"Message": {
"type": "string",
"description": "Message associated with the response code.",
"example": "NOERROR"
},
"E.164 Format": {
"type": "string",
"description": "The telephone number in E.164 format.",
"example": "+19195551234"
},
"Formatted": {
"type": "string",
"description": "The formatted version of the telephone number.",
"example": "(919) 555-1234"
},
"Country": {
"type": "string",
"description": "The country of the telephone number.",
"example": "US"
},
"Line Type": {
"type": "string",
"description": "The line type of the telephone number.",
"example": "Mobile"
},
"Line Provider": {
"type": "string",
"description": "The messaging service provider of the telephone number.",
"example": "Verizon Wireless"
},
"Mobile Country Code": {
"type": "string",
"description": "The first half of the Home Network Identity (HNI).",
"example": "310"
},
"Mobile Network Code": {
"type": "string",
"description": "The second half of the HNI.",
"example": "010"
}
}
"$ref": "#/components/schemas/lookupResult"
}
},
"failedTelephoneNumbers": {
Expand Down
12 changes: 9 additions & 3 deletions bandwidth/model/create_lookup_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
from bandwidth.exceptions import ApiAttributeError


def lazy_import():
from bandwidth.model.lookup_status_enum import LookupStatusEnum
globals()['LookupStatusEnum'] = LookupStatusEnum


class CreateLookupResponse(ModelNormal):
"""NOTE: This class is auto generated by OpenAPI Generator.
Expand Down Expand Up @@ -67,6 +71,7 @@ def additional_properties_type():
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
"""
lazy_import()
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501

_nullable = False
Expand All @@ -81,9 +86,10 @@ def openapi_types():
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
lazy_import()
return {
'request_id': (str,), # noqa: E501
'status': (str,), # noqa: E501
'status': (LookupStatusEnum,), # noqa: E501
}

@cached_property
Expand Down Expand Up @@ -138,7 +144,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
request_id (str): [optional] # noqa: E501
status (str): [optional] # noqa: E501
status (LookupStatusEnum): [optional] # noqa: E501
"""

_check_type = kwargs.pop('_check_type', True)
Expand Down Expand Up @@ -225,7 +231,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
request_id (str): [optional] # noqa: E501
status (str): [optional] # noqa: E501
status (LookupStatusEnum): [optional] # noqa: E501
"""

_check_type = kwargs.pop('_check_type', True)
Expand Down
Loading