Vertex AI v1 API - Class AnalyzedInvocationName (3.79.0)

public sealed class AnalyzedInvocationName : IResourceName, IEquatable<AnalyzedInvocationName>

Reference documentation and code samples for the Vertex AI v1 API class AnalyzedInvocationName.

Resource name for the AnalyzedInvocation resource.

Inheritance

object > AnalyzedInvocationName

Namespace

Google.Cloud.AIPlatform.V1

Assembly

Google.Cloud.AIPlatform.V1.dll

Constructors

AnalyzedInvocationName(string, string, string, string, string)

public AnalyzedInvocationName(string projectId, string locationId, string monitoredAgentId, string analyzedSessionId, string analyzedInvocationId)

Constructs a new instance of a AnalyzedInvocationName class from the component parts of pattern projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}/analyzedSessions/{analyzed_session}/analyzedInvocations/{analyzed_invocation}

Parameters
Name Description
projectId string

The Project ID. Must not be null or empty.

locationId string

The Location ID. Must not be null or empty.

monitoredAgentId string

The MonitoredAgent ID. Must not be null or empty.

analyzedSessionId string

The AnalyzedSession ID. Must not be null or empty.

analyzedInvocationId string

The AnalyzedInvocation ID. Must not be null or empty.

Properties

AnalyzedInvocationId

public string AnalyzedInvocationId { get; }

The AnalyzedInvocation ID. Will not be null, unless this instance contains an unparsed resource name.

Property Value
Type Description
string

AnalyzedSessionId

public string AnalyzedSessionId { get; }

The AnalyzedSession ID. Will not be null, unless this instance contains an unparsed resource name.

Property Value
Type Description
string

IsKnownPattern

public bool IsKnownPattern { get; }

Whether this instance contains a resource name with a known pattern.

Property Value
Type Description
bool

LocationId

public string LocationId { get; }

The Location ID. Will not be null, unless this instance contains an unparsed resource name.

Property Value
Type Description
string

MonitoredAgentId

public string MonitoredAgentId { get; }

The MonitoredAgent ID. Will not be null, unless this instance contains an unparsed resource name.

Property Value
Type Description
string

ProjectId

public string ProjectId { get; }

The Project ID. Will not be null, unless this instance contains an unparsed resource name.

Property Value
Type Description
string

Type

public AnalyzedInvocationName.ResourceNameType Type { get; }

The AnalyzedInvocationName.ResourceNameType of the contained resource name.

Property Value
Type Description
AnalyzedInvocationNameResourceNameType

UnparsedResource

public UnparsedResourceName UnparsedResource { get; }

The contained UnparsedResourceName. Only non-null if this instance contains an unparsed resource name.

Property Value
Type Description
UnparsedResourceName

Methods

Format(string, string, string, string, string)

public static string Format(string projectId, string locationId, string monitoredAgentId, string analyzedSessionId, string analyzedInvocationId)

Formats the IDs into the string representation of this AnalyzedInvocationName with pattern projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}/analyzedSessions/{analyzed_session}/analyzedInvocations/{analyzed_invocation} .

Parameters
Name Description
projectId string

The Project ID. Must not be null or empty.

locationId string

The Location ID. Must not be null or empty.

monitoredAgentId string

The MonitoredAgent ID. Must not be null or empty.

analyzedSessionId string

The AnalyzedSession ID. Must not be null or empty.

analyzedInvocationId string

The AnalyzedInvocation ID. Must not be null or empty.

Returns
Type Description
string

The string representation of this AnalyzedInvocationName with pattern projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}/analyzedSessions/{analyzed_session}/analyzedInvocations/{analyzed_invocation} .

FormatProjectLocationMonitoredAgentAnalyzedSessionAnalyzedInvocation(string, string, string, string, string)

public static string FormatProjectLocationMonitoredAgentAnalyzedSessionAnalyzedInvocation(string projectId, string locationId, string monitoredAgentId, string analyzedSessionId, string analyzedInvocationId)

Formats the IDs into the string representation of this AnalyzedInvocationName with pattern projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}/analyzedSessions/{analyzed_session}/analyzedInvocations/{analyzed_invocation} .

Parameters
Name Description
projectId string

The Project ID. Must not be null or empty.

locationId string

The Location ID. Must not be null or empty.

monitoredAgentId string

The MonitoredAgent ID. Must not be null or empty.

analyzedSessionId string

The AnalyzedSession ID. Must not be null or empty.

analyzedInvocationId string

The AnalyzedInvocation ID. Must not be null or empty.

Returns
Type Description
string

The string representation of this AnalyzedInvocationName with pattern projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}/analyzedSessions/{analyzed_session}/analyzedInvocations/{analyzed_invocation} .

FromProjectLocationMonitoredAgentAnalyzedSessionAnalyzedInvocation(string, string, string, string, string)

public static AnalyzedInvocationName FromProjectLocationMonitoredAgentAnalyzedSessionAnalyzedInvocation(string projectId, string locationId, string monitoredAgentId, string analyzedSessionId, string analyzedInvocationId)

Creates a AnalyzedInvocationName with the pattern projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}/analyzedSessions/{analyzed_session}/analyzedInvocations/{analyzed_invocation} .

Parameters
Name Description
projectId string

The Project ID. Must not be null or empty.

locationId string

The Location ID. Must not be null or empty.

monitoredAgentId string

The MonitoredAgent ID. Must not be null or empty.

analyzedSessionId string

The AnalyzedSession ID. Must not be null or empty.

analyzedInvocationId string

The AnalyzedInvocation ID. Must not be null or empty.

Returns
Type Description
AnalyzedInvocationName

A new instance of AnalyzedInvocationName constructed from the provided ids.

FromUnparsed(UnparsedResourceName)

public static AnalyzedInvocationName FromUnparsed(UnparsedResourceName unparsedResourceName)

Creates a AnalyzedInvocationName containing an unparsed resource name.

Parameter
Name Description
unparsedResourceName UnparsedResourceName

The unparsed resource name. Must not be null.

Returns
Type Description
AnalyzedInvocationName

A new instance of AnalyzedInvocationName containing the provided unparsedResourceName.

GetHashCode()

public override int GetHashCode()

Returns a hash code for this resource name.

Returns
Type Description
int
Overrides

Parse(string)

public static AnalyzedInvocationName Parse(string analyzedInvocationName)

Parses the given resource name string into a new AnalyzedInvocationName instance.

Parameter
Name Description
analyzedInvocationName string

The resource name in string form. Must not be null.

Returns
Type Description
AnalyzedInvocationName

The parsed AnalyzedInvocationName if successful.

Remarks

To parse successfully, the resource name must be formatted as one of the following:

  • projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}/analyzedSessions/{analyzed_session}/analyzedInvocations/{analyzed_invocation}

Parse(string, bool)

public static AnalyzedInvocationName Parse(string analyzedInvocationName, bool allowUnparsed)

Parses the given resource name string into a new AnalyzedInvocationName instance; optionally allowing an unparseable resource name.

Parameters
Name Description
analyzedInvocationName string

The resource name in string form. Must not be null.

allowUnparsed bool

If true will successfully store an unparseable resource name into the UnparsedResource property; otherwise will throw an ArgumentException if an unparseable resource name is specified.

Returns
Type Description
AnalyzedInvocationName

The parsed AnalyzedInvocationName if successful.

Remarks

To parse successfully, the resource name must be formatted as one of the following:

  • projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}/analyzedSessions/{analyzed_session}/analyzedInvocations/{analyzed_invocation}

Or may be in any format if allowUnparsed is true.

ToString()

public override string ToString()

The string representation of the resource name.

Returns
Type Description
string

The string representation of the resource name.

Overrides

TryParse(string, out AnalyzedInvocationName)

public static bool TryParse(string analyzedInvocationName, out AnalyzedInvocationName result)

Tries to parse the given resource name string into a new AnalyzedInvocationName instance.

Parameters
Name Description
analyzedInvocationName string

The resource name in string form. Must not be null.

result AnalyzedInvocationName

When this method returns, the parsed AnalyzedInvocationName, or null if parsing failed.

Returns
Type Description
bool

true if the name was parsed successfully; false otherwise.

Remarks

To parse successfully, the resource name must be formatted as one of the following:

  • projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}/analyzedSessions/{analyzed_session}/analyzedInvocations/{analyzed_invocation}

TryParse(string, bool, out AnalyzedInvocationName)

public static bool TryParse(string analyzedInvocationName, bool allowUnparsed, out AnalyzedInvocationName result)

Tries to parse the given resource name string into a new AnalyzedInvocationName instance; optionally allowing an unparseable resource name.

Parameters
Name Description
analyzedInvocationName string

The resource name in string form. Must not be null.

allowUnparsed bool

If true will successfully store an unparseable resource name into the UnparsedResource property; otherwise will throw an ArgumentException if an unparseable resource name is specified.

result AnalyzedInvocationName

When this method returns, the parsed AnalyzedInvocationName, or null if parsing failed.

Returns
Type Description
bool

true if the name was parsed successfully; false otherwise.

Remarks

To parse successfully, the resource name must be formatted as one of the following:

  • projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}/analyzedSessions/{analyzed_session}/analyzedInvocations/{analyzed_invocation}

Or may be in any format if allowUnparsed is true.

Operators

operator ==(AnalyzedInvocationName, AnalyzedInvocationName)

public static bool operator ==(AnalyzedInvocationName a, AnalyzedInvocationName b)

Determines whether two specified resource names have the same value.

Parameters
Name Description
a AnalyzedInvocationName

The first resource name to compare, or null.

b AnalyzedInvocationName

The second resource name to compare, or null.

Returns
Type Description
bool

true if the value of a is the same as the value of b; otherwise, false.

operator !=(AnalyzedInvocationName, AnalyzedInvocationName)

public static bool operator !=(AnalyzedInvocationName a, AnalyzedInvocationName b)

Determines whether two specified resource names have different values.

Parameters
Name Description
a AnalyzedInvocationName

The first resource name to compare, or null.

b AnalyzedInvocationName

The second resource name to compare, or null.

Returns
Type Description
bool

true if the value of a is different from the value of b; otherwise, false.