1 <% if @object.andand.uuid %>
3 <div class="panel panel-default">
4 <div class="panel-heading">curl</div>
5 <div class="panel-body">
8 -H "Authorization: OAuth2 $ARVADOS_API_TOKEN" \
9 --data-urlencode <%= @object.class.to_s.underscore %>@/dev/stdin \
10 https://$ARVADOS_API_HOST/arvados/v1/<%= @object.class.to_s.pluralize.underscore %>/<%= @object.uuid %> \
12 <%= JSON.pretty_generate({@object.attributes.keys[-3] => @object.attributes.values[-3]}) %>
18 <div class="panel panel-default">
19 <div class="panel-heading"><b>arv</b> command line tool</div>
20 <div class="panel-body">
22 arv --pretty <%= @object.class.to_s.underscore %> get \
23 --uuid <%= @object.uuid %>
25 arv <%= @object.class.to_s.underscore %> update \
26 --uuid <%= @object.uuid %> \
27 --<%= @object.class.to_s.underscore.gsub '_', '-' %> '<%= JSON.generate({@object.attributes.keys[-3] => @object.attributes.values[-3]}).gsub("'","'\''") %>'
32 <div class="panel panel-default">
33 <div class="panel-heading"><b>Python</b> SDK</div>
34 <div class="panel-body">
38 x = arvados.api().<%= @object.class.to_s.pluralize.underscore %>().get(uuid='<%= @object.uuid %>').execute()