Fix Available params docs in service clients

This commit fixes the 'Available params' docs in service clients. I
checked the existence of the links with a simple script.

Change-Id: I21d8fa5b2898a7b5dde06f3d16d1409189ffbf18
This commit is contained in:
Masayuki Igawa 2016-06-24 12:36:03 +09:00
parent 45b2b318ea
commit 67a446eea0
5 changed files with 9 additions and 9 deletions

View File

@ -41,7 +41,7 @@ class AggregatesClient(base_compute_client.BaseComputeClient):
"""Create a new aggregate.
Available params: see http://developer.openstack.org/
api-ref-compute-v2.1.html#createaggregate
api-ref-compute-v2.1.html#createAggregate
"""
post_body = json.dumps({'aggregate': kwargs})
resp, body = self.post('os-aggregates', post_body)
@ -54,7 +54,7 @@ class AggregatesClient(base_compute_client.BaseComputeClient):
"""Update an aggregate.
Available params: see http://developer.openstack.org/
api-ref-compute-v2.1.html#updateaggregate
api-ref-compute-v2.1.html#updateAggregate
"""
put_body = json.dumps({'aggregate': kwargs})
resp, body = self.put('os-aggregates/%s' % aggregate_id, put_body)
@ -85,7 +85,7 @@ class AggregatesClient(base_compute_client.BaseComputeClient):
"""Add a host to the given aggregate.
Available params: see http://developer.openstack.org/
api-ref-compute-v2.1.html#addhost
api-ref-compute-v2.1.html#addHost
"""
post_body = json.dumps({'add_host': kwargs})
resp, body = self.post('os-aggregates/%s/action' % aggregate_id,
@ -98,7 +98,7 @@ class AggregatesClient(base_compute_client.BaseComputeClient):
"""Remove a host from the given aggregate.
Available params: see http://developer.openstack.org/
api-ref-compute-v2.1.html#removehost
api-ref-compute-v2.1.html#removeAggregateHost
"""
post_body = json.dumps({'remove_host': kwargs})
resp, body = self.post('os-aggregates/%s/action' % aggregate_id,

View File

@ -91,7 +91,7 @@ class FlavorsClient(base_compute_client.BaseComputeClient):
"""Set extra Specs to the mentioned flavor.
Available params: see http://developer.openstack.org/
api-ref-compute-v2.1.html#updateFlavorExtraSpec
api-ref-compute-v2.1.html#createFlavorExtraSpec
"""
post_body = json.dumps({'extra_specs': kwargs})
resp, body = self.post('flavors/%s/os-extra_specs' % flavor_id,
@ -123,7 +123,7 @@ class FlavorsClient(base_compute_client.BaseComputeClient):
"""Update specified extra Specs of the mentioned flavor and key.
Available params: see http://developer.openstack.org/
api-ref-compute-v2.1.html#updateflavorspec
api-ref-compute-v2.1.html#updateFlavorExtraSpec
"""
resp, body = self.put('flavors/%s/os-extra_specs/%s' %
(flavor_id, key), json.dumps(kwargs))

View File

@ -26,7 +26,7 @@ class MigrationsClient(base_compute_client.BaseComputeClient):
"""List all migrations.
Available params: see http://developer.openstack.org/
api-ref-compute-v2.1.html#returnmigrations
api-ref-compute-v2.1.html#listMigrations
"""
url = 'os-migrations'

View File

@ -46,7 +46,7 @@ class QuotasClient(base_compute_client.BaseComputeClient):
"""Updates the tenant's quota limits for one or more resources.
Available params: see http://developer.openstack.org/
api-ref-compute-v2.1.html#updatesquotatenant
api-ref-compute-v2.1.html#updateQuota
"""
post_body = json.dumps({'quota_set': kwargs})

View File

@ -55,7 +55,7 @@ class RoutersClient(base.BaseNetworkClient):
"""Remove router interface.
Available params: see http://developer.openstack.org/
api-ref-networking-v2-ext.html#removeRouterInterface
api-ref-networking-v2-ext.html#deleteRouterInterface
"""
uri = '/routers/%s/remove_router_interface' % router_id
return self.update_resource(uri, kwargs)