gogol-containeranalysis-0.5.0: Google Container Analysis 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.ContainerAnalysis.Projects.Occurrences.Create

Contents

Description

Creates a new occurrence.

See: Container Analysis API Reference for containeranalysis.projects.occurrences.create.

Synopsis

REST Resource

type ProjectsOccurrencesCreateResource = "v1beta1" :> (Capture "parent" Text :> ("occurrences" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Occurrence :> Post '[JSON] Occurrence))))))))) Source #

A resource alias for containeranalysis.projects.occurrences.create method which the ProjectsOccurrencesCreate request conforms to.

Creating a Request

projectsOccurrencesCreate Source #

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

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

data ProjectsOccurrencesCreate Source #

Creates a new occurrence.

See: projectsOccurrencesCreate smart constructor.

Instances
Eq ProjectsOccurrencesCreate Source # 
Instance details

Defined in Network.Google.Resource.ContainerAnalysis.Projects.Occurrences.Create

Data ProjectsOccurrencesCreate Source # 
Instance details

Defined in Network.Google.Resource.ContainerAnalysis.Projects.Occurrences.Create

Methods

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

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

toConstr :: ProjectsOccurrencesCreate -> Constr #

dataTypeOf :: ProjectsOccurrencesCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsOccurrencesCreate Source # 
Instance details

Defined in Network.Google.Resource.ContainerAnalysis.Projects.Occurrences.Create

Generic ProjectsOccurrencesCreate Source # 
Instance details

Defined in Network.Google.Resource.ContainerAnalysis.Projects.Occurrences.Create

Associated Types

type Rep ProjectsOccurrencesCreate :: Type -> Type #

GoogleRequest ProjectsOccurrencesCreate Source # 
Instance details

Defined in Network.Google.Resource.ContainerAnalysis.Projects.Occurrences.Create

type Rep ProjectsOccurrencesCreate Source # 
Instance details

Defined in Network.Google.Resource.ContainerAnalysis.Projects.Occurrences.Create

type Rep ProjectsOccurrencesCreate = D1 (MetaData "ProjectsOccurrencesCreate" "Network.Google.Resource.ContainerAnalysis.Projects.Occurrences.Create" "gogol-containeranalysis-0.5.0-8Ss1LZdDl5O9yFa7L1rdnz" False) (C1 (MetaCons "ProjectsOccurrencesCreate'" PrefixI True) ((S1 (MetaSel (Just "_pocParent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_pocXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_pocUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pocAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pocUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_pocPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Occurrence) :*: S1 (MetaSel (Just "_pocCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsOccurrencesCreate Source # 
Instance details

Defined in Network.Google.Resource.ContainerAnalysis.Projects.Occurrences.Create

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

Defined in Network.Google.Resource.ContainerAnalysis.Projects.Occurrences.Create

Request Lenses

pocParent :: Lens' ProjectsOccurrencesCreate Text Source #

The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrence is to be created.

pocUploadProtocol :: Lens' ProjectsOccurrencesCreate (Maybe Text) Source #

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

pocUploadType :: Lens' ProjectsOccurrencesCreate (Maybe Text) Source #

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