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.Update

Contents

Description

Add a photo for the user

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

Synopsis

REST Resource

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

A resource alias for directory.users.photos.update method which the UsersPhotosUpdate request conforms to.

Creating a Request

usersPhotosUpdate Source #

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

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

data UsersPhotosUpdate Source #

Add a photo for the user

See: usersPhotosUpdate smart constructor.

Instances
Eq UsersPhotosUpdate Source # 
Instance details

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

Data UsersPhotosUpdate Source # 
Instance details

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

Methods

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

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

toConstr :: UsersPhotosUpdate -> Constr #

dataTypeOf :: UsersPhotosUpdate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UsersPhotosUpdate Source # 
Instance details

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

Generic UsersPhotosUpdate Source # 
Instance details

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

Associated Types

type Rep UsersPhotosUpdate :: Type -> Type #

GoogleRequest UsersPhotosUpdate Source # 
Instance details

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

Associated Types

type Rs UsersPhotosUpdate :: Type #

type Scopes UsersPhotosUpdate :: [Symbol] #

type Rep UsersPhotosUpdate Source # 
Instance details

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

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

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

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

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

Request Lenses

upuPayload :: Lens' UsersPhotosUpdate UserPhoto Source #

Multipart request metadata.

upuUserKey :: Lens' UsersPhotosUpdate Text Source #

Email or immutable ID of the user