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 an attestor. Returns NOT_FOUND if the attestor does not exist.
See: Binary Authorization API Reference for binaryauthorization.projects.attestors.update
.
Synopsis
- type ProjectsAttestorsUpdateResource = "v1beta1" :> (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] Attestor :> Put '[JSON] Attestor))))))))
- projectsAttestorsUpdate :: Attestor -> Text -> ProjectsAttestorsUpdate
- data ProjectsAttestorsUpdate
- pauXgafv :: Lens' ProjectsAttestorsUpdate (Maybe Xgafv)
- pauUploadProtocol :: Lens' ProjectsAttestorsUpdate (Maybe Text)
- pauAccessToken :: Lens' ProjectsAttestorsUpdate (Maybe Text)
- pauUploadType :: Lens' ProjectsAttestorsUpdate (Maybe Text)
- pauPayload :: Lens' ProjectsAttestorsUpdate Attestor
- pauName :: Lens' ProjectsAttestorsUpdate Text
- pauCallback :: Lens' ProjectsAttestorsUpdate (Maybe Text)
REST Resource
type ProjectsAttestorsUpdateResource = "v1beta1" :> (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] Attestor :> Put '[JSON] Attestor)))))))) Source #
A resource alias for binaryauthorization.projects.attestors.update
method which the
ProjectsAttestorsUpdate
request conforms to.
Creating a Request
projectsAttestorsUpdate Source #
Creates a value of ProjectsAttestorsUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsAttestorsUpdate Source #
Updates an attestor. Returns NOT_FOUND if the attestor does not exist.
See: projectsAttestorsUpdate
smart constructor.
Instances
Request Lenses
pauUploadProtocol :: Lens' ProjectsAttestorsUpdate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pauAccessToken :: Lens' ProjectsAttestorsUpdate (Maybe Text) Source #
OAuth access token.
pauUploadType :: Lens' ProjectsAttestorsUpdate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pauPayload :: Lens' ProjectsAttestorsUpdate Attestor Source #
Multipart request metadata.
pauName :: Lens' ProjectsAttestorsUpdate Text Source #
Required. The resource name, in the format: `projects/*/attestors/*`. This field may not be updated.
pauCallback :: Lens' ProjectsAttestorsUpdate (Maybe Text) Source #
JSONP