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 |
Synchronize a connected repo. The response contains SyncRepoMetadata in the metadata field.
See: Cloud Source Repositories API Reference for sourcerepo.projects.repos.sync
.
Synopsis
- type ProjectsReposSyncResource = "v1" :> (CaptureMode "name" "sync" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SyncRepoRequest :> Post '[JSON] Operation))))))))
- projectsReposSync :: SyncRepoRequest -> Text -> ProjectsReposSync
- data ProjectsReposSync
- prsXgafv :: Lens' ProjectsReposSync (Maybe Xgafv)
- prsUploadProtocol :: Lens' ProjectsReposSync (Maybe Text)
- prsAccessToken :: Lens' ProjectsReposSync (Maybe Text)
- prsUploadType :: Lens' ProjectsReposSync (Maybe Text)
- prsPayload :: Lens' ProjectsReposSync SyncRepoRequest
- prsName :: Lens' ProjectsReposSync Text
- prsCallback :: Lens' ProjectsReposSync (Maybe Text)
REST Resource
type ProjectsReposSyncResource = "v1" :> (CaptureMode "name" "sync" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SyncRepoRequest :> Post '[JSON] Operation)))))))) Source #
A resource alias for sourcerepo.projects.repos.sync
method which the
ProjectsReposSync
request conforms to.
Creating a Request
Creates a value of ProjectsReposSync
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsReposSync Source #
Synchronize a connected repo. The response contains SyncRepoMetadata in the metadata field.
See: projectsReposSync
smart constructor.
Instances
Request Lenses
prsUploadProtocol :: Lens' ProjectsReposSync (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
prsAccessToken :: Lens' ProjectsReposSync (Maybe Text) Source #
OAuth access token.
prsUploadType :: Lens' ProjectsReposSync (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
prsPayload :: Lens' ProjectsReposSync SyncRepoRequest Source #
Multipart request metadata.
prsName :: Lens' ProjectsReposSync Text Source #
The name of the repo to synchronize. Values are of the form `projects//repos/`.
prsCallback :: Lens' ProjectsReposSync (Maybe Text) Source #
JSONP