Mention (unused) RP generation in POST /allocs/{c}

The schema accepts the (resource provider) 'generation' key in the
resource provider section of the allocations dictionary in the POST
/allocations/{consumer_uuid} request payload. As with PUT
/allocations/{consumer_uuid}, it is ignored. This was missing from the
API reference.

Change-Id: I2586875a60aba7a566f6c1b61ded133b8749031c
This commit is contained in:
Eric Fried 2018-08-28 17:34:19 -05:00
parent 843bffca47
commit e1f3a6df39
2 changed files with 5 additions and 2 deletions

View File

@ -41,6 +41,7 @@ Request
- project_id: project_id_body
- user_id: user_id_body
- allocations: allocations_dict_empty
- generation: resource_provider_generation_optional
- resources: resources
Request example (microversions 1.28 - )

View File

@ -8,7 +8,8 @@
"resources": {
"VCPU": 2,
"MEMORY_MB": 3
}
},
"generation": 4
}
}
},
@ -27,7 +28,8 @@
"resources": {
"VCPU": 4,
"MEMORY_MB": 5
}
},
"generation": 12
}
}
}