Class CoursesResource.AliasesResource
The "aliases" collection of methods.
Inherited Members
Namespace: Google.Apis.Classroom.v1
Assembly: Google.Apis.Classroom.v1.dll
Syntax
public class CoursesResource.AliasesResource
Constructors
AliasesResource(IClientService)
Constructs a new resource.
Declaration
public AliasesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(CourseAlias, string)
Creates an alias for a course. This method returns the following error codes: * PERMISSION_DENIED
if
the requesting user is not permitted to create the alias or for access errors. * NOT_FOUND
if the
course does not exist. * ALREADY_EXISTS
if the alias already exists. * FAILED_PRECONDITION
if the
alias requested does not make sense for the requesting user or course (for example, if a user not in a
domain attempts to access a domain-scoped alias).
Declaration
public virtual CoursesResource.AliasesResource.CreateRequest Create(CourseAlias body, string courseId)
Parameters
Type | Name | Description |
---|---|---|
CourseAlias | body | The body of the request. |
string | courseId | Identifier of the course to alias. This identifier can be either the Classroom-assigned identifier or an alias. |
Returns
Type | Description |
---|---|
CoursesResource.AliasesResource.CreateRequest |
Delete(string, string)
Deletes an alias of a course. This method returns the following error codes: * PERMISSION_DENIED
if
the requesting user is not permitted to remove the alias or for access errors. * NOT_FOUND
if the
alias does not exist. * FAILED_PRECONDITION
if the alias requested does not make sense for the
requesting user or course (for example, if a user not in a domain attempts to delete a domain-scoped
alias).
Declaration
public virtual CoursesResource.AliasesResource.DeleteRequest Delete(string courseId, string alias)
Parameters
Type | Name | Description |
---|---|---|
string | courseId | Identifier of the course whose alias should be deleted. This identifier can be either the Classroom-assigned identifier or an alias. |
string | alias | Alias to delete. This may not be the Classroom-assigned identifier. |
Returns
Type | Description |
---|---|
CoursesResource.AliasesResource.DeleteRequest |
List(string)
Returns a list of aliases for a course. This method returns the following error codes: *
PERMISSION_DENIED
if the requesting user is not permitted to access the course or for access errors. *
NOT_FOUND
if the course does not exist.
Declaration
public virtual CoursesResource.AliasesResource.ListRequest List(string courseId)
Parameters
Type | Name | Description |
---|---|---|
string | courseId | The identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. |
Returns
Type | Description |
---|---|
CoursesResource.AliasesResource.ListRequest |