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 an attestor, and returns a copy of the new attestor. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the attestor already exists.
See: Binary Authorization API Reference for binaryauthorization.projects.attestors.create
.
Synopsis
- type ProjectsAttestorsCreateResource = "v1beta1" :> (Capture "parent" Text :> ("attestors" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "attestorId" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Attestor :> Post '[JSON] Attestor))))))))))
- projectsAttestorsCreate :: Text -> Attestor -> ProjectsAttestorsCreate
- data ProjectsAttestorsCreate
- pacParent :: Lens' ProjectsAttestorsCreate Text
- pacXgafv :: Lens' ProjectsAttestorsCreate (Maybe Xgafv)
- pacUploadProtocol :: Lens' ProjectsAttestorsCreate (Maybe Text)
- pacAccessToken :: Lens' ProjectsAttestorsCreate (Maybe Text)
- pacUploadType :: Lens' ProjectsAttestorsCreate (Maybe Text)
- pacPayload :: Lens' ProjectsAttestorsCreate Attestor
- pacAttestorId :: Lens' ProjectsAttestorsCreate (Maybe Text)
- pacCallback :: Lens' ProjectsAttestorsCreate (Maybe Text)
REST Resource
type ProjectsAttestorsCreateResource = "v1beta1" :> (Capture "parent" Text :> ("attestors" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "attestorId" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Attestor :> Post '[JSON] Attestor)))))))))) Source #
A resource alias for binaryauthorization.projects.attestors.create
method which the
ProjectsAttestorsCreate
request conforms to.
Creating a Request
projectsAttestorsCreate Source #
Creates a value of ProjectsAttestorsCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsAttestorsCreate Source #
Creates an attestor, and returns a copy of the new attestor. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the attestor already exists.
See: projectsAttestorsCreate
smart constructor.
Instances
Request Lenses
pacUploadProtocol :: Lens' ProjectsAttestorsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pacAccessToken :: Lens' ProjectsAttestorsCreate (Maybe Text) Source #
OAuth access token.
pacUploadType :: Lens' ProjectsAttestorsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pacPayload :: Lens' ProjectsAttestorsCreate Attestor Source #
Multipart request metadata.
pacAttestorId :: Lens' ProjectsAttestorsCreate (Maybe Text) Source #
Required. The attestors ID.
pacCallback :: Lens' ProjectsAttestorsCreate (Maybe Text) Source #
JSONP