Merge "Fix prameters names in Keystone API v2-ext"

This commit is contained in:
Jenkins 2016-09-20 17:40:13 +00:00 committed by Gerrit Code Review
commit 0ec3b88a31
4 changed files with 183 additions and 183 deletions

View File

@ -11,7 +11,7 @@ roles, and services. Requires administrator privileges.
Enable (Disable) user Enable (Disable) user
===================== =====================
.. rest_method:: PUT /v2.0/users/{userId}/OS-KSADM/enabled .. rest_method:: PUT /v2.0/users/{user_id}/OS-KSADM/enabled
Enables or disables a user. Enables or disables a user.
@ -23,8 +23,8 @@ Request
.. rest_parameters:: parameters.yaml .. rest_parameters:: parameters.yaml
- userId: userId - user_id: user_id_path
- enabled: enabled_user - enabled: user_enabled
Request Example Request Example
--------------- ---------------
@ -37,11 +37,13 @@ Response Parameters
.. rest_parameters:: parameters.yaml .. rest_parameters:: parameters.yaml
- email: email - user: user
- enabled: enabled - email: user_email
- id: id - enabled: user_enabled
- name: name - id: user_id_response
- username: username - name: user_name
- username: user_name
- tenantId: tenant_id_response
Response Example Response Example
---------------- ----------------
@ -53,7 +55,7 @@ Response Example
Set user password Set user password
================= =================
.. rest_method:: PUT /v2.0/users/{userId}/OS-KSADM/password .. rest_method:: PUT /v2.0/users/{user_id}/OS-KSADM/password
Sets a user's password Sets a user's password
@ -65,8 +67,8 @@ Request
.. rest_parameters:: parameters.yaml .. rest_parameters:: parameters.yaml
- userId: userId - user_id: user_id_path
- password: new_password - password: user_new_password
Request Example Request Example
--------------- ---------------
@ -79,11 +81,13 @@ Response Parameters
.. rest_parameters:: parameters.yaml .. rest_parameters:: parameters.yaml
- enabled: enabled - user: user
- email: email - enabled: user_enabled
- name: name - email: user_email
- id: id - name: user_name
- username: username - username: user_name
- id: user_id_response
- tenantId: tenant_id_response
Response Example Response Example
---------------- ----------------
@ -95,7 +99,7 @@ Response Example
Update user tenant Update user tenant
================== ==================
.. rest_method:: PUT /v2.0/users/{userId}/OS-KSADM/tenant .. rest_method:: PUT /v2.0/users/{user_id}/OS-KSADM/tenant
Sets a user's tenant Sets a user's tenant
@ -108,8 +112,8 @@ Request
.. rest_parameters:: parameters.yaml .. rest_parameters:: parameters.yaml
- userId: userId - user_id: user_id_path
- tenantId: tenantId - tenantId: tenant_id_request
Request Example Request Example
--------------- ---------------
@ -122,12 +126,14 @@ Response Parameters
.. rest_parameters:: parameters.yaml .. rest_parameters:: parameters.yaml
- email: email - user: user
- enabled: enabled - email: user_email
- tenantId: tenantId - enabled: user_enabled
- id: id - tenant: tenant_id_response
- name: name - id: user_id_response
- username: username - name: user_name
- username: user_name
- tenantId: tenant_id_response
Response Example Response Example
---------------- ----------------
@ -158,10 +164,10 @@ Response Parameters
.. rest_parameters:: parameters.yaml .. rest_parameters:: parameters.yaml
- Location: Location - Location: Location
- type: type - type: service_type
- description: description - description: service_description
- name: name - name: service_name
- id: id - id: service_id
List services (admin extension) List services (admin extension)
@ -179,10 +185,10 @@ Response Parameters
.. rest_parameters:: parameters.yaml .. rest_parameters:: parameters.yaml
- type: type - type: service_type
- description: description - description: service_description
- name: name - name: service_name
- id: id - id: service_id
Response Example Response Example
---------------- ----------------
@ -194,7 +200,7 @@ Response Example
Shows service information by ID Shows service information by ID
=============================== ===============================
.. rest_method:: GET /v2.0/OS-KSADM/services/{serviceId} .. rest_method:: GET /v2.0/OS-KSADM/services/{service_id}
Shows information for a service, by ID. Shows information for a service, by ID.
@ -206,17 +212,17 @@ Request
.. rest_parameters:: parameters.yaml .. rest_parameters:: parameters.yaml
- serviceId: serviceId - service_id: service_id_path
Response Parameters Response Parameters
------------------- -------------------
.. rest_parameters:: parameters.yaml .. rest_parameters:: parameters.yaml
- type: type - type: service_type
- description: description - description: service_description
- name: name - name: service_name
- id: id - id: service_id
Response Example Response Example
---------------- ----------------
@ -240,10 +246,10 @@ Response Parameters
.. rest_parameters:: parameters.yaml .. rest_parameters:: parameters.yaml
- type: type - type: service_type
- description: description - description: service_description
- name: name - name: service_name
- id: id - id: service_id
Response Example Response Example
---------------- ----------------
@ -255,7 +261,7 @@ Response Example
Delete service (admin extension) Delete service (admin extension)
================================ ================================
.. rest_method:: DELETE /v2.0/OS-KSADM/services/{serviceId} .. rest_method:: DELETE /v2.0/OS-KSADM/services/{service_id}
Deletes a service. Deletes a service.
@ -267,7 +273,7 @@ Request
.. rest_parameters:: parameters.yaml .. rest_parameters:: parameters.yaml
- serviceId: serviceId - service_id: service_id_path
Create a role Create a role
@ -309,11 +315,11 @@ Response Parameters
.. rest_parameters:: parameters.yaml .. rest_parameters:: parameters.yaml
- roles_links: roles_links - role_links: role_links
- roles: roles - roles: roles
- description: description - description: role_description
- name: name - name: role_name
- id: id - id: role_id
Response Example Response Example
---------------- ----------------
@ -325,7 +331,7 @@ Response Example
Show a role Show a role
=========== ===========
.. rest_method:: GET /v2.0/OS-KSADM/roles/{roleId} .. rest_method:: GET /v2.0/OS-KSADM/roles/{role_id}
Shows details for a role. Shows details for a role.
@ -337,7 +343,7 @@ Request
.. rest_parameters:: parameters.yaml .. rest_parameters:: parameters.yaml
- roleId: roleId - role_id: role_id_path
Response Parameters Response Parameters
------------------- -------------------
@ -345,9 +351,9 @@ Response Parameters
.. rest_parameters:: parameters.yaml .. rest_parameters:: parameters.yaml
- Location: Location - Location: Location
- description: description - description: role_description
- name: name - name: role_name
- id: id - id: role_id
Response Example Response Example
---------------- ----------------
@ -372,9 +378,9 @@ Response Parameters
.. rest_parameters:: parameters.yaml .. rest_parameters:: parameters.yaml
- Location: Location - Location: Location
- description: description - description: role_description
- name: name - name: role_name
- id: id - id: role_id
Response Example Response Example
---------------- ----------------
@ -386,7 +392,7 @@ Response Example
Delete a role Delete a role
============= =============
.. rest_method:: DELETE /v2.0/OS-KSADM/roles/{roleId} .. rest_method:: DELETE /v2.0/OS-KSADM/roles/{role_id}
Deletes a role. Deletes a role.
@ -398,13 +404,13 @@ Request
.. rest_parameters:: parameters.yaml .. rest_parameters:: parameters.yaml
- roleId: roleId - role_id: role_id_path
Grant roles to user on tenant Grant roles to user on tenant
============================= =============================
.. rest_method:: PUT /v2.0/tenants/{tenantId}/users/{userId}/roles/OS-KSADM/{roleId} .. rest_method:: PUT /v2.0/tenants/{tenant_id}/users/{user_id}/roles/OS-KSADM/{role_id}
Grants a role to a user for a tenant. Grants a role to a user for a tenant.
@ -416,15 +422,15 @@ Request
.. rest_parameters:: parameters.yaml .. rest_parameters:: parameters.yaml
- userId: userId - user_id: user_id_path
- roleId: roleId - role_id: role_id_path
- tenantId: tenantId - tenant_id: tenant_id_path
Revoke role from user on tenant Revoke role from user on tenant
=============================== ===============================
.. rest_method:: DELETE /v2.0/tenants/{tenantId}/users/{userId}/roles/OS-KSADM/{roleId} .. rest_method:: DELETE /v2.0/tenants/{tenant_id}/users/{user_id}/roles/OS-KSADM/{role_id}
Revokes a role from a user for a tenant. Revokes a role from a user for a tenant.
@ -436,6 +442,6 @@ Request
.. rest_parameters:: parameters.yaml .. rest_parameters:: parameters.yaml
- userId: userId - user_id: user_id_path
- roleId: roleId - role_id: role_id_path
- tenantId: tenantId - tenant_id: tenant_id_path

View File

@ -20,7 +20,7 @@ Request
.. rest_parameters:: parameters.yaml .. rest_parameters:: parameters.yaml
- userId: userId - userId: user_id_path
- user: user - user: user
- original_password: original_password - original_password: user_original_password
- password: new_password - password: user_new_password

View File

@ -113,7 +113,7 @@ Request
.. rest_parameters:: parameters.yaml .. rest_parameters:: parameters.yaml
- type: type - type: credential_type
Response Example Response Example
---------------- ----------------

View File

@ -4,40 +4,33 @@ Location:
in: header in: header
required: false required: false
type: string type: string
Location_1:
description: |
The location.
format: uri
in: header
required: false
type: string
# variables in path # variables in path
roleId: credential_type:
description: |
The credential type.
in: path
required: true
type: string
role_id_path:
description: | description: |
The role ID. The role ID.
in: path in: path
required: true required: true
type: string type: string
serviceId: service_id_path:
description: | description: |
The service ID. The service ID.
in: path in: path
required: true required: true
type: string type: string
tenantId: tenant_id_path:
description: | description: |
The tenant ID. The tenant ID.
in: path in: path
required: true required: true
type: string type: string
type_1: user_id_path:
description: |
The credential type.
in: path
required: false
type: string
userId:
description: | description: |
The user ID. The user ID.
in: path in: path
@ -47,125 +40,94 @@ userId:
# variables in query # variables in query
# variables in body # variables in body
description: role_description:
description: |
Description about the service.
in: body
required: true
type: string
description_1:
description: |
Description about the tenant.
in: body
required: true
type: string
description_2:
description: | description: |
The role description. The role description.
in: body in: body
required: true required: true
type: string type: string
email: role_id:
description: |
The user email.
in: body
required: true
type: string
enabled:
description: |
Indicates whether the tenant is enabled or
disabled. Default is ``true``.
in: body
required: true
type: boolean
enabled_user:
description: |
Indicates whether the user should be enabled (``true``)
or disabled(``false``).
in: body
required: true
type: boolean
id:
description: |
The UUID of the service.
in: body
required: true
type: string
id_1:
description: |
The tenant ID.
in: body
required: true
type: string
id_2:
description: |
The user ID.
in: body
required: true
type: string
id_3:
description: | description: |
The role ID. The role ID.
in: body in: body
required: true required: true
type: integer type: integer
name: role_links:
description: | description: |
The service name. Role links.
in: body in: body
required: true required: true
type: string type: object
name_1: role_name:
description: |
The tenant name.
in: body
required: true
type: string
name_2:
description: |
The user name.
in: body
required: true
type: string
name_3:
description: | description: |
The role name. The role name.
in: body in: body
required: true required: true
type: string type: string
new_password:
description: |
User's new password
in: body
required: true
type: string
original_password:
description: |
User's old password
in: body
required: true
type: string
roles: roles:
description: | description: |
A ``roles`` object. A ``roles`` object.
in: body in: body
required: true required: true
type: string type: string
roles_links: service_description:
description: | description: |
Role links. Description about the service.
in: body in: body
required: true required: true
type: object type: string
service_id:
description: |
The ID of the service.
in: body
required: true
type: string
service_name:
description: |
The service name.
in: body
required: true
type: string
service_type:
description: |
The type of the service.
in: body
required: true
type: string
tenant: tenant:
description: | description: |
The tenant object. The tenant object.
in: body in: body
required: true required: true
type: string type: object
type: tenant_description:
description: | description: |
The type of the service. Description about the tenant.
in: body
required: true
type: string
tenant_enabled:
description: |
Indicates whether the tenant is enabled or
disabled. Default is ``true``.
in: body
required: true
type: boolean
tenant_id_request:
description: |
The tenant ID.
in: body
required: true
type: string
tenant_id_response:
description: |
The tenant ID.
in: body
required: true
type: string
tenant_name:
description: |
The tenant name.
in: body in: body
required: true required: true
type: string type: string
@ -175,11 +137,48 @@ user:
in: body in: body
required: true required: true
type: string type: string
username: user_email:
description: | description: |
The user name. The user email.
in: body in: body
required: false required: true
type: string
user_enabled:
description: |
Indicates whether the user should be enabled (``true``)
or disabled(``false``).
in: body
required: true
type: boolean
user_id_response:
description: |
The user ID.
in: body
required: true
type: string
user_links:
description: |
The links of ``users`` object.
in: body
required: true
type: array
user_name:
description: |
The user in-real-life name.
in: body
required: true
type: string
user_new_password:
description: |
User's new password
in: body
required: true
type: string
user_original_password:
description: |
User's old password
in: body
required: true
type: string type: string
users: users:
description: | description: |
@ -187,9 +186,4 @@ users:
in: body in: body
required: true required: true
type: array type: array
users_links:
description: |
The links of ``users`` object.
in: body
required: true
type: array