gogol-drive-0.4.0: Google Drive 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.Drive.Teamdrives.Create

Contents

Description

Creates a new Team Drive.

See: Drive API Reference for drive.teamdrives.create.

Synopsis

REST Resource

type TeamdrivesCreateResource = "drive" :> ("v3" :> ("teamdrives" :> (QueryParam "requestId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] TeamDrive :> Post '[JSON] TeamDrive))))) Source #

A resource alias for drive.teamdrives.create method which the TeamdrivesCreate request conforms to.

Creating a Request

teamdrivesCreate Source #

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

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

data TeamdrivesCreate Source #

Creates a new Team Drive.

See: teamdrivesCreate smart constructor.

Instances
Eq TeamdrivesCreate Source # 
Instance details

Defined in Network.Google.Resource.Drive.Teamdrives.Create

Data TeamdrivesCreate Source # 
Instance details

Defined in Network.Google.Resource.Drive.Teamdrives.Create

Methods

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

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

toConstr :: TeamdrivesCreate -> Constr #

dataTypeOf :: TeamdrivesCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show TeamdrivesCreate Source # 
Instance details

Defined in Network.Google.Resource.Drive.Teamdrives.Create

Generic TeamdrivesCreate Source # 
Instance details

Defined in Network.Google.Resource.Drive.Teamdrives.Create

Associated Types

type Rep TeamdrivesCreate :: Type -> Type #

GoogleRequest TeamdrivesCreate Source # 
Instance details

Defined in Network.Google.Resource.Drive.Teamdrives.Create

Associated Types

type Rs TeamdrivesCreate :: Type #

type Scopes TeamdrivesCreate :: [Symbol] #

type Rep TeamdrivesCreate Source # 
Instance details

Defined in Network.Google.Resource.Drive.Teamdrives.Create

type Rep TeamdrivesCreate = D1 (MetaData "TeamdrivesCreate" "Network.Google.Resource.Drive.Teamdrives.Create" "gogol-drive-0.4.0-C4qjNjFgJei6ubblDJk14k" False) (C1 (MetaCons "TeamdrivesCreate'" PrefixI True) (S1 (MetaSel (Just "_tcRequestId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_tcPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 TeamDrive)))
type Scopes TeamdrivesCreate Source # 
Instance details

Defined in Network.Google.Resource.Drive.Teamdrives.Create

type Scopes TeamdrivesCreate = "https://www.googleapis.com/auth/drive" ': ([] :: [Symbol])
type Rs TeamdrivesCreate Source # 
Instance details

Defined in Network.Google.Resource.Drive.Teamdrives.Create

Request Lenses

tcRequestId :: Lens' TeamdrivesCreate Text Source #

An ID, such as a random UUID, which uniquely identifies this user's request for idempotent creation of a Team Drive. A repeated request by the same user and with the same request ID will avoid creating duplicates by attempting to create the same Team Drive. If the Team Drive already exists a 409 error will be returned.

tcPayload :: Lens' TeamdrivesCreate TeamDrive Source #

Multipart request metadata.