UpdateAppFeature enables/disables the ability to ssh for a given application.
(appGUID string, enabled bool, featureName string)
| 36 | |
| 37 | // UpdateAppFeature enables/disables the ability to ssh for a given application. |
| 38 | func (client *Client) UpdateAppFeature(appGUID string, enabled bool, featureName string) (Warnings, error) { |
| 39 | _, warnings, err := client.MakeRequest(RequestParams{ |
| 40 | RequestName: internal.PatchApplicationFeaturesRequest, |
| 41 | RequestBody: struct { |
| 42 | Enabled bool `json:"enabled"` |
| 43 | }{Enabled: enabled}, |
| 44 | URIParams: internal.Params{"app_guid": appGUID, "name": featureName}, |
| 45 | }) |
| 46 | |
| 47 | return warnings, err |
| 48 | } |
nothing calls this directly
no test coverage detected