Class GeminiCorporaChunkBatchCreateRequest
- Namespace
- Uralstech.UGemini.CorporaAPI.Chunks
Creates multiple new Chunk resources. Response type is GeminiCorporaChunkBatchUpdateResponse.
public class GeminiCorporaChunkBatchCreateRequest : IGeminiPostRequest, IGeminiRequest
- Inheritance
-
objectGeminiCorporaChunkBatchCreateRequest
- Implements
- Extension Methods
Remarks
Only available in the beta API.
Constructors
GeminiCorporaChunkBatchCreateRequest(bool)
Creates a new GeminiCorporaChunkBatchCreateRequest.
public GeminiCorporaChunkBatchCreateRequest(bool useBetaApi = true)
Parameters
useBetaApiboolShould the request use the Beta API?
Remarks
Only available in the beta API.
Fields
ApiVersion
The API version to use.
public string ApiVersion
Field Value
- string
ParentDocumentId
Optional. The parent Document in which the Chunks will be created.
public GeminiCorpusDocumentId ParentDocumentId
Field Value
Remarks
If given, the parent field in every GeminiCorporaChunkBatchCreateRequestPart must match this value.
Requests
The request messages specifying the Chunks to create. A maximum of 100 Chunks can be created in a batch.
public GeminiCorporaChunkBatchCreateRequestPart[] Requests
Field Value
Properties
AuthMethod
The preferred authentication method.
public GeminiAuthMethod AuthMethod { get; set; }
Property Value
ContentType
The MIME type of the request content.
public string ContentType { get; }
Property Value
- string
OAuthAccessToken
The OAuth access token to authenticate the request, if using OAuthAccessToken as AuthMethod.
public string OAuthAccessToken { get; set; }
Property Value
- string
Methods
GetEndpointUri(GeminiRequestMetadata)
Gets the URI to the API endpoint.
public string GetEndpointUri(GeminiRequestMetadata metadata)
Parameters
metadataGeminiRequestMetadataThe metadata of the request to be carried out on the URI.
Returns
- string
The URI.
GetUtf8EncodedData()
Converts the request object to a UTF-8 encoded string.
public string GetUtf8EncodedData()
Returns
- string
The string data.