Table of Contents

Struct ResourceScope

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

Resource scope.

[JsonConverter(typeof(ResourceScopeConverter))]
public readonly record struct ResourceScope : IEquatable<ResourceScope>
Implements
Inherited Members

Properties

AllValues

public static IReadOnlyList<ResourceScope> AllValues { get; }

Property Value

IReadOnlyList<ResourceScope>

Collection

When setting base_url, this value configures resource scope to be the collection. The resource name will not include api version, project, or location. For example, if base_url is set to "https://aiplatform.googleapis.com", then the resource name for a Model would be "https://aiplatform.googleapis.com/publishers/google/models/gemini-3-pro-preview

public static ResourceScope Collection { get; }

Property Value

ResourceScope

Value

public string Value { get; }

Property Value

string

Methods

Equals(ResourceScope)

public bool Equals(ResourceScope other)

Parameters

other ResourceScope

Returns

bool

FromString(string)

public static ResourceScope FromString(string value)

Parameters

value string

Returns

ResourceScope

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

implicit operator ResourceScope(string)

public static implicit operator ResourceScope(string value)

Parameters

value string

Returns

ResourceScope