gogol-script-0.2.0: Google Apps Script Execution 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.Script.Types

Contents

Description

 

Synopsis

Service Configuration

scriptService :: ServiceConfig Source #

Default request referring to version v1 of the Google Apps Script Execution API. This contains the host and root path used as a starting point for constructing service requests.

OAuth Scopes

mailGoogleComScope :: Proxy '["https://mail.google.com/"] Source #

View and manage your mail

m8FeedsScope :: Proxy '["https://www.google.com/m8/feeds"] Source #

Manage your contacts

adminDirectoryUserScope :: Proxy '["https://www.googleapis.com/auth/admin.directory.user"] Source #

View and manage the provisioning of users on your domain

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

View your email address

formsCurrentOnlyScope :: Proxy '["https://www.googleapis.com/auth/forms.currentonly"] Source #

View and manage forms that this application has been installed in

driveScope :: Proxy '["https://www.googleapis.com/auth/drive"] Source #

View and manage the files in your Google Drive

adminDirectoryGroupScope :: Proxy '["https://www.googleapis.com/auth/admin.directory.group"] Source #

View and manage the provisioning of groups on your domain

calendarFeedsScope :: Proxy '["https://www.google.com/calendar/feeds"] Source #

Manage your calendars

formsScope :: Proxy '["https://www.googleapis.com/auth/forms"] Source #

View and manage your forms in Google Drive

spreadsheetsScope :: Proxy '["https://www.googleapis.com/auth/spreadsheets"] Source #

View and manage your spreadsheets in Google Drive

groupsScope :: Proxy '["https://www.googleapis.com/auth/groups"] Source #

View and manage your Google Groups

Status

data Status Source #

If a `run` call succeeds but the script function (or Apps Script itself) throws an exception, the response body's `error` field will contain this `Status` object.

See: status smart constructor.

Instances

Eq Status Source # 

Methods

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

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

Data Status Source # 

Methods

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

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

toConstr :: Status -> Constr #

dataTypeOf :: Status -> DataType #

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

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

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

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

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

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

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

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

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

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

Show Status Source # 
Generic Status Source # 

Associated Types

type Rep Status :: * -> * #

Methods

from :: Status -> Rep Status x #

to :: Rep Status x -> Status #

ToJSON Status Source # 
FromJSON Status Source # 
type Rep Status Source # 
type Rep Status = D1 (MetaData "Status" "Network.Google.Script.Types.Product" "gogol-script-0.2.0-1ojfgFuXLcear11PYOLXk" False) (C1 (MetaCons "Status'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_sDetails") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [StatusDetailsItem]))) ((:*:) (S1 (MetaSel (Just Symbol "_sCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32)))) (S1 (MetaSel (Just Symbol "_sMessage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))

status :: Status Source #

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

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

sDetails :: Lens' Status [StatusDetailsItem] Source #

An array that contains a single `ExecutionError` object that provides information about the nature of the error.

sCode :: Lens' Status (Maybe Int32) Source #

The status code, which should be an enum value of google.rpc.Code.

sMessage :: Lens' Status (Maybe Text) Source #

A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.

Operation

data Operation Source #

The response will not arrive until the function finishes executing. The maximum runtime is listed in the guide to limitations in Apps Script. If the script function returns successfully, the `response` field will contain an `ExecutionResponse` object with the function's return value in the object's `result` field. If the script function (or Apps Script itself) throws an exception, the `error` field will contain a `Status` object. The `Status` object's `details` field will contain an array with a single `ExecutionError` object that provides information about the nature of the error. If the `run` call itself fails (for example, because of a malformed request or an authorization error), the method will return an HTTP response code in the 4XX range with a different format for the response body. Client libraries will automatically convert a 4XX response into an exception class.

See: operation smart constructor.

Instances

Eq Operation Source # 
Data Operation Source # 

Methods

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

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

toConstr :: Operation -> Constr #

dataTypeOf :: Operation -> DataType #

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

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

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

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

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

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

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

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

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

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

Show Operation Source # 
Generic Operation Source # 

Associated Types

type Rep Operation :: * -> * #

ToJSON Operation Source # 
FromJSON Operation Source # 
type Rep Operation Source # 

operation :: Operation Source #

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

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

oDone :: Lens' Operation (Maybe Bool) Source #

This field is not used.

oError :: Lens' Operation (Maybe Status) Source #

If a `run` call succeeds but the script function (or Apps Script itself) throws an exception, this field will contain a `Status` object. The `Status` object's `details` field will contain an array with a single `ExecutionError` object that provides information about the nature of the error.

oResponse :: Lens' Operation (Maybe OperationResponse) Source #

If the script function returns successfully, this field will contain an `ExecutionResponse` object with the function's return value as the object's `result` field.

oName :: Lens' Operation (Maybe Text) Source #

This field is not used.

ExecutionRequest

data ExecutionRequest Source #

A request to run the function in a script. The script is identified by the specified `script_id`. Executing a function on a script will return results based on the implementation of the script.

See: executionRequest smart constructor.

Instances

Eq ExecutionRequest Source # 
Data ExecutionRequest Source # 

Methods

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

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

toConstr :: ExecutionRequest -> Constr #

dataTypeOf :: ExecutionRequest -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ExecutionRequest Source # 
Generic ExecutionRequest Source # 
ToJSON ExecutionRequest Source # 
FromJSON ExecutionRequest Source # 
type Rep ExecutionRequest Source # 
type Rep ExecutionRequest = D1 (MetaData "ExecutionRequest" "Network.Google.Script.Types.Product" "gogol-script-0.2.0-1ojfgFuXLcear11PYOLXk" False) (C1 (MetaCons "ExecutionRequest'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_erFunction") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_erSessionState") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_erDevMode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_erParameters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [JSONValue]))))))

executionRequest :: ExecutionRequest Source #

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

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

erFunction :: Lens' ExecutionRequest (Maybe Text) Source #

The name of the function to execute in the given script. The name does not include parentheses or parameters.

erSessionState :: Lens' ExecutionRequest (Maybe Text) Source #

This field is not used.

erDevMode :: Lens' ExecutionRequest (Maybe Bool) Source #

If `true` and the user is an owner of the script, the script runs at the most recently saved version rather than the version deployed for use with the Execution API. Optional; default is `false`.

erParameters :: Lens' ExecutionRequest [JSONValue] Source #

The parameters to be passed to the function being executed. The type for each parameter should match the expected type in Apps Script. Parameters cannot be Apps Script-specific objects (such as a `Document` or `Calendar`); they can only be primitive types such as a `string`, `number`, `array`, `object`, or `boolean`. Optional.

StatusDetailsItem

data StatusDetailsItem Source #

Instances

Eq StatusDetailsItem Source # 
Data StatusDetailsItem Source # 

Methods

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

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

toConstr :: StatusDetailsItem -> Constr #

dataTypeOf :: StatusDetailsItem -> DataType #

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

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

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

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

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

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

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

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

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

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

Show StatusDetailsItem Source # 
Generic StatusDetailsItem Source # 
ToJSON StatusDetailsItem Source # 
FromJSON StatusDetailsItem Source # 
type Rep StatusDetailsItem Source # 
type Rep StatusDetailsItem = D1 (MetaData "StatusDetailsItem" "Network.Google.Script.Types.Product" "gogol-script-0.2.0-1ojfgFuXLcear11PYOLXk" True) (C1 (MetaCons "StatusDetailsItem'" PrefixI True) (S1 (MetaSel (Just Symbol "_sdiAddtional") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (HashMap Text JSONValue))))

statusDetailsItem Source #

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

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

sdiAddtional :: Lens' StatusDetailsItem (HashMap Text JSONValue) Source #

Properties of the object. Contains field 'type with type URL.

ScriptStackTraceElement

data ScriptStackTraceElement Source #

A stack trace through the script that shows where the execution failed.

See: scriptStackTraceElement smart constructor.

Instances

Eq ScriptStackTraceElement Source # 
Data ScriptStackTraceElement Source # 

Methods

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

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

toConstr :: ScriptStackTraceElement -> Constr #

dataTypeOf :: ScriptStackTraceElement -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ScriptStackTraceElement Source # 
Generic ScriptStackTraceElement Source # 
ToJSON ScriptStackTraceElement Source # 
FromJSON ScriptStackTraceElement Source # 
type Rep ScriptStackTraceElement Source # 
type Rep ScriptStackTraceElement = D1 (MetaData "ScriptStackTraceElement" "Network.Google.Script.Types.Product" "gogol-script-0.2.0-1ojfgFuXLcear11PYOLXk" False) (C1 (MetaCons "ScriptStackTraceElement'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ssteFunction") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_ssteLineNumber") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))))))

scriptStackTraceElement :: ScriptStackTraceElement Source #

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

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

ssteFunction :: Lens' ScriptStackTraceElement (Maybe Text) Source #

The name of the function that failed.

ssteLineNumber :: Lens' ScriptStackTraceElement (Maybe Int32) Source #

The line number where the script failed.

ExecutionError

data ExecutionError Source #

An object that provides information about the nature of an error in the Apps Script Execution API. If an `run` call succeeds but the script function (or Apps Script itself) throws an exception, the response body's `error` field will contain a `Status` object. The `Status` object's `details` field will contain an array with a single one of these `ExecutionError` objects.

See: executionError smart constructor.

Instances

Eq ExecutionError Source # 
Data ExecutionError Source # 

Methods

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

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

toConstr :: ExecutionError -> Constr #

dataTypeOf :: ExecutionError -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ExecutionError Source # 
Generic ExecutionError Source # 

Associated Types

type Rep ExecutionError :: * -> * #

ToJSON ExecutionError Source # 
FromJSON ExecutionError Source # 
type Rep ExecutionError Source # 
type Rep ExecutionError = D1 (MetaData "ExecutionError" "Network.Google.Script.Types.Product" "gogol-script-0.2.0-1ojfgFuXLcear11PYOLXk" False) (C1 (MetaCons "ExecutionError'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_eeScriptStackTraceElements") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [ScriptStackTraceElement]))) ((:*:) (S1 (MetaSel (Just Symbol "_eeErrorType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_eeErrorMessage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))

executionError :: ExecutionError Source #

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

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

eeScriptStackTraceElements :: Lens' ExecutionError [ScriptStackTraceElement] Source #

An array of objects that provide a stack trace through the script to show where the execution failed, with the deepest call first.

eeErrorType :: Lens' ExecutionError (Maybe Text) Source #

The error type, for example `TypeError` or `ReferenceError`. If the error type is unavailable, this field is not included.

eeErrorMessage :: Lens' ExecutionError (Maybe Text) Source #

The error message thrown by Apps Script, usually localized into the user's language.

OperationMetadata

data OperationMetadata Source #

This field is not used.

See: operationMetadata smart constructor.

Instances

Eq OperationMetadata Source # 
Data OperationMetadata Source # 

Methods

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

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

toConstr :: OperationMetadata -> Constr #

dataTypeOf :: OperationMetadata -> DataType #

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

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

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

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

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

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

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

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

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

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

Show OperationMetadata Source # 
Generic OperationMetadata Source # 
ToJSON OperationMetadata Source # 
FromJSON OperationMetadata Source # 
type Rep OperationMetadata Source # 
type Rep OperationMetadata = D1 (MetaData "OperationMetadata" "Network.Google.Script.Types.Product" "gogol-script-0.2.0-1ojfgFuXLcear11PYOLXk" True) (C1 (MetaCons "OperationMetadata'" PrefixI True) (S1 (MetaSel (Just Symbol "_omAddtional") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (HashMap Text JSONValue))))

operationMetadata Source #

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

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

omAddtional :: Lens' OperationMetadata (HashMap Text JSONValue) Source #

Properties of the object. Contains field 'type with type URL.

OperationResponse

data OperationResponse Source #

If the script function returns successfully, this field will contain an `ExecutionResponse` object with the function's return value as the object's `result` field.

See: operationResponse smart constructor.

Instances

Eq OperationResponse Source # 
Data OperationResponse Source # 

Methods

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

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

toConstr :: OperationResponse -> Constr #

dataTypeOf :: OperationResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show OperationResponse Source # 
Generic OperationResponse Source # 
ToJSON OperationResponse Source # 
FromJSON OperationResponse Source # 
type Rep OperationResponse Source # 
type Rep OperationResponse = D1 (MetaData "OperationResponse" "Network.Google.Script.Types.Product" "gogol-script-0.2.0-1ojfgFuXLcear11PYOLXk" True) (C1 (MetaCons "OperationResponse'" PrefixI True) (S1 (MetaSel (Just Symbol "_orAddtional") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (HashMap Text JSONValue))))

operationResponse Source #

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

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

orAddtional :: Lens' OperationResponse (HashMap Text JSONValue) Source #

Properties of the object. Contains field 'type with type URL.

ExecutionResponse

data ExecutionResponse Source #

An object that provides the return value of a function executed through the Apps Script Execution API. If an `run` call succeeds and the script function returns successfully, the response body's `response` field will contain this `ExecutionResponse` object.

See: executionResponse smart constructor.

Instances

Eq ExecutionResponse Source # 
Data ExecutionResponse Source # 

Methods

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

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

toConstr :: ExecutionResponse -> Constr #

dataTypeOf :: ExecutionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ExecutionResponse Source # 
Generic ExecutionResponse Source # 
ToJSON ExecutionResponse Source # 
FromJSON ExecutionResponse Source # 
type Rep ExecutionResponse Source # 
type Rep ExecutionResponse = D1 (MetaData "ExecutionResponse" "Network.Google.Script.Types.Product" "gogol-script-0.2.0-1ojfgFuXLcear11PYOLXk" False) (C1 (MetaCons "ExecutionResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_erStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_erResult") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe JSONValue)))))

executionResponse :: ExecutionResponse Source #

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

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

erResult :: Lens' ExecutionResponse (Maybe JSONValue) Source #

The return value of the script function. The type will match the type returned in Apps Script. Functions called through the Execution API cannot return Apps Script-specific objects (such as a `Document` or `Calendar`); they can only return primitive types such as a `string`, `number`, `array`, `object`, or `boolean`.