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 source.
See: Cloud Security Command Center API Reference for securitycenter.organizations.sources.create
.
Synopsis
- type OrganizationsSourcesCreateResource = "v1" :> (Capture "parent" Text :> ("sources" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Source :> Post '[JSON] Source)))))))))
- organizationsSourcesCreate :: Text -> Source -> OrganizationsSourcesCreate
- data OrganizationsSourcesCreate
- oscParent :: Lens' OrganizationsSourcesCreate Text
- oscXgafv :: Lens' OrganizationsSourcesCreate (Maybe Xgafv)
- oscUploadProtocol :: Lens' OrganizationsSourcesCreate (Maybe Text)
- oscAccessToken :: Lens' OrganizationsSourcesCreate (Maybe Text)
- oscUploadType :: Lens' OrganizationsSourcesCreate (Maybe Text)
- oscPayload :: Lens' OrganizationsSourcesCreate Source
- oscCallback :: Lens' OrganizationsSourcesCreate (Maybe Text)
REST Resource
type OrganizationsSourcesCreateResource = "v1" :> (Capture "parent" Text :> ("sources" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Source :> Post '[JSON] Source))))))))) Source #
A resource alias for securitycenter.organizations.sources.create
method which the
OrganizationsSourcesCreate
request conforms to.
Creating a Request
organizationsSourcesCreate Source #
Creates a value of OrganizationsSourcesCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data OrganizationsSourcesCreate Source #
Creates a source.
See: organizationsSourcesCreate
smart constructor.
Instances
Request Lenses
oscParent :: Lens' OrganizationsSourcesCreate Text Source #
Resource name of the new source's parent. Its format should be "organizations/[organization_id]".
oscUploadProtocol :: Lens' OrganizationsSourcesCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
oscAccessToken :: Lens' OrganizationsSourcesCreate (Maybe Text) Source #
OAuth access token.
oscUploadType :: Lens' OrganizationsSourcesCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
oscPayload :: Lens' OrganizationsSourcesCreate Source Source #
Multipart request metadata.
oscCallback :: Lens' OrganizationsSourcesCreate (Maybe Text) Source #
JSONP