storagetransfer_v1.yaml 3.0 KB

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