[api] remove user_id and project_id from policy

There is no user ID and project ID support for the /v3/policy
APIs. The schema [1] validates this.

[1] https://github.com/openstack/keystone/blob/master/keystone/policy/schema.py

Change-Id: I53197412c60513756bce42089f5e959d6c9a7c34
Closes-Bug: #1448602
This commit is contained in:
Steve Martinelli 2016-10-11 15:50:02 -04:00
parent 38f2305ee3
commit abe6157e5a
7 changed files with 6 additions and 32 deletions

View File

@ -41,8 +41,6 @@ Request
.. rest_parameters:: parameters.yaml
- policy: policy
- user_id: policy_user_id
- project_id: project_id
- type: policy_type
- blob: policy_blob_str
@ -57,11 +55,9 @@ Response Parameters
.. rest_parameters:: parameters.yaml
- user_id: policy_user_id
- links: policy_links
- blob: policy_blob_str
- policy: policy
- project_id: project_id
- type: policy_type
- id: policy_id
@ -91,11 +87,9 @@ Response Parameters
.. rest_parameters:: parameters.yaml
- user_id: policy_user_id
- links: policy_links
- blob: policy_blob_obj
- policies: policies
- project_id: project_id
- type: policy_type
- id: policy_id
@ -131,11 +125,9 @@ Response Parameters
.. rest_parameters:: parameters.yaml
- user_id: policy_user_id
- links: policy_links
- blob: policy_blob_obj
- policy: policy
- project_id: project_id
- type: policy_type
- id: policy_id
@ -166,8 +158,6 @@ Request
- policy_id: policy_id_path
- policy: policy
- user_id: policy_user_id
- project_id: project_id
- type: policy_type
- blob: policy_blob_obj
@ -182,11 +172,9 @@ Response Parameters
.. rest_parameters:: parameters.yaml
- user_id: policy_user_id
- links: policy_links
- blob: policy_blob_obj
- policy: policy
- project_id: project_id
- type: policy_type
- id: policy_id

View File

@ -15,9 +15,7 @@
"links": {
"self": "http://example.com/identity/v3/policies/717273"
},
"project_id": "456789",
"type": "application/json",
"user_id": "616263"
"type": "application/json"
},
{
"blob": {
@ -29,9 +27,7 @@
"links": {
"self": "http://example.com/identity/v3/policies/717274"
},
"project_id": "456789",
"type": "application/json",
"user_id": "616263"
"type": "application/json"
}
]
}

View File

@ -1,8 +1,6 @@
{
"policy": {
"blob": "{'foobar_user': 'role:compute-user'}",
"project_id": "0426ac1e48f642ef9544c2251e07e261",
"type": "application/json",
"user_id": "0ffd248c55b443eaac5253b4e9cbf9b5"
"type": "application/json"
}
}

View File

@ -1,11 +1,9 @@
{
"policy": {
"user_id": "0ffd248c55b443eaac5253b4e9cbf9b5",
"links": {
"self": "http://example.com/identity/v3/policies/88f5b83f8f8e41daba4c25eed1a7bbc6"
},
"blob": "{'foobar_user': 'role:compute-user'}",
"project_id": "0426ac1e48f642ef9544c2251e07e261",
"type": "application/json",
"id": "88f5b83f8f8e41daba4c25eed1a7bbc6"
}

View File

@ -9,8 +9,6 @@
"links": {
"self": "http://example.com/identity/v3/policies/717273"
},
"project_id": "456789",
"type": "application/json",
"user_id": "616263"
"type": "application/json"
}
}

View File

@ -5,8 +5,6 @@
"role:compute-user"
]
},
"project_id": "456789",
"type": "application/json",
"user_id": "616263"
"type": "application/json"
}
}

View File

@ -9,8 +9,6 @@
"links": {
"self": "http://example.com/identity/v3/policies/717273"
},
"project_id": "456789",
"type": "application/json",
"user_id": "616263"
"type": "application/json"
}
}