gogol-iam-0.4.0: Google Identity and Access Management (IAM) 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.IAM.Projects.Roles.Create

Contents

Description

Creates a new Role.

See: Identity and Access Management (IAM) API Reference for iam.projects.roles.create.

Synopsis

REST Resource

type ProjectsRolesCreateResource = "v1" :> (Capture "parent" Text :> ("roles" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CreateRoleRequest :> Post '[JSON] Role))))))))) Source #

A resource alias for iam.projects.roles.create method which the ProjectsRolesCreate request conforms to.

Creating a Request

projectsRolesCreate Source #

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

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

data ProjectsRolesCreate Source #

Creates a new Role.

See: projectsRolesCreate smart constructor.

Instances
Eq ProjectsRolesCreate Source # 
Instance details

Defined in Network.Google.Resource.IAM.Projects.Roles.Create

Data ProjectsRolesCreate Source # 
Instance details

Defined in Network.Google.Resource.IAM.Projects.Roles.Create

Methods

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

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

toConstr :: ProjectsRolesCreate -> Constr #

dataTypeOf :: ProjectsRolesCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsRolesCreate Source # 
Instance details

Defined in Network.Google.Resource.IAM.Projects.Roles.Create

Generic ProjectsRolesCreate Source # 
Instance details

Defined in Network.Google.Resource.IAM.Projects.Roles.Create

Associated Types

type Rep ProjectsRolesCreate :: Type -> Type #

GoogleRequest ProjectsRolesCreate Source # 
Instance details

Defined in Network.Google.Resource.IAM.Projects.Roles.Create

Associated Types

type Rs ProjectsRolesCreate :: Type #

type Scopes ProjectsRolesCreate :: [Symbol] #

type Rep ProjectsRolesCreate Source # 
Instance details

Defined in Network.Google.Resource.IAM.Projects.Roles.Create

type Rep ProjectsRolesCreate = D1 (MetaData "ProjectsRolesCreate" "Network.Google.Resource.IAM.Projects.Roles.Create" "gogol-iam-0.4.0-IBWwIZHvdU38fPF72JMuUn" False) (C1 (MetaCons "ProjectsRolesCreate'" PrefixI True) ((S1 (MetaSel (Just "_prcParent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_prcXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_prcUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_prcAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_prcUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_prcPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 CreateRoleRequest) :*: S1 (MetaSel (Just "_prcCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsRolesCreate Source # 
Instance details

Defined in Network.Google.Resource.IAM.Projects.Roles.Create

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

Defined in Network.Google.Resource.IAM.Projects.Roles.Create

Request Lenses

prcParent :: Lens' ProjectsRolesCreate Text Source #

The resource name of the parent resource in one of the following formats: `organizations/{ORGANIZATION_ID}` `projects/{PROJECT_ID}`

prcUploadProtocol :: Lens' ProjectsRolesCreate (Maybe Text) Source #

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

prcUploadType :: Lens' ProjectsRolesCreate (Maybe Text) Source #

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