gogol-dialogflow-0.4.0: Google Dialogflow 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.DialogFlow.Projects.Agent.EntityTypes.Create

Contents

Description

Creates an entity type in the specified agent.

See: Dialogflow API Reference for dialogflow.projects.agent.entityTypes.create.

Synopsis

REST Resource

type ProjectsAgentEntityTypesCreateResource = "v2" :> (Capture "parent" Text :> ("entityTypes" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "languageCode" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudDialogflowV2EntityType :> Post '[JSON] GoogleCloudDialogflowV2EntityType)))))))))) Source #

A resource alias for dialogflow.projects.agent.entityTypes.create method which the ProjectsAgentEntityTypesCreate request conforms to.

Creating a Request

data ProjectsAgentEntityTypesCreate Source #

Creates an entity type in the specified agent.

See: projectsAgentEntityTypesCreate smart constructor.

Instances
Eq ProjectsAgentEntityTypesCreate Source # 
Instance details

Defined in Network.Google.Resource.DialogFlow.Projects.Agent.EntityTypes.Create

Data ProjectsAgentEntityTypesCreate Source # 
Instance details

Defined in Network.Google.Resource.DialogFlow.Projects.Agent.EntityTypes.Create

Methods

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

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

toConstr :: ProjectsAgentEntityTypesCreate -> Constr #

dataTypeOf :: ProjectsAgentEntityTypesCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsAgentEntityTypesCreate Source # 
Instance details

Defined in Network.Google.Resource.DialogFlow.Projects.Agent.EntityTypes.Create

Generic ProjectsAgentEntityTypesCreate Source # 
Instance details

Defined in Network.Google.Resource.DialogFlow.Projects.Agent.EntityTypes.Create

Associated Types

type Rep ProjectsAgentEntityTypesCreate :: Type -> Type #

GoogleRequest ProjectsAgentEntityTypesCreate Source # 
Instance details

Defined in Network.Google.Resource.DialogFlow.Projects.Agent.EntityTypes.Create

type Rep ProjectsAgentEntityTypesCreate Source # 
Instance details

Defined in Network.Google.Resource.DialogFlow.Projects.Agent.EntityTypes.Create

type Rep ProjectsAgentEntityTypesCreate = D1 (MetaData "ProjectsAgentEntityTypesCreate" "Network.Google.Resource.DialogFlow.Projects.Agent.EntityTypes.Create" "gogol-dialogflow-0.4.0-LhfWFPNiwlPEL3P0xqpEYp" False) (C1 (MetaCons "ProjectsAgentEntityTypesCreate'" PrefixI True) (((S1 (MetaSel (Just "_paetcParent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_paetcXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv))) :*: (S1 (MetaSel (Just "_paetcLanguageCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_paetcUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_paetcAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_paetcUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_paetcPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 GoogleCloudDialogflowV2EntityType) :*: S1 (MetaSel (Just "_paetcCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsAgentEntityTypesCreate Source # 
Instance details

Defined in Network.Google.Resource.DialogFlow.Projects.Agent.EntityTypes.Create

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

Defined in Network.Google.Resource.DialogFlow.Projects.Agent.EntityTypes.Create

Request Lenses

paetcParent :: Lens' ProjectsAgentEntityTypesCreate Text Source #

Required. The agent to create a entity type for. Format: `projects//agent`.

paetcLanguageCode :: Lens' ProjectsAgentEntityTypesCreate (Maybe Text) Source #

Optional. The language of entity synonyms defined in `entity_type`. If not specified, the agent's default language is used. More than a dozen languages are supported. Note: languages must be enabled in the agent, before they can be used.

paetcUploadProtocol :: Lens' ProjectsAgentEntityTypesCreate (Maybe Text) Source #

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

paetcUploadType :: Lens' ProjectsAgentEntityTypesCreate (Maybe Text) Source #

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