{@link Subscription Subscription} is a custom extension that defines a subscriber to be notified when a certain {@link Reason Reason} is triggered.
It holds a {@link Subscriber Subscriber} to the user to be notified, a {@link InterestReason InterestReason} to subscribe to.
| Name | Type | Description | Notes |
|---|---|---|---|
| api_version | str | ||
| kind | str | ||
| metadata | Metadata | ||
| spec | SubscriptionSpec | [optional] |
from halo_client.models.subscription import Subscription
# TODO update the JSON string below
json = "{}"
# create an instance of Subscription from a JSON string
subscription_instance = Subscription.from_json(json)
# print the JSON string representation of the object
print(Subscription.to_json())
# convert the object into a dict
subscription_dict = subscription_instance.to_dict()
# create an instance of Subscription from a dict
subscription_from_dict = Subscription.from_dict(subscription_dict)