Class CoursesResource.CourseWorkResource.RubricsResource.CreateRequest
Creates a rubric. The requesting user and course owner must have rubrics creation capabilities. For
details, see licensing
requirements.
For further details, see Rubrics structure and known limitations.
This request must be made by the Google Cloud console of the OAuth client
ID used to create the parent course work item.
This method returns the following error codes: * PERMISSION_DENIED
if the requesting user isn't
permitted to create rubrics for course work in the requested course. * INTERNAL
if the request has
insufficient OAuth scopes. * INVALID_ARGUMENT
if the request is malformed and for the following
request error: * RubricCriteriaInvalidFormat
* NOT_FOUND
if the requested course or course work
don't exist or the user doesn't have access to the course or course work. * FAILED_PRECONDITION
for the following request error: * AttachmentNotVisible
Inheritance
Inherited Members
Namespace: Google.Apis.Classroom.v1
Assembly: Google.Apis.Classroom.v1.dll
Syntax
public class CoursesResource.CourseWorkResource.RubricsResource.CreateRequest : ClassroomBaseServiceRequest<Rubric>, IClientServiceRequest<Rubric>, IClientServiceRequest
Constructors
CreateRequest(IClientService, Rubric, string, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, Rubric body, string courseId, string courseWorkId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Rubric | body | |
string | courseId | |
string | courseWorkId |
Properties
CourseId
Required. Identifier of the course.
Declaration
[RequestParameter("courseId", RequestParameterType.Path)]
public virtual string CourseId { get; }
Property Value
Type | Description |
---|---|
string |
CourseWorkId
Required. Identifier of the course work.
Declaration
[RequestParameter("courseWorkId", RequestParameterType.Path)]
public virtual string CourseWorkId { 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
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()