Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.26 KB

File metadata and controls

33 lines (24 loc) · 1.26 KB

Subscription

{@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.

Properties

Name Type Description Notes
api_version str
kind str
metadata Metadata
spec SubscriptionSpec [optional]

Example

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)

[Back to Model list] [Back to API list] [Back to README]