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 |
Creates a repo in the given project with the given name. If the named repository already exists, `CreateRepo` returns `ALREADY_EXISTS`.
See: Cloud Source Repositories API Reference for sourcerepo.projects.repos.create
.
Synopsis
- type ProjectsReposCreateResource = "v1" :> (Capture "parent" Text :> ("repos" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Repo :> Post '[JSON] Repo)))))))))
- projectsReposCreate :: Text -> Repo -> ProjectsReposCreate
- data ProjectsReposCreate
- prcParent :: Lens' ProjectsReposCreate Text
- prcXgafv :: Lens' ProjectsReposCreate (Maybe Xgafv)
- prcUploadProtocol :: Lens' ProjectsReposCreate (Maybe Text)
- prcAccessToken :: Lens' ProjectsReposCreate (Maybe Text)
- prcUploadType :: Lens' ProjectsReposCreate (Maybe Text)
- prcPayload :: Lens' ProjectsReposCreate Repo
- prcCallback :: Lens' ProjectsReposCreate (Maybe Text)
REST Resource
type ProjectsReposCreateResource = "v1" :> (Capture "parent" Text :> ("repos" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Repo :> Post '[JSON] Repo))))))))) Source #
A resource alias for sourcerepo.projects.repos.create
method which the
ProjectsReposCreate
request conforms to.
Creating a Request
Creates a value of ProjectsReposCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsReposCreate Source #
Creates a repo in the given project with the given name. If the named repository already exists, `CreateRepo` returns `ALREADY_EXISTS`.
See: projectsReposCreate
smart constructor.
Instances
Request Lenses
prcParent :: Lens' ProjectsReposCreate Text Source #
The project in which to create the repo. Values are of the form `projects/`.
prcUploadProtocol :: Lens' ProjectsReposCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
prcAccessToken :: Lens' ProjectsReposCreate (Maybe Text) Source #
OAuth access token.
prcUploadType :: Lens' ProjectsReposCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
prcPayload :: Lens' ProjectsReposCreate Repo Source #
Multipart request metadata.
prcCallback :: Lens' ProjectsReposCreate (Maybe Text) Source #
JSONP