From 3786cca64fbec973cb7da82234c948507c91db43 Mon Sep 17 00:00:00 2001 From: Wim Van de Meerssche Date: Tue, 1 Jul 2014 15:00:24 +0200 Subject: [PATCH] proposal to add RSpec version to Allocate --- call-allocate.adoc | 35 +++++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/call-allocate.adoc b/call-allocate.adoc index 681b0ff..516b929 100644 --- a/call-allocate.adoc +++ b/call-allocate.adoc @@ -10,7 +10,8 @@ At some aggregates, experimenter tools may call Allocate multiple times, to add ---------------- Allocate(string slice_urn, struct credentials[], - string.rspec rspec, + struct request_rspec, + struct manifest_rspec_version, struct options) ---------------- @@ -28,25 +29,43 @@ String content type:: URN The URN of the slice to which the resources specified in rspec will be allocated. For details on URN identifiers, see link:general.html[this document]. -==== Argument 2: +rspec+ +==== Argument 2: +credentials+ + +The standard authorization argument. See <>. + +==== Argument 3: +request_rspec+ *********************************** [horizontal] Supported by the server:: Mandatory Included by client:: Mandatory -XML-RPC type:: +string+ -String content type:: <> +XML-RPC type:: +[source] + { + "type" : , + "version" : , + "rspec" : + } + +"rspec" String content type:: <> *********************************** -An RSpec containing the resources that the caller is requesting for allocation to the slice specified in slice_urn. These are expected to be consistent with the resources returned by a previous invocation of <>. If this RSpec is in a format not listed as supported by <>, then the aggregate will return an error of +BADVERSION (4)+. +A request RSpec containing the resources that the caller is requesting for allocation to the slice specified in +slice_urn+. +These are expected to be consistent with the resources returned by a previous invocation of <>. + +The format of the request RSpec is specified in the "version" and "type" fields, the request RSpec itself is specified in "rspec". +If this RSpec is in a format not listed as supported by <>, then the aggregate will return an error of +BADVERSION (4)+. For more details on RSpecs and RSpec versions, see the type <> and the link:rspec.html[Rspec Document]. -==== Argument 3: +credentials+ +==== Argument 4: +manifest_rspec_version+ -The standard authorization argument. See <>. +The version of (manifest) RSpec that the client would like to receive in the reply to this call. +If this is not a format listed as supported by <>, then the aggregate will return an error of +BADVERSION (4)+. + +See the <> for details. -==== Argument 4: +options+ +==== Argument 5: +options+ A struct containing optional arguments, indexed by name. See <>.