| 1 | { |
| 2 | "clientLibrary": { |
| 3 | "name": "cloud.google.com/go/tpu/apiv1", |
| 4 | "version": "1.8.3", |
| 5 | "language": "GO", |
| 6 | "apis": [ |
| 7 | { |
| 8 | "id": "google.cloud.tpu.v1", |
| 9 | "version": "v1" |
| 10 | } |
| 11 | ] |
| 12 | }, |
| 13 | "snippets": [ |
| 14 | { |
| 15 | "regionTag": "tpu_v1_generated_Tpu_CancelOperation_sync", |
| 16 | "title": "tpu CancelOperation Sample", |
| 17 | "description": "CancelOperation is a utility method from google.longrunning.Operations.", |
| 18 | "file": "Client/CancelOperation/main.go", |
| 19 | "language": "GO", |
| 20 | "clientMethod": { |
| 21 | "shortName": "CancelOperation", |
| 22 | "fullName": "google.cloud.tpu.v1.Client.CancelOperation", |
| 23 | "parameters": [ |
| 24 | { |
| 25 | "type": "context.Context", |
| 26 | "name": "ctx" |
| 27 | }, |
| 28 | { |
| 29 | "type": "longrunningpb.CancelOperationRequest", |
| 30 | "name": "req" |
| 31 | }, |
| 32 | { |
| 33 | "type": "...gax.CallOption", |
| 34 | "name": "opts" |
| 35 | } |
| 36 | ], |
| 37 | "client": { |
| 38 | "shortName": "Client", |
| 39 | "fullName": "google.cloud.tpu.v1.Client" |
| 40 | }, |
| 41 | "method": { |
| 42 | "shortName": "CancelOperation", |
| 43 | "fullName": "google.longrunning.Operations.CancelOperation", |
| 44 | "service": { |
| 45 | "shortName": "Operations", |
| 46 | "fullName": "google.longrunning.Operations" |
| 47 | } |
| 48 | } |
| 49 | }, |
| 50 | "origin": "API_DEFINITION", |
| 51 | "segments": [ |
| 52 | { |
| 53 | "start": 18, |
| 54 | "end": 51, |
| 55 | "type": "FULL" |
| 56 | } |
| 57 | ] |
| 58 | }, |
| 59 | { |
| 60 | "regionTag": "tpu_v1_generated_Tpu_CreateNode_sync", |
| 61 | "title": "tpu CreateNode Sample", |
| 62 | "description": "CreateNode creates a node.", |
| 63 | "file": "Client/CreateNode/main.go", |
| 64 | "language": "GO", |
| 65 | "clientMethod": { |
| 66 | "shortName": "CreateNode", |
| 67 | "fullName": "google.cloud.tpu.v1.Client.CreateNode", |
| 68 | "parameters": [ |
| 69 | { |
| 70 | "type": "context.Context", |
| 71 | "name": "ctx" |
| 72 | }, |
| 73 | { |
| 74 | "type": "tpupb.CreateNodeRequest", |
| 75 | "name": "req" |
| 76 | }, |
| 77 | { |
| 78 | "type": "...gax.CallOption", |
| 79 | "name": "opts" |
| 80 | } |
| 81 | ], |
| 82 | "resultType": "CreateNodeOperation", |
| 83 | "client": { |
| 84 | "shortName": "Client", |
| 85 | "fullName": "google.cloud.tpu.v1.Client" |
| 86 | }, |
| 87 | "method": { |
| 88 | "shortName": "CreateNode", |
| 89 | "fullName": "google.cloud.tpu.v1.Tpu.CreateNode", |
| 90 | "service": { |
| 91 | "shortName": "Tpu", |
| 92 | "fullName": "google.cloud.tpu.v1.Tpu" |
| 93 | } |
| 94 | } |
| 95 | }, |
| 96 | "origin": "API_DEFINITION", |
| 97 | "segments": [ |
| 98 | { |
| 99 | "start": 18, |
| 100 | "end": 58, |
| 101 | "type": "FULL" |
| 102 | } |
| 103 | ] |
| 104 | }, |
| 105 | { |
| 106 | "regionTag": "tpu_v1_generated_Tpu_DeleteNode_sync", |
| 107 | "title": "tpu DeleteNode Sample", |
| 108 | "description": "DeleteNode deletes a node.", |
| 109 | "file": "Client/DeleteNode/main.go", |
| 110 | "language": "GO", |
| 111 | "clientMethod": { |
| 112 | "shortName": "DeleteNode", |
| 113 | "fullName": "google.cloud.tpu.v1.Client.DeleteNode", |
| 114 | "parameters": [ |
| 115 | { |
| 116 | "type": "context.Context", |
| 117 | "name": "ctx" |
| 118 | }, |
| 119 | { |
| 120 | "type": "tpupb.DeleteNodeRequest", |
| 121 | "name": "req" |
| 122 | }, |
| 123 | { |
| 124 | "type": "...gax.CallOption", |
| 125 | "name": "opts" |
| 126 | } |
| 127 | ], |
| 128 | "resultType": "DeleteNodeOperation", |
| 129 | "client": { |
| 130 | "shortName": "Client", |
| 131 | "fullName": "google.cloud.tpu.v1.Client" |
| 132 | }, |
| 133 | "method": { |
| 134 | "shortName": "DeleteNode", |
| 135 | "fullName": "google.cloud.tpu.v1.Tpu.DeleteNode", |
| 136 | "service": { |
| 137 | "shortName": "Tpu", |
| 138 | "fullName": "google.cloud.tpu.v1.Tpu" |
| 139 | } |
| 140 | } |
| 141 | }, |
| 142 | "origin": "API_DEFINITION", |
| 143 | "segments": [ |
| 144 | { |
| 145 | "start": 18, |
| 146 | "end": 58, |
| 147 | "type": "FULL" |
| 148 | } |
| 149 | ] |
| 150 | }, |
| 151 | { |
| 152 | "regionTag": "tpu_v1_generated_Tpu_DeleteOperation_sync", |
| 153 | "title": "tpu DeleteOperation Sample", |
| 154 | "description": "DeleteOperation is a utility method from google.longrunning.Operations.", |
| 155 | "file": "Client/DeleteOperation/main.go", |
| 156 | "language": "GO", |
| 157 | "clientMethod": { |
| 158 | "shortName": "DeleteOperation", |
| 159 | "fullName": "google.cloud.tpu.v1.Client.DeleteOperation", |
| 160 | "parameters": [ |
| 161 | { |
| 162 | "type": "context.Context", |
| 163 | "name": "ctx" |
| 164 | }, |
| 165 | { |
| 166 | "type": "longrunningpb.DeleteOperationRequest", |
| 167 | "name": "req" |
| 168 | }, |
| 169 | { |
| 170 | "type": "...gax.CallOption", |
| 171 | "name": "opts" |
| 172 | } |
| 173 | ], |
| 174 | "client": { |
| 175 | "shortName": "Client", |
| 176 | "fullName": "google.cloud.tpu.v1.Client" |
| 177 | }, |
| 178 | "method": { |
| 179 | "shortName": "DeleteOperation", |
| 180 | "fullName": "google.longrunning.Operations.DeleteOperation", |
| 181 | "service": { |
| 182 | "shortName": "Operations", |
| 183 | "fullName": "google.longrunning.Operations" |
| 184 | } |
| 185 | } |
| 186 | }, |
| 187 | "origin": "API_DEFINITION", |
| 188 | "segments": [ |
| 189 | { |
| 190 | "start": 18, |
| 191 | "end": 51, |
| 192 | "type": "FULL" |
| 193 | } |
| 194 | ] |
| 195 | }, |
| 196 | { |
| 197 | "regionTag": "tpu_v1_generated_Tpu_GetAcceleratorType_sync", |
| 198 | "title": "tpu GetAcceleratorType Sample", |
| 199 | "description": "GetAcceleratorType gets AcceleratorType.", |
| 200 | "file": "Client/GetAcceleratorType/main.go", |
| 201 | "language": "GO", |
| 202 | "clientMethod": { |
| 203 | "shortName": "GetAcceleratorType", |
| 204 | "fullName": "google.cloud.tpu.v1.Client.GetAcceleratorType", |
| 205 | "parameters": [ |
| 206 | { |
| 207 | "type": "context.Context", |
| 208 | "name": "ctx" |
| 209 | }, |
| 210 | { |
| 211 | "type": "tpupb.GetAcceleratorTypeRequest", |
| 212 | "name": "req" |
| 213 | }, |
| 214 | { |
| 215 | "type": "...gax.CallOption", |
| 216 | "name": "opts" |
| 217 | } |
| 218 | ], |
| 219 | "resultType": "*tpupb.AcceleratorType", |
| 220 | "client": { |
| 221 | "shortName": "Client", |
| 222 | "fullName": "google.cloud.tpu.v1.Client" |
| 223 | }, |
| 224 | "method": { |
| 225 | "shortName": "GetAcceleratorType", |
| 226 | "fullName": "google.cloud.tpu.v1.Tpu.GetAcceleratorType", |
| 227 | "service": { |
| 228 | "shortName": "Tpu", |
| 229 | "fullName": "google.cloud.tpu.v1.Tpu" |
| 230 | } |
| 231 | } |
| 232 | }, |
| 233 | "origin": "API_DEFINITION", |
| 234 | "segments": [ |
| 235 | { |
| 236 | "start": 18, |
| 237 | "end": 53, |
| 238 | "type": "FULL" |
| 239 | } |
| 240 | ] |
| 241 | }, |
| 242 | { |
| 243 | "regionTag": "tpu_v1_generated_Tpu_GetLocation_sync", |
| 244 | "title": "tpu GetLocation Sample", |
| 245 | "description": "GetLocation gets information about a location.", |
| 246 | "file": "Client/GetLocation/main.go", |
| 247 | "language": "GO", |
| 248 | "clientMethod": { |
| 249 | "shortName": "GetLocation", |
| 250 | "fullName": "google.cloud.tpu.v1.Client.GetLocation", |
| 251 | "parameters": [ |
| 252 | { |
| 253 | "type": "context.Context", |
| 254 | "name": "ctx" |
| 255 | }, |
| 256 | { |
| 257 | "type": "locationpb.GetLocationRequest", |
| 258 | "name": "req" |
| 259 | }, |
| 260 | { |
| 261 | "type": "...gax.CallOption", |
| 262 | "name": "opts" |
| 263 | } |
| 264 | ], |
| 265 | "resultType": "*locationpb.Location", |
| 266 | "client": { |
| 267 | "shortName": "Client", |
| 268 | "fullName": "google.cloud.tpu.v1.Client" |
| 269 | }, |
| 270 | "method": { |
| 271 | "shortName": "GetLocation", |
| 272 | "fullName": "google.cloud.location.Locations.GetLocation", |
| 273 | "service": { |
| 274 | "shortName": "Locations", |
| 275 | "fullName": "google.cloud.location.Locations" |
| 276 | } |
| 277 | } |
| 278 | }, |
| 279 | "origin": "API_DEFINITION", |
| 280 | "segments": [ |
| 281 | { |
| 282 | "start": 18, |
| 283 | "end": 53, |
| 284 | "type": "FULL" |
| 285 | } |
| 286 | ] |
| 287 | }, |
| 288 | { |
| 289 | "regionTag": "tpu_v1_generated_Tpu_GetNode_sync", |
| 290 | "title": "tpu GetNode Sample", |
| 291 | "description": "GetNode gets the details of a node.", |
| 292 | "file": "Client/GetNode/main.go", |
| 293 | "language": "GO", |
| 294 | "clientMethod": { |
| 295 | "shortName": "GetNode", |
| 296 | "fullName": "google.cloud.tpu.v1.Client.GetNode", |
| 297 | "parameters": [ |
| 298 | { |
| 299 | "type": "context.Context", |
| 300 | "name": "ctx" |
| 301 | }, |
| 302 | { |
| 303 | "type": "tpupb.GetNodeRequest", |
| 304 | "name": "req" |
| 305 | }, |
| 306 | { |
| 307 | "type": "...gax.CallOption", |
| 308 | "name": "opts" |
| 309 | } |
| 310 | ], |
| 311 | "resultType": "*tpupb.Node", |
| 312 | "client": { |
| 313 | "shortName": "Client", |
| 314 | "fullName": "google.cloud.tpu.v1.Client" |
| 315 | }, |
| 316 | "method": { |
| 317 | "shortName": "GetNode", |
| 318 | "fullName": "google.cloud.tpu.v1.Tpu.GetNode", |
| 319 | "service": { |
| 320 | "shortName": "Tpu", |
| 321 | "fullName": "google.cloud.tpu.v1.Tpu" |
| 322 | } |
| 323 | } |
| 324 | }, |
| 325 | "origin": "API_DEFINITION", |
| 326 | "segments": [ |
| 327 | { |
| 328 | "start": 18, |
| 329 | "end": 53, |
| 330 | "type": "FULL" |
| 331 | } |
| 332 | ] |
| 333 | }, |
| 334 | { |
| 335 | "regionTag": "tpu_v1_generated_Tpu_GetOperation_sync", |
| 336 | "title": "tpu GetOperation Sample", |
| 337 | "description": "GetOperation is a utility method from google.longrunning.Operations.", |
| 338 | "file": "Client/GetOperation/main.go", |
| 339 | "language": "GO", |
| 340 | "clientMethod": { |
| 341 | "shortName": "GetOperation", |
| 342 | "fullName": "google.cloud.tpu.v1.Client.GetOperation", |
| 343 | "parameters": [ |
| 344 | { |
| 345 | "type": "context.Context", |
| 346 | "name": "ctx" |
| 347 | }, |
| 348 | { |
| 349 | "type": "longrunningpb.GetOperationRequest", |
| 350 | "name": "req" |
| 351 | }, |
| 352 | { |
| 353 | "type": "...gax.CallOption", |
| 354 | "name": "opts" |
| 355 | } |
| 356 | ], |
| 357 | "resultType": "*longrunningpb.Operation", |
| 358 | "client": { |
| 359 | "shortName": "Client", |
| 360 | "fullName": "google.cloud.tpu.v1.Client" |
| 361 | }, |
| 362 | "method": { |
| 363 | "shortName": "GetOperation", |
| 364 | "fullName": "google.longrunning.Operations.GetOperation", |
| 365 | "service": { |
| 366 | "shortName": "Operations", |
| 367 | "fullName": "google.longrunning.Operations" |
| 368 | } |
| 369 | } |
| 370 | }, |
| 371 | "origin": "API_DEFINITION", |
| 372 | "segments": [ |
| 373 | { |
| 374 | "start": 18, |
| 375 | "end": 53, |
| 376 | "type": "FULL" |
| 377 | } |
| 378 | ] |
| 379 | }, |
| 380 | { |
| 381 | "regionTag": "tpu_v1_generated_Tpu_GetTensorFlowVersion_sync", |
| 382 | "title": "tpu GetTensorFlowVersion Sample", |
| 383 | "description": "GetTensorFlowVersion gets TensorFlow Version.", |
| 384 | "file": "Client/GetTensorFlowVersion/main.go", |
| 385 | "language": "GO", |
| 386 | "clientMethod": { |
| 387 | "shortName": "GetTensorFlowVersion", |
| 388 | "fullName": "google.cloud.tpu.v1.Client.GetTensorFlowVersion", |
| 389 | "parameters": [ |
| 390 | { |
| 391 | "type": "context.Context", |
| 392 | "name": "ctx" |
| 393 | }, |
| 394 | { |
| 395 | "type": "tpupb.GetTensorFlowVersionRequest", |
| 396 | "name": "req" |
| 397 | }, |
| 398 | { |
| 399 | "type": "...gax.CallOption", |
| 400 | "name": "opts" |
| 401 | } |
| 402 | ], |
| 403 | "resultType": "*tpupb.TensorFlowVersion", |
| 404 | "client": { |
| 405 | "shortName": "Client", |
| 406 | "fullName": "google.cloud.tpu.v1.Client" |
| 407 | }, |
| 408 | "method": { |
| 409 | "shortName": "GetTensorFlowVersion", |
| 410 | "fullName": "google.cloud.tpu.v1.Tpu.GetTensorFlowVersion", |
| 411 | "service": { |
| 412 | "shortName": "Tpu", |
| 413 | "fullName": "google.cloud.tpu.v1.Tpu" |
| 414 | } |
| 415 | } |
| 416 | }, |
| 417 | "origin": "API_DEFINITION", |
| 418 | "segments": [ |
| 419 | { |
| 420 | "start": 18, |
| 421 | "end": 53, |
| 422 | "type": "FULL" |
| 423 | } |
| 424 | ] |
| 425 | }, |
| 426 | { |
| 427 | "regionTag": "tpu_v1_generated_Tpu_ListAcceleratorTypes_sync", |
| 428 | "title": "tpu ListAcceleratorTypes Sample", |
| 429 | "description": "ListAcceleratorTypes lists accelerator types supported by this API.", |
| 430 | "file": "Client/ListAcceleratorTypes/main.go", |
| 431 | "language": "GO", |
| 432 | "clientMethod": { |
| 433 | "shortName": "ListAcceleratorTypes", |
| 434 | "fullName": "google.cloud.tpu.v1.Client.ListAcceleratorTypes", |
| 435 | "parameters": [ |
| 436 | { |
| 437 | "type": "context.Context", |
| 438 | "name": "ctx" |
| 439 | }, |
| 440 | { |
| 441 | "type": "tpupb.ListAcceleratorTypesRequest", |
| 442 | "name": "req" |
| 443 | }, |
| 444 | { |
| 445 | "type": "...gax.CallOption", |
| 446 | "name": "opts" |
| 447 | } |
| 448 | ], |
| 449 | "resultType": "AcceleratorTypeIterator", |
| 450 | "client": { |
| 451 | "shortName": "Client", |
| 452 | "fullName": "google.cloud.tpu.v1.Client" |
| 453 | }, |
| 454 | "method": { |
| 455 | "shortName": "ListAcceleratorTypes", |
| 456 | "fullName": "google.cloud.tpu.v1.Tpu.ListAcceleratorTypes", |
| 457 | "service": { |
| 458 | "shortName": "Tpu", |
| 459 | "fullName": "google.cloud.tpu.v1.Tpu" |
| 460 | } |
| 461 | } |
| 462 | }, |
| 463 | "origin": "API_DEFINITION", |
| 464 | "segments": [ |
| 465 | { |
| 466 | "start": 18, |
| 467 | "end": 66, |
| 468 | "type": "FULL" |
| 469 | } |
| 470 | ] |
| 471 | }, |
| 472 | { |
| 473 | "regionTag": "tpu_v1_generated_Tpu_ListLocations_sync", |
| 474 | "title": "tpu ListLocations Sample", |
| 475 | "description": "ListLocations lists information about the supported locations for this service.", |
| 476 | "file": "Client/ListLocations/main.go", |
| 477 | "language": "GO", |
| 478 | "clientMethod": { |
| 479 | "shortName": "ListLocations", |
| 480 | "fullName": "google.cloud.tpu.v1.Client.ListLocations", |
| 481 | "parameters": [ |
| 482 | { |
| 483 | "type": "context.Context", |
| 484 | "name": "ctx" |
| 485 | }, |
| 486 | { |
| 487 | "type": "locationpb.ListLocationsRequest", |
| 488 | "name": "req" |
| 489 | }, |
| 490 | { |
| 491 | "type": "...gax.CallOption", |
| 492 | "name": "opts" |
| 493 | } |
| 494 | ], |
| 495 | "resultType": "LocationIterator", |
| 496 | "client": { |
| 497 | "shortName": "Client", |
| 498 | "fullName": "google.cloud.tpu.v1.Client" |
| 499 | }, |
| 500 | "method": { |
| 501 | "shortName": "ListLocations", |
| 502 | "fullName": "google.cloud.location.Locations.ListLocations", |
| 503 | "service": { |
| 504 | "shortName": "Locations", |
| 505 | "fullName": "google.cloud.location.Locations" |
| 506 | } |
| 507 | } |
| 508 | }, |
| 509 | "origin": "API_DEFINITION", |
| 510 | "segments": [ |
| 511 | { |
| 512 | "start": 18, |
| 513 | "end": 66, |
| 514 | "type": "FULL" |
| 515 | } |
| 516 | ] |
| 517 | }, |
| 518 | { |
| 519 | "regionTag": "tpu_v1_generated_Tpu_ListNodes_sync", |
| 520 | "title": "tpu ListNodes Sample", |
| 521 | "description": "ListNodes lists nodes.", |
| 522 | "file": "Client/ListNodes/main.go", |
| 523 | "language": "GO", |
| 524 | "clientMethod": { |
| 525 | "shortName": "ListNodes", |
| 526 | "fullName": "google.cloud.tpu.v1.Client.ListNodes", |
| 527 | "parameters": [ |
| 528 | { |
| 529 | "type": "context.Context", |
| 530 | "name": "ctx" |
| 531 | }, |
| 532 | { |
| 533 | "type": "tpupb.ListNodesRequest", |
| 534 | "name": "req" |
| 535 | }, |
| 536 | { |
| 537 | "type": "...gax.CallOption", |
| 538 | "name": "opts" |
| 539 | } |
| 540 | ], |
| 541 | "resultType": "NodeIterator", |
| 542 | "client": { |
| 543 | "shortName": "Client", |
| 544 | "fullName": "google.cloud.tpu.v1.Client" |
| 545 | }, |
| 546 | "method": { |
| 547 | "shortName": "ListNodes", |
| 548 | "fullName": "google.cloud.tpu.v1.Tpu.ListNodes", |
| 549 | "service": { |
| 550 | "shortName": "Tpu", |
| 551 | "fullName": "google.cloud.tpu.v1.Tpu" |
| 552 | } |
| 553 | } |
| 554 | }, |
| 555 | "origin": "API_DEFINITION", |
| 556 | "segments": [ |
| 557 | { |
| 558 | "start": 18, |
| 559 | "end": 66, |
| 560 | "type": "FULL" |
| 561 | } |
| 562 | ] |
| 563 | }, |
| 564 | { |
| 565 | "regionTag": "tpu_v1_generated_Tpu_ListOperations_sync", |
| 566 | "title": "tpu ListOperations Sample", |
| 567 | "description": "ListOperations is a utility method from google.longrunning.Operations.", |
| 568 | "file": "Client/ListOperations/main.go", |
| 569 | "language": "GO", |
| 570 | "clientMethod": { |
| 571 | "shortName": "ListOperations", |
| 572 | "fullName": "google.cloud.tpu.v1.Client.ListOperations", |
| 573 | "parameters": [ |
| 574 | { |
| 575 | "type": "context.Context", |
| 576 | "name": "ctx" |
| 577 | }, |
| 578 | { |
| 579 | "type": "longrunningpb.ListOperationsRequest", |
| 580 | "name": "req" |
| 581 | }, |
| 582 | { |
| 583 | "type": "...gax.CallOption", |
| 584 | "name": "opts" |
| 585 | } |
| 586 | ], |
| 587 | "resultType": "OperationIterator", |
| 588 | "client": { |
| 589 | "shortName": "Client", |
| 590 | "fullName": "google.cloud.tpu.v1.Client" |
| 591 | }, |
| 592 | "method": { |
| 593 | "shortName": "ListOperations", |
| 594 | "fullName": "google.longrunning.Operations.ListOperations", |
| 595 | "service": { |
| 596 | "shortName": "Operations", |
| 597 | "fullName": "google.longrunning.Operations" |
| 598 | } |
| 599 | } |
| 600 | }, |
| 601 | "origin": "API_DEFINITION", |
| 602 | "segments": [ |
| 603 | { |
| 604 | "start": 18, |
| 605 | "end": 66, |
| 606 | "type": "FULL" |
| 607 | } |
| 608 | ] |
| 609 | }, |
| 610 | { |
| 611 | "regionTag": "tpu_v1_generated_Tpu_ListTensorFlowVersions_sync", |
| 612 | "title": "tpu ListTensorFlowVersions Sample", |
| 613 | "description": "ListTensorFlowVersions list TensorFlow versions supported by this API.", |
| 614 | "file": "Client/ListTensorFlowVersions/main.go", |
| 615 | "language": "GO", |
| 616 | "clientMethod": { |
| 617 | "shortName": "ListTensorFlowVersions", |
| 618 | "fullName": "google.cloud.tpu.v1.Client.ListTensorFlowVersions", |
| 619 | "parameters": [ |
| 620 | { |
| 621 | "type": "context.Context", |
| 622 | "name": "ctx" |
| 623 | }, |
| 624 | { |
| 625 | "type": "tpupb.ListTensorFlowVersionsRequest", |
| 626 | "name": "req" |
| 627 | }, |
| 628 | { |
| 629 | "type": "...gax.CallOption", |
| 630 | "name": "opts" |
| 631 | } |
| 632 | ], |
| 633 | "resultType": "TensorFlowVersionIterator", |
| 634 | "client": { |
| 635 | "shortName": "Client", |
| 636 | "fullName": "google.cloud.tpu.v1.Client" |
| 637 | }, |
| 638 | "method": { |
| 639 | "shortName": "ListTensorFlowVersions", |
| 640 | "fullName": "google.cloud.tpu.v1.Tpu.ListTensorFlowVersions", |
| 641 | "service": { |
| 642 | "shortName": "Tpu", |
| 643 | "fullName": "google.cloud.tpu.v1.Tpu" |
| 644 | } |
| 645 | } |
| 646 | }, |
| 647 | "origin": "API_DEFINITION", |
| 648 | "segments": [ |
| 649 | { |
| 650 | "start": 18, |
| 651 | "end": 66, |
| 652 | "type": "FULL" |
| 653 | } |
| 654 | ] |
| 655 | }, |
| 656 | { |
| 657 | "regionTag": "tpu_v1_generated_Tpu_ReimageNode_sync", |
| 658 | "title": "tpu ReimageNode Sample", |
| 659 | "description": "ReimageNode reimages a node's OS.", |
| 660 | "file": "Client/ReimageNode/main.go", |
| 661 | "language": "GO", |
| 662 | "clientMethod": { |
| 663 | "shortName": "ReimageNode", |
| 664 | "fullName": "google.cloud.tpu.v1.Client.ReimageNode", |
| 665 | "parameters": [ |
| 666 | { |
| 667 | "type": "context.Context", |
| 668 | "name": "ctx" |
| 669 | }, |
| 670 | { |
| 671 | "type": "tpupb.ReimageNodeRequest", |
| 672 | "name": "req" |
| 673 | }, |
| 674 | { |
| 675 | "type": "...gax.CallOption", |
| 676 | "name": "opts" |
| 677 | } |
| 678 | ], |
| 679 | "resultType": "ReimageNodeOperation", |
| 680 | "client": { |
| 681 | "shortName": "Client", |
| 682 | "fullName": "google.cloud.tpu.v1.Client" |
| 683 | }, |
| 684 | "method": { |
| 685 | "shortName": "ReimageNode", |
| 686 | "fullName": "google.cloud.tpu.v1.Tpu.ReimageNode", |
| 687 | "service": { |
| 688 | "shortName": "Tpu", |
| 689 | "fullName": "google.cloud.tpu.v1.Tpu" |
| 690 | } |
| 691 | } |
| 692 | }, |
| 693 | "origin": "API_DEFINITION", |
| 694 | "segments": [ |
| 695 | { |
| 696 | "start": 18, |
| 697 | "end": 58, |
| 698 | "type": "FULL" |
| 699 | } |
| 700 | ] |
| 701 | }, |
| 702 | { |
| 703 | "regionTag": "tpu_v1_generated_Tpu_StartNode_sync", |
| 704 | "title": "tpu StartNode Sample", |
| 705 | "description": "StartNode starts a node.", |
| 706 | "file": "Client/StartNode/main.go", |
| 707 | "language": "GO", |
| 708 | "clientMethod": { |
| 709 | "shortName": "StartNode", |
| 710 | "fullName": "google.cloud.tpu.v1.Client.StartNode", |
| 711 | "parameters": [ |
| 712 | { |
| 713 | "type": "context.Context", |
| 714 | "name": "ctx" |
| 715 | }, |
| 716 | { |
| 717 | "type": "tpupb.StartNodeRequest", |
| 718 | "name": "req" |
| 719 | }, |
| 720 | { |
| 721 | "type": "...gax.CallOption", |
| 722 | "name": "opts" |
| 723 | } |
| 724 | ], |
| 725 | "resultType": "StartNodeOperation", |
| 726 | "client": { |
| 727 | "shortName": "Client", |
| 728 | "fullName": "google.cloud.tpu.v1.Client" |
| 729 | }, |
| 730 | "method": { |
| 731 | "shortName": "StartNode", |
| 732 | "fullName": "google.cloud.tpu.v1.Tpu.StartNode", |
| 733 | "service": { |
| 734 | "shortName": "Tpu", |
| 735 | "fullName": "google.cloud.tpu.v1.Tpu" |
| 736 | } |
| 737 | } |
| 738 | }, |
| 739 | "origin": "API_DEFINITION", |
| 740 | "segments": [ |
| 741 | { |
| 742 | "start": 18, |
| 743 | "end": 58, |
| 744 | "type": "FULL" |
| 745 | } |
| 746 | ] |
| 747 | }, |
| 748 | { |
| 749 | "regionTag": "tpu_v1_generated_Tpu_StopNode_sync", |
| 750 | "title": "tpu StopNode Sample", |
| 751 | "description": "StopNode stops a node, this operation is only available with single TPU nodes.", |
| 752 | "file": "Client/StopNode/main.go", |
| 753 | "language": "GO", |
| 754 | "clientMethod": { |
| 755 | "shortName": "StopNode", |
| 756 | "fullName": "google.cloud.tpu.v1.Client.StopNode", |
| 757 | "parameters": [ |
| 758 | { |
| 759 | "type": "context.Context", |
| 760 | "name": "ctx" |
| 761 | }, |
| 762 | { |
| 763 | "type": "tpupb.StopNodeRequest", |
| 764 | "name": "req" |
| 765 | }, |
| 766 | { |
| 767 | "type": "...gax.CallOption", |
| 768 | "name": "opts" |
| 769 | } |
| 770 | ], |
| 771 | "resultType": "StopNodeOperation", |
| 772 | "client": { |
| 773 | "shortName": "Client", |
| 774 | "fullName": "google.cloud.tpu.v1.Client" |
| 775 | }, |
| 776 | "method": { |
| 777 | "shortName": "StopNode", |
| 778 | "fullName": "google.cloud.tpu.v1.Tpu.StopNode", |
| 779 | "service": { |
| 780 | "shortName": "Tpu", |
| 781 | "fullName": "google.cloud.tpu.v1.Tpu" |
| 782 | } |
| 783 | } |
| 784 | }, |
| 785 | "origin": "API_DEFINITION", |
| 786 | "segments": [ |
| 787 | { |
| 788 | "start": 18, |
| 789 | "end": 58, |
| 790 | "type": "FULL" |
| 791 | } |
| 792 | ] |
| 793 | } |
| 794 | ] |
| 795 | } |