Class PermissionsResource.UpdateRequest
Updates a permission with patch semantics.
public class PermissionsResource.UpdateRequest : DriveBaseServiceRequest<Permission>
- Inheritance
-
PermissionsResource.UpdateRequest
- Inherited Members
Constructors
UpdateRequest(IClientService, Permission, string, string)
Constructs a new Update request.
public UpdateRequest(IClientService service, Permission body, string fileId, string permissionId)
Parameters
service
IClientServicebody
PermissionfileId
stringpermissionId
string
Properties
FileId
The ID of the file or shared drive.
public virtual string FileId { get; }
Property Value
HttpMethod
Gets the HTTP method.
public override string HttpMethod { get; }
Property Value
MethodName
Gets the method name.
public override string MethodName { get; }
Property Value
PermissionId
The ID of the permission.
public virtual string PermissionId { get; }
Property Value
RemoveExpiration
Whether to remove the expiration date.
public virtual bool? RemoveExpiration { get; set; }
Property Value
- bool?
RestPath
Gets the REST path.
public override string RestPath { get; }
Property Value
SupportsAllDrives
Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives.
public virtual bool? SupportsAllDrives { get; set; }
Property Value
- bool?
SupportsTeamDrives
Deprecated use supportsAllDrives instead.
public virtual bool? SupportsTeamDrives { get; set; }
Property Value
- bool?
TransferOwnership
Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect.
public virtual bool? TransferOwnership { get; set; }
Property Value
- bool?
UseDomainAdminAccess
Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs.
public virtual bool? UseDomainAdminAccess { get; set; }
Property Value
- bool?
Methods
GetBody()
Returns the body of the request.
protected override object GetBody()
Returns
InitParameters()
Initializes Update parameter list.
protected override void InitParameters()