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 a source.
See: Cloud Security Command Center API Reference for securitycenter.organizations.sources.patch
.
Synopsis
- type OrganizationsSourcesPatchResource = "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] Source :> Patch '[JSON] Source)))))))))
- organizationsSourcesPatch :: Source -> Text -> OrganizationsSourcesPatch
- data OrganizationsSourcesPatch
- ospXgafv :: Lens' OrganizationsSourcesPatch (Maybe Xgafv)
- ospUploadProtocol :: Lens' OrganizationsSourcesPatch (Maybe Text)
- ospUpdateMask :: Lens' OrganizationsSourcesPatch (Maybe GFieldMask)
- ospAccessToken :: Lens' OrganizationsSourcesPatch (Maybe Text)
- ospUploadType :: Lens' OrganizationsSourcesPatch (Maybe Text)
- ospPayload :: Lens' OrganizationsSourcesPatch Source
- ospName :: Lens' OrganizationsSourcesPatch Text
- ospCallback :: Lens' OrganizationsSourcesPatch (Maybe Text)
REST Resource
type OrganizationsSourcesPatchResource = "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] Source :> Patch '[JSON] Source))))))))) Source #
A resource alias for securitycenter.organizations.sources.patch
method which the
OrganizationsSourcesPatch
request conforms to.
Creating a Request
organizationsSourcesPatch Source #
Creates a value of OrganizationsSourcesPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data OrganizationsSourcesPatch Source #
Updates a source.
See: organizationsSourcesPatch
smart constructor.
Instances
Request Lenses
ospUploadProtocol :: Lens' OrganizationsSourcesPatch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ospUpdateMask :: Lens' OrganizationsSourcesPatch (Maybe GFieldMask) Source #
The FieldMask to use when updating the source resource. If empty all mutable fields will be updated.
ospAccessToken :: Lens' OrganizationsSourcesPatch (Maybe Text) Source #
OAuth access token.
ospUploadType :: Lens' OrganizationsSourcesPatch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ospPayload :: Lens' OrganizationsSourcesPatch Source Source #
Multipart request metadata.
ospName :: Lens' OrganizationsSourcesPatch Text Source #
The relative resource name of this source. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/123/sources/456"
ospCallback :: Lens' OrganizationsSourcesPatch (Maybe Text) Source #
JSONP