@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/CHANGELOG.md +43 -0
- package/build/index.d.ts +1 -1
- package/build/index.js.map +1 -1
- package/build/v1.d.ts +471 -17
- package/build/v1.js.map +1 -1
- package/build/v1beta1.d.ts +17 -17
- package/index.ts +0 -1
- package/package.json +2 -2
- package/v1.ts +501 -26
- package/v1beta1.ts +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,48 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [6.0.1](https://github.com/googleapis/google-api-nodejs-client/compare/transcoder-v6.0.0...transcoder-v6.0.1) (2025-07-08)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **transcoder:** update the API ([067674c](https://github.com/googleapis/google-api-nodejs-client/commit/067674cb0d5f927ff6577478219ab1c81d58bb89))
|
|
9
|
+
* **transcoder:** update the API ([428e3b1](https://github.com/googleapis/google-api-nodejs-client/commit/428e3b1264448cf7f02709203baf5e5b915ed8a4))
|
|
10
|
+
|
|
11
|
+
## [6.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/transcoder-v5.0.1...transcoder-v6.0.0) (2025-06-30)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### ⚠ BREAKING CHANGES
|
|
15
|
+
|
|
16
|
+
* upgrade to node 18
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* upgrade to node 18 ([682fbb8](https://github.com/googleapis/google-api-nodejs-client/commit/682fbb869189ae92b3e9a194d37d0548af0c1f92))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Bug Fixes
|
|
24
|
+
|
|
25
|
+
* **deps:** upgrade googleapis-common to 8.0.2-rc ([f4b0990](https://github.com/googleapis/google-api-nodejs-client/commit/f4b099071040cfbcfe4a2e7d487d45ee93b369e0))
|
|
26
|
+
* **transcoder:** update the API ([428e3b1](https://github.com/googleapis/google-api-nodejs-client/commit/428e3b1264448cf7f02709203baf5e5b915ed8a4))
|
|
27
|
+
|
|
28
|
+
## [5.0.1](https://github.com/googleapis/google-api-nodejs-client/compare/transcoder-v5.0.0...transcoder-v5.0.1) (2025-06-04)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Bug Fixes
|
|
32
|
+
|
|
33
|
+
* **deps:** upgrade googleapis-common to 8.0.2-rc ([f4b0990](https://github.com/googleapis/google-api-nodejs-client/commit/f4b099071040cfbcfe4a2e7d487d45ee93b369e0))
|
|
34
|
+
|
|
35
|
+
## [5.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/transcoder-v4.0.5...transcoder-v5.0.0) (2025-05-29)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### ⚠ BREAKING CHANGES
|
|
39
|
+
|
|
40
|
+
* upgrade to node 18
|
|
41
|
+
|
|
42
|
+
### Features
|
|
43
|
+
|
|
44
|
+
* upgrade to node 18 ([682fbb8](https://github.com/googleapis/google-api-nodejs-client/commit/682fbb869189ae92b3e9a194d37d0548af0c1f92))
|
|
45
|
+
|
|
3
46
|
## [4.0.5](https://github.com/googleapis/google-api-nodejs-client/compare/transcoder-v4.0.4...transcoder-v4.0.5) (2025-03-18)
|
|
4
47
|
|
|
5
48
|
|
package/build/index.d.ts
CHANGED
|
@@ -14,4 +14,4 @@ declare const auth: AuthPlus;
|
|
|
14
14
|
export { auth };
|
|
15
15
|
export { transcoder_v1 };
|
|
16
16
|
export { transcoder_v1beta1 };
|
|
17
|
-
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions,
|
|
17
|
+
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,kCAAkC;AAElC,yDAAuE;AACvE,6BAAmC;AA+B3B,8FA/BA,kBAAa,OA+BA;AA9BrB,uCAA6C;AA+BrC,mGA/BA,4BAAkB,OA+BA;AA7Bb,QAAA,QAAQ,GAAG;IACtB,EAAE,EAAE,kBAAa,CAAC,UAAU;IAC5B,OAAO,EAAE,4BAAkB,CAAC,UAAU;CACvC,CAAC;AAUF,SAAgB,UAAU,CAIxB,gBAI8B;IAE9B,OAAO,IAAA,0BAAM,EAAI,YAAY,EAAE,gBAAgB,EAAE,gBAAQ,EAAE,IAAI,CAAC,CAAC;AACnE,CAAC;AAXD,gCAWC;AAED,MAAM,IAAI,GAAG,IAAI,4BAAQ,EAAE,CAAC;AACpB,oBAAI;AAGZ,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,kCAAkC;AAElC,yDAAuE;AACvE,6BAAmC;AA+B3B,8FA/BA,kBAAa,OA+BA;AA9BrB,uCAA6C;AA+BrC,mGA/BA,4BAAkB,OA+BA;AA7Bb,QAAA,QAAQ,GAAG;IACtB,EAAE,EAAE,kBAAa,CAAC,UAAU;IAC5B,OAAO,EAAE,4BAAkB,CAAC,UAAU;CACvC,CAAC;AAUF,SAAgB,UAAU,CAIxB,gBAI8B;IAE9B,OAAO,IAAA,0BAAM,EAAI,YAAY,EAAE,gBAAgB,EAAE,gBAAQ,EAAE,IAAI,CAAC,CAAC;AACnE,CAAC;AAXD,gCAWC;AAED,MAAM,IAAI,GAAG,IAAI,4BAAQ,EAAE,CAAC;AACpB,oBAAI;AAGZ,uDAQ2B;AAPzB,6GAAA,QAAQ,OAAA"}
|
package/build/v1.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient,
|
|
2
|
+
import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
|
3
3
|
import { Readable } from 'stream';
|
|
4
4
|
export declare namespace transcoder_v1 {
|
|
5
5
|
export interface Options extends GlobalOptions {
|
|
@@ -1294,56 +1294,300 @@ export declare namespace transcoder_v1 {
|
|
|
1294
1294
|
constructor(context: APIRequestContext);
|
|
1295
1295
|
/**
|
|
1296
1296
|
* Creates a job in the specified region.
|
|
1297
|
+
* @example
|
|
1298
|
+
* ```js
|
|
1299
|
+
* // Before running the sample:
|
|
1300
|
+
* // - Enable the API at:
|
|
1301
|
+
* // https://console.developers.google.com/apis/api/transcoder.googleapis.com
|
|
1302
|
+
* // - Login into gcloud by running:
|
|
1303
|
+
* // ```sh
|
|
1304
|
+
* // $ gcloud auth application-default login
|
|
1305
|
+
* // ```
|
|
1306
|
+
* // - Install the npm module by running:
|
|
1307
|
+
* // ```sh
|
|
1308
|
+
* // $ npm install googleapis
|
|
1309
|
+
* // ```
|
|
1310
|
+
*
|
|
1311
|
+
* const {google} = require('googleapis');
|
|
1312
|
+
* const transcoder = google.transcoder('v1');
|
|
1313
|
+
*
|
|
1314
|
+
* async function main() {
|
|
1315
|
+
* const auth = new google.auth.GoogleAuth({
|
|
1316
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1317
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
1318
|
+
* });
|
|
1319
|
+
*
|
|
1320
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
1321
|
+
* const authClient = await auth.getClient();
|
|
1322
|
+
* google.options({auth: authClient});
|
|
1323
|
+
*
|
|
1324
|
+
* // Do the magic
|
|
1325
|
+
* const res = await transcoder.projects.locations.jobs.create({
|
|
1326
|
+
* // Required. The parent location to create and process this job. Format: `projects/{project\}/locations/{location\}`
|
|
1327
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
1328
|
+
*
|
|
1329
|
+
* // Request body metadata
|
|
1330
|
+
* requestBody: {
|
|
1331
|
+
* // request body parameters
|
|
1332
|
+
* // {
|
|
1333
|
+
* // "batchModePriority": 0,
|
|
1334
|
+
* // "config": {},
|
|
1335
|
+
* // "createTime": "my_createTime",
|
|
1336
|
+
* // "endTime": "my_endTime",
|
|
1337
|
+
* // "error": {},
|
|
1338
|
+
* // "inputUri": "my_inputUri",
|
|
1339
|
+
* // "labels": {},
|
|
1340
|
+
* // "mode": "my_mode",
|
|
1341
|
+
* // "name": "my_name",
|
|
1342
|
+
* // "optimization": "my_optimization",
|
|
1343
|
+
* // "outputUri": "my_outputUri",
|
|
1344
|
+
* // "startTime": "my_startTime",
|
|
1345
|
+
* // "state": "my_state",
|
|
1346
|
+
* // "templateId": "my_templateId",
|
|
1347
|
+
* // "ttlAfterCompletionDays": 0
|
|
1348
|
+
* // }
|
|
1349
|
+
* },
|
|
1350
|
+
* });
|
|
1351
|
+
* console.log(res.data);
|
|
1352
|
+
*
|
|
1353
|
+
* // Example response
|
|
1354
|
+
* // {
|
|
1355
|
+
* // "batchModePriority": 0,
|
|
1356
|
+
* // "config": {},
|
|
1357
|
+
* // "createTime": "my_createTime",
|
|
1358
|
+
* // "endTime": "my_endTime",
|
|
1359
|
+
* // "error": {},
|
|
1360
|
+
* // "inputUri": "my_inputUri",
|
|
1361
|
+
* // "labels": {},
|
|
1362
|
+
* // "mode": "my_mode",
|
|
1363
|
+
* // "name": "my_name",
|
|
1364
|
+
* // "optimization": "my_optimization",
|
|
1365
|
+
* // "outputUri": "my_outputUri",
|
|
1366
|
+
* // "startTime": "my_startTime",
|
|
1367
|
+
* // "state": "my_state",
|
|
1368
|
+
* // "templateId": "my_templateId",
|
|
1369
|
+
* // "ttlAfterCompletionDays": 0
|
|
1370
|
+
* // }
|
|
1371
|
+
* }
|
|
1372
|
+
*
|
|
1373
|
+
* main().catch(e => {
|
|
1374
|
+
* console.error(e);
|
|
1375
|
+
* throw e;
|
|
1376
|
+
* });
|
|
1377
|
+
*
|
|
1378
|
+
* ```
|
|
1297
1379
|
*
|
|
1298
1380
|
* @param params - Parameters for request
|
|
1299
1381
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1300
1382
|
* @param callback - Optional callback that handles the response.
|
|
1301
1383
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1302
1384
|
*/
|
|
1303
|
-
create(params: Params$Resource$Projects$Locations$Jobs$Create, options: StreamMethodOptions):
|
|
1304
|
-
create(params?: Params$Resource$Projects$Locations$Jobs$Create, options?: MethodOptions):
|
|
1385
|
+
create(params: Params$Resource$Projects$Locations$Jobs$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
1386
|
+
create(params?: Params$Resource$Projects$Locations$Jobs$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Job>>;
|
|
1305
1387
|
create(params: Params$Resource$Projects$Locations$Jobs$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1306
1388
|
create(params: Params$Resource$Projects$Locations$Jobs$Create, options: MethodOptions | BodyResponseCallback<Schema$Job>, callback: BodyResponseCallback<Schema$Job>): void;
|
|
1307
1389
|
create(params: Params$Resource$Projects$Locations$Jobs$Create, callback: BodyResponseCallback<Schema$Job>): void;
|
|
1308
1390
|
create(callback: BodyResponseCallback<Schema$Job>): void;
|
|
1309
1391
|
/**
|
|
1310
1392
|
* Deletes a job.
|
|
1393
|
+
* @example
|
|
1394
|
+
* ```js
|
|
1395
|
+
* // Before running the sample:
|
|
1396
|
+
* // - Enable the API at:
|
|
1397
|
+
* // https://console.developers.google.com/apis/api/transcoder.googleapis.com
|
|
1398
|
+
* // - Login into gcloud by running:
|
|
1399
|
+
* // ```sh
|
|
1400
|
+
* // $ gcloud auth application-default login
|
|
1401
|
+
* // ```
|
|
1402
|
+
* // - Install the npm module by running:
|
|
1403
|
+
* // ```sh
|
|
1404
|
+
* // $ npm install googleapis
|
|
1405
|
+
* // ```
|
|
1406
|
+
*
|
|
1407
|
+
* const {google} = require('googleapis');
|
|
1408
|
+
* const transcoder = google.transcoder('v1');
|
|
1409
|
+
*
|
|
1410
|
+
* async function main() {
|
|
1411
|
+
* const auth = new google.auth.GoogleAuth({
|
|
1412
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1413
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
1414
|
+
* });
|
|
1415
|
+
*
|
|
1416
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
1417
|
+
* const authClient = await auth.getClient();
|
|
1418
|
+
* google.options({auth: authClient});
|
|
1419
|
+
*
|
|
1420
|
+
* // Do the magic
|
|
1421
|
+
* const res = await transcoder.projects.locations.jobs.delete({
|
|
1422
|
+
* // If set to true, and the job is not found, the request will succeed but no action will be taken on the server.
|
|
1423
|
+
* allowMissing: 'placeholder-value',
|
|
1424
|
+
* // Required. The name of the job to delete. Format: `projects/{project\}/locations/{location\}/jobs/{job\}`
|
|
1425
|
+
* name: 'projects/my-project/locations/my-location/jobs/my-job',
|
|
1426
|
+
* });
|
|
1427
|
+
* console.log(res.data);
|
|
1428
|
+
*
|
|
1429
|
+
* // Example response
|
|
1430
|
+
* // {}
|
|
1431
|
+
* }
|
|
1432
|
+
*
|
|
1433
|
+
* main().catch(e => {
|
|
1434
|
+
* console.error(e);
|
|
1435
|
+
* throw e;
|
|
1436
|
+
* });
|
|
1437
|
+
*
|
|
1438
|
+
* ```
|
|
1311
1439
|
*
|
|
1312
1440
|
* @param params - Parameters for request
|
|
1313
1441
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1314
1442
|
* @param callback - Optional callback that handles the response.
|
|
1315
1443
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1316
1444
|
*/
|
|
1317
|
-
delete(params: Params$Resource$Projects$Locations$Jobs$Delete, options: StreamMethodOptions):
|
|
1318
|
-
delete(params?: Params$Resource$Projects$Locations$Jobs$Delete, options?: MethodOptions):
|
|
1445
|
+
delete(params: Params$Resource$Projects$Locations$Jobs$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
1446
|
+
delete(params?: Params$Resource$Projects$Locations$Jobs$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
|
|
1319
1447
|
delete(params: Params$Resource$Projects$Locations$Jobs$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1320
1448
|
delete(params: Params$Resource$Projects$Locations$Jobs$Delete, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
|
|
1321
1449
|
delete(params: Params$Resource$Projects$Locations$Jobs$Delete, callback: BodyResponseCallback<Schema$Empty>): void;
|
|
1322
1450
|
delete(callback: BodyResponseCallback<Schema$Empty>): void;
|
|
1323
1451
|
/**
|
|
1324
1452
|
* Returns the job data.
|
|
1453
|
+
* @example
|
|
1454
|
+
* ```js
|
|
1455
|
+
* // Before running the sample:
|
|
1456
|
+
* // - Enable the API at:
|
|
1457
|
+
* // https://console.developers.google.com/apis/api/transcoder.googleapis.com
|
|
1458
|
+
* // - Login into gcloud by running:
|
|
1459
|
+
* // ```sh
|
|
1460
|
+
* // $ gcloud auth application-default login
|
|
1461
|
+
* // ```
|
|
1462
|
+
* // - Install the npm module by running:
|
|
1463
|
+
* // ```sh
|
|
1464
|
+
* // $ npm install googleapis
|
|
1465
|
+
* // ```
|
|
1466
|
+
*
|
|
1467
|
+
* const {google} = require('googleapis');
|
|
1468
|
+
* const transcoder = google.transcoder('v1');
|
|
1469
|
+
*
|
|
1470
|
+
* async function main() {
|
|
1471
|
+
* const auth = new google.auth.GoogleAuth({
|
|
1472
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1473
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
1474
|
+
* });
|
|
1475
|
+
*
|
|
1476
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
1477
|
+
* const authClient = await auth.getClient();
|
|
1478
|
+
* google.options({auth: authClient});
|
|
1479
|
+
*
|
|
1480
|
+
* // Do the magic
|
|
1481
|
+
* const res = await transcoder.projects.locations.jobs.get({
|
|
1482
|
+
* // Required. The name of the job to retrieve. Format: `projects/{project\}/locations/{location\}/jobs/{job\}`
|
|
1483
|
+
* name: 'projects/my-project/locations/my-location/jobs/my-job',
|
|
1484
|
+
* });
|
|
1485
|
+
* console.log(res.data);
|
|
1486
|
+
*
|
|
1487
|
+
* // Example response
|
|
1488
|
+
* // {
|
|
1489
|
+
* // "batchModePriority": 0,
|
|
1490
|
+
* // "config": {},
|
|
1491
|
+
* // "createTime": "my_createTime",
|
|
1492
|
+
* // "endTime": "my_endTime",
|
|
1493
|
+
* // "error": {},
|
|
1494
|
+
* // "inputUri": "my_inputUri",
|
|
1495
|
+
* // "labels": {},
|
|
1496
|
+
* // "mode": "my_mode",
|
|
1497
|
+
* // "name": "my_name",
|
|
1498
|
+
* // "optimization": "my_optimization",
|
|
1499
|
+
* // "outputUri": "my_outputUri",
|
|
1500
|
+
* // "startTime": "my_startTime",
|
|
1501
|
+
* // "state": "my_state",
|
|
1502
|
+
* // "templateId": "my_templateId",
|
|
1503
|
+
* // "ttlAfterCompletionDays": 0
|
|
1504
|
+
* // }
|
|
1505
|
+
* }
|
|
1506
|
+
*
|
|
1507
|
+
* main().catch(e => {
|
|
1508
|
+
* console.error(e);
|
|
1509
|
+
* throw e;
|
|
1510
|
+
* });
|
|
1511
|
+
*
|
|
1512
|
+
* ```
|
|
1325
1513
|
*
|
|
1326
1514
|
* @param params - Parameters for request
|
|
1327
1515
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1328
1516
|
* @param callback - Optional callback that handles the response.
|
|
1329
1517
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1330
1518
|
*/
|
|
1331
|
-
get(params: Params$Resource$Projects$Locations$Jobs$Get, options: StreamMethodOptions):
|
|
1332
|
-
get(params?: Params$Resource$Projects$Locations$Jobs$Get, options?: MethodOptions):
|
|
1519
|
+
get(params: Params$Resource$Projects$Locations$Jobs$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
1520
|
+
get(params?: Params$Resource$Projects$Locations$Jobs$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Job>>;
|
|
1333
1521
|
get(params: Params$Resource$Projects$Locations$Jobs$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1334
1522
|
get(params: Params$Resource$Projects$Locations$Jobs$Get, options: MethodOptions | BodyResponseCallback<Schema$Job>, callback: BodyResponseCallback<Schema$Job>): void;
|
|
1335
1523
|
get(params: Params$Resource$Projects$Locations$Jobs$Get, callback: BodyResponseCallback<Schema$Job>): void;
|
|
1336
1524
|
get(callback: BodyResponseCallback<Schema$Job>): void;
|
|
1337
1525
|
/**
|
|
1338
1526
|
* Lists jobs in the specified region.
|
|
1527
|
+
* @example
|
|
1528
|
+
* ```js
|
|
1529
|
+
* // Before running the sample:
|
|
1530
|
+
* // - Enable the API at:
|
|
1531
|
+
* // https://console.developers.google.com/apis/api/transcoder.googleapis.com
|
|
1532
|
+
* // - Login into gcloud by running:
|
|
1533
|
+
* // ```sh
|
|
1534
|
+
* // $ gcloud auth application-default login
|
|
1535
|
+
* // ```
|
|
1536
|
+
* // - Install the npm module by running:
|
|
1537
|
+
* // ```sh
|
|
1538
|
+
* // $ npm install googleapis
|
|
1539
|
+
* // ```
|
|
1540
|
+
*
|
|
1541
|
+
* const {google} = require('googleapis');
|
|
1542
|
+
* const transcoder = google.transcoder('v1');
|
|
1543
|
+
*
|
|
1544
|
+
* async function main() {
|
|
1545
|
+
* const auth = new google.auth.GoogleAuth({
|
|
1546
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1547
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
1548
|
+
* });
|
|
1549
|
+
*
|
|
1550
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
1551
|
+
* const authClient = await auth.getClient();
|
|
1552
|
+
* google.options({auth: authClient});
|
|
1553
|
+
*
|
|
1554
|
+
* // Do the magic
|
|
1555
|
+
* const res = await transcoder.projects.locations.jobs.list({
|
|
1556
|
+
* // The filter expression, following the syntax outlined in https://google.aip.dev/160.
|
|
1557
|
+
* filter: 'placeholder-value',
|
|
1558
|
+
* // One or more fields to compare and use to sort the output. See https://google.aip.dev/132#ordering.
|
|
1559
|
+
* orderBy: 'placeholder-value',
|
|
1560
|
+
* // The maximum number of items to return.
|
|
1561
|
+
* pageSize: 'placeholder-value',
|
|
1562
|
+
* // The `next_page_token` value returned from a previous List request, if any.
|
|
1563
|
+
* pageToken: 'placeholder-value',
|
|
1564
|
+
* // Required. Format: `projects/{project\}/locations/{location\}`
|
|
1565
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
1566
|
+
* });
|
|
1567
|
+
* console.log(res.data);
|
|
1568
|
+
*
|
|
1569
|
+
* // Example response
|
|
1570
|
+
* // {
|
|
1571
|
+
* // "jobs": [],
|
|
1572
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
1573
|
+
* // "unreachable": []
|
|
1574
|
+
* // }
|
|
1575
|
+
* }
|
|
1576
|
+
*
|
|
1577
|
+
* main().catch(e => {
|
|
1578
|
+
* console.error(e);
|
|
1579
|
+
* throw e;
|
|
1580
|
+
* });
|
|
1581
|
+
*
|
|
1582
|
+
* ```
|
|
1339
1583
|
*
|
|
1340
1584
|
* @param params - Parameters for request
|
|
1341
1585
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1342
1586
|
* @param callback - Optional callback that handles the response.
|
|
1343
1587
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1344
1588
|
*/
|
|
1345
|
-
list(params: Params$Resource$Projects$Locations$Jobs$List, options: StreamMethodOptions):
|
|
1346
|
-
list(params?: Params$Resource$Projects$Locations$Jobs$List, options?: MethodOptions):
|
|
1589
|
+
list(params: Params$Resource$Projects$Locations$Jobs$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
1590
|
+
list(params?: Params$Resource$Projects$Locations$Jobs$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListJobsResponse>>;
|
|
1347
1591
|
list(params: Params$Resource$Projects$Locations$Jobs$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1348
1592
|
list(params: Params$Resource$Projects$Locations$Jobs$List, options: MethodOptions | BodyResponseCallback<Schema$ListJobsResponse>, callback: BodyResponseCallback<Schema$ListJobsResponse>): void;
|
|
1349
1593
|
list(params: Params$Resource$Projects$Locations$Jobs$List, callback: BodyResponseCallback<Schema$ListJobsResponse>): void;
|
|
@@ -1402,56 +1646,266 @@ export declare namespace transcoder_v1 {
|
|
|
1402
1646
|
constructor(context: APIRequestContext);
|
|
1403
1647
|
/**
|
|
1404
1648
|
* Creates a job template in the specified region.
|
|
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.jobTemplates.create({
|
|
1678
|
+
* // 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*`.
|
|
1679
|
+
* jobTemplateId: 'placeholder-value',
|
|
1680
|
+
* // Required. The parent location to create this job template. Format: `projects/{project\}/locations/{location\}`
|
|
1681
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
1682
|
+
*
|
|
1683
|
+
* // Request body metadata
|
|
1684
|
+
* requestBody: {
|
|
1685
|
+
* // request body parameters
|
|
1686
|
+
* // {
|
|
1687
|
+
* // "config": {},
|
|
1688
|
+
* // "labels": {},
|
|
1689
|
+
* // "name": "my_name"
|
|
1690
|
+
* // }
|
|
1691
|
+
* },
|
|
1692
|
+
* });
|
|
1693
|
+
* console.log(res.data);
|
|
1694
|
+
*
|
|
1695
|
+
* // Example response
|
|
1696
|
+
* // {
|
|
1697
|
+
* // "config": {},
|
|
1698
|
+
* // "labels": {},
|
|
1699
|
+
* // "name": "my_name"
|
|
1700
|
+
* // }
|
|
1701
|
+
* }
|
|
1702
|
+
*
|
|
1703
|
+
* main().catch(e => {
|
|
1704
|
+
* console.error(e);
|
|
1705
|
+
* throw e;
|
|
1706
|
+
* });
|
|
1707
|
+
*
|
|
1708
|
+
* ```
|
|
1405
1709
|
*
|
|
1406
1710
|
* @param params - Parameters for request
|
|
1407
1711
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1408
1712
|
* @param callback - Optional callback that handles the response.
|
|
1409
1713
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1410
1714
|
*/
|
|
1411
|
-
create(params: Params$Resource$Projects$Locations$Jobtemplates$Create, options: StreamMethodOptions):
|
|
1412
|
-
create(params?: Params$Resource$Projects$Locations$Jobtemplates$Create, options?: MethodOptions):
|
|
1715
|
+
create(params: Params$Resource$Projects$Locations$Jobtemplates$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
1716
|
+
create(params?: Params$Resource$Projects$Locations$Jobtemplates$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$JobTemplate>>;
|
|
1413
1717
|
create(params: Params$Resource$Projects$Locations$Jobtemplates$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1414
1718
|
create(params: Params$Resource$Projects$Locations$Jobtemplates$Create, options: MethodOptions | BodyResponseCallback<Schema$JobTemplate>, callback: BodyResponseCallback<Schema$JobTemplate>): void;
|
|
1415
1719
|
create(params: Params$Resource$Projects$Locations$Jobtemplates$Create, callback: BodyResponseCallback<Schema$JobTemplate>): void;
|
|
1416
1720
|
create(callback: BodyResponseCallback<Schema$JobTemplate>): void;
|
|
1417
1721
|
/**
|
|
1418
1722
|
* Deletes a job template.
|
|
1723
|
+
* @example
|
|
1724
|
+
* ```js
|
|
1725
|
+
* // Before running the sample:
|
|
1726
|
+
* // - Enable the API at:
|
|
1727
|
+
* // https://console.developers.google.com/apis/api/transcoder.googleapis.com
|
|
1728
|
+
* // - Login into gcloud by running:
|
|
1729
|
+
* // ```sh
|
|
1730
|
+
* // $ gcloud auth application-default login
|
|
1731
|
+
* // ```
|
|
1732
|
+
* // - Install the npm module by running:
|
|
1733
|
+
* // ```sh
|
|
1734
|
+
* // $ npm install googleapis
|
|
1735
|
+
* // ```
|
|
1736
|
+
*
|
|
1737
|
+
* const {google} = require('googleapis');
|
|
1738
|
+
* const transcoder = google.transcoder('v1');
|
|
1739
|
+
*
|
|
1740
|
+
* async function main() {
|
|
1741
|
+
* const auth = new google.auth.GoogleAuth({
|
|
1742
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1743
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
1744
|
+
* });
|
|
1745
|
+
*
|
|
1746
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
1747
|
+
* const authClient = await auth.getClient();
|
|
1748
|
+
* google.options({auth: authClient});
|
|
1749
|
+
*
|
|
1750
|
+
* // Do the magic
|
|
1751
|
+
* const res = await transcoder.projects.locations.jobTemplates.delete({
|
|
1752
|
+
* // If set to true, and the job template is not found, the request will succeed but no action will be taken on the server.
|
|
1753
|
+
* allowMissing: 'placeholder-value',
|
|
1754
|
+
* // Required. The name of the job template to delete. `projects/{project\}/locations/{location\}/jobTemplates/{job_template\}`
|
|
1755
|
+
* name: 'projects/my-project/locations/my-location/jobTemplates/my-jobTemplate',
|
|
1756
|
+
* });
|
|
1757
|
+
* console.log(res.data);
|
|
1758
|
+
*
|
|
1759
|
+
* // Example response
|
|
1760
|
+
* // {}
|
|
1761
|
+
* }
|
|
1762
|
+
*
|
|
1763
|
+
* main().catch(e => {
|
|
1764
|
+
* console.error(e);
|
|
1765
|
+
* throw e;
|
|
1766
|
+
* });
|
|
1767
|
+
*
|
|
1768
|
+
* ```
|
|
1419
1769
|
*
|
|
1420
1770
|
* @param params - Parameters for request
|
|
1421
1771
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1422
1772
|
* @param callback - Optional callback that handles the response.
|
|
1423
1773
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1424
1774
|
*/
|
|
1425
|
-
delete(params: Params$Resource$Projects$Locations$Jobtemplates$Delete, options: StreamMethodOptions):
|
|
1426
|
-
delete(params?: Params$Resource$Projects$Locations$Jobtemplates$Delete, options?: MethodOptions):
|
|
1775
|
+
delete(params: Params$Resource$Projects$Locations$Jobtemplates$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
1776
|
+
delete(params?: Params$Resource$Projects$Locations$Jobtemplates$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
|
|
1427
1777
|
delete(params: Params$Resource$Projects$Locations$Jobtemplates$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1428
1778
|
delete(params: Params$Resource$Projects$Locations$Jobtemplates$Delete, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
|
|
1429
1779
|
delete(params: Params$Resource$Projects$Locations$Jobtemplates$Delete, callback: BodyResponseCallback<Schema$Empty>): void;
|
|
1430
1780
|
delete(callback: BodyResponseCallback<Schema$Empty>): void;
|
|
1431
1781
|
/**
|
|
1432
1782
|
* Returns the job template data.
|
|
1783
|
+
* @example
|
|
1784
|
+
* ```js
|
|
1785
|
+
* // Before running the sample:
|
|
1786
|
+
* // - Enable the API at:
|
|
1787
|
+
* // https://console.developers.google.com/apis/api/transcoder.googleapis.com
|
|
1788
|
+
* // - Login into gcloud by running:
|
|
1789
|
+
* // ```sh
|
|
1790
|
+
* // $ gcloud auth application-default login
|
|
1791
|
+
* // ```
|
|
1792
|
+
* // - Install the npm module by running:
|
|
1793
|
+
* // ```sh
|
|
1794
|
+
* // $ npm install googleapis
|
|
1795
|
+
* // ```
|
|
1796
|
+
*
|
|
1797
|
+
* const {google} = require('googleapis');
|
|
1798
|
+
* const transcoder = google.transcoder('v1');
|
|
1799
|
+
*
|
|
1800
|
+
* async function main() {
|
|
1801
|
+
* const auth = new google.auth.GoogleAuth({
|
|
1802
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1803
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
1804
|
+
* });
|
|
1805
|
+
*
|
|
1806
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
1807
|
+
* const authClient = await auth.getClient();
|
|
1808
|
+
* google.options({auth: authClient});
|
|
1809
|
+
*
|
|
1810
|
+
* // Do the magic
|
|
1811
|
+
* const res = await transcoder.projects.locations.jobTemplates.get({
|
|
1812
|
+
* // Required. The name of the job template to retrieve. Format: `projects/{project\}/locations/{location\}/jobTemplates/{job_template\}`
|
|
1813
|
+
* name: 'projects/my-project/locations/my-location/jobTemplates/my-jobTemplate',
|
|
1814
|
+
* });
|
|
1815
|
+
* console.log(res.data);
|
|
1816
|
+
*
|
|
1817
|
+
* // Example response
|
|
1818
|
+
* // {
|
|
1819
|
+
* // "config": {},
|
|
1820
|
+
* // "labels": {},
|
|
1821
|
+
* // "name": "my_name"
|
|
1822
|
+
* // }
|
|
1823
|
+
* }
|
|
1824
|
+
*
|
|
1825
|
+
* main().catch(e => {
|
|
1826
|
+
* console.error(e);
|
|
1827
|
+
* throw e;
|
|
1828
|
+
* });
|
|
1829
|
+
*
|
|
1830
|
+
* ```
|
|
1433
1831
|
*
|
|
1434
1832
|
* @param params - Parameters for request
|
|
1435
1833
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1436
1834
|
* @param callback - Optional callback that handles the response.
|
|
1437
1835
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1438
1836
|
*/
|
|
1439
|
-
get(params: Params$Resource$Projects$Locations$Jobtemplates$Get, options: StreamMethodOptions):
|
|
1440
|
-
get(params?: Params$Resource$Projects$Locations$Jobtemplates$Get, options?: MethodOptions):
|
|
1837
|
+
get(params: Params$Resource$Projects$Locations$Jobtemplates$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
1838
|
+
get(params?: Params$Resource$Projects$Locations$Jobtemplates$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$JobTemplate>>;
|
|
1441
1839
|
get(params: Params$Resource$Projects$Locations$Jobtemplates$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1442
1840
|
get(params: Params$Resource$Projects$Locations$Jobtemplates$Get, options: MethodOptions | BodyResponseCallback<Schema$JobTemplate>, callback: BodyResponseCallback<Schema$JobTemplate>): void;
|
|
1443
1841
|
get(params: Params$Resource$Projects$Locations$Jobtemplates$Get, callback: BodyResponseCallback<Schema$JobTemplate>): void;
|
|
1444
1842
|
get(callback: BodyResponseCallback<Schema$JobTemplate>): void;
|
|
1445
1843
|
/**
|
|
1446
1844
|
* Lists job templates in the specified region.
|
|
1845
|
+
* @example
|
|
1846
|
+
* ```js
|
|
1847
|
+
* // Before running the sample:
|
|
1848
|
+
* // - Enable the API at:
|
|
1849
|
+
* // https://console.developers.google.com/apis/api/transcoder.googleapis.com
|
|
1850
|
+
* // - Login into gcloud by running:
|
|
1851
|
+
* // ```sh
|
|
1852
|
+
* // $ gcloud auth application-default login
|
|
1853
|
+
* // ```
|
|
1854
|
+
* // - Install the npm module by running:
|
|
1855
|
+
* // ```sh
|
|
1856
|
+
* // $ npm install googleapis
|
|
1857
|
+
* // ```
|
|
1858
|
+
*
|
|
1859
|
+
* const {google} = require('googleapis');
|
|
1860
|
+
* const transcoder = google.transcoder('v1');
|
|
1861
|
+
*
|
|
1862
|
+
* async function main() {
|
|
1863
|
+
* const auth = new google.auth.GoogleAuth({
|
|
1864
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1865
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
1866
|
+
* });
|
|
1867
|
+
*
|
|
1868
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
1869
|
+
* const authClient = await auth.getClient();
|
|
1870
|
+
* google.options({auth: authClient});
|
|
1871
|
+
*
|
|
1872
|
+
* // Do the magic
|
|
1873
|
+
* const res = await transcoder.projects.locations.jobTemplates.list({
|
|
1874
|
+
* // The filter expression, following the syntax outlined in https://google.aip.dev/160.
|
|
1875
|
+
* filter: 'placeholder-value',
|
|
1876
|
+
* // One or more fields to compare and use to sort the output. See https://google.aip.dev/132#ordering.
|
|
1877
|
+
* orderBy: 'placeholder-value',
|
|
1878
|
+
* // The maximum number of items to return.
|
|
1879
|
+
* pageSize: 'placeholder-value',
|
|
1880
|
+
* // The `next_page_token` value returned from a previous List request, if any.
|
|
1881
|
+
* pageToken: 'placeholder-value',
|
|
1882
|
+
* // Required. The parent location from which to retrieve the collection of job templates. Format: `projects/{project\}/locations/{location\}`
|
|
1883
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
1884
|
+
* });
|
|
1885
|
+
* console.log(res.data);
|
|
1886
|
+
*
|
|
1887
|
+
* // Example response
|
|
1888
|
+
* // {
|
|
1889
|
+
* // "jobTemplates": [],
|
|
1890
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
1891
|
+
* // "unreachable": []
|
|
1892
|
+
* // }
|
|
1893
|
+
* }
|
|
1894
|
+
*
|
|
1895
|
+
* main().catch(e => {
|
|
1896
|
+
* console.error(e);
|
|
1897
|
+
* throw e;
|
|
1898
|
+
* });
|
|
1899
|
+
*
|
|
1900
|
+
* ```
|
|
1447
1901
|
*
|
|
1448
1902
|
* @param params - Parameters for request
|
|
1449
1903
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1450
1904
|
* @param callback - Optional callback that handles the response.
|
|
1451
1905
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1452
1906
|
*/
|
|
1453
|
-
list(params: Params$Resource$Projects$Locations$Jobtemplates$List, options: StreamMethodOptions):
|
|
1454
|
-
list(params?: Params$Resource$Projects$Locations$Jobtemplates$List, options?: MethodOptions):
|
|
1907
|
+
list(params: Params$Resource$Projects$Locations$Jobtemplates$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
1908
|
+
list(params?: Params$Resource$Projects$Locations$Jobtemplates$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListJobTemplatesResponse>>;
|
|
1455
1909
|
list(params: Params$Resource$Projects$Locations$Jobtemplates$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1456
1910
|
list(params: Params$Resource$Projects$Locations$Jobtemplates$List, options: MethodOptions | BodyResponseCallback<Schema$ListJobTemplatesResponse>, callback: BodyResponseCallback<Schema$ListJobTemplatesResponse>): void;
|
|
1457
1911
|
list(params: Params$Resource$Projects$Locations$Jobtemplates$List, callback: BodyResponseCallback<Schema$ListJobTemplatesResponse>): void;
|