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:
parent
29ab864163
commit
5d6e403a30
11
README.rst
11
README.rst
@ -2,7 +2,8 @@
|
||||
python-hnvclient
|
||||
================
|
||||
|
||||
[](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()
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user