Update the README.rst file

This patch will change the markdown syntax from the README.rst
with the reStructuredText syntax.
This commit is contained in:
Alexandru Coman 2017-03-07 16:22:33 +02:00
parent 29ab864163
commit 5d6e403a30
No known key found for this signature in database
GPG Key ID: A7B6A9021F704507

View File

@ -2,7 +2,8 @@
python-hnvclient
================
[![Build Status](https://travis-ci.org/cloudbase/python-hnvclient.svg?branch=master)](https://travis-ci.org/cloudbase/python-hnvclient)
.. image:: https://travis-ci.org/cloudbase/python-hnvclient.svg?branch=master
:target: https://travis-ci.org/cloudbase/python-hnvclient
Python client for the HNV (Hyper-V Network Virtualization) REST API.
@ -18,7 +19,8 @@ Features
The Python interface matches the underlying REST API and can be employed in 3rd party projects.
```python
.. code:: python
>>> from hnv import client
>>> logical_networks = client.LogicalNetworks.get()
>>> for logical_network in logical_networks:
@ -37,11 +39,9 @@ u'Succeeded'
[<hnv.client.LogicalSubnetworks object at 0x7fcd79419150>]
>>> logical_network.subnetworks[0].resource_id
u'4390e3d8-c527-4534-882f-906c47ffd0bb'
```
or
.. code:: python
```python
from __future__ import print_function
import json
@ -101,4 +101,3 @@ def main():
view_logical_networks()
remove_virtual_network()
view_logical_networks()
```