Show / Hide Table of Contents

Class ParentsResource.InsertRequest

Adds a parent folder for a file.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<ParentReference>
DriveBaseServiceRequest<ParentReference>
ParentsResource.InsertRequest
Implements
IClientServiceRequest<ParentReference>
IClientServiceRequest
Inherited Members
DriveBaseServiceRequest<ParentReference>.Xgafv
DriveBaseServiceRequest<ParentReference>.AccessToken
DriveBaseServiceRequest<ParentReference>.Alt
DriveBaseServiceRequest<ParentReference>.Callback
DriveBaseServiceRequest<ParentReference>.Fields
DriveBaseServiceRequest<ParentReference>.Key
DriveBaseServiceRequest<ParentReference>.OauthToken
DriveBaseServiceRequest<ParentReference>.PrettyPrint
DriveBaseServiceRequest<ParentReference>.QuotaUser
DriveBaseServiceRequest<ParentReference>.UploadType
DriveBaseServiceRequest<ParentReference>.UploadProtocol
ClientServiceRequest<ParentReference>.Execute()
ClientServiceRequest<ParentReference>.ExecuteAsStream()
ClientServiceRequest<ParentReference>.ExecuteAsync()
ClientServiceRequest<ParentReference>.ExecuteAsync(CancellationToken)
ClientServiceRequest<ParentReference>.ExecuteAsStreamAsync()
ClientServiceRequest<ParentReference>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<ParentReference>.CreateRequest(bool?)
ClientServiceRequest<ParentReference>.GenerateRequestUri()
ClientServiceRequest<ParentReference>.GetDefaultETagAction(string)
ClientServiceRequest<ParentReference>.ETagAction
ClientServiceRequest<ParentReference>.ModifyRequest
ClientServiceRequest<ParentReference>.ValidateParameters
ClientServiceRequest<ParentReference>.ApiVersion
ClientServiceRequest<ParentReference>.RequestParameters
ClientServiceRequest<ParentReference>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Drive.v2
Assembly: Google.Apis.Drive.v2.dll
Syntax
public class ParentsResource.InsertRequest : DriveBaseServiceRequest<ParentReference>, IClientServiceRequest<ParentReference>, IClientServiceRequest

Constructors

InsertRequest(IClientService, ParentReference, string)

Constructs a new Insert request.

Declaration
public InsertRequest(IClientService service, ParentReference body, string fileId)
Parameters
Type Name Description
IClientService service
ParentReference body
string fileId

Properties

EnforceSingleParent

Deprecated: Adding files to multiple folders is no longer supported. Use shortcuts instead.

Declaration
[RequestParameter("enforceSingleParent", RequestParameterType.Query)]
public virtual bool? EnforceSingleParent { get; set; }
Property Value
Type Description
bool?

FileId

The ID of the file.

Declaration
[RequestParameter("fileId", RequestParameterType.Path)]
public virtual string FileId { get; }
Property Value
Type Description
string

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<ParentReference>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<ParentReference>.MethodName

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<ParentReference>.RestPath

SupportsAllDrives

Whether the requesting application supports both My Drives and shared drives.

Declaration
[RequestParameter("supportsAllDrives", RequestParameterType.Query)]
public virtual bool? SupportsAllDrives { get; set; }
Property Value
Type Description
bool?

SupportsTeamDrives

Deprecated: Use supportsAllDrives instead.

Declaration
[RequestParameter("supportsTeamDrives", RequestParameterType.Query)]
public virtual bool? SupportsTeamDrives { get; set; }
Property Value
Type Description
bool?

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
object
Overrides
ClientServiceRequest<ParentReference>.GetBody()

InitParameters()

Initializes Insert parameter list.

Declaration
protected override void InitParameters()
Overrides
DriveBaseServiceRequest<ParentReference>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX