@googleapis/transcoder 4.0.5 → 6.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/v1.ts CHANGED
@@ -23,7 +23,7 @@ import {
23
23
  Compute,
24
24
  UserRefreshClient,
25
25
  BaseExternalAccountClient,
26
- GaxiosPromise,
26
+ GaxiosResponseWithHTTP2,
27
27
  GoogleConfigurable,
28
28
  createAPIRequest,
29
29
  MethodOptions,
@@ -1342,6 +1342,88 @@ export namespace transcoder_v1 {
1342
1342
 
1343
1343
  /**
1344
1344
  * Creates a job in the specified region.
1345
+ * @example
1346
+ * ```js
1347
+ * // Before running the sample:
1348
+ * // - Enable the API at:
1349
+ * // https://console.developers.google.com/apis/api/transcoder.googleapis.com
1350
+ * // - Login into gcloud by running:
1351
+ * // ```sh
1352
+ * // $ gcloud auth application-default login
1353
+ * // ```
1354
+ * // - Install the npm module by running:
1355
+ * // ```sh
1356
+ * // $ npm install googleapis
1357
+ * // ```
1358
+ *
1359
+ * const {google} = require('googleapis');
1360
+ * const transcoder = google.transcoder('v1');
1361
+ *
1362
+ * async function main() {
1363
+ * const auth = new google.auth.GoogleAuth({
1364
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1365
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
1366
+ * });
1367
+ *
1368
+ * // Acquire an auth client, and bind it to all future calls
1369
+ * const authClient = await auth.getClient();
1370
+ * google.options({auth: authClient});
1371
+ *
1372
+ * // Do the magic
1373
+ * const res = await transcoder.projects.locations.jobs.create({
1374
+ * // Required. The parent location to create and process this job. Format: `projects/{project\}/locations/{location\}`
1375
+ * parent: 'projects/my-project/locations/my-location',
1376
+ *
1377
+ * // Request body metadata
1378
+ * requestBody: {
1379
+ * // request body parameters
1380
+ * // {
1381
+ * // "batchModePriority": 0,
1382
+ * // "config": {},
1383
+ * // "createTime": "my_createTime",
1384
+ * // "endTime": "my_endTime",
1385
+ * // "error": {},
1386
+ * // "inputUri": "my_inputUri",
1387
+ * // "labels": {},
1388
+ * // "mode": "my_mode",
1389
+ * // "name": "my_name",
1390
+ * // "optimization": "my_optimization",
1391
+ * // "outputUri": "my_outputUri",
1392
+ * // "startTime": "my_startTime",
1393
+ * // "state": "my_state",
1394
+ * // "templateId": "my_templateId",
1395
+ * // "ttlAfterCompletionDays": 0
1396
+ * // }
1397
+ * },
1398
+ * });
1399
+ * console.log(res.data);
1400
+ *
1401
+ * // Example response
1402
+ * // {
1403
+ * // "batchModePriority": 0,
1404
+ * // "config": {},
1405
+ * // "createTime": "my_createTime",
1406
+ * // "endTime": "my_endTime",
1407
+ * // "error": {},
1408
+ * // "inputUri": "my_inputUri",
1409
+ * // "labels": {},
1410
+ * // "mode": "my_mode",
1411
+ * // "name": "my_name",
1412
+ * // "optimization": "my_optimization",
1413
+ * // "outputUri": "my_outputUri",
1414
+ * // "startTime": "my_startTime",
1415
+ * // "state": "my_state",
1416
+ * // "templateId": "my_templateId",
1417
+ * // "ttlAfterCompletionDays": 0
1418
+ * // }
1419
+ * }
1420
+ *
1421
+ * main().catch(e => {
1422
+ * console.error(e);
1423
+ * throw e;
1424
+ * });
1425
+ *
1426
+ * ```
1345
1427
  *
1346
1428
  * @param params - Parameters for request
1347
1429
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1351,11 +1433,11 @@ export namespace transcoder_v1 {
1351
1433
  create(
1352
1434
  params: Params$Resource$Projects$Locations$Jobs$Create,
1353
1435
  options: StreamMethodOptions
1354
- ): GaxiosPromise<Readable>;
1436
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1355
1437
  create(
1356
1438
  params?: Params$Resource$Projects$Locations$Jobs$Create,
1357
1439
  options?: MethodOptions
1358
- ): GaxiosPromise<Schema$Job>;
1440
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Job>>;
1359
1441
  create(
1360
1442
  params: Params$Resource$Projects$Locations$Jobs$Create,
1361
1443
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -1384,7 +1466,10 @@ export namespace transcoder_v1 {
1384
1466
  callback?:
1385
1467
  | BodyResponseCallback<Schema$Job>
1386
1468
  | BodyResponseCallback<Readable>
1387
- ): void | GaxiosPromise<Schema$Job> | GaxiosPromise<Readable> {
1469
+ ):
1470
+ | void
1471
+ | Promise<GaxiosResponseWithHTTP2<Schema$Job>>
1472
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1388
1473
  let params = (paramsOrCallback ||
1389
1474
  {}) as Params$Resource$Projects$Locations$Jobs$Create;
1390
1475
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -1427,6 +1512,52 @@ export namespace transcoder_v1 {
1427
1512
 
1428
1513
  /**
1429
1514
  * Deletes a job.
1515
+ * @example
1516
+ * ```js
1517
+ * // Before running the sample:
1518
+ * // - Enable the API at:
1519
+ * // https://console.developers.google.com/apis/api/transcoder.googleapis.com
1520
+ * // - Login into gcloud by running:
1521
+ * // ```sh
1522
+ * // $ gcloud auth application-default login
1523
+ * // ```
1524
+ * // - Install the npm module by running:
1525
+ * // ```sh
1526
+ * // $ npm install googleapis
1527
+ * // ```
1528
+ *
1529
+ * const {google} = require('googleapis');
1530
+ * const transcoder = google.transcoder('v1');
1531
+ *
1532
+ * async function main() {
1533
+ * const auth = new google.auth.GoogleAuth({
1534
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1535
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
1536
+ * });
1537
+ *
1538
+ * // Acquire an auth client, and bind it to all future calls
1539
+ * const authClient = await auth.getClient();
1540
+ * google.options({auth: authClient});
1541
+ *
1542
+ * // Do the magic
1543
+ * const res = await transcoder.projects.locations.jobs.delete({
1544
+ * // If set to true, and the job is not found, the request will succeed but no action will be taken on the server.
1545
+ * allowMissing: 'placeholder-value',
1546
+ * // Required. The name of the job to delete. Format: `projects/{project\}/locations/{location\}/jobs/{job\}`
1547
+ * name: 'projects/my-project/locations/my-location/jobs/my-job',
1548
+ * });
1549
+ * console.log(res.data);
1550
+ *
1551
+ * // Example response
1552
+ * // {}
1553
+ * }
1554
+ *
1555
+ * main().catch(e => {
1556
+ * console.error(e);
1557
+ * throw e;
1558
+ * });
1559
+ *
1560
+ * ```
1430
1561
  *
1431
1562
  * @param params - Parameters for request
1432
1563
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1436,11 +1567,11 @@ export namespace transcoder_v1 {
1436
1567
  delete(
1437
1568
  params: Params$Resource$Projects$Locations$Jobs$Delete,
1438
1569
  options: StreamMethodOptions
1439
- ): GaxiosPromise<Readable>;
1570
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1440
1571
  delete(
1441
1572
  params?: Params$Resource$Projects$Locations$Jobs$Delete,
1442
1573
  options?: MethodOptions
1443
- ): GaxiosPromise<Schema$Empty>;
1574
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
1444
1575
  delete(
1445
1576
  params: Params$Resource$Projects$Locations$Jobs$Delete,
1446
1577
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -1469,7 +1600,10 @@ export namespace transcoder_v1 {
1469
1600
  callback?:
1470
1601
  | BodyResponseCallback<Schema$Empty>
1471
1602
  | BodyResponseCallback<Readable>
1472
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
1603
+ ):
1604
+ | void
1605
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
1606
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1473
1607
  let params = (paramsOrCallback ||
1474
1608
  {}) as Params$Resource$Projects$Locations$Jobs$Delete;
1475
1609
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -1512,6 +1646,66 @@ export namespace transcoder_v1 {
1512
1646
 
1513
1647
  /**
1514
1648
  * Returns the job data.
1649
+ * @example
1650
+ * ```js
1651
+ * // Before running the sample:
1652
+ * // - Enable the API at:
1653
+ * // https://console.developers.google.com/apis/api/transcoder.googleapis.com
1654
+ * // - Login into gcloud by running:
1655
+ * // ```sh
1656
+ * // $ gcloud auth application-default login
1657
+ * // ```
1658
+ * // - Install the npm module by running:
1659
+ * // ```sh
1660
+ * // $ npm install googleapis
1661
+ * // ```
1662
+ *
1663
+ * const {google} = require('googleapis');
1664
+ * const transcoder = google.transcoder('v1');
1665
+ *
1666
+ * async function main() {
1667
+ * const auth = new google.auth.GoogleAuth({
1668
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1669
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
1670
+ * });
1671
+ *
1672
+ * // Acquire an auth client, and bind it to all future calls
1673
+ * const authClient = await auth.getClient();
1674
+ * google.options({auth: authClient});
1675
+ *
1676
+ * // Do the magic
1677
+ * const res = await transcoder.projects.locations.jobs.get({
1678
+ * // Required. The name of the job to retrieve. Format: `projects/{project\}/locations/{location\}/jobs/{job\}`
1679
+ * name: 'projects/my-project/locations/my-location/jobs/my-job',
1680
+ * });
1681
+ * console.log(res.data);
1682
+ *
1683
+ * // Example response
1684
+ * // {
1685
+ * // "batchModePriority": 0,
1686
+ * // "config": {},
1687
+ * // "createTime": "my_createTime",
1688
+ * // "endTime": "my_endTime",
1689
+ * // "error": {},
1690
+ * // "inputUri": "my_inputUri",
1691
+ * // "labels": {},
1692
+ * // "mode": "my_mode",
1693
+ * // "name": "my_name",
1694
+ * // "optimization": "my_optimization",
1695
+ * // "outputUri": "my_outputUri",
1696
+ * // "startTime": "my_startTime",
1697
+ * // "state": "my_state",
1698
+ * // "templateId": "my_templateId",
1699
+ * // "ttlAfterCompletionDays": 0
1700
+ * // }
1701
+ * }
1702
+ *
1703
+ * main().catch(e => {
1704
+ * console.error(e);
1705
+ * throw e;
1706
+ * });
1707
+ *
1708
+ * ```
1515
1709
  *
1516
1710
  * @param params - Parameters for request
1517
1711
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1521,11 +1715,11 @@ export namespace transcoder_v1 {
1521
1715
  get(
1522
1716
  params: Params$Resource$Projects$Locations$Jobs$Get,
1523
1717
  options: StreamMethodOptions
1524
- ): GaxiosPromise<Readable>;
1718
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1525
1719
  get(
1526
1720
  params?: Params$Resource$Projects$Locations$Jobs$Get,
1527
1721
  options?: MethodOptions
1528
- ): GaxiosPromise<Schema$Job>;
1722
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Job>>;
1529
1723
  get(
1530
1724
  params: Params$Resource$Projects$Locations$Jobs$Get,
1531
1725
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -1554,7 +1748,10 @@ export namespace transcoder_v1 {
1554
1748
  callback?:
1555
1749
  | BodyResponseCallback<Schema$Job>
1556
1750
  | BodyResponseCallback<Readable>
1557
- ): void | GaxiosPromise<Schema$Job> | GaxiosPromise<Readable> {
1751
+ ):
1752
+ | void
1753
+ | Promise<GaxiosResponseWithHTTP2<Schema$Job>>
1754
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1558
1755
  let params = (paramsOrCallback ||
1559
1756
  {}) as Params$Resource$Projects$Locations$Jobs$Get;
1560
1757
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -1597,6 +1794,62 @@ export namespace transcoder_v1 {
1597
1794
 
1598
1795
  /**
1599
1796
  * Lists jobs in the specified region.
1797
+ * @example
1798
+ * ```js
1799
+ * // Before running the sample:
1800
+ * // - Enable the API at:
1801
+ * // https://console.developers.google.com/apis/api/transcoder.googleapis.com
1802
+ * // - Login into gcloud by running:
1803
+ * // ```sh
1804
+ * // $ gcloud auth application-default login
1805
+ * // ```
1806
+ * // - Install the npm module by running:
1807
+ * // ```sh
1808
+ * // $ npm install googleapis
1809
+ * // ```
1810
+ *
1811
+ * const {google} = require('googleapis');
1812
+ * const transcoder = google.transcoder('v1');
1813
+ *
1814
+ * async function main() {
1815
+ * const auth = new google.auth.GoogleAuth({
1816
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1817
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
1818
+ * });
1819
+ *
1820
+ * // Acquire an auth client, and bind it to all future calls
1821
+ * const authClient = await auth.getClient();
1822
+ * google.options({auth: authClient});
1823
+ *
1824
+ * // Do the magic
1825
+ * const res = await transcoder.projects.locations.jobs.list({
1826
+ * // The filter expression, following the syntax outlined in https://google.aip.dev/160.
1827
+ * filter: 'placeholder-value',
1828
+ * // One or more fields to compare and use to sort the output. See https://google.aip.dev/132#ordering.
1829
+ * orderBy: 'placeholder-value',
1830
+ * // The maximum number of items to return.
1831
+ * pageSize: 'placeholder-value',
1832
+ * // The `next_page_token` value returned from a previous List request, if any.
1833
+ * pageToken: 'placeholder-value',
1834
+ * // Required. Format: `projects/{project\}/locations/{location\}`
1835
+ * parent: 'projects/my-project/locations/my-location',
1836
+ * });
1837
+ * console.log(res.data);
1838
+ *
1839
+ * // Example response
1840
+ * // {
1841
+ * // "jobs": [],
1842
+ * // "nextPageToken": "my_nextPageToken",
1843
+ * // "unreachable": []
1844
+ * // }
1845
+ * }
1846
+ *
1847
+ * main().catch(e => {
1848
+ * console.error(e);
1849
+ * throw e;
1850
+ * });
1851
+ *
1852
+ * ```
1600
1853
  *
1601
1854
  * @param params - Parameters for request
1602
1855
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1606,11 +1859,11 @@ export namespace transcoder_v1 {
1606
1859
  list(
1607
1860
  params: Params$Resource$Projects$Locations$Jobs$List,
1608
1861
  options: StreamMethodOptions
1609
- ): GaxiosPromise<Readable>;
1862
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1610
1863
  list(
1611
1864
  params?: Params$Resource$Projects$Locations$Jobs$List,
1612
1865
  options?: MethodOptions
1613
- ): GaxiosPromise<Schema$ListJobsResponse>;
1866
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListJobsResponse>>;
1614
1867
  list(
1615
1868
  params: Params$Resource$Projects$Locations$Jobs$List,
1616
1869
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -1639,7 +1892,10 @@ export namespace transcoder_v1 {
1639
1892
  callback?:
1640
1893
  | BodyResponseCallback<Schema$ListJobsResponse>
1641
1894
  | BodyResponseCallback<Readable>
1642
- ): void | GaxiosPromise<Schema$ListJobsResponse> | GaxiosPromise<Readable> {
1895
+ ):
1896
+ | void
1897
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListJobsResponse>>
1898
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1643
1899
  let params = (paramsOrCallback ||
1644
1900
  {}) as Params$Resource$Projects$Locations$Jobs$List;
1645
1901
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -1743,6 +1999,66 @@ export namespace transcoder_v1 {
1743
1999
 
1744
2000
  /**
1745
2001
  * Creates a job template in the specified region.
2002
+ * @example
2003
+ * ```js
2004
+ * // Before running the sample:
2005
+ * // - Enable the API at:
2006
+ * // https://console.developers.google.com/apis/api/transcoder.googleapis.com
2007
+ * // - Login into gcloud by running:
2008
+ * // ```sh
2009
+ * // $ gcloud auth application-default login
2010
+ * // ```
2011
+ * // - Install the npm module by running:
2012
+ * // ```sh
2013
+ * // $ npm install googleapis
2014
+ * // ```
2015
+ *
2016
+ * const {google} = require('googleapis');
2017
+ * const transcoder = google.transcoder('v1');
2018
+ *
2019
+ * async function main() {
2020
+ * const auth = new google.auth.GoogleAuth({
2021
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2022
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
2023
+ * });
2024
+ *
2025
+ * // Acquire an auth client, and bind it to all future calls
2026
+ * const authClient = await auth.getClient();
2027
+ * google.options({auth: authClient});
2028
+ *
2029
+ * // Do the magic
2030
+ * const res = await transcoder.projects.locations.jobTemplates.create({
2031
+ * // Required. The ID to use for the job template, which will become the final component of the job template's resource name. This value should be 4-63 characters, and valid characters must match the regular expression `a-zA-Z*`.
2032
+ * jobTemplateId: 'placeholder-value',
2033
+ * // Required. The parent location to create this job template. Format: `projects/{project\}/locations/{location\}`
2034
+ * parent: 'projects/my-project/locations/my-location',
2035
+ *
2036
+ * // Request body metadata
2037
+ * requestBody: {
2038
+ * // request body parameters
2039
+ * // {
2040
+ * // "config": {},
2041
+ * // "labels": {},
2042
+ * // "name": "my_name"
2043
+ * // }
2044
+ * },
2045
+ * });
2046
+ * console.log(res.data);
2047
+ *
2048
+ * // Example response
2049
+ * // {
2050
+ * // "config": {},
2051
+ * // "labels": {},
2052
+ * // "name": "my_name"
2053
+ * // }
2054
+ * }
2055
+ *
2056
+ * main().catch(e => {
2057
+ * console.error(e);
2058
+ * throw e;
2059
+ * });
2060
+ *
2061
+ * ```
1746
2062
  *
1747
2063
  * @param params - Parameters for request
1748
2064
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1752,11 +2068,11 @@ export namespace transcoder_v1 {
1752
2068
  create(
1753
2069
  params: Params$Resource$Projects$Locations$Jobtemplates$Create,
1754
2070
  options: StreamMethodOptions
1755
- ): GaxiosPromise<Readable>;
2071
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1756
2072
  create(
1757
2073
  params?: Params$Resource$Projects$Locations$Jobtemplates$Create,
1758
2074
  options?: MethodOptions
1759
- ): GaxiosPromise<Schema$JobTemplate>;
2075
+ ): Promise<GaxiosResponseWithHTTP2<Schema$JobTemplate>>;
1760
2076
  create(
1761
2077
  params: Params$Resource$Projects$Locations$Jobtemplates$Create,
1762
2078
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -1785,7 +2101,10 @@ export namespace transcoder_v1 {
1785
2101
  callback?:
1786
2102
  | BodyResponseCallback<Schema$JobTemplate>
1787
2103
  | BodyResponseCallback<Readable>
1788
- ): void | GaxiosPromise<Schema$JobTemplate> | GaxiosPromise<Readable> {
2104
+ ):
2105
+ | void
2106
+ | Promise<GaxiosResponseWithHTTP2<Schema$JobTemplate>>
2107
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1789
2108
  let params = (paramsOrCallback ||
1790
2109
  {}) as Params$Resource$Projects$Locations$Jobtemplates$Create;
1791
2110
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -1831,6 +2150,52 @@ export namespace transcoder_v1 {
1831
2150
 
1832
2151
  /**
1833
2152
  * Deletes a job template.
2153
+ * @example
2154
+ * ```js
2155
+ * // Before running the sample:
2156
+ * // - Enable the API at:
2157
+ * // https://console.developers.google.com/apis/api/transcoder.googleapis.com
2158
+ * // - Login into gcloud by running:
2159
+ * // ```sh
2160
+ * // $ gcloud auth application-default login
2161
+ * // ```
2162
+ * // - Install the npm module by running:
2163
+ * // ```sh
2164
+ * // $ npm install googleapis
2165
+ * // ```
2166
+ *
2167
+ * const {google} = require('googleapis');
2168
+ * const transcoder = google.transcoder('v1');
2169
+ *
2170
+ * async function main() {
2171
+ * const auth = new google.auth.GoogleAuth({
2172
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2173
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
2174
+ * });
2175
+ *
2176
+ * // Acquire an auth client, and bind it to all future calls
2177
+ * const authClient = await auth.getClient();
2178
+ * google.options({auth: authClient});
2179
+ *
2180
+ * // Do the magic
2181
+ * const res = await transcoder.projects.locations.jobTemplates.delete({
2182
+ * // If set to true, and the job template is not found, the request will succeed but no action will be taken on the server.
2183
+ * allowMissing: 'placeholder-value',
2184
+ * // Required. The name of the job template to delete. `projects/{project\}/locations/{location\}/jobTemplates/{job_template\}`
2185
+ * name: 'projects/my-project/locations/my-location/jobTemplates/my-jobTemplate',
2186
+ * });
2187
+ * console.log(res.data);
2188
+ *
2189
+ * // Example response
2190
+ * // {}
2191
+ * }
2192
+ *
2193
+ * main().catch(e => {
2194
+ * console.error(e);
2195
+ * throw e;
2196
+ * });
2197
+ *
2198
+ * ```
1834
2199
  *
1835
2200
  * @param params - Parameters for request
1836
2201
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1840,11 +2205,11 @@ export namespace transcoder_v1 {
1840
2205
  delete(
1841
2206
  params: Params$Resource$Projects$Locations$Jobtemplates$Delete,
1842
2207
  options: StreamMethodOptions
1843
- ): GaxiosPromise<Readable>;
2208
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1844
2209
  delete(
1845
2210
  params?: Params$Resource$Projects$Locations$Jobtemplates$Delete,
1846
2211
  options?: MethodOptions
1847
- ): GaxiosPromise<Schema$Empty>;
2212
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
1848
2213
  delete(
1849
2214
  params: Params$Resource$Projects$Locations$Jobtemplates$Delete,
1850
2215
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -1873,7 +2238,10 @@ export namespace transcoder_v1 {
1873
2238
  callback?:
1874
2239
  | BodyResponseCallback<Schema$Empty>
1875
2240
  | BodyResponseCallback<Readable>
1876
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
2241
+ ):
2242
+ | void
2243
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
2244
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1877
2245
  let params = (paramsOrCallback ||
1878
2246
  {}) as Params$Resource$Projects$Locations$Jobtemplates$Delete;
1879
2247
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -1916,6 +2284,54 @@ export namespace transcoder_v1 {
1916
2284
 
1917
2285
  /**
1918
2286
  * Returns the job template data.
2287
+ * @example
2288
+ * ```js
2289
+ * // Before running the sample:
2290
+ * // - Enable the API at:
2291
+ * // https://console.developers.google.com/apis/api/transcoder.googleapis.com
2292
+ * // - Login into gcloud by running:
2293
+ * // ```sh
2294
+ * // $ gcloud auth application-default login
2295
+ * // ```
2296
+ * // - Install the npm module by running:
2297
+ * // ```sh
2298
+ * // $ npm install googleapis
2299
+ * // ```
2300
+ *
2301
+ * const {google} = require('googleapis');
2302
+ * const transcoder = google.transcoder('v1');
2303
+ *
2304
+ * async function main() {
2305
+ * const auth = new google.auth.GoogleAuth({
2306
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2307
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
2308
+ * });
2309
+ *
2310
+ * // Acquire an auth client, and bind it to all future calls
2311
+ * const authClient = await auth.getClient();
2312
+ * google.options({auth: authClient});
2313
+ *
2314
+ * // Do the magic
2315
+ * const res = await transcoder.projects.locations.jobTemplates.get({
2316
+ * // Required. The name of the job template to retrieve. Format: `projects/{project\}/locations/{location\}/jobTemplates/{job_template\}`
2317
+ * name: 'projects/my-project/locations/my-location/jobTemplates/my-jobTemplate',
2318
+ * });
2319
+ * console.log(res.data);
2320
+ *
2321
+ * // Example response
2322
+ * // {
2323
+ * // "config": {},
2324
+ * // "labels": {},
2325
+ * // "name": "my_name"
2326
+ * // }
2327
+ * }
2328
+ *
2329
+ * main().catch(e => {
2330
+ * console.error(e);
2331
+ * throw e;
2332
+ * });
2333
+ *
2334
+ * ```
1919
2335
  *
1920
2336
  * @param params - Parameters for request
1921
2337
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1925,11 +2341,11 @@ export namespace transcoder_v1 {
1925
2341
  get(
1926
2342
  params: Params$Resource$Projects$Locations$Jobtemplates$Get,
1927
2343
  options: StreamMethodOptions
1928
- ): GaxiosPromise<Readable>;
2344
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1929
2345
  get(
1930
2346
  params?: Params$Resource$Projects$Locations$Jobtemplates$Get,
1931
2347
  options?: MethodOptions
1932
- ): GaxiosPromise<Schema$JobTemplate>;
2348
+ ): Promise<GaxiosResponseWithHTTP2<Schema$JobTemplate>>;
1933
2349
  get(
1934
2350
  params: Params$Resource$Projects$Locations$Jobtemplates$Get,
1935
2351
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -1958,7 +2374,10 @@ export namespace transcoder_v1 {
1958
2374
  callback?:
1959
2375
  | BodyResponseCallback<Schema$JobTemplate>
1960
2376
  | BodyResponseCallback<Readable>
1961
- ): void | GaxiosPromise<Schema$JobTemplate> | GaxiosPromise<Readable> {
2377
+ ):
2378
+ | void
2379
+ | Promise<GaxiosResponseWithHTTP2<Schema$JobTemplate>>
2380
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1962
2381
  let params = (paramsOrCallback ||
1963
2382
  {}) as Params$Resource$Projects$Locations$Jobtemplates$Get;
1964
2383
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -2001,6 +2420,62 @@ export namespace transcoder_v1 {
2001
2420
 
2002
2421
  /**
2003
2422
  * Lists job templates in the specified region.
2423
+ * @example
2424
+ * ```js
2425
+ * // Before running the sample:
2426
+ * // - Enable the API at:
2427
+ * // https://console.developers.google.com/apis/api/transcoder.googleapis.com
2428
+ * // - Login into gcloud by running:
2429
+ * // ```sh
2430
+ * // $ gcloud auth application-default login
2431
+ * // ```
2432
+ * // - Install the npm module by running:
2433
+ * // ```sh
2434
+ * // $ npm install googleapis
2435
+ * // ```
2436
+ *
2437
+ * const {google} = require('googleapis');
2438
+ * const transcoder = google.transcoder('v1');
2439
+ *
2440
+ * async function main() {
2441
+ * const auth = new google.auth.GoogleAuth({
2442
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2443
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
2444
+ * });
2445
+ *
2446
+ * // Acquire an auth client, and bind it to all future calls
2447
+ * const authClient = await auth.getClient();
2448
+ * google.options({auth: authClient});
2449
+ *
2450
+ * // Do the magic
2451
+ * const res = await transcoder.projects.locations.jobTemplates.list({
2452
+ * // The filter expression, following the syntax outlined in https://google.aip.dev/160.
2453
+ * filter: 'placeholder-value',
2454
+ * // One or more fields to compare and use to sort the output. See https://google.aip.dev/132#ordering.
2455
+ * orderBy: 'placeholder-value',
2456
+ * // The maximum number of items to return.
2457
+ * pageSize: 'placeholder-value',
2458
+ * // The `next_page_token` value returned from a previous List request, if any.
2459
+ * pageToken: 'placeholder-value',
2460
+ * // Required. The parent location from which to retrieve the collection of job templates. Format: `projects/{project\}/locations/{location\}`
2461
+ * parent: 'projects/my-project/locations/my-location',
2462
+ * });
2463
+ * console.log(res.data);
2464
+ *
2465
+ * // Example response
2466
+ * // {
2467
+ * // "jobTemplates": [],
2468
+ * // "nextPageToken": "my_nextPageToken",
2469
+ * // "unreachable": []
2470
+ * // }
2471
+ * }
2472
+ *
2473
+ * main().catch(e => {
2474
+ * console.error(e);
2475
+ * throw e;
2476
+ * });
2477
+ *
2478
+ * ```
2004
2479
  *
2005
2480
  * @param params - Parameters for request
2006
2481
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2010,11 +2485,11 @@ export namespace transcoder_v1 {
2010
2485
  list(
2011
2486
  params: Params$Resource$Projects$Locations$Jobtemplates$List,
2012
2487
  options: StreamMethodOptions
2013
- ): GaxiosPromise<Readable>;
2488
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2014
2489
  list(
2015
2490
  params?: Params$Resource$Projects$Locations$Jobtemplates$List,
2016
2491
  options?: MethodOptions
2017
- ): GaxiosPromise<Schema$ListJobTemplatesResponse>;
2492
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListJobTemplatesResponse>>;
2018
2493
  list(
2019
2494
  params: Params$Resource$Projects$Locations$Jobtemplates$List,
2020
2495
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -2047,8 +2522,8 @@ export namespace transcoder_v1 {
2047
2522
  | BodyResponseCallback<Readable>
2048
2523
  ):
2049
2524
  | void
2050
- | GaxiosPromise<Schema$ListJobTemplatesResponse>
2051
- | GaxiosPromise<Readable> {
2525
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListJobTemplatesResponse>>
2526
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2052
2527
  let params = (paramsOrCallback ||
2053
2528
  {}) as Params$Resource$Projects$Locations$Jobtemplates$List;
2054
2529
  let options = (optionsOrCallback || {}) as MethodOptions;