There was an error while loading. Please reload this page.
2 parents bc6ce04 + f7fbfca commit fcce7a3Copy full SHA for fcce7a3
1 file changed
docs/gl_objects/builds.rst
@@ -141,6 +141,13 @@ Delete a schedule::
141
142
sched.delete()
143
144
+List schedule variables::
145
+
146
+ # note: you need to use get() to retrieve the schedule variables. The
147
+ # attribute is not present in the response of a list() call
148
+ sched = projects.pipelineschedules.get(schedule_id)
149
+ vars = sched.attributes['variables']
150
151
Create a schedule variable::
152
153
var = sched.variables.create({'key': 'foo', 'value': 'bar'})
0 commit comments