gogol-binaryauthorization-0.4.0: Google Binary Authorization 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.BinaryAuthorization.Projects.Attestors.Create

Contents

Description

Creates an attestor, and returns a copy of the new attestor. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the attestor already exists.

See: Binary Authorization API Reference for binaryauthorization.projects.attestors.create.

Synopsis

REST Resource

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

A resource alias for binaryauthorization.projects.attestors.create method which the ProjectsAttestorsCreate request conforms to.

Creating a Request

projectsAttestorsCreate Source #

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

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

data ProjectsAttestorsCreate Source #

Creates an attestor, and returns a copy of the new attestor. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the attestor already exists.

See: projectsAttestorsCreate smart constructor.

Instances
Eq ProjectsAttestorsCreate Source # 
Instance details

Defined in Network.Google.Resource.BinaryAuthorization.Projects.Attestors.Create

Data ProjectsAttestorsCreate Source # 
Instance details

Defined in Network.Google.Resource.BinaryAuthorization.Projects.Attestors.Create

Methods

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

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

toConstr :: ProjectsAttestorsCreate -> Constr #

dataTypeOf :: ProjectsAttestorsCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsAttestorsCreate Source # 
Instance details

Defined in Network.Google.Resource.BinaryAuthorization.Projects.Attestors.Create

Generic ProjectsAttestorsCreate Source # 
Instance details

Defined in Network.Google.Resource.BinaryAuthorization.Projects.Attestors.Create

Associated Types

type Rep ProjectsAttestorsCreate :: Type -> Type #

GoogleRequest ProjectsAttestorsCreate Source # 
Instance details

Defined in Network.Google.Resource.BinaryAuthorization.Projects.Attestors.Create

type Rep ProjectsAttestorsCreate Source # 
Instance details

Defined in Network.Google.Resource.BinaryAuthorization.Projects.Attestors.Create

type Rep ProjectsAttestorsCreate = D1 (MetaData "ProjectsAttestorsCreate" "Network.Google.Resource.BinaryAuthorization.Projects.Attestors.Create" "gogol-binaryauthorization-0.4.0-BhgUYr1FlAtBUJGnGudaWV" False) (C1 (MetaCons "ProjectsAttestorsCreate'" PrefixI True) (((S1 (MetaSel (Just "_pacParent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pacXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv))) :*: (S1 (MetaSel (Just "_pacUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pacAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pacUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pacPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Attestor)) :*: (S1 (MetaSel (Just "_pacAttestorId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pacCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsAttestorsCreate Source # 
Instance details

Defined in Network.Google.Resource.BinaryAuthorization.Projects.Attestors.Create

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

Defined in Network.Google.Resource.BinaryAuthorization.Projects.Attestors.Create

Request Lenses

pacParent :: Lens' ProjectsAttestorsCreate Text Source #

Required. The parent of this attestor.

pacUploadProtocol :: Lens' ProjectsAttestorsCreate (Maybe Text) Source #

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

pacUploadType :: Lens' ProjectsAttestorsCreate (Maybe Text) Source #

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

pacAttestorId :: Lens' ProjectsAttestorsCreate (Maybe Text) Source #

Required. The attestors ID.