10 Import the module and set up an API client user agent:
14 arv = Arvados.new(apiVersion: 'v1')
17 The SDK retrieves the list of API methods from the server at run time. Therefore, the set of available methods is determined by the server version rather than the SDK version.
24 new_link = arv.link.create(link: {link_class: 'test', name: 'test'})
32 arv.link.delete(uuid: new_link[:uuid])
37 Retrieve an object by ID:
40 some_user = arv.user.get(uuid: current_user_uuid)
45 Get a list of objects:
48 repos = arv.repository.list
49 first_repo = repos[:items][0]
50 puts "UUID of first repo returned is #{first_repo[:uuid]}"</code>
51 UUID of first repo returned is qr1hi-s0uqq-b1bnybpx3u5temz
59 updated_link = arv.link.update(uuid: new_link[:uuid],
60 link: {properties: {foo: 'bar'}})
65 Get the User object for the current user:
68 current_user = arv.user.current
71 Get the UUID of an object that was retrieved using the SDK:
74 current_user_uuid = current_user[:uuid]