1 <%# Copyright (C) The Arvados Authors. All rights reserved.
3 SPDX-License-Identifier: AGPL-3.0 %>
5 <% if @object.andand.uuid %>
7 <div class="panel panel-default">
8 <div class="panel-heading">curl</div>
9 <div class="panel-body">
12 -H "Authorization: OAuth2 $ARVADOS_API_TOKEN" \
13 --data-urlencode <%= @object.class.to_s.underscore %>@/dev/stdin \
14 https://$ARVADOS_API_HOST/arvados/v1/<%= @object.class.to_s.pluralize.underscore %>/<%= @object.uuid %> \
16 <%= JSON.pretty_generate({@object.attributes.keys[-3] => @object.attributes.values[-3]}) %>
22 <div class="panel panel-default">
23 <div class="panel-heading"><b>arv</b> command line tool</div>
24 <div class="panel-body">
26 arv <%= @object.class.to_s.underscore %> get \
27 --uuid <%= @object.uuid %>
29 arv <%= @object.class.to_s.underscore %> update \
30 --uuid <%= @object.uuid %> \
31 --<%= @object.class.to_s.underscore.gsub '_', '-' %> '<%= JSON.generate({@object.attributes.keys[-3] => @object.attributes.values[-3]}).gsub("'","'\''") %>'
36 <div class="panel panel-default">
37 <div class="panel-heading"><b>Python</b> SDK</div>
38 <div class="panel-body">
42 x = arvados.api().<%= @object.class.to_s.pluralize.underscore %>().get(uuid='<%= @object.uuid %>').execute()