| 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 |
Network.Google.Resource.Logging.Projects.Exclusions.Create
Description
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.projects.exclusions.create.
Synopsis
- type ProjectsExclusionsCreateResource = "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)))))))))
- projectsExclusionsCreate :: Text -> LogExclusion -> ProjectsExclusionsCreate
- data ProjectsExclusionsCreate
- pecParent :: Lens' ProjectsExclusionsCreate Text
- pecXgafv :: Lens' ProjectsExclusionsCreate (Maybe Xgafv)
- pecUploadProtocol :: Lens' ProjectsExclusionsCreate (Maybe Text)
- pecAccessToken :: Lens' ProjectsExclusionsCreate (Maybe Text)
- pecUploadType :: Lens' ProjectsExclusionsCreate (Maybe Text)
- pecPayload :: Lens' ProjectsExclusionsCreate LogExclusion
- pecCallback :: Lens' ProjectsExclusionsCreate (Maybe Text)
REST Resource
type ProjectsExclusionsCreateResource = "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.projects.exclusions.create method which the
ProjectsExclusionsCreate request conforms to.
Creating a Request
projectsExclusionsCreate Source #
Arguments
| :: Text | |
| -> LogExclusion | |
| -> ProjectsExclusionsCreate |
Creates a value of ProjectsExclusionsCreate with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsExclusionsCreate 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: projectsExclusionsCreate smart constructor.
Instances
Request Lenses
pecParent :: Lens' ProjectsExclusionsCreate 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".
pecUploadProtocol :: Lens' ProjectsExclusionsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pecAccessToken :: Lens' ProjectsExclusionsCreate (Maybe Text) Source #
OAuth access token.
pecUploadType :: Lens' ProjectsExclusionsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pecPayload :: Lens' ProjectsExclusionsCreate LogExclusion Source #
Multipart request metadata.
pecCallback :: Lens' ProjectsExclusionsCreate (Maybe Text) Source #
JSONP