Skip to content

Commit 3ccc85d

Browse files
yoshi-automationsofisl
authored andcommitted
feat(transcoder): update the API
#### transcoder:v1 The following keys were added: - schemas.Input.properties.attributes.$ref - schemas.Input.properties.attributes.description - schemas.InputAttributes.description - schemas.InputAttributes.id - schemas.InputAttributes.properties.trackDefinitions.description - schemas.InputAttributes.properties.trackDefinitions.items.$ref - schemas.InputAttributes.properties.trackDefinitions.type - schemas.InputAttributes.type - schemas.TrackDefinition.description - schemas.TrackDefinition.id - schemas.TrackDefinition.properties.detectLanguages.description - schemas.TrackDefinition.properties.detectLanguages.type - schemas.TrackDefinition.properties.detectedLanguages.description - schemas.TrackDefinition.properties.detectedLanguages.items.type - schemas.TrackDefinition.properties.detectedLanguages.readOnly - schemas.TrackDefinition.properties.detectedLanguages.type - schemas.TrackDefinition.properties.inputTrack.description - schemas.TrackDefinition.properties.inputTrack.format - schemas.TrackDefinition.properties.inputTrack.type - schemas.TrackDefinition.properties.languages.description - schemas.TrackDefinition.properties.languages.items.type - schemas.TrackDefinition.properties.languages.type - schemas.TrackDefinition.type
1 parent 4dd9e44 commit 3ccc85d

File tree

2 files changed

+84
-1
lines changed

2 files changed

+84
-1
lines changed

discovery/transcoder-v1.json

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@
385385
}
386386
}
387387
},
388-
"revision": "20250630",
388+
"revision": "20250723",
389389
"rootUrl": "https://transcoder.googleapis.com/",
390390
"schemas": {
391391
"AdBreak": {
@@ -1155,6 +1155,10 @@
11551155
"description": "Input asset.",
11561156
"id": "Input",
11571157
"properties": {
1158+
"attributes": {
1159+
"$ref": "InputAttributes",
1160+
"description": "Optional. Input Attributes."
1161+
},
11581162
"key": {
11591163
"description": "A unique key for this input. Must be specified when using advanced mapping and edit lists.",
11601164
"type": "string"
@@ -1170,6 +1174,20 @@
11701174
},
11711175
"type": "object"
11721176
},
1177+
"InputAttributes": {
1178+
"description": "Input attributes that provide additional information about the input asset.",
1179+
"id": "InputAttributes",
1180+
"properties": {
1181+
"trackDefinitions": {
1182+
"description": "Optional. A list of track definitions for the input asset.",
1183+
"items": {
1184+
"$ref": "TrackDefinition"
1185+
},
1186+
"type": "array"
1187+
}
1188+
},
1189+
"type": "object"
1190+
},
11731191
"Job": {
11741192
"description": "Transcoding job resource.",
11751193
"id": "Job",
@@ -1814,6 +1832,37 @@
18141832
},
18151833
"type": "object"
18161834
},
1835+
"TrackDefinition": {
1836+
"description": "Track definition for the input asset.",
1837+
"id": "TrackDefinition",
1838+
"properties": {
1839+
"detectLanguages": {
1840+
"description": "Optional. Whether to automatically detect the languages present in the track. If true, the system will attempt to identify all the languages present in the track and populate the languages field.",
1841+
"type": "boolean"
1842+
},
1843+
"detectedLanguages": {
1844+
"description": "Output only. A list of languages detected in the input asset, represented by a BCP 47 language code, such as \"en-US\" or \"sr-Latn\". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. This field is only populated if the detect_languages field is set to true.",
1845+
"items": {
1846+
"type": "string"
1847+
},
1848+
"readOnly": true,
1849+
"type": "array"
1850+
},
1851+
"inputTrack": {
1852+
"description": "The input track.",
1853+
"format": "int32",
1854+
"type": "integer"
1855+
},
1856+
"languages": {
1857+
"description": "Optional. A list of languages spoken in the input asset, represented by a BCP 47 language code, such as \"en-US\" or \"sr-Latn\". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.",
1858+
"items": {
1859+
"type": "string"
1860+
},
1861+
"type": "array"
1862+
}
1863+
},
1864+
"type": "object"
1865+
},
18171866
"VideoStream": {
18181867
"description": "Video stream resource.",
18191868
"id": "VideoStream",

src/apis/transcoder/v1.ts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -731,6 +731,10 @@ export namespace transcoder_v1 {
731731
* Input asset.
732732
*/
733733
export interface Schema$Input {
734+
/**
735+
* Optional. Input Attributes.
736+
*/
737+
attributes?: Schema$InputAttributes;
734738
/**
735739
* A unique key for this input. Must be specified when using advanced mapping and edit lists.
736740
*/
@@ -744,6 +748,15 @@ export namespace transcoder_v1 {
744748
*/
745749
uri?: string | null;
746750
}
751+
/**
752+
* Input attributes that provide additional information about the input asset.
753+
*/
754+
export interface Schema$InputAttributes {
755+
/**
756+
* Optional. A list of track definitions for the input asset.
757+
*/
758+
trackDefinitions?: Schema$TrackDefinition[];
759+
}
747760
/**
748761
* Transcoding job resource.
749762
*/
@@ -1208,6 +1221,27 @@ export namespace transcoder_v1 {
12081221
*/
12091222
mapping?: Schema$TextMapping[];
12101223
}
1224+
/**
1225+
* Track definition for the input asset.
1226+
*/
1227+
export interface Schema$TrackDefinition {
1228+
/**
1229+
* Output only. A list of languages detected in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. This field is only populated if the detect_languages field is set to true.
1230+
*/
1231+
detectedLanguages?: string[] | null;
1232+
/**
1233+
* Optional. Whether to automatically detect the languages present in the track. If true, the system will attempt to identify all the languages present in the track and populate the languages field.
1234+
*/
1235+
detectLanguages?: boolean | null;
1236+
/**
1237+
* The input track.
1238+
*/
1239+
inputTrack?: number | null;
1240+
/**
1241+
* Optional. A list of languages spoken in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
1242+
*/
1243+
languages?: string[] | null;
1244+
}
12111245
/**
12121246
* Video stream resource.
12131247
*/

0 commit comments

Comments
 (0)