Class CoursesResource.TopicsResource
The "topics" collection of methods.
Inherited Members
Namespace: Google.Apis.Classroom.v1
Assembly: Google.Apis.Classroom.v1.dll
Syntax
public class CoursesResource.TopicsResource
Constructors
TopicsResource(IClientService)
Constructs a new resource.
Declaration
public TopicsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(Topic, string)
Creates a topic. This method returns the following error codes: * PERMISSION_DENIED
if the requesting
user is not permitted to access the requested course, create a topic in the requested course, or for
access errors. * INVALID_ARGUMENT
if the request is malformed. * NOT_FOUND
if the requested course
does not exist.
Declaration
public virtual CoursesResource.TopicsResource.CreateRequest Create(Topic body, string courseId)
Parameters
Type | Name | Description |
---|---|---|
Topic | body | The body of the request. |
string | courseId | Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. |
Returns
Type | Description |
---|---|
CoursesResource.TopicsResource.CreateRequest |
Delete(string, string)
Deletes a topic. This method returns the following error codes: * PERMISSION_DENIED
if the requesting
user is not allowed to delete the requested topic or for access errors. * FAILED_PRECONDITION
if the
requested topic has already been deleted. * NOT_FOUND
if no course or topic exists with the requested
ID.
Declaration
public virtual CoursesResource.TopicsResource.DeleteRequest Delete(string courseId, string id)
Parameters
Type | Name | Description |
---|---|---|
string | courseId | Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. |
string | id | Identifier of the topic to delete. |
Returns
Type | Description |
---|---|
CoursesResource.TopicsResource.DeleteRequest |
Get(string, string)
Returns a topic. This method returns the following error codes: * PERMISSION_DENIED
if the requesting
user is not permitted to access the requested course or topic, or for access errors. *
INVALID_ARGUMENT
if the request is malformed. * NOT_FOUND
if the requested course or topic does not
exist.
Declaration
public virtual CoursesResource.TopicsResource.GetRequest Get(string courseId, string id)
Parameters
Type | Name | Description |
---|---|---|
string | courseId | Identifier of the course. |
string | id | Identifier of the topic. |
Returns
Type | Description |
---|---|
CoursesResource.TopicsResource.GetRequest |
List(string)
Returns the list of topics that the requester is permitted to view. This method returns the following
error codes: * PERMISSION_DENIED
if the requesting user is not permitted to access the requested
course or for access errors. * INVALID_ARGUMENT
if the request is malformed. * NOT_FOUND
if the
requested course does not exist.
Declaration
public virtual CoursesResource.TopicsResource.ListRequest List(string courseId)
Parameters
Type | Name | Description |
---|---|---|
string | courseId | Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. |
Returns
Type | Description |
---|---|
CoursesResource.TopicsResource.ListRequest |
Patch(Topic, string, string)
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
Declaration
public virtual CoursesResource.TopicsResource.PatchRequest Patch(Topic body, string courseId, string id)
Parameters
Type | Name | Description |
---|---|---|
Topic | body | The body of the request. |
string | courseId | Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. |
string | id | Identifier of the topic. |
Returns
Type | Description |
---|---|
CoursesResource.TopicsResource.PatchRequest |