gogol-surveys-0.4.0: Google Surveys 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.Surveys

Contents

Description

Creates and conducts surveys, lists the surveys that an authenticated user owns, and retrieves survey results and information about specified surveys.

See: Surveys API Reference

Synopsis

Service Configuration

surveysService :: ServiceConfig Source #

Default request referring to version v2 of the Surveys API. This contains the host and root path used as a starting point for constructing service requests.

OAuth Scopes

surveysScope :: Proxy '["https://www.googleapis.com/auth/surveys"] Source #

View and manage your surveys and results

userInfoEmailScope :: Proxy '["https://www.googleapis.com/auth/userinfo.email"] Source #

View your email address

surveysReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/surveys.readonly"] Source #

View your surveys and survey results

API Declaration

Resources

surveys.results.get

surveys.surveys.delete

surveys.surveys.get

surveys.surveys.insert

surveys.surveys.list

surveys.surveys.start

surveys.surveys.stop

surveys.surveys.update

Types

SurveysListResponse

data SurveysListResponse Source #

Instances
Eq SurveysListResponse Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Data SurveysListResponse Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Methods

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

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

toConstr :: SurveysListResponse -> Constr #

dataTypeOf :: SurveysListResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show SurveysListResponse Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Generic SurveysListResponse Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Associated Types

type Rep SurveysListResponse :: Type -> Type #

ToJSON SurveysListResponse Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

FromJSON SurveysListResponse Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

type Rep SurveysListResponse Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

type Rep SurveysListResponse = D1 (MetaData "SurveysListResponse" "Network.Google.Surveys.Types.Product" "gogol-surveys-0.4.0-JDdOowllRumLCrJvGPiXO8" False) (C1 (MetaCons "SurveysListResponse'" PrefixI True) ((S1 (MetaSel (Just "_slrRequestId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_slrTokenPagination") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe TokenPagination))) :*: (S1 (MetaSel (Just "_slrPageInfo") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe PageInfo)) :*: S1 (MetaSel (Just "_slrResources") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Survey])))))

surveysListResponse :: SurveysListResponse Source #

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

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

slrRequestId :: Lens' SurveysListResponse (Maybe Text) Source #

Unique request ID used for logging and debugging. Please include in any error reporting or troubleshooting requests.

slrResources :: Lens' SurveysListResponse [Survey] Source #

An individual survey resource.

TokenPagination

data TokenPagination Source #

Instances
Eq TokenPagination Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Data TokenPagination Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Methods

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

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

toConstr :: TokenPagination -> Constr #

dataTypeOf :: TokenPagination -> DataType #

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

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

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

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

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

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

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

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

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

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

Show TokenPagination Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Generic TokenPagination Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Associated Types

type Rep TokenPagination :: Type -> Type #

ToJSON TokenPagination Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

FromJSON TokenPagination Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

type Rep TokenPagination Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

type Rep TokenPagination = D1 (MetaData "TokenPagination" "Network.Google.Surveys.Types.Product" "gogol-surveys-0.4.0-JDdOowllRumLCrJvGPiXO8" False) (C1 (MetaCons "TokenPagination'" PrefixI True) (S1 (MetaSel (Just "_tpNextPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_tpPreviousPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))

tokenPagination :: TokenPagination Source #

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

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

ResultsGetRequest

data ResultsGetRequest Source #

Instances
Eq ResultsGetRequest Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Data ResultsGetRequest Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Methods

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

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

toConstr :: ResultsGetRequest -> Constr #

dataTypeOf :: ResultsGetRequest -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ResultsGetRequest Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Generic ResultsGetRequest Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Associated Types

type Rep ResultsGetRequest :: Type -> Type #

ToJSON ResultsGetRequest Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

FromJSON ResultsGetRequest Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

type Rep ResultsGetRequest Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

type Rep ResultsGetRequest = D1 (MetaData "ResultsGetRequest" "Network.Google.Surveys.Types.Product" "gogol-surveys-0.4.0-JDdOowllRumLCrJvGPiXO8" True) (C1 (MetaCons "ResultsGetRequest'" PrefixI True) (S1 (MetaSel (Just "_rgrResultMask") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe ResultsMask))))

resultsGetRequest :: ResultsGetRequest Source #

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

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

PageInfo

data PageInfo Source #

Instances
Eq PageInfo Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Data PageInfo Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Methods

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

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

toConstr :: PageInfo -> Constr #

dataTypeOf :: PageInfo -> DataType #

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

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

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

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

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

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

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

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

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

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

Show PageInfo Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Generic PageInfo Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Associated Types

type Rep PageInfo :: Type -> Type #

Methods

from :: PageInfo -> Rep PageInfo x #

to :: Rep PageInfo x -> PageInfo #

ToJSON PageInfo Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

FromJSON PageInfo Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

type Rep PageInfo Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

type Rep PageInfo = D1 (MetaData "PageInfo" "Network.Google.Surveys.Types.Product" "gogol-surveys-0.4.0-JDdOowllRumLCrJvGPiXO8" False) (C1 (MetaCons "PageInfo'" PrefixI True) (S1 (MetaSel (Just "_piResultPerPage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))) :*: (S1 (MetaSel (Just "_piTotalResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))) :*: S1 (MetaSel (Just "_piStartIndex") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))))))

pageInfo :: PageInfo Source #

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

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

FieldMask

data FieldMask Source #

Instances
Eq FieldMask Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Data FieldMask Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Methods

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

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

toConstr :: FieldMask -> Constr #

dataTypeOf :: FieldMask -> DataType #

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

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

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

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

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

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

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

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

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

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

Show FieldMask Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Generic FieldMask Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Associated Types

type Rep FieldMask :: Type -> Type #

ToJSON FieldMask Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

FromJSON FieldMask Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

type Rep FieldMask Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

type Rep FieldMask = D1 (MetaData "FieldMask" "Network.Google.Surveys.Types.Product" "gogol-surveys-0.4.0-JDdOowllRumLCrJvGPiXO8" False) (C1 (MetaCons "FieldMask'" PrefixI True) (S1 (MetaSel (Just "_fmId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))) :*: S1 (MetaSel (Just "_fmFields") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [FieldMask]))))

fieldMask :: FieldMask Source #

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

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

Survey

data Survey Source #

Representation of an individual survey object.

See: survey smart constructor.

Instances
Eq Survey Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Methods

(==) :: Survey -> Survey -> Bool #

(/=) :: Survey -> Survey -> Bool #

Data Survey Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Methods

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

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

toConstr :: Survey -> Constr #

dataTypeOf :: Survey -> DataType #

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

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

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

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

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

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

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

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

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

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

Show Survey Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Generic Survey Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Associated Types

type Rep Survey :: Type -> Type #

Methods

from :: Survey -> Rep Survey x #

to :: Rep Survey x -> Survey #

ToJSON Survey Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

FromJSON Survey Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

type Rep Survey Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

survey :: Survey Source #

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

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

sAudience :: Lens' Survey (Maybe SurveyAudience) Source #

Targeting-criteria message containing demographic information

sState :: Lens' Survey (Maybe Text) Source #

State that the survey is in.

sOwners :: Lens' Survey [Text] Source #

List of email addresses for survey owners. Must contain at least the address of the user making the API call.

sWantedResponseCount :: Lens' Survey (Maybe Int32) Source #

Number of responses desired for the survey.

sSurveyURLId :: Lens' Survey (Maybe Text) Source #

Unique survey ID, that is viewable in the URL of the Survey Creator UI

sCost :: Lens' Survey (Maybe SurveyCost) Source #

Cost to run the survey and collect the necessary number of responses.

sRejectionReason :: Lens' Survey (Maybe SurveyRejection) Source #

Reason for the survey being rejected. Only present if the survey state is rejected.

sCustomerData :: Lens' Survey (Maybe ByteString) Source #

Additional information to store on behalf of the API consumer and associate with this question. This binary blob is treated as opaque. This field is limited to 64K bytes.

sQuestions :: Lens' Survey [SurveyQuestion] Source #

List of questions defining the survey.

sTitle :: Lens' Survey (Maybe Text) Source #

Optional name that will be given to the survey.

sDescription :: Lens' Survey (Maybe Text) Source #

Text description of the survey.

SurveysStartResponse

data SurveysStartResponse Source #

Instances
Eq SurveysStartResponse Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Data SurveysStartResponse Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Methods

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

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

toConstr :: SurveysStartResponse -> Constr #

dataTypeOf :: SurveysStartResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show SurveysStartResponse Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Generic SurveysStartResponse Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Associated Types

type Rep SurveysStartResponse :: Type -> Type #

ToJSON SurveysStartResponse Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

FromJSON SurveysStartResponse Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

type Rep SurveysStartResponse Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

type Rep SurveysStartResponse = D1 (MetaData "SurveysStartResponse" "Network.Google.Surveys.Types.Product" "gogol-surveys-0.4.0-JDdOowllRumLCrJvGPiXO8" True) (C1 (MetaCons "SurveysStartResponse'" PrefixI True) (S1 (MetaSel (Just "_ssrRequestId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))))

surveysStartResponse :: SurveysStartResponse Source #

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

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

ssrRequestId :: Lens' SurveysStartResponse (Maybe Text) Source #

Unique request ID used for logging and debugging. Please include in any error reporting or troubleshooting requests.

SurveysStopResponse

data SurveysStopResponse Source #

Instances
Eq SurveysStopResponse Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Data SurveysStopResponse Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Methods

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

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

toConstr :: SurveysStopResponse -> Constr #

dataTypeOf :: SurveysStopResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show SurveysStopResponse Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Generic SurveysStopResponse Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Associated Types

type Rep SurveysStopResponse :: Type -> Type #

ToJSON SurveysStopResponse Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

FromJSON SurveysStopResponse Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

type Rep SurveysStopResponse Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

type Rep SurveysStopResponse = D1 (MetaData "SurveysStopResponse" "Network.Google.Surveys.Types.Product" "gogol-surveys-0.4.0-JDdOowllRumLCrJvGPiXO8" True) (C1 (MetaCons "SurveysStopResponse'" PrefixI True) (S1 (MetaSel (Just "_sRequestId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))))

surveysStopResponse :: SurveysStopResponse Source #

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

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

sRequestId :: Lens' SurveysStopResponse (Maybe Text) Source #

Unique request ID used for logging and debugging. Please include in any error reporting or troubleshooting requests.

ResultsMask

data ResultsMask Source #

Instances
Eq ResultsMask Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Data ResultsMask Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Methods

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

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

toConstr :: ResultsMask -> Constr #

dataTypeOf :: ResultsMask -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ResultsMask Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Generic ResultsMask Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Associated Types

type Rep ResultsMask :: Type -> Type #

ToJSON ResultsMask Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

FromJSON ResultsMask Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

type Rep ResultsMask Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

type Rep ResultsMask = D1 (MetaData "ResultsMask" "Network.Google.Surveys.Types.Product" "gogol-surveys-0.4.0-JDdOowllRumLCrJvGPiXO8" False) (C1 (MetaCons "ResultsMask'" PrefixI True) (S1 (MetaSel (Just "_rmProjection") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_rmFields") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [FieldMask]))))

resultsMask :: ResultsMask Source #

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

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

SurveyRejection

data SurveyRejection Source #

Message representing why the survey was rejected from review, if it was.

See: surveyRejection smart constructor.

Instances
Eq SurveyRejection Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Data SurveyRejection Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Methods

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

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

toConstr :: SurveyRejection -> Constr #

dataTypeOf :: SurveyRejection -> DataType #

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

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

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

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

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

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

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

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

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

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

Show SurveyRejection Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Generic SurveyRejection Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Associated Types

type Rep SurveyRejection :: Type -> Type #

ToJSON SurveyRejection Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

FromJSON SurveyRejection Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

type Rep SurveyRejection Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

type Rep SurveyRejection = D1 (MetaData "SurveyRejection" "Network.Google.Surveys.Types.Product" "gogol-surveys-0.4.0-JDdOowllRumLCrJvGPiXO8" False) (C1 (MetaCons "SurveyRejection'" PrefixI True) (S1 (MetaSel (Just "_srExplanation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_srType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))

surveyRejection :: SurveyRejection Source #

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

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

srExplanation :: Lens' SurveyRejection (Maybe Text) Source #

A human-readable explanation of what was wrong with the survey.

srType :: Lens' SurveyRejection (Maybe Text) Source #

Which category of rejection this was. See the Google Surveys Help Center for additional details on each category.

SurveyResults

data SurveyResults Source #

Reference to the current results for a given survey.

See: surveyResults smart constructor.

Instances
Eq SurveyResults Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Data SurveyResults Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Methods

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

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

toConstr :: SurveyResults -> Constr #

dataTypeOf :: SurveyResults -> DataType #

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

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

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

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

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

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

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

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

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

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

Show SurveyResults Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Generic SurveyResults Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Associated Types

type Rep SurveyResults :: Type -> Type #

ToJSON SurveyResults Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

FromJSON SurveyResults Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

type Rep SurveyResults Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

type Rep SurveyResults = D1 (MetaData "SurveyResults" "Network.Google.Surveys.Types.Product" "gogol-surveys-0.4.0-JDdOowllRumLCrJvGPiXO8" False) (C1 (MetaCons "SurveyResults'" PrefixI True) (S1 (MetaSel (Just "_srStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_srSurveyURLId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))

surveyResults :: SurveyResults Source #

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

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

srStatus :: Lens' SurveyResults (Maybe Text) Source #

Human readable string describing the status of the request.

srSurveyURLId :: Lens' SurveyResults (Maybe Text) Source #

External survey ID as viewable by survey owners in the editor view.

SurveysStartRequest

data SurveysStartRequest Source #

Instances
Eq SurveysStartRequest Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Data SurveysStartRequest Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Methods

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

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

toConstr :: SurveysStartRequest -> Constr #

dataTypeOf :: SurveysStartRequest -> DataType #

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

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

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

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

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

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

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

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

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

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

Show SurveysStartRequest Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Generic SurveysStartRequest Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Associated Types

type Rep SurveysStartRequest :: Type -> Type #

ToJSON SurveysStartRequest Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

FromJSON SurveysStartRequest Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

type Rep SurveysStartRequest Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

type Rep SurveysStartRequest = D1 (MetaData "SurveysStartRequest" "Network.Google.Surveys.Types.Product" "gogol-surveys-0.4.0-JDdOowllRumLCrJvGPiXO8" True) (C1 (MetaCons "SurveysStartRequest'" PrefixI True) (S1 (MetaSel (Just "_ssrMaxCostPerResponseNanos") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Textual Int64)))))

surveysStartRequest :: SurveysStartRequest Source #

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

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

ssrMaxCostPerResponseNanos :: Lens' SurveysStartRequest (Maybe Int64) Source #

  • Deprecated* Threshold to start a survey automatically if the quoted prices is less than or equal to this value. See Survey.Cost for more details. This will no longer be available after June 2018.

SurveysDeleteResponse

data SurveysDeleteResponse Source #

Instances
Eq SurveysDeleteResponse Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Data SurveysDeleteResponse Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Methods

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

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

toConstr :: SurveysDeleteResponse -> Constr #

dataTypeOf :: SurveysDeleteResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show SurveysDeleteResponse Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Generic SurveysDeleteResponse Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Associated Types

type Rep SurveysDeleteResponse :: Type -> Type #

ToJSON SurveysDeleteResponse Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

FromJSON SurveysDeleteResponse Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

type Rep SurveysDeleteResponse Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

type Rep SurveysDeleteResponse = D1 (MetaData "SurveysDeleteResponse" "Network.Google.Surveys.Types.Product" "gogol-surveys-0.4.0-JDdOowllRumLCrJvGPiXO8" True) (C1 (MetaCons "SurveysDeleteResponse'" PrefixI True) (S1 (MetaSel (Just "_sdrRequestId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))))

surveysDeleteResponse :: SurveysDeleteResponse Source #

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

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

sdrRequestId :: Lens' SurveysDeleteResponse (Maybe Text) Source #

Unique request ID used for logging and debugging. Please include in any error reporting or troubleshooting requests.

SurveyQuestionImage

data SurveyQuestionImage Source #

Container object for image data and alt_text.

See: surveyQuestionImage smart constructor.

Instances
Eq SurveyQuestionImage Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Data SurveyQuestionImage Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Methods

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

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

toConstr :: SurveyQuestionImage -> Constr #

dataTypeOf :: SurveyQuestionImage -> DataType #

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

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

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

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

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

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

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

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

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

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

Show SurveyQuestionImage Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Generic SurveyQuestionImage Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Associated Types

type Rep SurveyQuestionImage :: Type -> Type #

ToJSON SurveyQuestionImage Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

FromJSON SurveyQuestionImage Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

type Rep SurveyQuestionImage Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

type Rep SurveyQuestionImage = D1 (MetaData "SurveyQuestionImage" "Network.Google.Surveys.Types.Product" "gogol-surveys-0.4.0-JDdOowllRumLCrJvGPiXO8" False) (C1 (MetaCons "SurveyQuestionImage'" PrefixI True) (S1 (MetaSel (Just "_sqiData") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bytes)) :*: (S1 (MetaSel (Just "_sqiURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_sqiAltText") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))

surveyQuestionImage :: SurveyQuestionImage Source #

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

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

sqiData :: Lens' SurveyQuestionImage (Maybe ByteString) Source #

Inline jpeg, gif, tiff, bmp, or png image raw bytes for an image question types.

sqiURL :: Lens' SurveyQuestionImage (Maybe Text) Source #

The read-only URL for the hosted images.

sqiAltText :: Lens' SurveyQuestionImage (Maybe Text) Source #

The alt text property used in image tags is required for all images.

SurveyAudience

data SurveyAudience Source #

Specifications for the target audience of a survey run through the API.

See: surveyAudience smart constructor.

Instances
Eq SurveyAudience Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Data SurveyAudience Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Methods

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

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

toConstr :: SurveyAudience -> Constr #

dataTypeOf :: SurveyAudience -> DataType #

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

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

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

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

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

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

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

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

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

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

Show SurveyAudience Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Generic SurveyAudience Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Associated Types

type Rep SurveyAudience :: Type -> Type #

ToJSON SurveyAudience Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

FromJSON SurveyAudience Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

type Rep SurveyAudience Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

type Rep SurveyAudience = D1 (MetaData "SurveyAudience" "Network.Google.Surveys.Types.Product" "gogol-surveys-0.4.0-JDdOowllRumLCrJvGPiXO8" False) (C1 (MetaCons "SurveyAudience'" PrefixI True) ((S1 (MetaSel (Just "_saCountry") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_saAges") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 (MetaSel (Just "_saLanguages") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])))) :*: (S1 (MetaSel (Just "_saGender") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_saCountrySubdivision") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_saPopulationSource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))

surveyAudience :: SurveyAudience Source #

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

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

saCountry :: Lens' SurveyAudience (Maybe Text) Source #

Required country code that surveys should be targeted to. Accepts standard ISO 3166-1 2 character language codes. For instance, 'US' for the United States, and 'GB' for the United Kingdom.

saAges :: Lens' SurveyAudience [Text] Source #

Optional list of age buckets to target. Supported age buckets are: ['18-24', '25-34', '35-44', '45-54', '55-64', '65+']

saLanguages :: Lens' SurveyAudience [Text] Source #

Language code that surveys should be targeted to. For instance, 'en-US'. Surveys may target bilingual users by specifying a list of language codes (for example, 'de' and 'en-US'). In that case, all languages will be used for targeting users but the survey content (which is displayed) must match the first language listed. Accepts standard BCP47 language codes. See specification.

saGender :: Lens' SurveyAudience (Maybe Text) Source #

Optional gender to target.

saCountrySubdivision :: Lens' SurveyAudience (Maybe Text) Source #

Country subdivision (states/provinces/etc) that surveys should be targeted to. For all countries except GB, ISO-3166-2 subdivision code is required (eg. 'US-OH' for Ohio, United States). For GB, NUTS 1 statistical region codes for the United Kingdom is required (eg. 'UK-UKC' for North East England).

saPopulationSource :: Lens' SurveyAudience (Maybe Text) Source #

Online population source where the respondents are sampled from.

SurveyCost

data SurveyCost Source #

Message defining the cost to run a given survey through API.

See: surveyCost smart constructor.

Instances
Eq SurveyCost Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Data SurveyCost Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Methods

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

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

toConstr :: SurveyCost -> Constr #

dataTypeOf :: SurveyCost -> DataType #

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

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

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

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

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

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

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

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

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

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

Show SurveyCost Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Generic SurveyCost Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Associated Types

type Rep SurveyCost :: Type -> Type #

ToJSON SurveyCost Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

FromJSON SurveyCost Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

type Rep SurveyCost Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

type Rep SurveyCost = D1 (MetaData "SurveyCost" "Network.Google.Surveys.Types.Product" "gogol-surveys-0.4.0-JDdOowllRumLCrJvGPiXO8" False) (C1 (MetaCons "SurveyCost'" PrefixI True) ((S1 (MetaSel (Just "_scCurrencyCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_scNanos") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64)))) :*: (S1 (MetaSel (Just "_scMaxCostPerResponseNanos") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64))) :*: S1 (MetaSel (Just "_scCostPerResponseNanos") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64))))))

surveyCost :: SurveyCost Source #

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

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

scCurrencyCode :: Lens' SurveyCost (Maybe Text) Source #

Currency code that the cost is given in.

scNanos :: Lens' SurveyCost (Maybe Int64) Source #

Cost of survey in nano units of the given currency. DEPRECATED in favor of cost_per_response_nanos

scMaxCostPerResponseNanos :: Lens' SurveyCost (Maybe Int64) Source #

  • Deprecated* Threshold to start a survey automatically if the quoted price is at most this value. When a survey has a Screener (threshold) question, it must go through an incidence pricing test to determine the final cost per response. Typically you will have to make a followup call to start the survey giving the final computed cost per response. If the survey has no threshold_answers, setting this property will return an error. By specifying this property, you indicate the max price per response you are willing to pay in advance of the incidence test. If the price turns out to be lower than the specified value, the survey will begin immediately and you will be charged at the rate determined by the incidence pricing test. If the price turns out to be greater than the specified value the survey will not be started and you will instead be notified what price was determined by the incidence test. At that point, you must raise the value of this property to be greater than or equal to that cost before attempting to start the survey again. This will immediately start the survey as long the incidence test was run within the last 21 days. This will no longer be available after June 2018.

scCostPerResponseNanos :: Lens' SurveyCost (Maybe Int64) Source #

Cost per survey response in nano units of the given currency. To get the total cost for a survey, multiply this value by wanted_response_count.

SurveyQuestion

data SurveyQuestion Source #

Message defining the question specifications.

See: surveyQuestion smart constructor.

Instances
Eq SurveyQuestion Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Data SurveyQuestion Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Methods

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

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

toConstr :: SurveyQuestion -> Constr #

dataTypeOf :: SurveyQuestion -> DataType #

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

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

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

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

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

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

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

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

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

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

Show SurveyQuestion Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Generic SurveyQuestion Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

Associated Types

type Rep SurveyQuestion :: Type -> Type #

ToJSON SurveyQuestion Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

FromJSON SurveyQuestion Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

type Rep SurveyQuestion Source # 
Instance details

Defined in Network.Google.Surveys.Types.Product

type Rep SurveyQuestion = D1 (MetaData "SurveyQuestion" "Network.Google.Surveys.Types.Product" "gogol-surveys-0.4.0-JDdOowllRumLCrJvGPiXO8" False) (C1 (MetaCons "SurveyQuestion'" PrefixI True) ((((S1 (MetaSel (Just "_sqImages") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [SurveyQuestionImage])) :*: S1 (MetaSel (Just "_sqAnswers") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) :*: (S1 (MetaSel (Just "_sqSingleLineResponse") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_sqMustPickSuggestion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)))) :*: ((S1 (MetaSel (Just "_sqSentimentText") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_sqThresholdAnswers") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) :*: (S1 (MetaSel (Just "_sqHasOther") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 (MetaSel (Just "_sqOpenTextSuggestions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 (MetaSel (Just "_sqVideoId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))) :*: (((S1 (MetaSel (Just "_sqLastAnswerPositionPinned") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_sqAnswerOrder") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_sqOpenTextPlaceholder") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_sqType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_sqUnitOfMeasurementLabel") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_sqHighValueLabel") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_sqQuestion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_sqNumStars") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_sqLowValueLabel") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))))

sqAnswers :: Lens' SurveyQuestion [Text] Source #

Required list of answer options for a question.

sqSingleLineResponse :: Lens' SurveyQuestion (Maybe Bool) Source #

Option to allow multiple line open text responses instead of a single line response. Note that we don't show auto-complete suggestions with multiple line responses.

sqMustPickSuggestion :: Lens' SurveyQuestion (Maybe Bool) Source #

Option to force the user to pick one of the open text suggestions. This requires that suggestions are provided for this question.

sqSentimentText :: Lens' SurveyQuestion (Maybe Text) Source #

Used by the Rating Scale with Text question type. This text goes along with the question field that is presented to the respondent, and is the actual text that the respondent is asked to rate.

sqThresholdAnswers :: Lens' SurveyQuestion [Text] Source #

The threshold/screener answer options, which will screen a user into the rest of the survey. These will be a subset of the answer option strings.

sqHasOther :: Lens' SurveyQuestion (Maybe Bool) Source #

Option to allow open-ended text box for Single Answer and Multiple Answer question types. This can be used with SINGLE_ANSWER, SINGLE_ANSWER_WITH_IMAGE, MULTIPLE_ANSWERS, and MULTIPLE_ANSWERS_WITH_IMAGE question types.

sqOpenTextSuggestions :: Lens' SurveyQuestion [Text] Source #

A list of suggested answers for open text question auto-complete. This is only valid if single_line_response is true.

sqVideoId :: Lens' SurveyQuestion (Maybe Text) Source #

The YouTube video ID to be show in video questions.

sqLastAnswerPositionPinned :: Lens' SurveyQuestion (Maybe Bool) Source #

Currently only support pinning an answer option to the last position.

sqAnswerOrder :: Lens' SurveyQuestion (Maybe Text) Source #

The randomization option for multiple choice and multi-select questions. If not specified, this option defaults to randomize.

sqOpenTextPlaceholder :: Lens' SurveyQuestion (Maybe Text) Source #

Placeholder text for an open text question.

sqType :: Lens' SurveyQuestion (Maybe Text) Source #

Required field defining the question type. For details about configuring different type of questions, consult the question configuration guide.

sqUnitOfMeasurementLabel :: Lens' SurveyQuestion (Maybe Text) Source #

Optional unit of measurement for display (for example: hours, people, miles).

sqHighValueLabel :: Lens' SurveyQuestion (Maybe Text) Source #

For rating questions, the text for the higher end of the scale, such as 'Best'. For numeric questions, a string representing a floating-point that is the maximum allowed number for a response.

sqQuestion :: Lens' SurveyQuestion (Maybe Text) Source #

Required question text shown to the respondent.

sqNumStars :: Lens' SurveyQuestion (Maybe Text) Source #

Number of stars to use for ratings questions.

sqLowValueLabel :: Lens' SurveyQuestion (Maybe Text) Source #

For rating questions, the text for the lower end of the scale, such as 'Worst'. For numeric questions, a string representing a floating-point that is the minimum allowed number for a response.