storagetransfer_v1.yaml 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. type: google.api.Service
  2. config_version: 3
  3. name: storagetransfer.googleapis.com
  4. title: Storage Transfer API
  5. apis:
  6. - name: google.longrunning.Operations
  7. - name: google.storagetransfer.v1.StorageTransferService
  8. types:
  9. - name: google.storagetransfer.v1.TransferOperation
  10. documentation:
  11. summary: |-
  12. Transfers data from external data sources to a Google Cloud Storage bucket
  13. or between Google Cloud Storage buckets.
  14. rules:
  15. - selector: google.longrunning.Operations.CancelOperation
  16. description: |-
  17. Cancels a transfer. Use
  18. the [transferOperations.get][google.longrunning.Operations.GetOperation]
  19. method to check if the cancellation succeeded or if the operation
  20. completed despite the `cancel` request.
  21. When you cancel an operation, the currently running transfer is
  22. interrupted. For recurring transfer jobs, the next instance of the
  23. transfer job will still run. For example, if your job is configured
  24. to run every day at 1pm and you cancel Monday's operation at 1:05pm,
  25. Monday's transfer
  26. will stop. However, a transfer job will still be attempted on Tuesday.
  27. This applies only to currently running operations. If an operation is
  28. not currently running, `cancel` does nothing.
  29. <aside class="caution">
  30. <b>Caution:</b> Canceling a transfer job can leave your data in an
  31. unknown state. We recommend that you restore the state at both the
  32. destination and the source after the `cancel` request completes so
  33. that your data is in a consistent state. </aside>
  34. When you cancel a job, the next job computes a delta of files and may
  35. repair any inconsistent state. For instance, if you run a job every
  36. day, and today's job found 10 new files and transferred five files
  37. before you canceled the job, tomorrow's transfer operation will
  38. compute a new delta with the five files that were not copied today
  39. plus any new files discovered tomorrow.
  40. - selector: google.longrunning.Operations.ListOperations
  41. description: |-
  42. Lists transfer operations. Operations are ordered by their creation
  43. time in reverse chronological order.
  44. backend:
  45. rules:
  46. - selector: 'google.longrunning.Operations.*'
  47. deadline: 30.0
  48. - selector: 'google.storagetransfer.v1.StorageTransferService.*'
  49. deadline: 30.0
  50. http:
  51. rules:
  52. - selector: google.longrunning.Operations.CancelOperation
  53. post: '/v1/{name=transferOperations/**}:cancel'
  54. body: '*'
  55. - selector: google.longrunning.Operations.GetOperation
  56. get: '/v1/{name=transferOperations/**}'
  57. - selector: google.longrunning.Operations.ListOperations
  58. get: '/v1/{name=transferOperations}'
  59. authentication:
  60. rules:
  61. - selector: 'google.longrunning.Operations.*'
  62. oauth:
  63. canonical_scopes: |-
  64. https://www.googleapis.com/auth/cloud-platform
  65. - selector: 'google.storagetransfer.v1.StorageTransferService.*'
  66. oauth:
  67. canonical_scopes: |-
  68. https://www.googleapis.com/auth/cloud-platform