CreateSubscription subscribes to events of the given types for the resource at resourceURL. Creation is idempotent: an active subscription for the same resource and set of event types is returned as is, and created reports whether the subscription is new.
(ctx context.Context, resourceURL string, eventTypes []string)
| 56 | // idempotent: an active subscription for the same resource and set of event types is returned as is, and created |
| 57 | // reports whether the subscription is new. |
| 58 | CreateSubscription(ctx context.Context, resourceURL string, eventTypes []string) (sub *Subscription, created bool, err error) |
| 59 | // GetSubscription returns the active subscription with the given ID. |
| 60 | GetSubscription(ctx context.Context, id string) (*Subscription, error) |
| 61 | // ListSubscriptions returns up to limit of the caller's active subscriptions, newest first. The limit must be |
no outgoing calls