File tree Expand file tree Collapse file tree 1 file changed +64
-3
lines changed
jupyter-notebooks/subscriptions_api_tutorial Expand file tree Collapse file tree 1 file changed +64
-3
lines changed Original file line number Diff line number Diff line change 5151 "id" : " e9cd5453" ,
5252 "metadata" : {},
5353 "source" : [
54- " ## Creating a Subscription"
54+ " ## Listing a Subscription"
55+ ]
56+ },
57+ {
58+ "cell_type" : " code" ,
59+ "execution_count" : null ,
60+ "id" : " 763cd3ae" ,
61+ "metadata" : {},
62+ "outputs" : [],
63+ "source" : [
64+ " # if none exist, this will result in none (description will empty)"
5565 ]
5666 },
5767 {
102112 {
103113 "cell_type" : " code" ,
104114 "execution_count" : null ,
105- "id" : " e9dbfb73" ,
115+ "id" : " dd39dcb6" ,
116+ "metadata" : {},
117+ "outputs" : [],
118+ "source" : [
119+ " sub_list"
120+ ]
121+ },
122+ {
123+ "cell_type" : " markdown" ,
124+ "id" : " 4c4f8245" ,
125+ "metadata" : {},
126+ "source" : [
127+ " ## Creating a Subscription"
128+ ]
129+ },
130+ {
131+ "cell_type" : " code" ,
132+ "execution_count" : null ,
133+ "id" : " 9c6eb4d8" ,
106134 "metadata" : {},
107135 "outputs" : [],
108- "source" : []
136+ "source" : [
137+ " # need a subscription description"
138+ ]
139+ },
140+ {
141+ "cell_type" : " code" ,
142+ "execution_count" : null ,
143+ "id" : " da39b626" ,
144+ "metadata" : {},
145+ "outputs" : [],
146+ "source" : [
147+ " async with Session(auth=auth) as sess:\n " ,
148+ " cl = SubscriptionsClient(sess)\n " ,
149+ " subscriptions = cl.create_subscriptions(limit=5)\n " ,
150+ " sub_list = [i async for i in subscriptions]"
151+ ]
152+ },
153+ {
154+ "cell_type" : " markdown" ,
155+ "id" : " f8823f9d" ,
156+ "metadata" : {},
157+ "source" : [
158+ " ## Get a Subscription"
159+ ]
160+ },
161+ {
162+ "cell_type" : " code" ,
163+ "execution_count" : null ,
164+ "id" : " a6a1b622" ,
165+ "metadata" : {},
166+ "outputs" : [],
167+ "source" : [
168+ " # need a subscription id"
169+ ]
109170 }
110171 ],
111172 "metadata" : {
You can’t perform that action at this time.
0 commit comments