X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0f644e242ef37c911ad3dc25aca8135c339de349..b36138dd447b5ff557cfbb0e00c28899a9c3af17:/doc/sdk/python/example.html.textile.liquid diff --git a/doc/sdk/python/example.html.textile.liquid b/doc/sdk/python/example.html.textile.liquid index f3cc106760..504d0784f0 100644 --- a/doc/sdk/python/example.html.textile.liquid +++ b/doc/sdk/python/example.html.textile.liquid @@ -14,43 +14,43 @@ In these examples, the site prefix is @aaaaa@. h2. Initialize SDK -
+{% codeblock as python %}
 import arvados
 api = arvados.api("v1")
-
+{% endcodeblock %} h2. create -
-result = api.collection().create(body={"collection": {"name": "create example"}}).execute()
-
+{% codeblock as python %} +result = api.collections().create(body={"collection": {"name": "create example"}}).execute() +{% endcodeblock %} h2. delete -
+{% codeblock as python %}
 result = api.collections().delete(uuid="aaaaa-4zz18-ccccccccccccccc").execute()
-
+{% endcodeblock %} h2. get -
+{% codeblock as python %}
 result = api.collections().get(uuid="aaaaa-4zz18-ccccccccccccccc").execute()
-
+{% endcodeblock %} h2. list -
+{% codeblock as python %}
 result = api.collections().list(filters=[["uuid", "=", "aaaaa-bbbbb-ccccccccccccccc"]]).execute()
-
+{% endcodeblock %} h2. update -
+{% codeblock as python %}
 result = api.collections().update(uuid="aaaaa-4zz18-ccccccccccccccc", body={"collection": {"name": "update example"}}).execute()
-
+{% endcodeblock %} h2. Get current user -
+{% codeblock as python %}
 result = api.users().current().execute()
-
+{% endcodeblock %}