Class CoursesResource.TopicsResource
The "topics" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.Classroom.v1
Assembly: Google.Apis.Classroom.v1.dll
Syntax
public class 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. |
| System.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 |
|---|---|---|
| System.String | courseId | Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. |
| System.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 |
|---|---|---|
| System.String | courseId | Identifier of the course. |
| System.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 |
|---|---|---|
| System.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. |
| System.String | courseId | Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. |
| System.String | id | Identifier of the topic. |
Returns
| Type | Description |
|---|---|
| CoursesResource.TopicsResource.PatchRequest |