Change in ovirt-engine[master]: restapi: RSDL - add 'deprecated' option

mpastern at redhat.com mpastern at redhat.com
Mon Aug 12 12:38:44 UTC 2013


Michael Pasternak has submitted this change and it was merged.

Change subject: restapi: RSDL - add 'deprecated' option
......................................................................


restapi: RSDL - add 'deprecated' option

Mark parameter as deprecated in rsdl_metadata.yaml file this way:

example for signature parameter:
  vm.display.type--DEPRECATED: xs:string

example for url-param:
  max: {context: matrix, type: 'xs:int', value: 'max results', required: false, deprecated: true}

example for header param:
  Filter: {value: true|false, required: false, deprecated: true}

example for entire signature:

      signatures:
      - mandatoryArguments: {}
        optionalArguments: {action.vm.os.initRd: 'xs:string', action.vm.domain.name: 'xs:string',
          action.vm.placement_policy.host.id|name: 'xs:string', action.vm.placement_policy.affinity: 'xs:string',
          action.async: 'xs:boolean', action.vm.os.kernel: 'xs:string', action.grace_period.expiry: 'xs:long',
          action.vm.display.type: 'xs:string', action.vm.stateless: 'xs:boolean', action.vm.os.cmdline: 'xs:string',
          action.vm.domain.user.username: 'xs:string', action.pause: 'xs:boolean',
          action.vm.os.boot--COLLECTION: {boot.dev: 'xs:string'}, action.vm.domain.user.password: 'xs:string'}
        deprecated: true

Change-Id: Ia7f4ccf1dfa29894f8791909f2284496e7d8b27c
Signed-off-by: Ori Liel <oliel at redhat.com>
---
M backend/manager/modules/restapi/interface/definition/src/main/resources/api.xsd
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/rsdl/ParamData.java
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/rsdl/RsdlBuilder.java
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/rsdl/Signature.java
4 files changed, 52 insertions(+), 12 deletions(-)

Approvals:
  Michael Pasternak: Verified; Looks good to me, approved



-- 
To view, visit http://gerrit.ovirt.org/17960
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia7f4ccf1dfa29894f8791909f2284496e7d8b27c
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Ori Liel <oliel at redhat.com>
Gerrit-Reviewer: Michael Pasternak <mpastern at redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list