Gilad Chaplik has uploaded a new change for review. Change subject: restapi: add scheduling policy elements to rsdl_metadata.yaml ......................................................................
restapi: add scheduling policy elements to rsdl_metadata.yaml complementing http://gerrit.ovirt.org/#/c/28093/ Change-Id: I36f5efe9f82c914e0dec80572b2500e6839e5f7b Signed-off-by: Gilad Chaplik <[email protected]> --- M backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml 1 file changed, 254 insertions(+), 3 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/77/28877/1 diff --git a/backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml b/backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml index ef2b87f..6c5554c 100644 --- a/backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml +++ b/backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml @@ -1768,6 +1768,7 @@ optionalArguments: {cluster.name: 'xs:string', cluster.description: 'xs:string', cluster.comment: 'xs:string', cluster.data_center.id: 'xs:string', cluster.cpu.id: 'xs:string', cluster.version.major: 'xs:int', cluster.version.minor: 'xs:int', cluster.memory_policy.overcommit.percent: 'xs:double', cluster.memory_policy.transparent_hugepages.enabled: 'xs:boolean', cluster.scheduling_policy.policy: 'xs:string', cluster.scheduling_policy.thresholds.low: 'xs:int', cluster.scheduling_policy.thresholds.high: 'xs:int', cluster.scheduling_policy.thresholds.duration: 'xs:int', + cluster.scheduling_policy.id: 'xs:string', cluster.scheduling_policy.properties.property--COLLECTION: {property.name: 'xs:string', property.value: 'xs:string'}, cluster.error_handling.on_error: 'xs:string', cluster.virt_service: 'xs:boolean', cluster.gluster_service: 'xs:boolean', cluster.threads_as_cores: 'xs:boolean', cluster.tunnel_migration: 'xs:boolean', cluster.ballooning_enabled: 'xs:boolean', cluster.cpu.architecture: 'xs:string', cluster.display.proxy: 'xs:string', cluster.ksm.enabled: 'xs:boolean'} description: update the specified cluster in the system. The capabilities like virt service, cluster service, tarnsparent huge pages etc can be changed. @@ -2115,8 +2116,8 @@ signatures: - mandatoryArguments: {} optionalArguments: {cluster.name: 'xs:string', cluster.description: 'xs:string', cluster.cpu.id: 'xs:string', cluster.version.major: 'xs:int', cluster.version.minor: 'xs:int', - cluster.memory_policy.overcommit.percent: 'xs:double', cluster.memory_policy.transparent_hugepages.enabled: 'xs:boolean', cluster.scheduling_policy.policy: 'xs:string', - cluster.scheduling_policy.thresholds.low: 'xs:int', cluster.scheduling_policy.thresholds.high: 'xs:int', cluster.scheduling_policy.thresholds.duration: 'xs:int', + cluster.memory_policy.overcommit.percent: 'xs:double', cluster.memory_policy.transparent_hugepages.enabled: 'xs:boolean', cluster.scheduling_policy.policy--DEPRECATED: 'xs:string', + cluster.scheduling_policy.thresholds.low--DEPRECATED: 'xs:int', cluster.scheduling_policy.thresholds.high--DEPRECATED: 'xs:int', cluster.scheduling_policy.thresholds.duration--DEPRECATED: 'xs:int', cluster.error_handling.on_error: 'xs:string', cluster.virt_service: 'xs:boolean', cluster.gluster_service: 'xs:boolean', cluster.threads_as_cores: 'xs:boolean', cluster.tunnel_migration: 'xs:boolean', cluster.trusted_service: 'xs:boolean', cluster.ha_reservation: 'xs:boolean', cluster.ballooning_enabled: 'xs:boolean', cluster.cpu.architecture: 'xs:string', cluster.display.proxy: 'xs:string', cluster.ksm.enabled: 'xs:boolean',} description: update specified cluster in the data center @@ -5227,4 +5228,254 @@ Content-Type: {value: application/xml|json, required: true} Expect: {value: 201-created, required: false} Correlation-Id: {value: 'any string', required: false} - +- name: /schedulingpolicyunits|rel=get + description: get a list of scheduling policy units in the system + request: + body: + parameterType: null + signatures: [] + urlparams: + case_sensitive: {context: matrix, type: 'xs:boolean', value: true|false, required: false} + max: {context: matrix, type: 'xs:int', value: 'max results', required: false} + headers: + Filter: {value: true|false, required: false} +- name: /schedulingpolicyunits/{schedulingpolicyunit:id}|rel=get + description: get the details of the specified scheduling policy unit in the system + request: + body: + parameterType: null + signatures: [] + urlparams: {} + headers: + Filter: {value: true|false, required: false} +- name: /schedulingpolicyunits/{schedulingpolicyunit:id}|rel=delete + description: delete the specified disabled and external scheduling policy unit in the system + request: + body: + required: false + parameterType: Action + signatures: + - mandatoryArguments: {} + description: delete the specified scheduling policy unit in the system + urlparams: + async: {context: matrix, type: 'xs:boolean', value: true|false, required: false} + headers: + Content-Type: {value: application/xml|json, required: true} + Correlation-Id: {value: 'any string', required: false} +- name: /schedulingpolicies/{schedulingpolicy:id}|rel=update + description: update the specified user defined scheduling policy in the system + request: + body: + parameterType: SchedulingPolicy + signatures: + - mandatoryArguments: {} + optionalArguments: + schedulingpolicy.name: xs:string + schedulingpolicy.description: xs:string + schedulingpolicy.properties.property--COLLECTION: {property.name: 'xs:string', property.value: 'xs:string'} + description: update the specified user defined scheduling policy in the system + urlparams: {} + headers: + Content-Type: {value: application/xml|json, required: true} + Correlation-Id: {value: 'any string', required: false} +- name: /schedulingpolicies|rel=get + description: get a list of scheduling policies in the system + request: + body: + parameterType: null + signatures: [] + urlparams: + case_sensitive: {context: matrix, type: 'xs:boolean', value: true|false, required: false} + max: {context: matrix, type: 'xs:int', value: 'max results', required: false} + headers: + Filter: {value: true|false, required: false} +- name: /schedulingpolicies/{schedulingpolicy:id}|rel=get + description: get the details of the specified scheduling policy in the system + request: + body: + parameterType: null + signatures: [] + urlparams: {} + headers: + Filter: {value: true|false, required: false} +- name: /schedulingpolicies/{schedulingpolicy:id}|rel=delete + description: delete the specified user defined scheduling policy in the system + request: + body: + required: false + parameterType: Action + signatures: + - mandatoryArguments: {} + description: delete the specified user defined scheduling policy in the system + urlparams: + async: {context: matrix, type: 'xs:boolean', value: true|false, required: false} + headers: + Content-Type: {value: application/xml|json, required: true} + Correlation-Id: {value: 'any string', required: false} +- name: /schedulingpolicies|rel=add + description: add a new scheduling policy to the system + request: + body: + parameterType: SchedulingPolicy + signatures: + - mandatoryArguments: {schedulingpolicy.name: 'xs:string'} + optionalArguments: + schedulingpolicy.description: xs:string + schedulingpolicy.properties.property--COLLECTION: {property.name: 'xs:string', property.value: 'xs:string'} + description: add a new scheduling policy to the system + urlparams: {} + headers: + Content-Type: {value: application/xml|json, required: true} + Expect: {value: 201-created, required: false} + Correlation-Id: {value: 'any string', required: false} +- name: /schedulingpolicies/{schedulingpolicy:id}/filters|rel=get + description: get a list of specified scheduling policy filters + request: + body: + parameterType: null + signatures: [] + urlparams: + case_sensitive: {context: matrix, type: 'xs:boolean', value: true|false, required: false} + max: {context: matrix, type: 'xs:int', value: 'max results', required: false} + headers: + Filter: {value: true|false, required: false} +- name: /schedulingpolicies/{schedulingpolicy:id}/filters/{filter:id}|rel=get + description: get a specified scheduling policy filter + request: + body: + parameterType: null + signatures: [] + urlparams: + case_sensitive: {context: matrix, type: 'xs:boolean', value: true|false, required: false} + max: {context: matrix, type: 'xs:int', value: 'max results', required: false} + headers: + Filter: {value: true|false, required: false} +- name: /schedulingpolicies/{schedulingpolicy:id}/filters|rel=delete + description: delete a filter from specified user defined scheduling policy + request: + body: + required: false + parameterType: Action + signatures: + - mandatoryArguments: {} + description: delete the specified scheduling policy in the system + urlparams: + async: {context: matrix, type: 'xs:boolean', value: true|false, required: false} + headers: + Content-Type: {value: application/xml|json, required: true} + Correlation-Id: {value: 'any string', required: false} +- name: /schedulingpolicies/{schedulingpolicy:id}|rel=add + description: add a filter to a specified user defined scheduling policy + request: + body: + parameterType: Filter + signatures: + - mandatoryArguments: {filter.scheduling_policy_unit.id: 'xs:string'} + optionalArguments: + filter.scheduling_policy_unit.position: 'xs:int' + description: add a new scheduling policy to the system + urlparams: {} + headers: + Content-Type: {value: application/xml|json, required: true} + Expect: {value: 201-created, required: false} + Correlation-Id: {value: 'any string', required: false} +- name: /schedulingpolicies/{schedulingpolicy:id}/weights|rel=get + description: get a list of specified scheduling policy weights + request: + body: + parameterType: null + signatures: [] + urlparams: + case_sensitive: {context: matrix, type: 'xs:boolean', value: true|false, required: false} + max: {context: matrix, type: 'xs:int', value: 'max results', required: false} + headers: + Filter: {value: true|false, required: false} +- name: /schedulingpolicies/{schedulingpolicy:id}/weights/{weight:id}|rel=get + description: get a specified scheduling policy weight + request: + body: + parameterType: null + signatures: [] + urlparams: + case_sensitive: {context: matrix, type: 'xs:boolean', value: true|false, required: false} + max: {context: matrix, type: 'xs:int', value: 'max results', required: false} + headers: + Filter: {value: true|false, required: false} +- name: /schedulingpolicies/{schedulingpolicy:id}/weights|rel=delete + description: delete a weight from specified user defined scheduling policy + request: + body: + required: false + parameterType: Action + signatures: + - mandatoryArguments: {} + description: delete a weight from specified user defined scheduling policy + urlparams: + async: {context: matrix, type: 'xs:boolean', value: true|false, required: false} + headers: + Content-Type: {value: application/xml|json, required: true} + Correlation-Id: {value: 'any string', required: false} +- name: /schedulingpolicies/{schedulingpolicy:id}|rel=add + description: add a weight to a specified user defined scheduling policy + request: + body: + parameterType: Weight + signatures: + - mandatoryArguments: {weight.scheduling_policy_unit.id: 'xs:string'} + optionalArguments: + weight.scheduling_policy_unit.factor: 'xs:int' + description: add a weight to a specified user defined scheduling policy + urlparams: {} + headers: + Content-Type: {value: application/xml|json, required: true} + Expect: {value: 201-created, required: false} + Correlation-Id: {value: 'any string', required: false} +- name: /schedulingpolicies/{schedulingpolicy:id}/balances|rel=get + description: get a list of specified scheduling policy balance modules + request: + body: + parameterType: null + signatures: [] + urlparams: + case_sensitive: {context: matrix, type: 'xs:boolean', value: true|false, required: false} + max: {context: matrix, type: 'xs:int', value: 'max results', required: false} + headers: + Filter: {value: true|false, required: false} +- name: /schedulingpolicies/{schedulingpolicy:id}/balances/{balance:id}|rel=get + description: get a specified scheduling policy balance module + request: + body: + parameterType: null + signatures: [] + urlparams: + case_sensitive: {context: matrix, type: 'xs:boolean', value: true|false, required: false} + max: {context: matrix, type: 'xs:int', value: 'max results', required: false} + headers: + Filter: {value: true|false, required: false} +- name: /schedulingpolicies/{schedulingpolicy:id}/balances|rel=delete + description: delete a balance module from specified user defined scheduling policy + request: + body: + required: false + parameterType: Action + signatures: + - mandatoryArguments: {} + description: delete a balance module from specified user defined scheduling policy + urlparams: + async: {context: matrix, type: 'xs:boolean', value: true|false, required: false} + headers: + Content-Type: {value: application/xml|json, required: true} + Correlation-Id: {value: 'any string', required: false} +- name: /schedulingpolicies/{schedulingpolicy:id}|rel=add + description: add a balance module to a specified user defined scheduling policy + request: + body: + parameterType: Balance + signatures: + - mandatoryArguments: {balance.scheduling_policy_unit.id: 'xs:string'} + description: add a balance module to a specified user defined scheduling policy + urlparams: {} + headers: + Content-Type: {value: application/xml|json, required: true} + Expect: {value: 201-created, required: false} + Correlation-Id: {value: 'any string', required: false} -- To view, visit http://gerrit.ovirt.org/28877 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I36f5efe9f82c914e0dec80572b2500e6839e5f7b Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Gilad Chaplik <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
