Table of Contents

Class DeleteResourceJob

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll

The return value of delete operation.

public record DeleteResourceJob : IEquatable<DeleteResourceJob>
Inheritance
DeleteResourceJob
Implements
Inherited Members

Properties

Done

[JsonPropertyName("done")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public bool? Done { get; set; }

Property Value

bool?

Error

[JsonPropertyName("error")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public JobError? Error { get; set; }

Property Value

JobError

Name

[JsonPropertyName("name")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Name { get; set; }

Property Value

string

SdkHttpResponse

Used to retain the full HTTP response.

[JsonPropertyName("sdkHttpResponse")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public HttpResponse? SdkHttpResponse { get; set; }

Property Value

HttpResponse

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a DeleteResourceJob object.

public static DeleteResourceJob? FromJson(string jsonString, JsonSerializerOptions? options = null)

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

DeleteResourceJob

The deserialized DeleteResourceJob object, or null if deserialization fails.