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 exclusion in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.
See: Stackdriver Logging API Reference for logging.exclusions.create
.
Synopsis
- type ExclusionsCreateResource = "v2" :> (Capture "parent" Text :> ("exclusions" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] LogExclusion :> Post '[JSON] LogExclusion)))))))))
- exclusionsCreate :: Text -> LogExclusion -> ExclusionsCreate
- data ExclusionsCreate
- ecParent :: Lens' ExclusionsCreate Text
- ecXgafv :: Lens' ExclusionsCreate (Maybe Xgafv)
- ecUploadProtocol :: Lens' ExclusionsCreate (Maybe Text)
- ecAccessToken :: Lens' ExclusionsCreate (Maybe Text)
- ecUploadType :: Lens' ExclusionsCreate (Maybe Text)
- ecPayload :: Lens' ExclusionsCreate LogExclusion
- ecCallback :: Lens' ExclusionsCreate (Maybe Text)
REST Resource
type ExclusionsCreateResource = "v2" :> (Capture "parent" Text :> ("exclusions" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] LogExclusion :> Post '[JSON] LogExclusion))))))))) Source #
A resource alias for logging.exclusions.create
method which the
ExclusionsCreate
request conforms to.
Creating a Request
Creates a value of ExclusionsCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ExclusionsCreate Source #
Creates a new exclusion in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.
See: exclusionsCreate
smart constructor.
Instances
Request Lenses
ecParent :: Lens' ExclusionsCreate Text Source #
Required. The parent resource in which to create the exclusion: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples: "projects/my-logging-project", "organizations/123456789".
ecUploadProtocol :: Lens' ExclusionsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ecAccessToken :: Lens' ExclusionsCreate (Maybe Text) Source #
OAuth access token.
ecUploadType :: Lens' ExclusionsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ecPayload :: Lens' ExclusionsCreate LogExclusion Source #
Multipart request metadata.
ecCallback :: Lens' ExclusionsCreate (Maybe Text) Source #
JSONP