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 new ScanConfig.
See: Web Security Scanner API Reference for websecurityscanner.projects.scanConfigs.create
.
Synopsis
- type ProjectsScanConfigsCreateResource = "v1alpha" :> (Capture "parent" Text :> ("scanConfigs" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ScanConfig :> Post '[JSON] ScanConfig)))))))))
- projectsScanConfigsCreate :: Text -> ScanConfig -> ProjectsScanConfigsCreate
- data ProjectsScanConfigsCreate
- psccParent :: Lens' ProjectsScanConfigsCreate Text
- psccXgafv :: Lens' ProjectsScanConfigsCreate (Maybe Xgafv)
- psccUploadProtocol :: Lens' ProjectsScanConfigsCreate (Maybe Text)
- psccAccessToken :: Lens' ProjectsScanConfigsCreate (Maybe Text)
- psccUploadType :: Lens' ProjectsScanConfigsCreate (Maybe Text)
- psccPayload :: Lens' ProjectsScanConfigsCreate ScanConfig
- psccCallback :: Lens' ProjectsScanConfigsCreate (Maybe Text)
REST Resource
type ProjectsScanConfigsCreateResource = "v1alpha" :> (Capture "parent" Text :> ("scanConfigs" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ScanConfig :> Post '[JSON] ScanConfig))))))))) Source #
A resource alias for websecurityscanner.projects.scanConfigs.create
method which the
ProjectsScanConfigsCreate
request conforms to.
Creating a Request
projectsScanConfigsCreate Source #
Creates a value of ProjectsScanConfigsCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsScanConfigsCreate Source #
Creates a new ScanConfig.
See: projectsScanConfigsCreate
smart constructor.
Instances
Request Lenses
psccParent :: Lens' ProjectsScanConfigsCreate Text Source #
Required. The parent resource name where the scan is created, which should be a project resource name in the format 'projects/{projectId}'.
psccUploadProtocol :: Lens' ProjectsScanConfigsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
psccAccessToken :: Lens' ProjectsScanConfigsCreate (Maybe Text) Source #
OAuth access token.
psccUploadType :: Lens' ProjectsScanConfigsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
psccPayload :: Lens' ProjectsScanConfigsCreate ScanConfig Source #
Multipart request metadata.
psccCallback :: Lens' ProjectsScanConfigsCreate (Maybe Text) Source #
JSONP