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 `Release`. Release names should reflect the developer's deployment practices. For example, the release name may include the environment name, application name, application version, or any other name meaningful to the developer. Once a `Release` refers to a `Ruleset`, the rules can be enforced by Firebase Rules-enabled services. More than one `Release` may be 'live' concurrently. Consider the following three `Release` names for `projects/foo` and the `Ruleset` to which they refer. Release Name | Ruleset Name --------------------------------|------------- projects/foo/releases/prod | projects/foo/rulesets/uuid123 projects/foo/releases/prod/beta | projects/foo/rulesets/uuid123 projects/foo/releases/prod/v23 | projects/foo/rulesets/uuid456 The table reflects the `Ruleset` rollout in progress. The `prod` and `prod/beta` releases refer to the same `Ruleset`. However, `prod/v23` refers to a new `Ruleset`. The `Ruleset` reference for a `Release` may be updated using the UpdateRelease method.
See: Firebase Rules API Reference for firebaserules.projects.releases.create
.
Synopsis
- type ProjectsReleasesCreateResource = "v1" :> (Capture "name" Text :> ("releases" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Release :> Post '[JSON] Release)))))))))
- projectsReleasesCreate :: Release -> Text -> ProjectsReleasesCreate
- data ProjectsReleasesCreate
- prcrXgafv :: Lens' ProjectsReleasesCreate (Maybe Xgafv)
- prcrUploadProtocol :: Lens' ProjectsReleasesCreate (Maybe Text)
- prcrAccessToken :: Lens' ProjectsReleasesCreate (Maybe Text)
- prcrUploadType :: Lens' ProjectsReleasesCreate (Maybe Text)
- prcrPayload :: Lens' ProjectsReleasesCreate Release
- prcrName :: Lens' ProjectsReleasesCreate Text
- prcrCallback :: Lens' ProjectsReleasesCreate (Maybe Text)
REST Resource
type ProjectsReleasesCreateResource = "v1" :> (Capture "name" Text :> ("releases" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Release :> Post '[JSON] Release))))))))) Source #
A resource alias for firebaserules.projects.releases.create
method which the
ProjectsReleasesCreate
request conforms to.
Creating a Request
projectsReleasesCreate Source #
Creates a value of ProjectsReleasesCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsReleasesCreate Source #
Create a `Release`. Release names should reflect the developer's deployment practices. For example, the release name may include the environment name, application name, application version, or any other name meaningful to the developer. Once a `Release` refers to a `Ruleset`, the rules can be enforced by Firebase Rules-enabled services. More than one `Release` may be 'live' concurrently. Consider the following three `Release` names for `projects/foo` and the `Ruleset` to which they refer. Release Name | Ruleset Name --------------------------------|------------- projects/foo/releases/prod | projects/foo/rulesets/uuid123 projects/foo/releases/prod/beta | projects/foo/rulesets/uuid123 projects/foo/releases/prod/v23 | projects/foo/rulesets/uuid456 The table reflects the `Ruleset` rollout in progress. The `prod` and `prod/beta` releases refer to the same `Ruleset`. However, `prod/v23` refers to a new `Ruleset`. The `Ruleset` reference for a `Release` may be updated using the UpdateRelease method.
See: projectsReleasesCreate
smart constructor.
Instances
Request Lenses
prcrUploadProtocol :: Lens' ProjectsReleasesCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
prcrAccessToken :: Lens' ProjectsReleasesCreate (Maybe Text) Source #
OAuth access token.
prcrUploadType :: Lens' ProjectsReleasesCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
prcrPayload :: Lens' ProjectsReleasesCreate Release Source #
Multipart request metadata.
prcrName :: Lens' ProjectsReleasesCreate Text Source #
Resource name for the project which owns this `Release`. Format: `projects/{project_id}`
prcrCallback :: Lens' ProjectsReleasesCreate (Maybe Text) Source #
JSONP