API Reference
GoogleDriveTemporaryContentLease
Tracks a publicly readable Drive file and its explicit cleanup result.
Inheritance
- Object
- GoogleDriveTemporaryContentLease
Remarks
The file has no automatic expiry or disposal lifecycle and remains public until GoogleDriveTemporaryContentLease.CleanupAsync deletes it successfully.
Usage
Explore 1 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 1
Methods
public async Task<GoogleDriveCleanupReport> CleanupAsync(CancellationToken cancellationToken = default) #Task<GoogleDriveCleanupReport>Attempts to delete the temporary file and returns the persistent cleanup result.
Parameters
- cancellationToken System.Threading.CancellationToken = default
public static async Task<GoogleDriveTemporaryContentLease> CreatePublicReadLeaseAsync(GoogleDriveClient client, Byte[] content, GoogleDriveUploadOptions options, TranslationReport? report = null, CancellationToken cancellationToken = default) #Task<GoogleDriveTemporaryContentLease>Uploads content, grants a non-discoverable public-reader permission, and returns an object for explicit cleanup.
Parameters
- client OfficeIMO.GoogleWorkspace.Drive.GoogleDriveClient
- content System.Byte[]
- options OfficeIMO.GoogleWorkspace.Drive.GoogleDriveUploadOptions
- report OfficeIMO.GoogleWorkspace.TranslationReport? = null
- cancellationToken System.Threading.CancellationToken = default
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
Properties
public GoogleDriveFile File { get; } #Gets metadata for the temporary Drive file.
public String PublicUri { get; } #Gets the public download URI exposed until explicit cleanup deletes the file successfully.
public GoogleDriveCleanupReport CleanupReport { get; } #Gets the cleanup report associated with this lease.