@googleapis/tpu 2.0.0 → 2.2.0

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
@@ -219,7 +219,7 @@ export namespace tpu_v1 {
219
219
  unreachable?: string[] | null;
220
220
  }
221
221
  /**
222
- * A resource that represents Google Cloud Platform location.
222
+ * A resource that represents a Google Cloud location.
223
223
  */
224
224
  export interface Schema$Location {
225
225
  /**
@@ -358,7 +358,7 @@ export namespace tpu_v1 {
358
358
  */
359
359
  name?: string | null;
360
360
  /**
361
- * The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
361
+ * The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
362
362
  */
363
363
  response?: {[key: string]: any} | null;
364
364
  }
@@ -507,52 +507,6 @@ export namespace tpu_v1 {
507
507
 
508
508
  /**
509
509
  * Gets information about a location.
510
- * @example
511
- * ```js
512
- * // Before running the sample:
513
- * // - Enable the API at:
514
- * // https://console.developers.google.com/apis/api/tpu.googleapis.com
515
- * // - Login into gcloud by running:
516
- * // `$ gcloud auth application-default login`
517
- * // - Install the npm module by running:
518
- * // `$ npm install googleapis`
519
- *
520
- * const {google} = require('googleapis');
521
- * const tpu = google.tpu('v1');
522
- *
523
- * async function main() {
524
- * const auth = new google.auth.GoogleAuth({
525
- * // Scopes can be specified either as an array or as a single, space-delimited string.
526
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
527
- * });
528
- *
529
- * // Acquire an auth client, and bind it to all future calls
530
- * const authClient = await auth.getClient();
531
- * google.options({auth: authClient});
532
- *
533
- * // Do the magic
534
- * const res = await tpu.projects.locations.get({
535
- * // Resource name for the location.
536
- * name: 'projects/my-project/locations/my-location',
537
- * });
538
- * console.log(res.data);
539
- *
540
- * // Example response
541
- * // {
542
- * // "displayName": "my_displayName",
543
- * // "labels": {},
544
- * // "locationId": "my_locationId",
545
- * // "metadata": {},
546
- * // "name": "my_name"
547
- * // }
548
- * }
549
- *
550
- * main().catch(e => {
551
- * console.error(e);
552
- * throw e;
553
- * });
554
- *
555
- * ```
556
510
  *
557
511
  * @param params - Parameters for request
558
512
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -637,55 +591,6 @@ export namespace tpu_v1 {
637
591
 
638
592
  /**
639
593
  * Lists information about the supported locations for this service.
640
- * @example
641
- * ```js
642
- * // Before running the sample:
643
- * // - Enable the API at:
644
- * // https://console.developers.google.com/apis/api/tpu.googleapis.com
645
- * // - Login into gcloud by running:
646
- * // `$ gcloud auth application-default login`
647
- * // - Install the npm module by running:
648
- * // `$ npm install googleapis`
649
- *
650
- * const {google} = require('googleapis');
651
- * const tpu = google.tpu('v1');
652
- *
653
- * async function main() {
654
- * const auth = new google.auth.GoogleAuth({
655
- * // Scopes can be specified either as an array or as a single, space-delimited string.
656
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
657
- * });
658
- *
659
- * // Acquire an auth client, and bind it to all future calls
660
- * const authClient = await auth.getClient();
661
- * google.options({auth: authClient});
662
- *
663
- * // Do the magic
664
- * const res = await tpu.projects.locations.list({
665
- * // A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).
666
- * filter: 'placeholder-value',
667
- * // The resource that owns the locations collection, if applicable.
668
- * name: 'projects/my-project',
669
- * // The maximum number of results to return. If not set, the service selects a default.
670
- * pageSize: 'placeholder-value',
671
- * // A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.
672
- * pageToken: 'placeholder-value',
673
- * });
674
- * console.log(res.data);
675
- *
676
- * // Example response
677
- * // {
678
- * // "locations": [],
679
- * // "nextPageToken": "my_nextPageToken"
680
- * // }
681
- * }
682
- *
683
- * main().catch(e => {
684
- * console.error(e);
685
- * throw e;
686
- * });
687
- *
688
- * ```
689
594
  *
690
595
  * @param params - Parameters for request
691
596
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -812,49 +717,6 @@ export namespace tpu_v1 {
812
717
 
813
718
  /**
814
719
  * Gets AcceleratorType.
815
- * @example
816
- * ```js
817
- * // Before running the sample:
818
- * // - Enable the API at:
819
- * // https://console.developers.google.com/apis/api/tpu.googleapis.com
820
- * // - Login into gcloud by running:
821
- * // `$ gcloud auth application-default login`
822
- * // - Install the npm module by running:
823
- * // `$ npm install googleapis`
824
- *
825
- * const {google} = require('googleapis');
826
- * const tpu = google.tpu('v1');
827
- *
828
- * async function main() {
829
- * const auth = new google.auth.GoogleAuth({
830
- * // Scopes can be specified either as an array or as a single, space-delimited string.
831
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
832
- * });
833
- *
834
- * // Acquire an auth client, and bind it to all future calls
835
- * const authClient = await auth.getClient();
836
- * google.options({auth: authClient});
837
- *
838
- * // Do the magic
839
- * const res = await tpu.projects.locations.acceleratorTypes.get({
840
- * // Required. The resource name.
841
- * name: 'projects/my-project/locations/my-location/acceleratorTypes/my-acceleratorType',
842
- * });
843
- * console.log(res.data);
844
- *
845
- * // Example response
846
- * // {
847
- * // "name": "my_name",
848
- * // "type": "my_type"
849
- * // }
850
- * }
851
- *
852
- * main().catch(e => {
853
- * console.error(e);
854
- * throw e;
855
- * });
856
- *
857
- * ```
858
720
  *
859
721
  * @param params - Parameters for request
860
722
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -939,58 +801,6 @@ export namespace tpu_v1 {
939
801
 
940
802
  /**
941
803
  * Lists accelerator types supported by this API.
942
- * @example
943
- * ```js
944
- * // Before running the sample:
945
- * // - Enable the API at:
946
- * // https://console.developers.google.com/apis/api/tpu.googleapis.com
947
- * // - Login into gcloud by running:
948
- * // `$ gcloud auth application-default login`
949
- * // - Install the npm module by running:
950
- * // `$ npm install googleapis`
951
- *
952
- * const {google} = require('googleapis');
953
- * const tpu = google.tpu('v1');
954
- *
955
- * async function main() {
956
- * const auth = new google.auth.GoogleAuth({
957
- * // Scopes can be specified either as an array or as a single, space-delimited string.
958
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
959
- * });
960
- *
961
- * // Acquire an auth client, and bind it to all future calls
962
- * const authClient = await auth.getClient();
963
- * google.options({auth: authClient});
964
- *
965
- * // Do the magic
966
- * const res = await tpu.projects.locations.acceleratorTypes.list({
967
- * // List filter.
968
- * filter: 'placeholder-value',
969
- * // Sort results.
970
- * orderBy: 'placeholder-value',
971
- * // The maximum number of items to return.
972
- * pageSize: 'placeholder-value',
973
- * // The next_page_token value returned from a previous List request, if any.
974
- * pageToken: 'placeholder-value',
975
- * // Required. The parent resource name.
976
- * parent: 'projects/my-project/locations/my-location',
977
- * });
978
- * console.log(res.data);
979
- *
980
- * // Example response
981
- * // {
982
- * // "acceleratorTypes": [],
983
- * // "nextPageToken": "my_nextPageToken",
984
- * // "unreachable": []
985
- * // }
986
- * }
987
- *
988
- * main().catch(e => {
989
- * console.error(e);
990
- * throw e;
991
- * });
992
- *
993
- * ```
994
804
  *
995
805
  * @param params - Parameters for request
996
806
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1125,80 +935,6 @@ export namespace tpu_v1 {
1125
935
 
1126
936
  /**
1127
937
  * Creates a node.
1128
- * @example
1129
- * ```js
1130
- * // Before running the sample:
1131
- * // - Enable the API at:
1132
- * // https://console.developers.google.com/apis/api/tpu.googleapis.com
1133
- * // - Login into gcloud by running:
1134
- * // `$ gcloud auth application-default login`
1135
- * // - Install the npm module by running:
1136
- * // `$ npm install googleapis`
1137
- *
1138
- * const {google} = require('googleapis');
1139
- * const tpu = google.tpu('v1');
1140
- *
1141
- * async function main() {
1142
- * const auth = new google.auth.GoogleAuth({
1143
- * // Scopes can be specified either as an array or as a single, space-delimited string.
1144
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
1145
- * });
1146
- *
1147
- * // Acquire an auth client, and bind it to all future calls
1148
- * const authClient = await auth.getClient();
1149
- * google.options({auth: authClient});
1150
- *
1151
- * // Do the magic
1152
- * const res = await tpu.projects.locations.nodes.create({
1153
- * // The unqualified resource name.
1154
- * nodeId: 'placeholder-value',
1155
- * // Required. The parent resource name.
1156
- * parent: 'projects/my-project/locations/my-location',
1157
- *
1158
- * // Request body metadata
1159
- * requestBody: {
1160
- * // request body parameters
1161
- * // {
1162
- * // "acceleratorType": "my_acceleratorType",
1163
- * // "apiVersion": "my_apiVersion",
1164
- * // "cidrBlock": "my_cidrBlock",
1165
- * // "createTime": "my_createTime",
1166
- * // "description": "my_description",
1167
- * // "health": "my_health",
1168
- * // "healthDescription": "my_healthDescription",
1169
- * // "ipAddress": "my_ipAddress",
1170
- * // "labels": {},
1171
- * // "name": "my_name",
1172
- * // "network": "my_network",
1173
- * // "networkEndpoints": [],
1174
- * // "port": "my_port",
1175
- * // "schedulingConfig": {},
1176
- * // "serviceAccount": "my_serviceAccount",
1177
- * // "state": "my_state",
1178
- * // "symptoms": [],
1179
- * // "tensorflowVersion": "my_tensorflowVersion",
1180
- * // "useServiceNetworking": false
1181
- * // }
1182
- * },
1183
- * });
1184
- * console.log(res.data);
1185
- *
1186
- * // Example response
1187
- * // {
1188
- * // "done": false,
1189
- * // "error": {},
1190
- * // "metadata": {},
1191
- * // "name": "my_name",
1192
- * // "response": {}
1193
- * // }
1194
- * }
1195
- *
1196
- * main().catch(e => {
1197
- * console.error(e);
1198
- * throw e;
1199
- * });
1200
- *
1201
- * ```
1202
938
  *
1203
939
  * @param params - Parameters for request
1204
940
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1286,52 +1022,6 @@ export namespace tpu_v1 {
1286
1022
 
1287
1023
  /**
1288
1024
  * Deletes a node.
1289
- * @example
1290
- * ```js
1291
- * // Before running the sample:
1292
- * // - Enable the API at:
1293
- * // https://console.developers.google.com/apis/api/tpu.googleapis.com
1294
- * // - Login into gcloud by running:
1295
- * // `$ gcloud auth application-default login`
1296
- * // - Install the npm module by running:
1297
- * // `$ npm install googleapis`
1298
- *
1299
- * const {google} = require('googleapis');
1300
- * const tpu = google.tpu('v1');
1301
- *
1302
- * async function main() {
1303
- * const auth = new google.auth.GoogleAuth({
1304
- * // Scopes can be specified either as an array or as a single, space-delimited string.
1305
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
1306
- * });
1307
- *
1308
- * // Acquire an auth client, and bind it to all future calls
1309
- * const authClient = await auth.getClient();
1310
- * google.options({auth: authClient});
1311
- *
1312
- * // Do the magic
1313
- * const res = await tpu.projects.locations.nodes.delete({
1314
- * // Required. The resource name.
1315
- * name: 'projects/my-project/locations/my-location/nodes/my-node',
1316
- * });
1317
- * console.log(res.data);
1318
- *
1319
- * // Example response
1320
- * // {
1321
- * // "done": false,
1322
- * // "error": {},
1323
- * // "metadata": {},
1324
- * // "name": "my_name",
1325
- * // "response": {}
1326
- * // }
1327
- * }
1328
- *
1329
- * main().catch(e => {
1330
- * console.error(e);
1331
- * throw e;
1332
- * });
1333
- *
1334
- * ```
1335
1025
  *
1336
1026
  * @param params - Parameters for request
1337
1027
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1416,66 +1106,6 @@ export namespace tpu_v1 {
1416
1106
 
1417
1107
  /**
1418
1108
  * Gets the details of a node.
1419
- * @example
1420
- * ```js
1421
- * // Before running the sample:
1422
- * // - Enable the API at:
1423
- * // https://console.developers.google.com/apis/api/tpu.googleapis.com
1424
- * // - Login into gcloud by running:
1425
- * // `$ gcloud auth application-default login`
1426
- * // - Install the npm module by running:
1427
- * // `$ npm install googleapis`
1428
- *
1429
- * const {google} = require('googleapis');
1430
- * const tpu = google.tpu('v1');
1431
- *
1432
- * async function main() {
1433
- * const auth = new google.auth.GoogleAuth({
1434
- * // Scopes can be specified either as an array or as a single, space-delimited string.
1435
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
1436
- * });
1437
- *
1438
- * // Acquire an auth client, and bind it to all future calls
1439
- * const authClient = await auth.getClient();
1440
- * google.options({auth: authClient});
1441
- *
1442
- * // Do the magic
1443
- * const res = await tpu.projects.locations.nodes.get({
1444
- * // Required. The resource name.
1445
- * name: 'projects/my-project/locations/my-location/nodes/my-node',
1446
- * });
1447
- * console.log(res.data);
1448
- *
1449
- * // Example response
1450
- * // {
1451
- * // "acceleratorType": "my_acceleratorType",
1452
- * // "apiVersion": "my_apiVersion",
1453
- * // "cidrBlock": "my_cidrBlock",
1454
- * // "createTime": "my_createTime",
1455
- * // "description": "my_description",
1456
- * // "health": "my_health",
1457
- * // "healthDescription": "my_healthDescription",
1458
- * // "ipAddress": "my_ipAddress",
1459
- * // "labels": {},
1460
- * // "name": "my_name",
1461
- * // "network": "my_network",
1462
- * // "networkEndpoints": [],
1463
- * // "port": "my_port",
1464
- * // "schedulingConfig": {},
1465
- * // "serviceAccount": "my_serviceAccount",
1466
- * // "state": "my_state",
1467
- * // "symptoms": [],
1468
- * // "tensorflowVersion": "my_tensorflowVersion",
1469
- * // "useServiceNetworking": false
1470
- * // }
1471
- * }
1472
- *
1473
- * main().catch(e => {
1474
- * console.error(e);
1475
- * throw e;
1476
- * });
1477
- *
1478
- * ```
1479
1109
  *
1480
1110
  * @param params - Parameters for request
1481
1111
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1560,54 +1190,6 @@ export namespace tpu_v1 {
1560
1190
 
1561
1191
  /**
1562
1192
  * Lists nodes.
1563
- * @example
1564
- * ```js
1565
- * // Before running the sample:
1566
- * // - Enable the API at:
1567
- * // https://console.developers.google.com/apis/api/tpu.googleapis.com
1568
- * // - Login into gcloud by running:
1569
- * // `$ gcloud auth application-default login`
1570
- * // - Install the npm module by running:
1571
- * // `$ npm install googleapis`
1572
- *
1573
- * const {google} = require('googleapis');
1574
- * const tpu = google.tpu('v1');
1575
- *
1576
- * async function main() {
1577
- * const auth = new google.auth.GoogleAuth({
1578
- * // Scopes can be specified either as an array or as a single, space-delimited string.
1579
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
1580
- * });
1581
- *
1582
- * // Acquire an auth client, and bind it to all future calls
1583
- * const authClient = await auth.getClient();
1584
- * google.options({auth: authClient});
1585
- *
1586
- * // Do the magic
1587
- * const res = await tpu.projects.locations.nodes.list({
1588
- * // The maximum number of items to return.
1589
- * pageSize: 'placeholder-value',
1590
- * // The next_page_token value returned from a previous List request, if any.
1591
- * pageToken: 'placeholder-value',
1592
- * // Required. The parent resource name.
1593
- * parent: 'projects/my-project/locations/my-location',
1594
- * });
1595
- * console.log(res.data);
1596
- *
1597
- * // Example response
1598
- * // {
1599
- * // "nextPageToken": "my_nextPageToken",
1600
- * // "nodes": [],
1601
- * // "unreachable": []
1602
- * // }
1603
- * }
1604
- *
1605
- * main().catch(e => {
1606
- * console.error(e);
1607
- * throw e;
1608
- * });
1609
- *
1610
- * ```
1611
1193
  *
1612
1194
  * @param params - Parameters for request
1613
1195
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1698,60 +1280,6 @@ export namespace tpu_v1 {
1698
1280
 
1699
1281
  /**
1700
1282
  * Reimages a node's OS.
1701
- * @example
1702
- * ```js
1703
- * // Before running the sample:
1704
- * // - Enable the API at:
1705
- * // https://console.developers.google.com/apis/api/tpu.googleapis.com
1706
- * // - Login into gcloud by running:
1707
- * // `$ gcloud auth application-default login`
1708
- * // - Install the npm module by running:
1709
- * // `$ npm install googleapis`
1710
- *
1711
- * const {google} = require('googleapis');
1712
- * const tpu = google.tpu('v1');
1713
- *
1714
- * async function main() {
1715
- * const auth = new google.auth.GoogleAuth({
1716
- * // Scopes can be specified either as an array or as a single, space-delimited string.
1717
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
1718
- * });
1719
- *
1720
- * // Acquire an auth client, and bind it to all future calls
1721
- * const authClient = await auth.getClient();
1722
- * google.options({auth: authClient});
1723
- *
1724
- * // Do the magic
1725
- * const res = await tpu.projects.locations.nodes.reimage({
1726
- * // The resource name.
1727
- * name: 'projects/my-project/locations/my-location/nodes/my-node',
1728
- *
1729
- * // Request body metadata
1730
- * requestBody: {
1731
- * // request body parameters
1732
- * // {
1733
- * // "tensorflowVersion": "my_tensorflowVersion"
1734
- * // }
1735
- * },
1736
- * });
1737
- * console.log(res.data);
1738
- *
1739
- * // Example response
1740
- * // {
1741
- * // "done": false,
1742
- * // "error": {},
1743
- * // "metadata": {},
1744
- * // "name": "my_name",
1745
- * // "response": {}
1746
- * // }
1747
- * }
1748
- *
1749
- * main().catch(e => {
1750
- * console.error(e);
1751
- * throw e;
1752
- * });
1753
- *
1754
- * ```
1755
1283
  *
1756
1284
  * @param params - Parameters for request
1757
1285
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1839,58 +1367,6 @@ export namespace tpu_v1 {
1839
1367
 
1840
1368
  /**
1841
1369
  * Starts a node.
1842
- * @example
1843
- * ```js
1844
- * // Before running the sample:
1845
- * // - Enable the API at:
1846
- * // https://console.developers.google.com/apis/api/tpu.googleapis.com
1847
- * // - Login into gcloud by running:
1848
- * // `$ gcloud auth application-default login`
1849
- * // - Install the npm module by running:
1850
- * // `$ npm install googleapis`
1851
- *
1852
- * const {google} = require('googleapis');
1853
- * const tpu = google.tpu('v1');
1854
- *
1855
- * async function main() {
1856
- * const auth = new google.auth.GoogleAuth({
1857
- * // Scopes can be specified either as an array or as a single, space-delimited string.
1858
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
1859
- * });
1860
- *
1861
- * // Acquire an auth client, and bind it to all future calls
1862
- * const authClient = await auth.getClient();
1863
- * google.options({auth: authClient});
1864
- *
1865
- * // Do the magic
1866
- * const res = await tpu.projects.locations.nodes.start({
1867
- * // The resource name.
1868
- * name: 'projects/my-project/locations/my-location/nodes/my-node',
1869
- *
1870
- * // Request body metadata
1871
- * requestBody: {
1872
- * // request body parameters
1873
- * // {}
1874
- * },
1875
- * });
1876
- * console.log(res.data);
1877
- *
1878
- * // Example response
1879
- * // {
1880
- * // "done": false,
1881
- * // "error": {},
1882
- * // "metadata": {},
1883
- * // "name": "my_name",
1884
- * // "response": {}
1885
- * // }
1886
- * }
1887
- *
1888
- * main().catch(e => {
1889
- * console.error(e);
1890
- * throw e;
1891
- * });
1892
- *
1893
- * ```
1894
1370
  *
1895
1371
  * @param params - Parameters for request
1896
1372
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1975,58 +1451,6 @@ export namespace tpu_v1 {
1975
1451
 
1976
1452
  /**
1977
1453
  * Stops a node, this operation is only available with single TPU nodes.
1978
- * @example
1979
- * ```js
1980
- * // Before running the sample:
1981
- * // - Enable the API at:
1982
- * // https://console.developers.google.com/apis/api/tpu.googleapis.com
1983
- * // - Login into gcloud by running:
1984
- * // `$ gcloud auth application-default login`
1985
- * // - Install the npm module by running:
1986
- * // `$ npm install googleapis`
1987
- *
1988
- * const {google} = require('googleapis');
1989
- * const tpu = google.tpu('v1');
1990
- *
1991
- * async function main() {
1992
- * const auth = new google.auth.GoogleAuth({
1993
- * // Scopes can be specified either as an array or as a single, space-delimited string.
1994
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
1995
- * });
1996
- *
1997
- * // Acquire an auth client, and bind it to all future calls
1998
- * const authClient = await auth.getClient();
1999
- * google.options({auth: authClient});
2000
- *
2001
- * // Do the magic
2002
- * const res = await tpu.projects.locations.nodes.stop({
2003
- * // The resource name.
2004
- * name: 'projects/my-project/locations/my-location/nodes/my-node',
2005
- *
2006
- * // Request body metadata
2007
- * requestBody: {
2008
- * // request body parameters
2009
- * // {}
2010
- * },
2011
- * });
2012
- * console.log(res.data);
2013
- *
2014
- * // Example response
2015
- * // {
2016
- * // "done": false,
2017
- * // "error": {},
2018
- * // "metadata": {},
2019
- * // "name": "my_name",
2020
- * // "response": {}
2021
- * // }
2022
- * }
2023
- *
2024
- * main().catch(e => {
2025
- * console.error(e);
2026
- * throw e;
2027
- * });
2028
- *
2029
- * ```
2030
1454
  *
2031
1455
  * @param params - Parameters for request
2032
1456
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2200,46 +1624,6 @@ export namespace tpu_v1 {
2200
1624
 
2201
1625
  /**
2202
1626
  * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
2203
- * @example
2204
- * ```js
2205
- * // Before running the sample:
2206
- * // - Enable the API at:
2207
- * // https://console.developers.google.com/apis/api/tpu.googleapis.com
2208
- * // - Login into gcloud by running:
2209
- * // `$ gcloud auth application-default login`
2210
- * // - Install the npm module by running:
2211
- * // `$ npm install googleapis`
2212
- *
2213
- * const {google} = require('googleapis');
2214
- * const tpu = google.tpu('v1');
2215
- *
2216
- * async function main() {
2217
- * const auth = new google.auth.GoogleAuth({
2218
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2219
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
2220
- * });
2221
- *
2222
- * // Acquire an auth client, and bind it to all future calls
2223
- * const authClient = await auth.getClient();
2224
- * google.options({auth: authClient});
2225
- *
2226
- * // Do the magic
2227
- * const res = await tpu.projects.locations.operations.cancel({
2228
- * // The name of the operation resource to be cancelled.
2229
- * name: 'projects/my-project/locations/my-location/operations/my-operation',
2230
- * });
2231
- * console.log(res.data);
2232
- *
2233
- * // Example response
2234
- * // {}
2235
- * }
2236
- *
2237
- * main().catch(e => {
2238
- * console.error(e);
2239
- * throw e;
2240
- * });
2241
- *
2242
- * ```
2243
1627
  *
2244
1628
  * @param params - Parameters for request
2245
1629
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2324,46 +1708,6 @@ export namespace tpu_v1 {
2324
1708
 
2325
1709
  /**
2326
1710
  * Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
2327
- * @example
2328
- * ```js
2329
- * // Before running the sample:
2330
- * // - Enable the API at:
2331
- * // https://console.developers.google.com/apis/api/tpu.googleapis.com
2332
- * // - Login into gcloud by running:
2333
- * // `$ gcloud auth application-default login`
2334
- * // - Install the npm module by running:
2335
- * // `$ npm install googleapis`
2336
- *
2337
- * const {google} = require('googleapis');
2338
- * const tpu = google.tpu('v1');
2339
- *
2340
- * async function main() {
2341
- * const auth = new google.auth.GoogleAuth({
2342
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2343
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
2344
- * });
2345
- *
2346
- * // Acquire an auth client, and bind it to all future calls
2347
- * const authClient = await auth.getClient();
2348
- * google.options({auth: authClient});
2349
- *
2350
- * // Do the magic
2351
- * const res = await tpu.projects.locations.operations.delete({
2352
- * // The name of the operation resource to be deleted.
2353
- * name: 'projects/my-project/locations/my-location/operations/my-operation',
2354
- * });
2355
- * console.log(res.data);
2356
- *
2357
- * // Example response
2358
- * // {}
2359
- * }
2360
- *
2361
- * main().catch(e => {
2362
- * console.error(e);
2363
- * throw e;
2364
- * });
2365
- *
2366
- * ```
2367
1711
  *
2368
1712
  * @param params - Parameters for request
2369
1713
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2448,52 +1792,6 @@ export namespace tpu_v1 {
2448
1792
 
2449
1793
  /**
2450
1794
  * Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
2451
- * @example
2452
- * ```js
2453
- * // Before running the sample:
2454
- * // - Enable the API at:
2455
- * // https://console.developers.google.com/apis/api/tpu.googleapis.com
2456
- * // - Login into gcloud by running:
2457
- * // `$ gcloud auth application-default login`
2458
- * // - Install the npm module by running:
2459
- * // `$ npm install googleapis`
2460
- *
2461
- * const {google} = require('googleapis');
2462
- * const tpu = google.tpu('v1');
2463
- *
2464
- * async function main() {
2465
- * const auth = new google.auth.GoogleAuth({
2466
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2467
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
2468
- * });
2469
- *
2470
- * // Acquire an auth client, and bind it to all future calls
2471
- * const authClient = await auth.getClient();
2472
- * google.options({auth: authClient});
2473
- *
2474
- * // Do the magic
2475
- * const res = await tpu.projects.locations.operations.get({
2476
- * // The name of the operation resource.
2477
- * name: 'projects/my-project/locations/my-location/operations/my-operation',
2478
- * });
2479
- * console.log(res.data);
2480
- *
2481
- * // Example response
2482
- * // {
2483
- * // "done": false,
2484
- * // "error": {},
2485
- * // "metadata": {},
2486
- * // "name": "my_name",
2487
- * // "response": {}
2488
- * // }
2489
- * }
2490
- *
2491
- * main().catch(e => {
2492
- * console.error(e);
2493
- * throw e;
2494
- * });
2495
- *
2496
- * ```
2497
1795
  *
2498
1796
  * @param params - Parameters for request
2499
1797
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2577,56 +1875,7 @@ export namespace tpu_v1 {
2577
1875
  }
2578
1876
 
2579
1877
  /**
2580
- * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/x/operations`. To override the binding, API services can add a binding such as `"/v1/{name=users/x\}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.
2581
- * @example
2582
- * ```js
2583
- * // Before running the sample:
2584
- * // - Enable the API at:
2585
- * // https://console.developers.google.com/apis/api/tpu.googleapis.com
2586
- * // - Login into gcloud by running:
2587
- * // `$ gcloud auth application-default login`
2588
- * // - Install the npm module by running:
2589
- * // `$ npm install googleapis`
2590
- *
2591
- * const {google} = require('googleapis');
2592
- * const tpu = google.tpu('v1');
2593
- *
2594
- * async function main() {
2595
- * const auth = new google.auth.GoogleAuth({
2596
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2597
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
2598
- * });
2599
- *
2600
- * // Acquire an auth client, and bind it to all future calls
2601
- * const authClient = await auth.getClient();
2602
- * google.options({auth: authClient});
2603
- *
2604
- * // Do the magic
2605
- * const res = await tpu.projects.locations.operations.list({
2606
- * // The standard list filter.
2607
- * filter: 'placeholder-value',
2608
- * // The name of the operation's parent resource.
2609
- * name: 'projects/my-project/locations/my-location',
2610
- * // The standard list page size.
2611
- * pageSize: 'placeholder-value',
2612
- * // The standard list page token.
2613
- * pageToken: 'placeholder-value',
2614
- * });
2615
- * console.log(res.data);
2616
- *
2617
- * // Example response
2618
- * // {
2619
- * // "nextPageToken": "my_nextPageToken",
2620
- * // "operations": []
2621
- * // }
2622
- * }
2623
- *
2624
- * main().catch(e => {
2625
- * console.error(e);
2626
- * throw e;
2627
- * });
2628
- *
2629
- * ```
1878
+ * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.
2630
1879
  *
2631
1880
  * @param params - Parameters for request
2632
1881
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2767,49 +2016,6 @@ export namespace tpu_v1 {
2767
2016
 
2768
2017
  /**
2769
2018
  * Gets TensorFlow Version.
2770
- * @example
2771
- * ```js
2772
- * // Before running the sample:
2773
- * // - Enable the API at:
2774
- * // https://console.developers.google.com/apis/api/tpu.googleapis.com
2775
- * // - Login into gcloud by running:
2776
- * // `$ gcloud auth application-default login`
2777
- * // - Install the npm module by running:
2778
- * // `$ npm install googleapis`
2779
- *
2780
- * const {google} = require('googleapis');
2781
- * const tpu = google.tpu('v1');
2782
- *
2783
- * async function main() {
2784
- * const auth = new google.auth.GoogleAuth({
2785
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2786
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
2787
- * });
2788
- *
2789
- * // Acquire an auth client, and bind it to all future calls
2790
- * const authClient = await auth.getClient();
2791
- * google.options({auth: authClient});
2792
- *
2793
- * // Do the magic
2794
- * const res = await tpu.projects.locations.tensorflowVersions.get({
2795
- * // Required. The resource name.
2796
- * name: 'projects/my-project/locations/my-location/tensorflowVersions/my-tensorflowVersion',
2797
- * });
2798
- * console.log(res.data);
2799
- *
2800
- * // Example response
2801
- * // {
2802
- * // "name": "my_name",
2803
- * // "version": "my_version"
2804
- * // }
2805
- * }
2806
- *
2807
- * main().catch(e => {
2808
- * console.error(e);
2809
- * throw e;
2810
- * });
2811
- *
2812
- * ```
2813
2019
  *
2814
2020
  * @param params - Parameters for request
2815
2021
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2898,58 +2104,6 @@ export namespace tpu_v1 {
2898
2104
 
2899
2105
  /**
2900
2106
  * List TensorFlow versions supported by this API.
2901
- * @example
2902
- * ```js
2903
- * // Before running the sample:
2904
- * // - Enable the API at:
2905
- * // https://console.developers.google.com/apis/api/tpu.googleapis.com
2906
- * // - Login into gcloud by running:
2907
- * // `$ gcloud auth application-default login`
2908
- * // - Install the npm module by running:
2909
- * // `$ npm install googleapis`
2910
- *
2911
- * const {google} = require('googleapis');
2912
- * const tpu = google.tpu('v1');
2913
- *
2914
- * async function main() {
2915
- * const auth = new google.auth.GoogleAuth({
2916
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2917
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
2918
- * });
2919
- *
2920
- * // Acquire an auth client, and bind it to all future calls
2921
- * const authClient = await auth.getClient();
2922
- * google.options({auth: authClient});
2923
- *
2924
- * // Do the magic
2925
- * const res = await tpu.projects.locations.tensorflowVersions.list({
2926
- * // List filter.
2927
- * filter: 'placeholder-value',
2928
- * // Sort results.
2929
- * orderBy: 'placeholder-value',
2930
- * // The maximum number of items to return.
2931
- * pageSize: 'placeholder-value',
2932
- * // The next_page_token value returned from a previous List request, if any.
2933
- * pageToken: 'placeholder-value',
2934
- * // Required. The parent resource name.
2935
- * parent: 'projects/my-project/locations/my-location',
2936
- * });
2937
- * console.log(res.data);
2938
- *
2939
- * // Example response
2940
- * // {
2941
- * // "nextPageToken": "my_nextPageToken",
2942
- * // "tensorflowVersions": [],
2943
- * // "unreachable": []
2944
- * // }
2945
- * }
2946
- *
2947
- * main().catch(e => {
2948
- * console.error(e);
2949
- * throw e;
2950
- * });
2951
- *
2952
- * ```
2953
2107
  *
2954
2108
  * @param params - Parameters for request
2955
2109
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.