Class FilesResource.GenerateCseTokenRequest
Generates a CSE token which can be used to create or update CSE files.
Inheritance
FilesResource.GenerateCseTokenRequest
Inherited Members
Namespace: Google.Apis.Drive.v3
Assembly: Google.Apis.Drive.v3.dll
Syntax
public class FilesResource.GenerateCseTokenRequest : DriveBaseServiceRequest<GenerateCseTokenResponse>, IClientServiceRequest<GenerateCseTokenResponse>, IClientServiceRequest
Constructors
GenerateCseTokenRequest(IClientService)
Constructs a new GenerateCseToken request.
Declaration
public GenerateCseTokenRequest(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Properties
FileId
The ID of the file for which the JWT should be generated. If not provided, an id will be generated.
Declaration
[RequestParameter("fileId", RequestParameterType.Query)]
public virtual string FileId { get; set; }
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
Parent
The ID of the expected parent of the file. Used when generating a JWT for a new CSE file. If specified, the parent will be fetched, and if the parent is a shared drive item, the shared drive's policy will be used to determine the KACLS that should be used. It is invalid to specify both file_id and parent in a single request.
Declaration
[RequestParameter("parent", RequestParameterType.Query)]
public virtual string Parent { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Methods
InitParameters()
Initializes GenerateCseToken parameter list.
Declaration
protected override void InitParameters()