Update Available para link of keystone v3 client
Some ref urls of keystone v3 clients is changed in http://developer.openstack.org, so this is to update available para links in keystone v3 clients Change-Id: Ifb7126bd6473e728606d3468eabddf4c52946cb9
This commit is contained in:
parent
53015677cd
commit
ba3edecdd2
|
@ -36,7 +36,7 @@ class EndPointsClient(rest_client.RestClient):
|
|||
"""Create endpoint.
|
||||
|
||||
Available params: see http://developer.openstack.org/
|
||||
api-ref-identity-v3.html#createEndpoint
|
||||
api-ref/identity/v3/index.html#create-endpoint
|
||||
"""
|
||||
post_body = json.dumps({'endpoint': kwargs})
|
||||
resp, body = self.post('endpoints', post_body)
|
||||
|
@ -48,7 +48,7 @@ class EndPointsClient(rest_client.RestClient):
|
|||
"""Updates an endpoint with given parameters.
|
||||
|
||||
Available params: see http://developer.openstack.org/
|
||||
api-ref-identity-v3.html#updateEndpoint
|
||||
api-ref/identity/v3/index.html#update-endpoint
|
||||
"""
|
||||
post_body = json.dumps({'endpoint': kwargs})
|
||||
resp, body = self.patch('endpoints/%s' % endpoint_id, post_body)
|
||||
|
|
|
@ -30,7 +30,7 @@ class GroupsClient(rest_client.RestClient):
|
|||
"""Creates a group.
|
||||
|
||||
Available params: see http://developer.openstack.org/
|
||||
api-ref-identity-v3.html#createGroup
|
||||
api-ref/identity/v3/index.html#create-group
|
||||
"""
|
||||
post_body = json.dumps({'group': kwargs})
|
||||
resp, body = self.post('groups', post_body)
|
||||
|
@ -63,7 +63,7 @@ class GroupsClient(rest_client.RestClient):
|
|||
"""Updates a group.
|
||||
|
||||
Available params: see http://developer.openstack.org/
|
||||
api-ref-identity-v3.html#updateGroup
|
||||
api-ref/identity/v3/index.html#update-group
|
||||
"""
|
||||
post_body = json.dumps({'group': kwargs})
|
||||
resp, body = self.patch('groups/%s' % group_id, post_body)
|
||||
|
|
|
@ -29,7 +29,7 @@ class PoliciesClient(rest_client.RestClient):
|
|||
"""Creates a Policy.
|
||||
|
||||
Available params: see http://developer.openstack.org/
|
||||
api-ref-identity-v3.html#createPolicy
|
||||
api-ref/identity/v3/index.html#create-policy
|
||||
"""
|
||||
post_body = json.dumps({'policy': kwargs})
|
||||
resp, body = self.post('policies', post_body)
|
||||
|
@ -56,7 +56,7 @@ class PoliciesClient(rest_client.RestClient):
|
|||
"""Updates a policy.
|
||||
|
||||
Available params: see http://developer.openstack.org/
|
||||
api-ref-identity-v3.html#updatePolicy
|
||||
api-ref/identity/v3/index.html#update-policy
|
||||
"""
|
||||
post_body = json.dumps({'policy': kwargs})
|
||||
url = 'policies/%s' % policy_id
|
||||
|
|
|
@ -26,7 +26,7 @@ class ProjectsClient(rest_client.RestClient):
|
|||
"""Create a Project.
|
||||
|
||||
Available params: see http://developer.openstack.org/
|
||||
api-ref-identity-v3.html#createProject
|
||||
api-ref/identity/v3/index.html#create-project
|
||||
|
||||
"""
|
||||
# Include the project name to the kwargs parameters
|
||||
|
@ -50,7 +50,7 @@ class ProjectsClient(rest_client.RestClient):
|
|||
"""Update a Project.
|
||||
|
||||
Available params: see http://developer.openstack.org/
|
||||
api-ref-identity-v3.html#updateProject
|
||||
api-ref/identity/v3/index.html#update-project
|
||||
|
||||
"""
|
||||
post_body = json.dumps({'project': kwargs})
|
||||
|
|
|
@ -30,10 +30,7 @@ class RegionsClient(rest_client.RestClient):
|
|||
"""Create region.
|
||||
|
||||
Available params: see http://developer.openstack.org/
|
||||
api-ref-identity-v3.html#createRegion
|
||||
|
||||
see http://developer.openstack.org/
|
||||
api-ref-identity-v3.html#createRegionWithID
|
||||
api-ref/identity/v3/index.html#create-region
|
||||
"""
|
||||
if region_id is not None:
|
||||
method = self.put
|
||||
|
@ -51,7 +48,7 @@ class RegionsClient(rest_client.RestClient):
|
|||
"""Updates a region.
|
||||
|
||||
Available params: see http://developer.openstack.org/
|
||||
api-ref-identity-v3.html#updateRegion
|
||||
api-ref/identity/v3/index.html#update-region
|
||||
"""
|
||||
post_body = json.dumps({'region': kwargs})
|
||||
resp, body = self.patch('regions/%s' % region_id, post_body)
|
||||
|
|
|
@ -25,7 +25,7 @@ class RolesClient(rest_client.RestClient):
|
|||
"""Create a Role.
|
||||
|
||||
Available params: see http://developer.openstack.org/
|
||||
api-ref-identity-v3.html#createRole
|
||||
api-ref/identity/v3/index.html#create-role
|
||||
"""
|
||||
post_body = json.dumps({'role': kwargs})
|
||||
resp, body = self.post('roles', post_body)
|
||||
|
@ -55,7 +55,7 @@ class RolesClient(rest_client.RestClient):
|
|||
"""Update a Role.
|
||||
|
||||
Available params: see http://developer.openstack.org/
|
||||
api-ref-identity-v3.html#updateRole
|
||||
api-ref/identity/v3/index.html#update-role
|
||||
"""
|
||||
post_body = json.dumps({'role': kwargs})
|
||||
resp, body = self.patch('roles/%s' % role_id, post_body)
|
||||
|
|
|
@ -30,7 +30,7 @@ class ServicesClient(rest_client.RestClient):
|
|||
"""Updates a service.
|
||||
|
||||
Available params: see http://developer.openstack.org/
|
||||
api-ref-identity-v3.html#updateService
|
||||
api-ref/identity/v3/index.html#update-service
|
||||
"""
|
||||
patch_body = json.dumps({'service': kwargs})
|
||||
resp, body = self.patch('services/%s' % service_id, patch_body)
|
||||
|
@ -50,7 +50,7 @@ class ServicesClient(rest_client.RestClient):
|
|||
"""Creates a service.
|
||||
|
||||
Available params: see http://developer.openstack.org/
|
||||
api-ref-identity-v3.html#createService
|
||||
api-ref/identity/v3/index.html#create-service
|
||||
"""
|
||||
body = json.dumps({'service': kwargs})
|
||||
resp, body = self.post("services", body)
|
||||
|
|
|
@ -37,7 +37,7 @@ class UsersClient(rest_client.RestClient):
|
|||
"""Updates a user.
|
||||
|
||||
Available params: see http://developer.openstack.org/
|
||||
api-ref-identity-v3.html#updateUser
|
||||
api-ref/identity/v3/#update-user
|
||||
"""
|
||||
if 'id' not in kwargs:
|
||||
kwargs['id'] = user_id
|
||||
|
@ -51,7 +51,8 @@ class UsersClient(rest_client.RestClient):
|
|||
"""Update a user password
|
||||
|
||||
Available params: see http://developer.openstack.org/
|
||||
api-ref-identity-v3.html#changeUserPassword
|
||||
api-ref/identity/v3/index.html#
|
||||
change-password-for-user
|
||||
"""
|
||||
update_user = json.dumps({'user': kwargs})
|
||||
resp, _ = self.post('users/%s/password' % user_id, update_user)
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
# under the License.
|
||||
|
||||
"""
|
||||
http://developer.openstack.org/api-ref-identity-v3.html#credentials
|
||||
http://developer.openstack.org/api-ref/identity/v3/index.html#credentials
|
||||
"""
|
||||
|
||||
from oslo_serialization import jsonutils as json
|
||||
|
@ -30,7 +30,7 @@ class CredentialsClient(rest_client.RestClient):
|
|||
"""Creates a credential.
|
||||
|
||||
Available params: see http://developer.openstack.org/
|
||||
api-ref-identity-v3.html#create-credential
|
||||
api-ref/identity/v3/index.html#create-credential
|
||||
"""
|
||||
post_body = json.dumps({'credential': kwargs})
|
||||
resp, body = self.post('credentials', post_body)
|
||||
|
@ -43,7 +43,7 @@ class CredentialsClient(rest_client.RestClient):
|
|||
"""Updates a credential.
|
||||
|
||||
Available params: see http://developer.openstack.org/
|
||||
api-ref-identity-v3.html#update-credential
|
||||
api-ref/identity/v3/index.html#update-credential
|
||||
"""
|
||||
post_body = json.dumps({'credential': kwargs})
|
||||
resp, body = self.patch('credentials/%s' % credential_id, post_body)
|
||||
|
@ -56,7 +56,8 @@ class CredentialsClient(rest_client.RestClient):
|
|||
"""To GET Details of a credential.
|
||||
|
||||
For API details, see http://developer.openstack.org/
|
||||
api-ref-identity-v3.html#show-credential-details
|
||||
api-ref/identity/v3/index.html#
|
||||
show-credential-details
|
||||
"""
|
||||
resp, body = self.get('credentials/%s' % credential_id)
|
||||
self.expected_success(200, resp.status)
|
||||
|
|
|
@ -24,7 +24,7 @@ class TrustsClient(rest_client.RestClient):
|
|||
"""Creates a trust.
|
||||
|
||||
Available params: see http://developer.openstack.org/
|
||||
api-ref-identity-v3-ext.html#createTrust
|
||||
api-ref/identity/v3-ext/index.html#create-trust
|
||||
"""
|
||||
post_body = json.dumps({'trust': kwargs})
|
||||
resp, body = self.post('OS-TRUST/trusts', post_body)
|
||||
|
|
Loading…
Reference in New Issue