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.Intents.Create

Contents

Description

Creates an intent in the specified agent.

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

Synopsis

REST Resource

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

A resource alias for dialogflow.projects.agent.intents.create method which the ProjectsAgentIntentsCreate request conforms to.

Creating a Request

data ProjectsAgentIntentsCreate Source #

Creates an intent in the specified agent.

See: projectsAgentIntentsCreate smart constructor.

Instances
Eq ProjectsAgentIntentsCreate Source # 
Instance details

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

Data ProjectsAgentIntentsCreate Source # 
Instance details

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

Methods

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

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

toConstr :: ProjectsAgentIntentsCreate -> Constr #

dataTypeOf :: ProjectsAgentIntentsCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsAgentIntentsCreate Source # 
Instance details

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

Generic ProjectsAgentIntentsCreate Source # 
Instance details

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

Associated Types

type Rep ProjectsAgentIntentsCreate :: Type -> Type #

GoogleRequest ProjectsAgentIntentsCreate Source # 
Instance details

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

type Rep ProjectsAgentIntentsCreate Source # 
Instance details

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

type Rep ProjectsAgentIntentsCreate = D1 (MetaData "ProjectsAgentIntentsCreate" "Network.Google.Resource.DialogFlow.Projects.Agent.Intents.Create" "gogol-dialogflow-0.4.0-LhfWFPNiwlPEL3P0xqpEYp" False) (C1 (MetaCons "ProjectsAgentIntentsCreate'" PrefixI True) (((S1 (MetaSel (Just "_paicParent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_paicXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv))) :*: (S1 (MetaSel (Just "_paicLanguageCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_paicUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_paicAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_paicUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_paicPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 GoogleCloudDialogflowV2Intent) :*: (S1 (MetaSel (Just "_paicIntentView") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_paicCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))))
type Scopes ProjectsAgentIntentsCreate Source # 
Instance details

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

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

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

Request Lenses

paicParent :: Lens' ProjectsAgentIntentsCreate Text Source #

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

paicLanguageCode :: Lens' ProjectsAgentIntentsCreate (Maybe Text) Source #

Optional. The language of training phrases, parameters and rich messages defined in `intent`. 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.

paicUploadProtocol :: Lens' ProjectsAgentIntentsCreate (Maybe Text) Source #

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

paicUploadType :: Lens' ProjectsAgentIntentsCreate (Maybe Text) Source #

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

paicIntentView :: Lens' ProjectsAgentIntentsCreate (Maybe Text) Source #

Optional. The resource view to apply to the returned intent.