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 |
Update a `Release`. Only updates to the `ruleset_name` field will be honored. `Release` rename is not supported. To create a `Release` use the CreateRelease method instead.
See: Firebase Rules API Reference for firebaserules.projects.releases.update
.
- type ProjectsReleasesUpdateResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Release :> Put '[JSON] Release))))))))))
- projectsReleasesUpdate :: Release -> Text -> ProjectsReleasesUpdate
- data ProjectsReleasesUpdate
- pruXgafv :: Lens' ProjectsReleasesUpdate (Maybe Xgafv)
- pruUploadProtocol :: Lens' ProjectsReleasesUpdate (Maybe Text)
- pruPp :: Lens' ProjectsReleasesUpdate Bool
- pruAccessToken :: Lens' ProjectsReleasesUpdate (Maybe Text)
- pruUploadType :: Lens' ProjectsReleasesUpdate (Maybe Text)
- pruPayload :: Lens' ProjectsReleasesUpdate Release
- pruBearerToken :: Lens' ProjectsReleasesUpdate (Maybe Text)
- pruName :: Lens' ProjectsReleasesUpdate Text
- pruCallback :: Lens' ProjectsReleasesUpdate (Maybe Text)
REST Resource
type ProjectsReleasesUpdateResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Release :> Put '[JSON] Release)))))))))) Source #
A resource alias for firebaserules.projects.releases.update
method which the
ProjectsReleasesUpdate
request conforms to.
Creating a Request
projectsReleasesUpdate Source #
Creates a value of ProjectsReleasesUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsReleasesUpdate Source #
Update a `Release`. Only updates to the `ruleset_name` field will be honored. `Release` rename is not supported. To create a `Release` use the CreateRelease method instead.
See: projectsReleasesUpdate
smart constructor.
Request Lenses
pruUploadProtocol :: Lens' ProjectsReleasesUpdate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pruAccessToken :: Lens' ProjectsReleasesUpdate (Maybe Text) Source #
OAuth access token.
pruUploadType :: Lens' ProjectsReleasesUpdate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pruPayload :: Lens' ProjectsReleasesUpdate Release Source #
Multipart request metadata.
pruBearerToken :: Lens' ProjectsReleasesUpdate (Maybe Text) Source #
OAuth bearer token.
pruName :: Lens' ProjectsReleasesUpdate Text Source #
Resource name for the `Release`. `Release` names may be structured `app1/prod/v2` or flat `app1_prod_v2` which affords developers a great deal of flexibility in mapping the name to the style that best fits their existing development practices. For example, a name could refer to an environment, an app, a version, or some combination of three. In the table below, for the project name `projects/foo`, the following relative release paths show how flat and structured names might be chosen to match a desired development / deployment strategy. Use Case | Flat Name | Structured Name -------------|---------------------|---------------- Environments | releases/qa | releases/qa Apps | releases/app1_qa | releases/app1/qa Versions | releases/app1_v2_qa | releases/app1/v2/qa The delimiter between the release name path elements can be almost anything and it should work equally well with the release name list filter, but in many ways the structured paths provide a clearer picture of the relationship between `Release` instances. Format: `projects/{project_id}/releases/{release_id}`
pruCallback :: Lens' ProjectsReleasesUpdate (Maybe Text) Source #
JSONP