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 |
Updates information about a repo.
See: Cloud Source Repositories API Reference for sourcerepo.projects.repos.patch
.
Synopsis
- type ProjectsReposPatchResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] UpdateRepoRequest :> Patch '[JSON] Repo))))))))
- projectsReposPatch :: UpdateRepoRequest -> Text -> ProjectsReposPatch
- data ProjectsReposPatch
- prpXgafv :: Lens' ProjectsReposPatch (Maybe Xgafv)
- prpUploadProtocol :: Lens' ProjectsReposPatch (Maybe Text)
- prpAccessToken :: Lens' ProjectsReposPatch (Maybe Text)
- prpUploadType :: Lens' ProjectsReposPatch (Maybe Text)
- prpPayload :: Lens' ProjectsReposPatch UpdateRepoRequest
- prpName :: Lens' ProjectsReposPatch Text
- prpCallback :: Lens' ProjectsReposPatch (Maybe Text)
REST Resource
type ProjectsReposPatchResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] UpdateRepoRequest :> Patch '[JSON] Repo)))))))) Source #
A resource alias for sourcerepo.projects.repos.patch
method which the
ProjectsReposPatch
request conforms to.
Creating a Request
Creates a value of ProjectsReposPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsReposPatch Source #
Updates information about a repo.
See: projectsReposPatch
smart constructor.
Instances
Request Lenses
prpUploadProtocol :: Lens' ProjectsReposPatch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
prpAccessToken :: Lens' ProjectsReposPatch (Maybe Text) Source #
OAuth access token.
prpUploadType :: Lens' ProjectsReposPatch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
prpPayload :: Lens' ProjectsReposPatch UpdateRepoRequest Source #
Multipart request metadata.
prpName :: Lens' ProjectsReposPatch Text Source #
The name of the requested repository. Values are of the form `projects//repos/`.
prpCallback :: Lens' ProjectsReposPatch (Maybe Text) Source #
JSONP