Class MediaResource
The "media" collection of methods.
Inherited Members
Namespace: Google.Apis.Aiplatform.v1beta1
Assembly: Google.Apis.Aiplatform.v1beta1.dll
Syntax
public class MediaResource
Constructors
MediaResource(IClientService)
Constructs a new resource.
Declaration
public MediaResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Upload(GoogleCloudAiplatformV1beta1UploadRagFileRequest, string)
Upload a file into a RagCorpus.
Declaration
public virtual MediaResource.UploadRequest Upload(GoogleCloudAiplatformV1beta1UploadRagFileRequest body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleCloudAiplatformV1beta1UploadRagFileRequest | body | The body of the request. |
| string | parent | Required. The name of the RagCorpus resource into which to upload the file. Format:
|
Returns
| Type | Description |
|---|---|
| MediaResource.UploadRequest |
Upload(GoogleCloudAiplatformV1beta1UploadRagFileRequest, string, Stream, string)
Upload a file into a RagCorpus.
Declaration
public virtual MediaResource.UploadMediaUpload Upload(GoogleCloudAiplatformV1beta1UploadRagFileRequest body, string parent, Stream stream, string contentType)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleCloudAiplatformV1beta1UploadRagFileRequest | body | The body of the request. |
| string | parent | Required. The name of the RagCorpus resource into which to upload the file. Format:
|
| Stream | stream | The stream to upload. See remarks for further information. |
| string | contentType | The content type of the stream to upload. |
Returns
| Type | Description |
|---|---|
| MediaResource.UploadMediaUpload |
Remarks
Considerations regarding stream:
-
If
streamis seekable, then the stream position will be reset to0before reading commences. Ifstreamis not seekable, then it will be read from its current position -
Caller is responsible for maintaining the
streamopen until the upload is completed - Caller is responsible for closing the
stream