Class CoursesResource.StudentGroupsResource.StudentGroupMembersResource.CreateRequest
Creates a student group member for a student group. This method returns the following error codes: *
PERMISSION_DENIED if the requesting user is not permitted to create the student group or member
for access errors. * NOT_FOUND if the student group does not exist or the user does not have
access to the student group. * ALREADY_EXISTS if the student group member already exists. *
FAILED_PRECONDITION if attempting to add a member to a student group that has reached its member
limit.
Inheritance
CoursesResource.StudentGroupsResource.StudentGroupMembersResource.CreateRequest
Inherited Members
Namespace: Google.Apis.Classroom.v1
Assembly: Google.Apis.Classroom.v1.dll
Syntax
public class CoursesResource.StudentGroupsResource.StudentGroupMembersResource.CreateRequest : ClassroomBaseServiceRequest<StudentGroupMember>, IClientServiceRequest<StudentGroupMember>, IClientServiceRequest
Constructors
CreateRequest(IClientService, StudentGroupMember, string, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, StudentGroupMember body, string courseId, string studentGroupId)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| StudentGroupMember | body | |
| string | courseId | |
| string | studentGroupId |
Properties
CourseId
Required. The identifier of the course.
Declaration
[RequestParameter("courseId", RequestParameterType.Path)]
public virtual string CourseId { get; }
Property Value
| Type | Description |
|---|---|
| string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
StudentGroupId
Required. The identifier of the student group.
Declaration
[RequestParameter("studentGroupId", RequestParameterType.Path)]
public virtual string StudentGroupId { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| object |
Overrides
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()