Struct ResourceScope
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
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
Value
public string Value { get; }
Property Value
Methods
Equals(ResourceScope)
public bool Equals(ResourceScope other)
Parameters
otherResourceScope
Returns
FromString(string)
public static ResourceScope FromString(string value)
Parameters
valuestring
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
implicit operator ResourceScope(string)
public static implicit operator ResourceScope(string value)
Parameters
valuestring