gogol-admin-directory-0.4.0: Google Admin Directory 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.Directory.Users.Photos.Patch

Contents

Description

Add a photo for the user. This method supports patch semantics.

See: Admin Directory API Reference for directory.users.photos.patch.

Synopsis

REST Resource

type UsersPhotosPatchResource = "admin" :> ("directory" :> ("v1" :> ("users" :> (Capture "userKey" Text :> ("photos" :> ("thumbnail" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] UserPhoto :> Patch '[JSON] UserPhoto)))))))) Source #

A resource alias for directory.users.photos.patch method which the UsersPhotosPatch request conforms to.

Creating a Request

usersPhotosPatch Source #

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

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

data UsersPhotosPatch Source #

Add a photo for the user. This method supports patch semantics.

See: usersPhotosPatch smart constructor.

Instances
Eq UsersPhotosPatch Source # 
Instance details

Defined in Network.Google.Resource.Directory.Users.Photos.Patch

Data UsersPhotosPatch Source # 
Instance details

Defined in Network.Google.Resource.Directory.Users.Photos.Patch

Methods

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

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

toConstr :: UsersPhotosPatch -> Constr #

dataTypeOf :: UsersPhotosPatch -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UsersPhotosPatch Source # 
Instance details

Defined in Network.Google.Resource.Directory.Users.Photos.Patch

Generic UsersPhotosPatch Source # 
Instance details

Defined in Network.Google.Resource.Directory.Users.Photos.Patch

Associated Types

type Rep UsersPhotosPatch :: Type -> Type #

GoogleRequest UsersPhotosPatch Source # 
Instance details

Defined in Network.Google.Resource.Directory.Users.Photos.Patch

Associated Types

type Rs UsersPhotosPatch :: Type #

type Scopes UsersPhotosPatch :: [Symbol] #

type Rep UsersPhotosPatch Source # 
Instance details

Defined in Network.Google.Resource.Directory.Users.Photos.Patch

type Rep UsersPhotosPatch = D1 (MetaData "UsersPhotosPatch" "Network.Google.Resource.Directory.Users.Photos.Patch" "gogol-admin-directory-0.4.0-18Kt4WHsDGO3AIyYatQRRN" False) (C1 (MetaCons "UsersPhotosPatch'" PrefixI True) (S1 (MetaSel (Just "_uppPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 UserPhoto) :*: S1 (MetaSel (Just "_uppUserKey") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Scopes UsersPhotosPatch Source # 
Instance details

Defined in Network.Google.Resource.Directory.Users.Photos.Patch

type Scopes UsersPhotosPatch = "https://www.googleapis.com/auth/admin.directory.user" ': ([] :: [Symbol])
type Rs UsersPhotosPatch Source # 
Instance details

Defined in Network.Google.Resource.Directory.Users.Photos.Patch

Request Lenses

uppPayload :: Lens' UsersPhotosPatch UserPhoto Source #

Multipart request metadata.

uppUserKey :: Lens' UsersPhotosPatch Text Source #

Email or immutable ID of the user