Class CoursesResource.AliasesResource.DeleteRequest
Deletes an alias of a course.
This method returns the following error codes:
PERMISSION_DENIEDif the requesting user is not permitted to remove the alias or for access errors.NOT_FOUNDif the alias does not exist. *FAILED_PRECONDITIONif 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).
Inheritance
System.Object
CoursesResource.AliasesResource.DeleteRequest
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Classroom.v1
Assembly: Google.Apis.Classroom.v1.dll
Syntax
public class DeleteRequest : ClassroomBaseServiceRequest<Empty>, IClientServiceRequest<Empty>, IClientServiceRequest
Constructors
DeleteRequest(IClientService, String, String)
Constructs a new Delete request.
Declaration
public DeleteRequest(IClientService service, string courseId, string alias)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| System.String | courseId | |
| System.String | alias |
Properties
Alias
Alias to delete. This may not be the Classroom-assigned identifier.
Declaration
[RequestParameter("alias", RequestParameterType.Path)]
public virtual string Alias { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
CourseId
Identifier of the course whose alias should be deleted. This identifier can be either the Classroom-assigned identifier or an alias.
Declaration
[RequestParameter("courseId", RequestParameterType.Path)]
public virtual string CourseId { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Classroom.v1.Data.Empty>.HttpMethod
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Classroom.v1.Data.Empty>.MethodName
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Classroom.v1.Data.Empty>.RestPath
Methods
InitParameters()
Initializes Delete parameter list.
Declaration
protected override void InitParameters()
Overrides
Google.Apis.Classroom.v1.ClassroomBaseServiceRequest<Google.Apis.Classroom.v1.Data.Empty>.InitParameters()