Merge lp:~axwalk/gwacl/add-delete-role into lp:gwacl
Status: | Merged |
---|---|
Approved by: | Andrew Wilkins |
Approved revision: | 234 |
Merged at revision: | 233 |
Proposed branch: | lp:~axwalk/gwacl/add-delete-role |
Merge into: | lp:gwacl |
Prerequisite: | lp:~axwalk/gwacl/retry-rewind-request-body |
Diff against target: |
424 lines (+173/-51) 7 files modified
example/management/run.go (+2/-3) management.go (+1/-3) management_base.go (+51/-0) management_base_test.go (+71/-1) management_test.go (+6/-10) xmlobjects.go (+19/-21) xmlobjects_test.go (+23/-13) |
To merge this branch: | bzr merge lp:~axwalk/gwacl/add-delete-role |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ian Booth | Approve | ||
Review via email: mp+210121@code.launchpad.net |
This proposal supersedes a proposal from 2014-03-10.
Commit message
Introduce AddRole, DeleteRole; add missing Role fields
Two more management service API methods are added: AddRole
and DeleteRole (operating on deployments). These are
required when working with Availability Sets, where a role
must be added to an existing Cloud Service.
PersistentVMRole has been changed to be an alias for Role,
which has been expanded to include missing fields.
PersistentVMRole continues to have its own serialisation
methods, so it gets the correct XML tag name and namespace.
Roles can only have a single OS disk, so I've changed the
signature of NewRole to reflect this. Roles may have
additional data disks.
Description of the change
Introduce AddRole, DeleteRole; add missing Role fields
Two more management service API methods are added: AddRole
and DeleteRole (operating on deployments). These are
required when working with Availability Sets, where a role
must be added to an existing Cloud Service.
PersistentVMRole has been changed to be an alias for Role,
which has been expanded to include missing fields.
PersistentVMRole continues to have its own serialisation
methods, so it gets the correct XML tag name and namespace.
Roles can only have a single OS disk, so I've changed the
signature of NewRole to reflect this. Roles may have
additional data disks.
I think the AddRole test accidentally uses the update role stuff.
Not sure if we want to put this
"services/ hostedservices/ " + request.ServiceName + "/deployments/" + request. DeploymentName + "/roles/"
in a helper function