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 finding. The corresponding source must exist for finding creation to succeed.
See: Cloud Security Command Center API Reference for securitycenter.organizations.sources.findings.create
.
Synopsis
- type OrganizationsSourcesFindingsCreateResource = "v1" :> (Capture "parent" Text :> ("findings" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "findingId" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Finding :> Post '[JSON] Finding))))))))))
- organizationsSourcesFindingsCreate :: Text -> Finding -> OrganizationsSourcesFindingsCreate
- data OrganizationsSourcesFindingsCreate
- osfcParent :: Lens' OrganizationsSourcesFindingsCreate Text
- osfcXgafv :: Lens' OrganizationsSourcesFindingsCreate (Maybe Xgafv)
- osfcUploadProtocol :: Lens' OrganizationsSourcesFindingsCreate (Maybe Text)
- osfcAccessToken :: Lens' OrganizationsSourcesFindingsCreate (Maybe Text)
- osfcUploadType :: Lens' OrganizationsSourcesFindingsCreate (Maybe Text)
- osfcPayload :: Lens' OrganizationsSourcesFindingsCreate Finding
- osfcFindingId :: Lens' OrganizationsSourcesFindingsCreate (Maybe Text)
- osfcCallback :: Lens' OrganizationsSourcesFindingsCreate (Maybe Text)
REST Resource
type OrganizationsSourcesFindingsCreateResource = "v1" :> (Capture "parent" Text :> ("findings" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "findingId" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Finding :> Post '[JSON] Finding)))))))))) Source #
A resource alias for securitycenter.organizations.sources.findings.create
method which the
OrganizationsSourcesFindingsCreate
request conforms to.
Creating a Request
organizationsSourcesFindingsCreate Source #
Creates a value of OrganizationsSourcesFindingsCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data OrganizationsSourcesFindingsCreate Source #
Creates a finding. The corresponding source must exist for finding creation to succeed.
See: organizationsSourcesFindingsCreate
smart constructor.
Instances
Request Lenses
osfcParent :: Lens' OrganizationsSourcesFindingsCreate Text Source #
Resource name of the new finding's parent. Its format should be "organizations/[organization_id]/sources/[source_id]".
osfcUploadProtocol :: Lens' OrganizationsSourcesFindingsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
osfcAccessToken :: Lens' OrganizationsSourcesFindingsCreate (Maybe Text) Source #
OAuth access token.
osfcUploadType :: Lens' OrganizationsSourcesFindingsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
osfcPayload :: Lens' OrganizationsSourcesFindingsCreate Finding Source #
Multipart request metadata.
osfcFindingId :: Lens' OrganizationsSourcesFindingsCreate (Maybe Text) Source #
Unique identifier provided by the client within the parent scope. It must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length.