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 or updates a finding. The corresponding source must exist for a finding creation to succeed.
See: Cloud Security Command Center API Reference for securitycenter.organizations.sources.findings.patch
.
Synopsis
- type OrganizationsSourcesFindingsPatchResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Finding :> Patch '[JSON] Finding)))))))))
- organizationsSourcesFindingsPatch :: Finding -> Text -> OrganizationsSourcesFindingsPatch
- data OrganizationsSourcesFindingsPatch
- osfpXgafv :: Lens' OrganizationsSourcesFindingsPatch (Maybe Xgafv)
- osfpUploadProtocol :: Lens' OrganizationsSourcesFindingsPatch (Maybe Text)
- osfpUpdateMask :: Lens' OrganizationsSourcesFindingsPatch (Maybe GFieldMask)
- osfpAccessToken :: Lens' OrganizationsSourcesFindingsPatch (Maybe Text)
- osfpUploadType :: Lens' OrganizationsSourcesFindingsPatch (Maybe Text)
- osfpPayload :: Lens' OrganizationsSourcesFindingsPatch Finding
- osfpName :: Lens' OrganizationsSourcesFindingsPatch Text
- osfpCallback :: Lens' OrganizationsSourcesFindingsPatch (Maybe Text)
REST Resource
type OrganizationsSourcesFindingsPatchResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Finding :> Patch '[JSON] Finding))))))))) Source #
A resource alias for securitycenter.organizations.sources.findings.patch
method which the
OrganizationsSourcesFindingsPatch
request conforms to.
Creating a Request
organizationsSourcesFindingsPatch Source #
Creates a value of OrganizationsSourcesFindingsPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data OrganizationsSourcesFindingsPatch Source #
Creates or updates a finding. The corresponding source must exist for a finding creation to succeed.
See: organizationsSourcesFindingsPatch
smart constructor.
Instances
Request Lenses
osfpUploadProtocol :: Lens' OrganizationsSourcesFindingsPatch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
osfpUpdateMask :: Lens' OrganizationsSourcesFindingsPatch (Maybe GFieldMask) Source #
The FieldMask to use when updating the finding resource. This field should not be specified when creating a finding. When updating a finding, an empty mask is treated as updating all mutable fields and replacing source_properties. Individual source_properties can be added/updated by using "source_properties." in the field mask.
osfpAccessToken :: Lens' OrganizationsSourcesFindingsPatch (Maybe Text) Source #
OAuth access token.
osfpUploadType :: Lens' OrganizationsSourcesFindingsPatch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
osfpPayload :: Lens' OrganizationsSourcesFindingsPatch Finding Source #
Multipart request metadata.