gogol-partners-0.4.0: Google Partners 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.Partners.Users.UpdateProFile

Contents

Description

Updates a user's profile. A user can only update their own profile and should only be called within the context of a logged in user.

See: Google Partners API Reference for partners.users.updateProfile.

Synopsis

REST Resource

type UsersUpdateProFileResource = "v2" :> ("users" :> ("profile" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "requestMetadata.partnersSessionId" Text :> (QueryParam "requestMetadata.locale" Text :> (QueryParams "requestMetadata.experimentIds" Text :> (QueryParam "requestMetadata.userOverrides.ipAddress" Text :> (QueryParam "requestMetadata.trafficSource.trafficSubId" Text :> (QueryParam "requestMetadata.userOverrides.userId" Text :> (QueryParam "requestMetadata.trafficSource.trafficSourceId" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] UserProFile :> Patch '[JSON] UserProFile)))))))))))))))) Source #

A resource alias for partners.users.updateProfile method which the UsersUpdateProFile request conforms to.

Creating a Request

data UsersUpdateProFile Source #

Updates a user's profile. A user can only update their own profile and should only be called within the context of a logged in user.

See: usersUpdateProFile smart constructor.

Instances
Eq UsersUpdateProFile Source # 
Instance details

Defined in Network.Google.Resource.Partners.Users.UpdateProFile

Data UsersUpdateProFile Source # 
Instance details

Defined in Network.Google.Resource.Partners.Users.UpdateProFile

Methods

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

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

toConstr :: UsersUpdateProFile -> Constr #

dataTypeOf :: UsersUpdateProFile -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UsersUpdateProFile Source # 
Instance details

Defined in Network.Google.Resource.Partners.Users.UpdateProFile

Generic UsersUpdateProFile Source # 
Instance details

Defined in Network.Google.Resource.Partners.Users.UpdateProFile

Associated Types

type Rep UsersUpdateProFile :: Type -> Type #

GoogleRequest UsersUpdateProFile Source # 
Instance details

Defined in Network.Google.Resource.Partners.Users.UpdateProFile

Associated Types

type Rs UsersUpdateProFile :: Type #

type Scopes UsersUpdateProFile :: [Symbol] #

type Rep UsersUpdateProFile Source # 
Instance details

Defined in Network.Google.Resource.Partners.Users.UpdateProFile

type Rep UsersUpdateProFile = D1 (MetaData "UsersUpdateProFile" "Network.Google.Resource.Partners.Users.UpdateProFile" "gogol-partners-0.4.0-39sg3ZvEDoCEu9a3s5sq6U" False) (C1 (MetaCons "UsersUpdateProFile'" PrefixI True) (((S1 (MetaSel (Just "_uupfXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_uupfUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_uupfAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_uupfUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_uupfPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 UserProFile) :*: S1 (MetaSel (Just "_uupfRequestMetadataPartnersSessionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 (MetaSel (Just "_uupfRequestMetadataLocale") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_uupfRequestMetadataExperimentIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 (MetaSel (Just "_uupfRequestMetadataUserOverridesIPAddress") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_uupfRequestMetadataTrafficSourceTrafficSubId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_uupfRequestMetadataUserOverridesUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_uupfRequestMetadataTrafficSourceTrafficSourceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_uupfCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))))
type Scopes UsersUpdateProFile Source # 
Instance details

Defined in Network.Google.Resource.Partners.Users.UpdateProFile

type Rs UsersUpdateProFile Source # 
Instance details

Defined in Network.Google.Resource.Partners.Users.UpdateProFile

Request Lenses

uupfUploadProtocol :: Lens' UsersUpdateProFile (Maybe Text) Source #

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

uupfUploadType :: Lens' UsersUpdateProFile (Maybe Text) Source #

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

uupfPayload :: Lens' UsersUpdateProFile UserProFile Source #

Multipart request metadata.

uupfRequestMetadataLocale :: Lens' UsersUpdateProFile (Maybe Text) Source #

Locale to use for the current request.

uupfRequestMetadataExperimentIds :: Lens' UsersUpdateProFile [Text] Source #

Experiment IDs the current request belongs to.

uupfRequestMetadataUserOverridesIPAddress :: Lens' UsersUpdateProFile (Maybe Text) Source #

IP address to use instead of the user's geo-located IP address.

uupfRequestMetadataTrafficSourceTrafficSubId :: Lens' UsersUpdateProFile (Maybe Text) Source #

Second level identifier to indicate where the traffic comes from. An identifier has multiple letters created by a team which redirected the traffic to us.

uupfRequestMetadataUserOverridesUserId :: Lens' UsersUpdateProFile (Maybe Text) Source #

Logged-in user ID to impersonate instead of the user's ID.

uupfRequestMetadataTrafficSourceTrafficSourceId :: Lens' UsersUpdateProFile (Maybe Text) Source #

Identifier to indicate where the traffic comes from. An identifier has multiple letters created by a team which redirected the traffic to us.