Commit Graph

21 Commits

Author SHA1 Message Date
Jenkins 4b16974756 Merge "change host to host_migration" 2016-04-20 16:50:29 +00:00
Jenkins 9a0a52bf42 Merge "Fix os-server-groups.inc" 2016-04-20 14:23:12 +00:00
Jenkins 1e391f8dd6 Merge "Fix the parameters for os-agents API" 2016-04-20 11:15:38 +00:00
Jenkins 9504797297 Merge "Change adminPass for several server actions" 2016-04-20 11:04:20 +00:00
He Jie Xu 469771a3b5 Fix the parameters for os-agents API
* Add notes for API bug: update return string type's agent id
* Fix the parameters for create agent
* Fix the description of agent id in the update url.

Part of bp:api-ref-in-rst

Change-Id: I5c102ef8a08123089ec4a85dde5716eda12fb8c7
2016-04-20 10:23:47 +08:00
jichenjc dfcd3a3c91 change host to host_migration
host param in migration refer to wrong link.

Part of bp:api-ref-in-rst

Change-Id: I7bf2459dace2cf0a90ae32f75ed734f533219c63
2016-03-24 04:39:50 +08:00
jichenjc 356aa087bb Fix os-server-groups.inc
some json reponse/request reference not correct
fix incorrect return value.
Also, change id reference to server_group_id.

Part of bp:api-ref-in-rst

Change-Id: Ia1fc10301dfa35087658d311bec684d43c8e0929
2016-03-24 02:30:28 +08:00
jichenjc a248e6c60b Change adminPass for several server actions
adminPass has incorrect reference, thus every input param
are same ,but actually they are different. updated it with its
correct link reference.

Part of bp:api-ref-in-rst

Change-Id: Ie981a0912768effbe796bfc1d26d4972ba667b90
2016-03-23 22:49:44 +08:00
Jenkins bb64ef88fd Merge "Fix "Creates an aggregate" parameters" 2016-04-19 13:24:40 +00:00
Jenkins 3f0865b22a Merge "Fix "Creates an agent build" parameters" 2016-04-19 06:33:35 +00:00
Ken'ichi Ohmichi b3e1afd087 Fix "Creates an aggregate" parameters
"Creates an aggregate" API supports multiple parameters on a request,
but api-ref doesn.t contain them at all This patch adds them.

The following JSON-Schema is for the API.
https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/schemas/aggregates.py#L32

Part of bp:api-ref-in-rst

Change-Id: I3a58568662d21059bccdcf64cc30dbf3b706db58
2016-04-18 14:25:24 -07:00
Sean Dague 46a1fd17cc Update servers.inc to be as accurate as api-site
This updates servers.inc which had a rough path during conversion. The
GET servers/details was lost entirely.

It updates a number of parameters to distinguish ones that are only in
the queries, as well as fixes references to short names that collided.

It updates the UPDATE call to only specify request parameters which
you can actually update.

It introduces the notation object.field for parameters that are
embedded in other objects. This is a new concept, but one way we can
clear up that the uuid in the parameter list is really networks.uuid.

It also deletes the old hand rolled servers.rst, which drops the
warnings count by nearly 100.

Part of bp:api-ref-in-rst

Change-Id: Ie7693a5888efa913118244a0837e6c0177965d48
2016-04-18 06:40:23 -04:00
Ken'ichi Ohmichi 93e3784a6e Fix "Creates an agent build" parameters
"Creates an agent build" API supports multiple parameters on a request,
but api-ref doesn.t contain them at all This patch adds them.

The following JSON-Schema is for the API.
https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/schemas/agents.py#L21

Part of bp:api-ref-in-rst

Change-Id: I4b026f691711b11c1918785dff89bf5196c7177d
2016-04-15 14:33:53 -07:00
Sean Dague 138a3eae7d clean up versions.inc reference document
This fixes a number of issues in the versions.inc reference
document.

Documents all the useful parameters in the response (we really need to
do something about the ones that are not).

Fix links to samples content, and write some text explaining them.

Parametrize the {api_version} GET call, it was weird to list all the
hard coded values there.

Add a couple of inline todos for longer additional references we
should do.

Part of bp:api-ref-in-rst

Change-Id: I56e5e922fca39453d0d9fc062a84daba7cad8cc1
2016-04-15 11:44:00 -07:00
Sean Dague 19712dccce use 'required' instead of 'optional' for parameters
In swagger the attribute for required/optional is 'required', so we've
decided that's a better way to specify our parameters. This changes
the sphinx parser to use that when inserting (optional) into the
table.

We also make all 'path' parameters required, because we never specify
them in a table where they are not. I think them all being required:
false was an artifact of the data processing.

Part of bp:api-ref-in-rst

Change-Id: Ie2d012741d69430546fe1b10c9f16c853acb926a
2016-04-15 07:43:06 -04:00
Karen Bradshaw aa9a270159 Fix formatting of rst in parameters.yaml
Change-Id: Ia30d1922a756f4bfefd997ab34c799e1919f2540
2016-04-14 14:35:08 -04:00
Sean Dague 9e305c2508 cleanup some issues in parameters.yaml
Change-Id: I47334dab81790573f5f656682e3113bed44d2cc4
2016-04-13 07:55:53 -04:00
Sean Dague f1fa7eb15a add combined parameters.yaml file
This is the output of fairy-slipper conversion, merged into a single
file, with some error collision put into place. This will require some
unwinding of content because of the collisions that exist in keys, but
that can be done manually post import.

Change-Id: I430ed66728a6ac009f23e6ff8a65a3ec01c21327
2016-04-13 07:34:09 -04:00
Sean Dague 329898ffbc Add sample API content
This adds sample API content for versions and servers resources,
including the parameters.yaml that is needed in both of these cases.

It also makes a new tox.ini target 'api-ref' for building these docs,
which will be used as part of the publishing pipeline.

Change-Id: I310ed352dc5dd81d01f2fd5f1a2fab662c29f0dc
2016-03-29 16:35:33 -04:00
jichenjc 6bc51e4d2e Fix os-virtual-interfaces and flavors api-ref
fix api-sample reference to flavors
make some changes to os-virtual-interfaces so don't talk
about microversion in contents(will add microversion later)
also, fix id param reference

Part of bp:api-ref-in-rst

Change-Id: I6eb8a14fce1c1048506cd5b990576ca5ecf44b6c
2016-03-23 22:03:57 +08:00
jichenjc d761ba3bd4 Add 'binary' and 'disable-reason' into os-service
there are references in os-service.inc to binary and disable-reason
but the definitions are missing in parameters.yaml

definitions are here:
https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/schemas/services.py

Part of bp:api-ref-in-rst

Change-Id: Ic371c68cc57c43dc8e866482e901a1d0e7aa18c7
2016-03-23 09:39:43 +08:00