pubsub_v1.yaml 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. type: google.api.Service
  2. config_version: 3
  3. name: pubsub.googleapis.com
  4. title: Cloud Pub/Sub API
  5. apis:
  6. - name: google.pubsub.v1.Publisher
  7. - name: google.pubsub.v1.SchemaService
  8. - name: google.pubsub.v1.Subscriber
  9. - name: google.iam.v1.IAMPolicy
  10. documentation:
  11. summary: |-
  12. Provides reliable, many-to-many, asynchronous messaging between
  13. applications.
  14. rules:
  15. - selector: google.iam.v1.IAMPolicy.GetIamPolicy
  16. description: |-
  17. Gets the access control policy for a resource. Returns an empty policy
  18. if the resource exists and does not have a policy set.
  19. - selector: google.iam.v1.IAMPolicy.SetIamPolicy
  20. description: |-
  21. Sets the access control policy on the specified resource. Replaces
  22. any existing policy.
  23. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`
  24. errors.
  25. - selector: google.iam.v1.IAMPolicy.TestIamPermissions
  26. description: |-
  27. Returns permissions that a caller has on the specified resource. If the
  28. resource does not exist, this will return an empty set of
  29. permissions, not a `NOT_FOUND` error.
  30. Note: This operation is designed to be used for building
  31. permission-aware UIs and command-line tools, not for authorization
  32. checking. This operation may "fail open" without warning.
  33. backend:
  34. rules:
  35. - selector: 'google.pubsub.v1.Publisher.*'
  36. deadline: 120.0
  37. - selector: google.pubsub.v1.Publisher.Publish
  38. deadline: 20.0
  39. - selector: 'google.pubsub.v1.Subscriber.*'
  40. deadline: 120.0
  41. http:
  42. rules:
  43. - selector: google.iam.v1.IAMPolicy.GetIamPolicy
  44. get: '/v1/{resource=projects/*/topics/*}:getIamPolicy'
  45. additional_bindings:
  46. - get: '/v1/{resource=projects/*/subscriptions/*}:getIamPolicy'
  47. - get: '/v1/{resource=projects/*/snapshots/*}:getIamPolicy'
  48. - selector: google.iam.v1.IAMPolicy.SetIamPolicy
  49. post: '/v1/{resource=projects/*/topics/*}:setIamPolicy'
  50. body: '*'
  51. additional_bindings:
  52. - post: '/v1/{resource=projects/*/subscriptions/*}:setIamPolicy'
  53. body: '*'
  54. - post: '/v1/{resource=projects/*/snapshots/*}:setIamPolicy'
  55. body: '*'
  56. - selector: google.iam.v1.IAMPolicy.TestIamPermissions
  57. post: '/v1/{resource=projects/*/subscriptions/*}:testIamPermissions'
  58. body: '*'
  59. additional_bindings:
  60. - post: '/v1/{resource=projects/*/topics/*}:testIamPermissions'
  61. body: '*'
  62. - post: '/v1/{resource=projects/*/snapshots/*}:testIamPermissions'
  63. body: '*'
  64. authentication:
  65. rules:
  66. - selector: 'google.iam.v1.IAMPolicy.*'
  67. oauth:
  68. canonical_scopes: |-
  69. https://www.googleapis.com/auth/cloud-platform,
  70. https://www.googleapis.com/auth/pubsub
  71. - selector: 'google.pubsub.v1.Publisher.*'
  72. oauth:
  73. canonical_scopes: |-
  74. https://www.googleapis.com/auth/cloud-platform,
  75. https://www.googleapis.com/auth/pubsub
  76. - selector: 'google.pubsub.v1.SchemaService.*'
  77. oauth:
  78. canonical_scopes: |-
  79. https://www.googleapis.com/auth/cloud-platform,
  80. https://www.googleapis.com/auth/pubsub
  81. - selector: 'google.pubsub.v1.Subscriber.*'
  82. oauth:
  83. canonical_scopes: |-
  84. https://www.googleapis.com/auth/cloud-platform,
  85. https://www.googleapis.com/auth/pubsub