Skip to content

Commit

Permalink
Generate SDK with OpenAPI Generator Version 7.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DX-Bandwidth committed Jul 30, 2024
1 parent 1bae9a5 commit 02b8ce7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions bandwidth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3254,6 +3254,7 @@ components:
$ref: '#/components/schemas/callTranscriptionMetadata'
example:
- transcriptionId: t-3f758f24-c7a2fc78-7c91-401a-8b2e-e542f9c40d6b
transcriptionName: live_transcription
transcriptionUrl: >-
https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-fef240ff-5cfc9091-8069-4863-a8c0-a4dcbbf1f1a4/transcriptions/t-3f758f24-c7a2fc78-7c91-401a-8b2e-e542f9c40d6b
callTranscriptionMetadata:
Expand All @@ -3263,6 +3264,12 @@ components:
type: string
description: The programmable voice API transcription ID.
example: t-3f758f24-c7a2fc78-7c91-401a-8b2e-e542f9c40d6b
transcriptionName:
type: string
description: >-
The programmable voice API transcription name. This name could be
provided by the user when creating the transcription.
example: live_transcription
transcriptionUrl:
type: string
description: >-
Expand Down
4 changes: 3 additions & 1 deletion bandwidth/models/call_transcription_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ class CallTranscriptionMetadata(BaseModel):
CallTranscriptionMetadata
""" # noqa: E501
transcription_id: Optional[StrictStr] = Field(default=None, description="The programmable voice API transcription ID.", alias="transcriptionId")
transcription_name: Optional[StrictStr] = Field(default=None, description="The programmable voice API transcription name. This name could be provided by the user when creating the transcription.", alias="transcriptionName")
transcription_url: Optional[StrictStr] = Field(default=None, description="A URL that may be used to retrieve the transcription itself. This points to the [Get Call Transcription](/apis/voice/#operation/getCallTranscription) endpoint.", alias="transcriptionUrl")
additional_properties: Dict[str, Any] = {}
__properties: ClassVar[List[str]] = ["transcriptionId", "transcriptionUrl"]
__properties: ClassVar[List[str]] = ["transcriptionId", "transcriptionName", "transcriptionUrl"]

model_config = ConfigDict(
populate_by_name=True,
Expand Down Expand Up @@ -91,6 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:

_obj = cls.model_validate({
"transcriptionId": obj.get("transcriptionId"),
"transcriptionName": obj.get("transcriptionName"),
"transcriptionUrl": obj.get("transcriptionUrl")
})
# store additional fields in additional_properties
Expand Down
1 change: 1 addition & 0 deletions docs/CallTranscriptionMetadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**transcription_id** | **str** | The programmable voice API transcription ID. | [optional]
**transcription_name** | **str** | The programmable voice API transcription name. This name could be provided by the user when creating the transcription. | [optional]
**transcription_url** | **str** | A URL that may be used to retrieve the transcription itself. This points to the [Get Call Transcription](/apis/voice/#operation/getCallTranscription) endpoint. | [optional]

## Example
Expand Down

0 comments on commit 02b8ce7

Please sign in to comment.