Class WriteSandboxFileRequest
Implements
Inherited Members
Namespace: Oci.GenerativeaisandboxService.Requests
Assembly: OCI.DotNetSDK.Generativeaisandbox.dll
Syntax
public class WriteSandboxFileRequest : IOciRequest
Examples
Click here to see an example of how to use WriteSandboxFile request.
Properties
FilePath
Declaration
[Required(ErrorMessage = "FilePath is required.")]
[HttpConverter(TargetEnum.Query, "filePath")]
public string FilePath { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Absolute path under /workspace where the file will be written. |
Remarks
Required
OpcContentSha256
Declaration
[HttpConverter(TargetEnum.Header, "opc-content-sha256")]
public string OpcContentSha256 { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Optional base64-encoded SHA-256 checksum of the sandbox file content. When supported by the sandbox runtime, the runtime validates the uploaded file content against this value and rejects the request if the values do not match. |
OpcRequestId
Declaration
[HttpConverter(TargetEnum.Header, "opc-request-id")]
public string OpcRequestId { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash. |
OpcRetryToken
Declaration
[HttpConverter(TargetEnum.Header, "opc-retry-token")]
public string OpcRetryToken { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of running that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and removed from the system, then a retry of the original creation request might be rejected. |
SandboxId
Declaration
[Required(ErrorMessage = "SandboxId is required.")]
[HttpConverter(TargetEnum.Path, "sandboxId")]
public string SandboxId { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Sandbox identifier. Newly generated Sandbox IDs use |
Remarks
Required
WriteSandboxFileContentDetails
Declaration
[Required(ErrorMessage = "WriteSandboxFileContentDetails is required.")]
[HttpConverter(TargetEnum.Body)]
public Stream WriteSandboxFileContentDetails { get; set; }
Property Value
| Type | Description |
|---|---|
| Stream | Raw file bytes to write. |
Remarks
Required