SetApplicationDroplet sets the specified droplet on the given application.
(appGUID string, dropletGUID string)
| 46 | |
| 47 | // SetApplicationDroplet sets the specified droplet on the given application. |
| 48 | func (client *Client) SetApplicationDroplet(appGUID string, dropletGUID string) (resources.Relationship, Warnings, error) { |
| 49 | var responseBody resources.Relationship |
| 50 | |
| 51 | _, warnings, err := client.MakeRequest(RequestParams{ |
| 52 | RequestName: internal.PatchApplicationCurrentDropletRequest, |
| 53 | URIParams: internal.Params{"app_guid": appGUID}, |
| 54 | RequestBody: resources.Relationship{GUID: dropletGUID}, |
| 55 | ResponseBody: &responseBody, |
| 56 | }) |
| 57 | |
| 58 | return responseBody, warnings, err |
| 59 | } |
| 60 | |
| 61 | // UpdateOrganizationDefaultIsolationSegmentRelationship sets the default isolation segment |
| 62 | // for an organization on the controller. |
nothing calls this directly
no test coverage detected