gogol-classroom-0.5.0: Google Classroom 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.Classroom.Courses.Topics.Patch

Contents

Description

Updates one or more fields of a topic. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting developer project did not create the corresponding topic or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course or topic does not exist

See: Google Classroom API Reference for classroom.courses.topics.patch.

Synopsis

REST Resource

type CoursesTopicsPatchResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("topics" :> (Capture "id" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Topic :> Patch '[JSON] Topic)))))))))))) Source #

A resource alias for classroom.courses.topics.patch method which the CoursesTopicsPatch request conforms to.

Creating a Request

coursesTopicsPatch Source #

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

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

data CoursesTopicsPatch Source #

Updates one or more fields of a topic. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting developer project did not create the corresponding topic or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course or topic does not exist

See: coursesTopicsPatch smart constructor.

Instances
Eq CoursesTopicsPatch Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Courses.Topics.Patch

Data CoursesTopicsPatch Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Courses.Topics.Patch

Methods

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

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

toConstr :: CoursesTopicsPatch -> Constr #

dataTypeOf :: CoursesTopicsPatch -> DataType #

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

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

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

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

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

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

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

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

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

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

Show CoursesTopicsPatch Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Courses.Topics.Patch

Generic CoursesTopicsPatch Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Courses.Topics.Patch

Associated Types

type Rep CoursesTopicsPatch :: Type -> Type #

GoogleRequest CoursesTopicsPatch Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Courses.Topics.Patch

Associated Types

type Rs CoursesTopicsPatch :: Type #

type Scopes CoursesTopicsPatch :: [Symbol] #

type Rep CoursesTopicsPatch Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Courses.Topics.Patch

type Scopes CoursesTopicsPatch Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Courses.Topics.Patch

type Scopes CoursesTopicsPatch = "https://www.googleapis.com/auth/classroom.topics" ': ([] :: [Symbol])
type Rs CoursesTopicsPatch Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Courses.Topics.Patch

Request Lenses

ctpUploadProtocol :: Lens' CoursesTopicsPatch (Maybe Text) Source #

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

ctpUpdateMask :: Lens' CoursesTopicsPatch (Maybe GFieldMask) Source #

Mask that identifies which fields on the topic to update. This field is required to do an update. The update fails if invalid fields are specified. If a field supports empty values, it can be cleared by specifying it in the update mask and not in the Topic object. If a field that does not support empty values is included in the update mask and not set in the Topic object, an `INVALID_ARGUMENT` error will be returned. The following fields may be specified: * `name`

ctpCourseId :: Lens' CoursesTopicsPatch Text Source #

Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias.

ctpUploadType :: Lens' CoursesTopicsPatch (Maybe Text) Source #

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

ctpPayload :: Lens' CoursesTopicsPatch Topic Source #

Multipart request metadata.

ctpId :: Lens' CoursesTopicsPatch Text Source #

Identifier of the topic.