Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
UpdateProfile updates the profile bytes and labels on the profile resource created in the online mode. Updating the bytes for profiles created in the offline mode is currently not supported: the profile content must be provided at the time of the profile creation.
See: Stackdriver Profiler API Reference for cloudprofiler.projects.profiles.patch
.
Synopsis
- type ProjectsProFilesPatchResource = "v2" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ProFile :> Patch '[JSON] ProFile)))))))))
- projectsProFilesPatch :: ProFile -> Text -> ProjectsProFilesPatch
- data ProjectsProFilesPatch
- ppfpXgafv :: Lens' ProjectsProFilesPatch (Maybe Xgafv)
- ppfpUploadProtocol :: Lens' ProjectsProFilesPatch (Maybe Text)
- ppfpUpdateMask :: Lens' ProjectsProFilesPatch (Maybe GFieldMask)
- ppfpAccessToken :: Lens' ProjectsProFilesPatch (Maybe Text)
- ppfpUploadType :: Lens' ProjectsProFilesPatch (Maybe Text)
- ppfpPayload :: Lens' ProjectsProFilesPatch ProFile
- ppfpName :: Lens' ProjectsProFilesPatch Text
- ppfpCallback :: Lens' ProjectsProFilesPatch (Maybe Text)
REST Resource
type ProjectsProFilesPatchResource = "v2" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ProFile :> Patch '[JSON] ProFile))))))))) Source #
A resource alias for cloudprofiler.projects.profiles.patch
method which the
ProjectsProFilesPatch
request conforms to.
Creating a Request
projectsProFilesPatch Source #
Creates a value of ProjectsProFilesPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsProFilesPatch Source #
UpdateProfile updates the profile bytes and labels on the profile resource created in the online mode. Updating the bytes for profiles created in the offline mode is currently not supported: the profile content must be provided at the time of the profile creation.
See: projectsProFilesPatch
smart constructor.
Instances
Request Lenses
ppfpUploadProtocol :: Lens' ProjectsProFilesPatch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ppfpUpdateMask :: Lens' ProjectsProFilesPatch (Maybe GFieldMask) Source #
Field mask used to specify the fields to be overwritten. Currently only profile_bytes and labels fields are supported by UpdateProfile, so only those fields can be specified in the mask. When no mask is provided, all fields are overwritten.
ppfpAccessToken :: Lens' ProjectsProFilesPatch (Maybe Text) Source #
OAuth access token.
ppfpUploadType :: Lens' ProjectsProFilesPatch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ppfpPayload :: Lens' ProjectsProFilesPatch ProFile Source #
Multipart request metadata.
ppfpName :: Lens' ProjectsProFilesPatch Text Source #
Output only. Opaque, server-assigned, unique ID for this profile.
ppfpCallback :: Lens' ProjectsProFilesPatch (Maybe Text) Source #
JSONP