Show / Hide Table of Contents

Class DocumentsResource

The "documents" collection of methods.

Inheritance
object
DocumentsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.DeepReview.v1
Assembly: Google.Apis.DeepReview.v1.dll
Syntax
public class DocumentsResource

Constructors

DocumentsResource(IClientService)

Constructs a new resource.

Declaration
public DocumentsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Properties

Reviews

Gets the Reviews resource.

Declaration
public virtual DocumentsResource.ReviewsResource Reviews { get; }
Property Value
Type Description
DocumentsResource.ReviewsResource

Methods

Delete(string)

Deletes a document and all associated reviews and stored blobs.

Declaration
public virtual DocumentsResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
string name

Required. The resource name of the document to delete. Format: documents/{document}

Returns
Type Description
DocumentsResource.DeleteRequest

EstimateReviewCost(EstimateReviewCostRequest, string)

Estimates what a review of a document would cost on the caller's Gemini API key. The estimate comes from what past reviews with the same model and depth cost, adjusted to this document's size and repriced at the Gemini API's current list prices. It covers one review attempt that runs to completion, and doesn't include retries after errors.

Declaration
public virtual DocumentsResource.EstimateReviewCostRequest EstimateReviewCost(EstimateReviewCostRequest body, string document)
Parameters
Type Name Description
EstimateReviewCostRequest body

The body of the request.

string document

Required. The document to review. Format: documents/{document}

Returns
Type Description
DocumentsResource.EstimateReviewCostRequest

Get(string)

Retrieves document metadata and review history.

Declaration
public virtual DocumentsResource.GetRequest Get(string name)
Parameters
Type Name Description
string name

Required. The resource name of the document to retrieve. Format: documents/{document}

Returns
Type Description
DocumentsResource.GetRequest

List()

Lists documents for the authenticated caller with cursor pagination.

Declaration
public virtual DocumentsResource.ListRequest List()
Returns
Type Description
DocumentsResource.ListRequest
In this article
Back to top Generated by DocFX