Build up user documentation section
This change creates a section of the documentation focused on users, holding the guides, API docs, etc. Another change will focus on documentation for contributors. * Installation details were moved straight into the user index. Installation details for contributors will go into that section. * The old usage.rst section was moved into the userguides/ section and will grow into a Connection guide in another change. * The sections were organized according top to bottom in order of likelihood of utility to users. The guides will help people get started, the API docs will help them go from there, and anyone needing to customize lower-level things will have already scrolled through the preceeding sections to get to the end. * In order to see how the Resource docs turn out to be organized, I added pages for Compute and Database resources. We'll need to add them for every service, but I didn't want to overload this change with all of those additions. * Since glossary isn't linked in a TOC anywhere, just mentioned explicitly at the beginning of the user section, I added an exclude for it in the conf.py. It still gets built, but that allows it to not become a warning for being left out of TOCs. Change-Id: If9d1e4726ed14d5b7592c9da00c27591d2a4291c Partial-Bug: 1416553
This commit is contained in:
parent
3182212674
commit
9b2729cdd5
@ -52,6 +52,11 @@ pygments_style = 'sphinx'
|
||||
|
||||
autodoc_member_order = "bysource"
|
||||
|
||||
# Locations to exclude when looking for source files.
|
||||
# * Glossary is not included in any toctree, so it raised warnings, but it
|
||||
# is explicitly linked to from the top of users/index.rst.
|
||||
exclude_patterns = ["users/glossary.rst"]
|
||||
|
||||
# -- Options for HTML output --------------------------------------------------
|
||||
|
||||
# The theme to use for HTML and HTML Help pages. Major themes that come with
|
||||
|
2
doc/source/contributors/index.rst
Normal file
2
doc/source/contributors/index.rst
Normal file
@ -0,0 +1,2 @@
|
||||
Contributors
|
||||
============
|
@ -1,54 +1,22 @@
|
||||
.. include:: ../../README.rst
|
||||
Welcome to the OpenStack SDK!
|
||||
=============================
|
||||
|
||||
Welcome!
|
||||
========
|
||||
This documentation is split into two sections: one for `users <users/index>`_
|
||||
looking to build applications which make use of OpenStack, and another for
|
||||
those looking to `contribute <contributors/index>`_ to this project.
|
||||
|
||||
For Users
|
||||
---------
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
users/installation
|
||||
users/usage
|
||||
contributors/contributing
|
||||
users/glossary
|
||||
users/index
|
||||
|
||||
User Guides
|
||||
-----------
|
||||
For Contributors
|
||||
----------------
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
:maxdepth: 2
|
||||
|
||||
users/userguides/object_store
|
||||
|
||||
High-Level Interface
|
||||
--------------------
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
users/highlevel/object_store
|
||||
|
||||
Resource Level Classes
|
||||
----------------------
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
users/resources/object_store/v1/container
|
||||
users/resources/object_store/v1/obj
|
||||
|
||||
Low-Level Classes
|
||||
-----------------
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
users/connection
|
||||
users/user_preference
|
||||
users/session
|
||||
users/transport
|
||||
users/base_auth_plugin
|
||||
users/identity_base
|
||||
users/identity_v2
|
||||
users/identity_v3
|
||||
users/resource
|
||||
users/service_filter
|
||||
contributors/index
|
||||
|
97
doc/source/users/index.rst
Normal file
97
doc/source/users/index.rst
Normal file
@ -0,0 +1,97 @@
|
||||
Getting started with the OpenStack SDK
|
||||
======================================
|
||||
|
||||
For a listing of terms used throughout the SDK, including the names of
|
||||
projects and services supported by it, see the `Glossary <glossary>`_.
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
The OpenStack SDK is available on
|
||||
`PyPI <https://pypi.python.org/pypi/python-openstacksdk>`_ under the name
|
||||
**python-openstacksdk**. To install it, use ``pip``::
|
||||
|
||||
$ pip install python-openstacksdk
|
||||
|
||||
User Guides
|
||||
-----------
|
||||
|
||||
These guides walk you through how to make use of the libraries we provide
|
||||
to work with each OpenStack service. If you're looking for a cookbook
|
||||
approach, this is where you'll want to begin.
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
Connecting to an OpenStack Cloud <userguides/usage>
|
||||
Working with data in the Object Store <userguides/object_store>
|
||||
|
||||
API Documentation
|
||||
-----------------
|
||||
|
||||
Service APIs are exposed through a two-layered approach. The classes
|
||||
exposed through our *Connection* interface are the place to start if you're
|
||||
an application developer consuming an OpenStack cloud. The *Resource*
|
||||
interface is the layer upon which the *Connection* is built, with
|
||||
*Connection* methods accepting and returning *Resource* objects.
|
||||
|
||||
Connection Interface
|
||||
********************
|
||||
|
||||
A *Connection* instance maintains your session, authentication, transport,
|
||||
and preferences, providing you with a set of higher-level interfaces to work
|
||||
with OpenStack services.
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
connection
|
||||
user_preference
|
||||
|
||||
Once you have a *Connection* instance, the following services may be exposed
|
||||
to you. Your user preferences determine the full set of exposed services,
|
||||
but listed below are the ones provided by this SDK by default.
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
Object Store <proxies/object_store>
|
||||
|
||||
Resource Interface
|
||||
******************
|
||||
|
||||
The *Resource* layer is a lower-level interface to communicate with OpenStack
|
||||
services. While the classes exposed by the *Connection* build a convenience
|
||||
layer on top of this, *Resources* can be used directly. However, the most
|
||||
common usage of this layer is in receiving an object from a class in the
|
||||
*Connection* layer, modifying it, and sending it back into the *Connection*
|
||||
layer, such as to update a resource on the server.
|
||||
|
||||
The following services have exposed *Resource* classes.
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
Compute <resources/compute/index>
|
||||
Database <resources/database/index>
|
||||
Object Store <resources/object_store/index>
|
||||
|
||||
Low-Level Classes
|
||||
*****************
|
||||
|
||||
The following classes are not commonly used by application developers,
|
||||
but are used to construct applications to talk to OpenStack APIs. Typically
|
||||
these parts are managed through the `Connection Interface`_, but their use
|
||||
can be customized.
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
session
|
||||
transport
|
||||
base_auth_plugin
|
||||
identity_base
|
||||
identity_v2
|
||||
identity_v3
|
||||
resource
|
||||
service_filter
|
@ -1,24 +0,0 @@
|
||||
============
|
||||
Installation
|
||||
============
|
||||
|
||||
As a User
|
||||
---------
|
||||
|
||||
From the command line::
|
||||
|
||||
$ pip install python-openstacksdk
|
||||
|
||||
Or, if you have virtualenvwrapper installed::
|
||||
|
||||
$ mkvirtualenv python-openstacksdk
|
||||
$ pip install python-openstacksdk
|
||||
|
||||
As a Developer
|
||||
--------------
|
||||
|
||||
Get the source::
|
||||
|
||||
$ git clone https://github.com/stackforge/python-openstacksdk
|
||||
$ python setup.py develop
|
||||
|
17
doc/source/users/resources/compute/index.rst
Normal file
17
doc/source/users/resources/compute/index.rst
Normal file
@ -0,0 +1,17 @@
|
||||
Compute Resources
|
||||
=================
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
v2/extension
|
||||
v2/flavor
|
||||
v2/image
|
||||
v2/keypair
|
||||
v2/limits_absolute
|
||||
v2/limits_rate
|
||||
v2/server
|
||||
v2/server_interface
|
||||
v2/server_ip
|
||||
v2/server_meta
|
||||
v2/server_metadata
|
12
doc/source/users/resources/compute/v2/extension.rst
Normal file
12
doc/source/users/resources/compute/v2/extension.rst
Normal file
@ -0,0 +1,12 @@
|
||||
openstack.compute.v2.extension
|
||||
==============================
|
||||
|
||||
.. automodule:: openstack.compute.v2.extension
|
||||
|
||||
The Extension Class
|
||||
-------------------
|
||||
|
||||
The ``Extension`` class inherits from :class:`~openstack.resource.Resource`.
|
||||
|
||||
.. autoclass:: openstack.compute.v2.extension.Extension
|
||||
:members:
|
12
doc/source/users/resources/compute/v2/flavor.rst
Normal file
12
doc/source/users/resources/compute/v2/flavor.rst
Normal file
@ -0,0 +1,12 @@
|
||||
openstack.compute.v2.flavor
|
||||
============================
|
||||
|
||||
.. automodule:: openstack.compute.v2.flavor
|
||||
|
||||
The Flavor Class
|
||||
----------------
|
||||
|
||||
The ``Flavor`` class inherits from :class:`~openstack.resource.Resource`.
|
||||
|
||||
.. autoclass:: openstack.compute.v2.flavor.Flavor
|
||||
:members:
|
12
doc/source/users/resources/compute/v2/image.rst
Normal file
12
doc/source/users/resources/compute/v2/image.rst
Normal file
@ -0,0 +1,12 @@
|
||||
openstack.compute.v2.image
|
||||
==========================
|
||||
|
||||
.. automodule:: openstack.compute.v2.image
|
||||
|
||||
The Image Class
|
||||
---------------
|
||||
|
||||
The ``Image`` class inherits from :class:`~openstack.resource.Resource`.
|
||||
|
||||
.. autoclass:: openstack.compute.v2.image.Image
|
||||
:members:
|
12
doc/source/users/resources/compute/v2/keypair.rst
Normal file
12
doc/source/users/resources/compute/v2/keypair.rst
Normal file
@ -0,0 +1,12 @@
|
||||
openstack.compute.v2.keypair
|
||||
============================
|
||||
|
||||
.. automodule:: openstack.compute.v2.keypair
|
||||
|
||||
The Keypair Class
|
||||
-----------------
|
||||
|
||||
The ``Keypair`` class inherits from :class:`~openstack.resource.Resource`.
|
||||
|
||||
.. autoclass:: openstack.compute.v2.keypair.Keypair
|
||||
:members:
|
12
doc/source/users/resources/compute/v2/limits_absolute.rst
Normal file
12
doc/source/users/resources/compute/v2/limits_absolute.rst
Normal file
@ -0,0 +1,12 @@
|
||||
openstack.compute.v2.limits_absolute
|
||||
====================================
|
||||
|
||||
.. automodule:: openstack.compute.v2.limits_absolute
|
||||
|
||||
The LimitsAbsolute Class
|
||||
------------------------
|
||||
|
||||
The ``LimitsAbsolute`` class inherits from :class:`~openstack.resource.Resource`.
|
||||
|
||||
.. autoclass:: openstack.compute.v2.limits_absolute.LimitsAbsolute
|
||||
:members:
|
12
doc/source/users/resources/compute/v2/limits_rate.rst
Normal file
12
doc/source/users/resources/compute/v2/limits_rate.rst
Normal file
@ -0,0 +1,12 @@
|
||||
openstack.compute.v2.limits_rate
|
||||
================================
|
||||
|
||||
.. automodule:: openstack.compute.v2.limits_rate
|
||||
|
||||
The LimitsRate Class
|
||||
--------------------
|
||||
|
||||
The ``LimitsRate`` class inherits from :class:`~openstack.resource.Resource`.
|
||||
|
||||
.. autoclass:: openstack.compute.v2.limits_rate.LimitsRate
|
||||
:members:
|
12
doc/source/users/resources/compute/v2/server.rst
Normal file
12
doc/source/users/resources/compute/v2/server.rst
Normal file
@ -0,0 +1,12 @@
|
||||
openstack.compute.v2.server
|
||||
============================
|
||||
|
||||
.. automodule:: openstack.compute.v2.server
|
||||
|
||||
The Server Class
|
||||
----------------
|
||||
|
||||
The ``Server`` class inherits from :class:`~openstack.resource.Resource`.
|
||||
|
||||
.. autoclass:: openstack.compute.v2.server.Server
|
||||
:members:
|
12
doc/source/users/resources/compute/v2/server_interface.rst
Normal file
12
doc/source/users/resources/compute/v2/server_interface.rst
Normal file
@ -0,0 +1,12 @@
|
||||
openstack.compute.v2.server_interface
|
||||
=====================================
|
||||
|
||||
.. automodule:: openstack.compute.v2.server_interface
|
||||
|
||||
The ServerInterface Class
|
||||
-------------------------
|
||||
|
||||
The ``ServerInterface`` class inherits from :class:`~openstack.resource.Resource`.
|
||||
|
||||
.. autoclass:: openstack.compute.v2.server_interface.ServerInterface
|
||||
:members:
|
12
doc/source/users/resources/compute/v2/server_ip.rst
Normal file
12
doc/source/users/resources/compute/v2/server_ip.rst
Normal file
@ -0,0 +1,12 @@
|
||||
openstack.compute.v2.server_ip
|
||||
==============================
|
||||
|
||||
.. automodule:: openstack.compute.v2.server_ip
|
||||
|
||||
The ServerIP Class
|
||||
------------------
|
||||
|
||||
The ``ServerIP`` class inherits from :class:`~openstack.resource.Resource`.
|
||||
|
||||
.. autoclass:: openstack.compute.v2.server_ip.ServerIP
|
||||
:members:
|
12
doc/source/users/resources/compute/v2/server_meta.rst
Normal file
12
doc/source/users/resources/compute/v2/server_meta.rst
Normal file
@ -0,0 +1,12 @@
|
||||
openstack.compute.v2.server_meta
|
||||
================================
|
||||
|
||||
.. automodule:: openstack.compute.v2.server_meta
|
||||
|
||||
The ServerMeta Class
|
||||
--------------------
|
||||
|
||||
The ``ServerMeta`` class inherits from :class:`~openstack.resource.Resource`.
|
||||
|
||||
.. autoclass:: openstack.compute.v2.server_meta.ServerMeta
|
||||
:members:
|
12
doc/source/users/resources/compute/v2/server_metadata.rst
Normal file
12
doc/source/users/resources/compute/v2/server_metadata.rst
Normal file
@ -0,0 +1,12 @@
|
||||
openstack.compute.v2.server_metadata
|
||||
====================================
|
||||
|
||||
.. automodule:: openstack.compute.v2.server_metadata
|
||||
|
||||
The ServerMetadata Class
|
||||
------------------------
|
||||
|
||||
The ``ServerMetadata`` class inherits from :class:`~openstack.resource.Resource`.
|
||||
|
||||
.. autoclass:: openstack.compute.v2.server_metadata.ServerMetadata
|
||||
:members:
|
10
doc/source/users/resources/database/index.rst
Normal file
10
doc/source/users/resources/database/index.rst
Normal file
@ -0,0 +1,10 @@
|
||||
Database Resources
|
||||
======================
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
v1/database
|
||||
v1/flavor
|
||||
v1/instance
|
||||
v1/user
|
12
doc/source/users/resources/database/v1/database.rst
Normal file
12
doc/source/users/resources/database/v1/database.rst
Normal file
@ -0,0 +1,12 @@
|
||||
openstack.database.v1.database
|
||||
==============================
|
||||
|
||||
.. automodule:: openstack.database.v1.database
|
||||
|
||||
The Database Class
|
||||
------------------
|
||||
|
||||
The ``Database`` class inherits from :class:`~openstack.resource.Resource`.
|
||||
|
||||
.. autoclass:: openstack.database.v1.database.Database
|
||||
:members:
|
12
doc/source/users/resources/database/v1/flavor.rst
Normal file
12
doc/source/users/resources/database/v1/flavor.rst
Normal file
@ -0,0 +1,12 @@
|
||||
openstack.database.v1.flavor
|
||||
============================
|
||||
|
||||
.. automodule:: openstack.database.v1.flavor
|
||||
|
||||
The Flavor Class
|
||||
----------------
|
||||
|
||||
The ``Flavor`` class inherits from :class:`~openstack.resource.Resource`.
|
||||
|
||||
.. autoclass:: openstack.database.v1.flavor.Flavor
|
||||
:members:
|
12
doc/source/users/resources/database/v1/instance.rst
Normal file
12
doc/source/users/resources/database/v1/instance.rst
Normal file
@ -0,0 +1,12 @@
|
||||
openstack.database.v1.instance
|
||||
==============================
|
||||
|
||||
.. automodule:: openstack.database.v1.instance
|
||||
|
||||
The Instance Class
|
||||
------------------
|
||||
|
||||
The ``Instance`` class inherits from :class:`~openstack.resource.Resource`.
|
||||
|
||||
.. autoclass:: openstack.database.v1.instance.Instance
|
||||
:members:
|
12
doc/source/users/resources/database/v1/user.rst
Normal file
12
doc/source/users/resources/database/v1/user.rst
Normal file
@ -0,0 +1,12 @@
|
||||
openstack.database.v1.user
|
||||
==========================
|
||||
|
||||
.. automodule:: openstack.database.v1.user
|
||||
|
||||
The User Class
|
||||
--------------
|
||||
|
||||
The ``User`` class inherits from :class:`~openstack.resource.Resource`.
|
||||
|
||||
.. autoclass:: openstack.database.v1.user.User
|
||||
:members:
|
8
doc/source/users/resources/object_store/index.rst
Normal file
8
doc/source/users/resources/object_store/index.rst
Normal file
@ -0,0 +1,8 @@
|
||||
Object Store Resources
|
||||
======================
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
v1/container
|
||||
v1/obj
|
@ -1,3 +1,5 @@
|
||||
.. TODO(briancurtin): turn this into a full guide on the Connection class
|
||||
|
||||
=====
|
||||
Usage
|
||||
=====
|
Loading…
x
Reference in New Issue
Block a user