gogol-firebasehosting-0.4.0: Google Firebase Hosting SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.FirebaseHosting.Sites.Versions.Patch

Contents

Description

Updates the specified metadata for a version. Note that this method will fail with `FAILED_PRECONDITION` in the event of an invalid state transition. The only valid transition for a version is currently from a `CREATED` status to a `FINALIZED` status. Use `DeleteVersion` to set the status of a version to `DELETED`.

See: Firebase Hosting API Reference for firebasehosting.sites.versions.patch.

Synopsis

REST Resource

type SitesVersionsPatchResource = "v1beta1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Version :> Patch '[JSON] Version))))))))) Source #

A resource alias for firebasehosting.sites.versions.patch method which the SitesVersionsPatch request conforms to.

Creating a Request

sitesVersionsPatch Source #

Creates a value of SitesVersionsPatch with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data SitesVersionsPatch Source #

Updates the specified metadata for a version. Note that this method will fail with `FAILED_PRECONDITION` in the event of an invalid state transition. The only valid transition for a version is currently from a `CREATED` status to a `FINALIZED` status. Use `DeleteVersion` to set the status of a version to `DELETED`.

See: sitesVersionsPatch smart constructor.

Instances
Eq SitesVersionsPatch Source # 
Instance details

Defined in Network.Google.Resource.FirebaseHosting.Sites.Versions.Patch

Data SitesVersionsPatch Source # 
Instance details

Defined in Network.Google.Resource.FirebaseHosting.Sites.Versions.Patch

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SitesVersionsPatch -> c SitesVersionsPatch #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SitesVersionsPatch #

toConstr :: SitesVersionsPatch -> Constr #

dataTypeOf :: SitesVersionsPatch -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SitesVersionsPatch) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SitesVersionsPatch) #

gmapT :: (forall b. Data b => b -> b) -> SitesVersionsPatch -> SitesVersionsPatch #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SitesVersionsPatch -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SitesVersionsPatch -> r #

gmapQ :: (forall d. Data d => d -> u) -> SitesVersionsPatch -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SitesVersionsPatch -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SitesVersionsPatch -> m SitesVersionsPatch #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SitesVersionsPatch -> m SitesVersionsPatch #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SitesVersionsPatch -> m SitesVersionsPatch #

Show SitesVersionsPatch Source # 
Instance details

Defined in Network.Google.Resource.FirebaseHosting.Sites.Versions.Patch

Generic SitesVersionsPatch Source # 
Instance details

Defined in Network.Google.Resource.FirebaseHosting.Sites.Versions.Patch

Associated Types

type Rep SitesVersionsPatch :: Type -> Type #

GoogleRequest SitesVersionsPatch Source # 
Instance details

Defined in Network.Google.Resource.FirebaseHosting.Sites.Versions.Patch

Associated Types

type Rs SitesVersionsPatch :: Type #

type Scopes SitesVersionsPatch :: [Symbol] #

type Rep SitesVersionsPatch Source # 
Instance details

Defined in Network.Google.Resource.FirebaseHosting.Sites.Versions.Patch

type Rep SitesVersionsPatch = D1 (MetaData "SitesVersionsPatch" "Network.Google.Resource.FirebaseHosting.Sites.Versions.Patch" "gogol-firebasehosting-0.4.0-1bHlj0b9uJOEzft2Jhzv1U" False) (C1 (MetaCons "SitesVersionsPatch'" PrefixI True) (((S1 (MetaSel (Just "_svpXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_svpUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_svpUpdateMask") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe GFieldMask)) :*: S1 (MetaSel (Just "_svpAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_svpUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_svpPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Version)) :*: (S1 (MetaSel (Just "_svpName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_svpCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes SitesVersionsPatch Source # 
Instance details

Defined in Network.Google.Resource.FirebaseHosting.Sites.Versions.Patch

type Scopes SitesVersionsPatch = "https://www.googleapis.com/auth/cloud-platform" ': ("https://www.googleapis.com/auth/firebase" ': ([] :: [Symbol]))
type Rs SitesVersionsPatch Source # 
Instance details

Defined in Network.Google.Resource.FirebaseHosting.Sites.Versions.Patch

Request Lenses

svpUploadProtocol :: Lens' SitesVersionsPatch (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

svpUpdateMask :: Lens' SitesVersionsPatch (Maybe GFieldMask) Source #

A set of field names from your version that you want to update. A field will be overwritten if, and only if, it's in the mask. If a mask is not provided then a default mask of only `status` will be used.

svpUploadType :: Lens' SitesVersionsPatch (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").

svpPayload :: Lens' SitesVersionsPatch Version Source #

Multipart request metadata.

svpName :: Lens' SitesVersionsPatch Text Source #

The unique identifier for a version, in the format: 'sites\/site-name\/versions\/versionID' This name is provided in the response body when you call the `CreateVersion` endpoint.