X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/5d17dfc6124a19ff7c9ebce607699d3e3f415bad..457dd05a3c10cfdca7cdc963f7a92343c5ffaf56:/doc/sdk/perl/index.html.textile.liquid diff --git a/doc/sdk/perl/index.html.textile.liquid b/doc/sdk/perl/index.html.textile.liquid index cdbb7d360b..ba01352a42 100644 --- a/doc/sdk/perl/index.html.textile.liquid +++ b/doc/sdk/perl/index.html.textile.liquid @@ -2,16 +2,17 @@ layout: default navsection: sdk navmenu: Perl -title: "Perl SDK" - +title: "Installation" ... +{% comment %} +Copyright (C) The Arvados Authors. All rights reserved. + +SPDX-License-Identifier: CC-BY-SA-3.0 +{% endcomment %} The Perl SDK provides a generic set of wrappers so you can make API calls easily. -It should be treated as alpha/experimental. Currently, limitations include: -* Verbose syntax. -* No native Keep client. -* No CPAN package. +This is a legacy SDK. It is no longer used or maintained regularly. h3. Installation @@ -29,7 +30,7 @@ On Debian-based systems: On Red Hat-based systems: -
~$ sudo yum install perl-ExtUtils-MakeMaker perl-JSON perl-IO-Socket-SSL perl-WWW-Curl libarvados-perl
+
~$ sudo yum install perl-ExtUtils-MakeMaker perl-JSON perl-IO-Socket-SSL perl-Crypt-SSLeay perl-WWW-Curl libarvados-perl
 
@@ -40,7 +41,7 @@ First, install dependencies from your distribution. Refer to the package lists Then run the following: -
~$ git clone https://github.com/curoverse/arvados.git
+
~$ git clone https://github.com/arvados/arvados.git
 ~$ cd arvados/sdk/perl
 ~$ perl Makefile.PL
 ~$ sudo make install
@@ -63,59 +64,3 @@ EOF
 arvados.v1.users.current.full_name = 'Your Name'
 
- -h3. Examples - -Set up an API client user agent: - - -
my $arv = Arvados->new('apiVersion' => 'v1');
-
-
- -Get the User object for the current user: - - -
my $current_user = $arv->{'users'}->{'current'}->execute;
-
-
- -Get the UUID of an object that was retrieved using the SDK: - - -
my $current_user_uuid = $current_user->{'uuid'}
-
-
- -Retrieve an object by ID: - - -
my $some_user = $arv->{'users'}->{'get'}->execute('uuid' => $current_user_uuid);
-
-
- -Create an object: - - -
my $test_link = $arv->{'links'}->{'create'}->execute('link' => { 'link_class' => 'test', 'name' => 'test' });
-
-
- -Update an object: - - -
my $test_link = $arv->{'links'}->{'update'}->execute(
-        'uuid' => $test_link->{'uuid'},
-        'link' => { 'properties' => { 'foo' => 'bar' } });
-
-
- -Get a list of objects: - - -
my $repos = $arv->{'repositories'}->{'list'}->execute;
-print ("UUID of first repo returned is ", $repos->{'items'}->[0], "\n");
-
-
- -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.