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 |
Create a `Ruleset` from `Source`. The `Ruleset` is given a unique generated name which is returned to the caller. `Source` containing syntactic or semantics errors will result in an error response indicating the first error encountered. For a detailed view of `Source` issues, use TestRuleset.
See: Firebase Rules API Reference for firebaserules.projects.rulesets.create
.
Synopsis
- type ProjectsRulesetsCreateResource = "v1" :> (Capture "name" Text :> ("rulesets" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Ruleset :> Post '[JSON] Ruleset)))))))))
- projectsRulesetsCreate :: Ruleset -> Text -> ProjectsRulesetsCreate
- data ProjectsRulesetsCreate
- prcXgafv :: Lens' ProjectsRulesetsCreate (Maybe Xgafv)
- prcUploadProtocol :: Lens' ProjectsRulesetsCreate (Maybe Text)
- prcAccessToken :: Lens' ProjectsRulesetsCreate (Maybe Text)
- prcUploadType :: Lens' ProjectsRulesetsCreate (Maybe Text)
- prcPayload :: Lens' ProjectsRulesetsCreate Ruleset
- prcName :: Lens' ProjectsRulesetsCreate Text
- prcCallback :: Lens' ProjectsRulesetsCreate (Maybe Text)
REST Resource
type ProjectsRulesetsCreateResource = "v1" :> (Capture "name" Text :> ("rulesets" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Ruleset :> Post '[JSON] Ruleset))))))))) Source #
A resource alias for firebaserules.projects.rulesets.create
method which the
ProjectsRulesetsCreate
request conforms to.
Creating a Request
projectsRulesetsCreate Source #
Creates a value of ProjectsRulesetsCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsRulesetsCreate Source #
Create a `Ruleset` from `Source`. The `Ruleset` is given a unique generated name which is returned to the caller. `Source` containing syntactic or semantics errors will result in an error response indicating the first error encountered. For a detailed view of `Source` issues, use TestRuleset.
See: projectsRulesetsCreate
smart constructor.
Instances
Request Lenses
prcUploadProtocol :: Lens' ProjectsRulesetsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
prcAccessToken :: Lens' ProjectsRulesetsCreate (Maybe Text) Source #
OAuth access token.
prcUploadType :: Lens' ProjectsRulesetsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
prcPayload :: Lens' ProjectsRulesetsCreate Ruleset Source #
Multipart request metadata.
prcName :: Lens' ProjectsRulesetsCreate Text Source #
Resource name for Project which owns this `Ruleset`. Format: `projects/{project_id}`
prcCallback :: Lens' ProjectsRulesetsCreate (Maybe Text) Source #
JSONP