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 |
CreateOfflineProfile creates a new profile resource in the offline mode. The client provides the profile to create along with the profile bytes, the server records it.
See: Stackdriver Profiler API Reference for cloudprofiler.projects.profiles.createOffline
.
Synopsis
- type ProjectsProFilesCreateOfflineResource = "v2" :> (Capture "parent" Text :> ("profiles:createOffline" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ProFile :> Post '[JSON] ProFile)))))))))
- projectsProFilesCreateOffline :: Text -> ProFile -> ProjectsProFilesCreateOffline
- data ProjectsProFilesCreateOffline
- ppfcoParent :: Lens' ProjectsProFilesCreateOffline Text
- ppfcoXgafv :: Lens' ProjectsProFilesCreateOffline (Maybe Xgafv)
- ppfcoUploadProtocol :: Lens' ProjectsProFilesCreateOffline (Maybe Text)
- ppfcoAccessToken :: Lens' ProjectsProFilesCreateOffline (Maybe Text)
- ppfcoUploadType :: Lens' ProjectsProFilesCreateOffline (Maybe Text)
- ppfcoPayload :: Lens' ProjectsProFilesCreateOffline ProFile
- ppfcoCallback :: Lens' ProjectsProFilesCreateOffline (Maybe Text)
REST Resource
type ProjectsProFilesCreateOfflineResource = "v2" :> (Capture "parent" Text :> ("profiles:createOffline" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ProFile :> Post '[JSON] ProFile))))))))) Source #
A resource alias for cloudprofiler.projects.profiles.createOffline
method which the
ProjectsProFilesCreateOffline
request conforms to.
Creating a Request
projectsProFilesCreateOffline Source #
Creates a value of ProjectsProFilesCreateOffline
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsProFilesCreateOffline Source #
CreateOfflineProfile creates a new profile resource in the offline mode. The client provides the profile to create along with the profile bytes, the server records it.
See: projectsProFilesCreateOffline
smart constructor.
Instances
Request Lenses
ppfcoParent :: Lens' ProjectsProFilesCreateOffline Text Source #
Parent project to create the profile in.
ppfcoXgafv :: Lens' ProjectsProFilesCreateOffline (Maybe Xgafv) Source #
V1 error format.
ppfcoUploadProtocol :: Lens' ProjectsProFilesCreateOffline (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ppfcoAccessToken :: Lens' ProjectsProFilesCreateOffline (Maybe Text) Source #
OAuth access token.
ppfcoUploadType :: Lens' ProjectsProFilesCreateOffline (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ppfcoPayload :: Lens' ProjectsProFilesCreateOffline ProFile Source #
Multipart request metadata.
ppfcoCallback :: Lens' ProjectsProFilesCreateOffline (Maybe Text) Source #
JSONP