tpu.yaml 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. type: google.api.Service
  2. config_version: 3
  3. name: tpu.googleapis.com
  4. title: Cloud TPU API
  5. apis:
  6. - name: google.cloud.tpu.v2alpha1.Tpu
  7. types:
  8. - name: google.cloud.tpu.v1.OperationMetadata
  9. documentation:
  10. summary: TPU API provides customers with access to Google TPU technology.
  11. rules:
  12. - selector: google.cloud.location.Locations.GetLocation
  13. description: Gets information about a location.
  14. - selector: google.cloud.location.Locations.ListLocations
  15. description: Lists information about the supported locations for this service.
  16. backend:
  17. rules:
  18. - selector: google.cloud.location.Locations.GetLocation
  19. deadline: 60.0
  20. - selector: google.cloud.location.Locations.ListLocations
  21. deadline: 60.0
  22. - selector: 'google.cloud.tpu.v2alpha1.Tpu.*'
  23. deadline: 60.0
  24. - selector: 'google.longrunning.Operations.*'
  25. deadline: 60.0
  26. http:
  27. rules:
  28. - selector: google.cloud.location.Locations.GetLocation
  29. get: '/v1alpha1/{name=projects/*/locations/*}'
  30. additional_bindings:
  31. - get: '/v1/{name=projects/*/locations/*}'
  32. - get: '/v2alpha1/{name=projects/*/locations/*}'
  33. - selector: google.cloud.location.Locations.ListLocations
  34. get: '/v1alpha1/{name=projects/*}/locations'
  35. additional_bindings:
  36. - get: '/v1/{name=projects/*}/locations'
  37. - get: '/v2alpha1/{name=projects/*}/locations'
  38. - selector: google.longrunning.Operations.CancelOperation
  39. post: '/v1alpha1/{name=projects/*/locations/*/operations/*}:cancel'
  40. additional_bindings:
  41. - post: '/v1/{name=projects/*/locations/*/operations/*}:cancel'
  42. - post: '/v2alpha1/{name=projects/*/locations/*/operations/*}:cancel'
  43. - selector: google.longrunning.Operations.DeleteOperation
  44. delete: '/v1alpha1/{name=projects/*/locations/*/operations/*}'
  45. additional_bindings:
  46. - delete: '/v1/{name=projects/*/locations/*/operations/*}'
  47. - delete: '/v2alpha1/{name=projects/*/locations/*/operations/*}'
  48. - selector: google.longrunning.Operations.GetOperation
  49. get: '/v1alpha1/{name=projects/*/locations/*/operations/*}'
  50. additional_bindings:
  51. - get: '/v1/{name=projects/*/locations/*/operations/*}'
  52. - get: '/v2alpha1/{name=projects/*/locations/*/operations/*}'
  53. - selector: google.longrunning.Operations.ListOperations
  54. get: '/v1alpha1/{name=projects/*/locations/*}/operations'
  55. additional_bindings:
  56. - get: '/v1/{name=projects/*/locations/*}/operations'
  57. - get: '/v2alpha1/{name=projects/*/locations/*}/operations'
  58. authentication:
  59. rules:
  60. - selector: google.cloud.location.Locations.GetLocation
  61. oauth:
  62. canonical_scopes: |-
  63. https://www.googleapis.com/auth/cloud-platform
  64. - selector: google.cloud.location.Locations.ListLocations
  65. oauth:
  66. canonical_scopes: |-
  67. https://www.googleapis.com/auth/cloud-platform
  68. - selector: 'google.cloud.tpu.v2alpha1.Tpu.*'
  69. oauth:
  70. canonical_scopes: |-
  71. https://www.googleapis.com/auth/cloud-platform
  72. - selector: 'google.longrunning.Operations.*'
  73. oauth:
  74. canonical_scopes: |-
  75. https://www.googleapis.com/auth/cloud-platform