Merge "Fix broken api link and put api link in one line"

This commit is contained in:
Jenkins 2017-04-10 09:51:24 +00:00 committed by Gerrit Code Review
commit 67bcab8e92
8 changed files with 14 additions and 14 deletions

View File

@ -35,9 +35,8 @@ class QuotaClassesClient(base_compute_client.BaseComputeClient):
def update_quota_class_set(self, quota_class_id, **kwargs):
"""Update the quota class's limits for one or more resources.
For a full list of available parameters, please refer to the official
API reference:
http://developer.openstack.org/api-ref-compute-v2.1.html#updatequota
# NOTE: Current api-site doesn't contain this API description.
# LP: https://bugs.launchpad.net/nova/+bug/1602400
"""
post_body = json.dumps({'quota_class_set': kwargs})

View File

@ -28,7 +28,7 @@ class TenantUsagesClient(base_compute_client.BaseComputeClient):
For a full list of available parameters, please refer to the official
API reference:
http://developer.openstack.org/api-ref/compute/#list-tenant-usage-for-all-tenants
https://developer.openstack.org/api-ref/compute/#list-tenant-usage-statistics-for-all-tenants
"""
url = 'os-simple-tenant-usage'
if params:
@ -44,7 +44,7 @@ class TenantUsagesClient(base_compute_client.BaseComputeClient):
For a full list of available parameters, please refer to the official
API reference:
http://developer.openstack.org/api-ref/compute/#show-usage-details-for-tenant
https://developer.openstack.org/api-ref/compute/#show-usage-statistics-for-tenant
"""
url = 'os-simple-tenant-usage/%s' % tenant_id
if params:

View File

@ -25,7 +25,7 @@ class EndpointsClient(rest_client.RestClient):
For a full list of available parameters, please refer to the official
API reference:
http://developer.openstack.org/api-ref-identity-v2-ext.html#createEndpoint
https://developer.openstack.org/api-ref/identity/v2-admin/index.html#create-endpoint-template
"""
post_body = json.dumps({'endpoint': kwargs})

View File

@ -88,7 +88,7 @@ class UsersClient(rest_client.RestClient):
For a full list of available parameters, please refer to the official
API reference:
http://developer.openstack.org/api-ref-identity-v2-ext.html#enableUser
https://developer.openstack.org/api-ref/identity/v2-ext/index.html#enable-disable-user
"""
# NOTE: The URL (users/<id>/enabled) is different from the api-site
# one (users/<id>/OS-KSADM/enabled) , but they are the same API

View File

@ -58,7 +58,7 @@ class OAUTHConsumerClient(rest_client.RestClient):
For more information, please refer to the official
API reference:
http://developer.openstack.org/api-ref/identity/v3-ext/#update-consumers
https://developer.openstack.org/api-ref/identity/v3-ext/#update-consumer
"""
post_body = {"description": description}
post_body = json.dumps({'consumer': post_body})

View File

@ -41,7 +41,7 @@ class NamespaceTagsClient(rest_client.RestClient):
For a full list of available parameters, please refer to the official
API reference:
http://developer.openstack.org/api-ref/image/v2/metadefs-index.html#get_tag_definition
https://developer.openstack.org/api-ref/image/v2/metadefs-index.html#get-tag-definition
"""
url = 'metadefs/namespaces/%s/tags/%s' % (namespace,
tag_name)

View File

@ -24,9 +24,9 @@ class CapabilitiesClient(rest_client.RestClient):
def show_backend_capabilities(self, host):
"""Shows capabilities for a storage back end.
Output params: see http://developer.openstack.org/
api-ref-blockstorage-v2.html
#showBackendCapabilities
For a full list of available parameters, please refer to the official
API reference:
https://developer.openstack.org/api-ref/block-storage/v2/index.html#show-back-end-capabilities
"""
url = 'capabilities/%s' % host
resp, body = self.get(url)

View File

@ -24,8 +24,9 @@ class SchedulerStatsClient(rest_client.RestClient):
def list_pools(self, detail=False):
"""List all the volumes pools (hosts).
Output params: see http://developer.openstack.org/
api-ref-blockstorage-v2.html#listPools
For a full list of available parameters, please refer to the official
API reference:
https://developer.openstack.org/api-ref/block-storage/v2/index.html#list-back-end-storage-pools
"""
url = 'scheduler-stats/get_pools'
if detail: