pubsub.yaml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Google Cloud Pub/Sub API service configuration
  2. type: google.api.Service
  3. config_version: 1
  4. name: pubsub.googleapis.com
  5. title: Google Cloud Pub/Sub API
  6. documentation:
  7. summary: >
  8. Provides reliable, many-to-many, asynchronous messaging between
  9. applications.
  10. rules:
  11. - selector: >
  12. google.pubsub.v1.Topic.name,
  13. description: |
  14. The name of the topic. It must have the format
  15. `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
  16. and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
  17. underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
  18. signs (`%`). It must be between 3 and 255 characters in length, and it
  19. must not start with `"goog"`.
  20. - selector: >
  21. google.pubsub.v1.Subscription.name,
  22. description: |
  23. The name of the subscription. It must have the format
  24. `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
  25. start with a letter, and contain only letters (`[A-Za-z]`), numbers
  26. (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`),
  27. plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters
  28. in length, and it must not start with `"goog"`.
  29. apis:
  30. - name: google.pubsub.v1.Publisher
  31. - name: google.pubsub.v1.Subscriber
  32. # Pass origin and project RpcServerExtensions to the backend.
  33. context:
  34. rules:
  35. - selector: '*'
  36. requested:
  37. - google.rpc.context.OriginContext
  38. - google.rpc.context.ProjectContext
  39. # Auth section
  40. authentication:
  41. rules:
  42. - selector: '*'
  43. oauth:
  44. canonical_scopes: https://www.googleapis.com/auth/pubsub,
  45. https://www.googleapis.com/auth/cloud-platform