public sealed class RunName : IResourceName, IEquatable<RunName>
Reference documentation and code samples for the Data Lineage v1 API class RunName.
Resource name for the Run
resource.
Namespace
GoogleCloudGoogle.Cloud.DataCatalogGoogle.Cloud.DataCatalog.LineageV1Assembly
Google.Cloud.DataCatalog.Lineage.V1.dll
Constructors
RunName(string, string, string, string)
public RunName(string projectId, string locationId, string processId, string runId)
Constructs a new instance of a RunName class from the component parts of pattern
projects/{project}/locations/{location}/processes/{process}/runs/{run}
Parameters | |
---|---|
Name | Description |
projectId | string The |
locationId | string The |
processId | string The |
runId | string The |
Properties
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 |
ProcessId
public string ProcessId { get; }
The Process
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 |
RunId
public string RunId { get; }
The Run
ID. Will not be null
, unless this instance contains an unparsed resource name.
Property Value | |
---|---|
Type | Description |
string |
Type
public RunName.ResourceNameType Type { get; }
The RunName.ResourceNameType of the contained resource name.
Property Value | |
---|---|
Type | Description |
RunNameResourceNameType |
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)
public static string Format(string projectId, string locationId, string processId, string runId)
Formats the IDs into the string representation of this RunName with pattern
projects/{project}/locations/{location}/processes/{process}/runs/{run}
.
Parameters | |
---|---|
Name | Description |
projectId | string The |
locationId | string The |
processId | string The |
runId | string The |
Returns | |
---|---|
Type | Description |
string | The string representation of this RunName with pattern
|
FormatProjectLocationProcessRun(string, string, string, string)
public static string FormatProjectLocationProcessRun(string projectId, string locationId, string processId, string runId)
Formats the IDs into the string representation of this RunName with pattern
projects/{project}/locations/{location}/processes/{process}/runs/{run}
.
Parameters | |
---|---|
Name | Description |
projectId | string The |
locationId | string The |
processId | string The |
runId | string The |
Returns | |
---|---|
Type | Description |
string | The string representation of this RunName with pattern
|
FromProjectLocationProcessRun(string, string, string, string)
public static RunName FromProjectLocationProcessRun(string projectId, string locationId, string processId, string runId)
Creates a RunName with the pattern
projects/{project}/locations/{location}/processes/{process}/runs/{run}
.
Parameters | |
---|---|
Name | Description |
projectId | string The |
locationId | string The |
processId | string The |
runId | string The |
Returns | |
---|---|
Type | Description |
RunName | A new instance of RunName constructed from the provided ids. |
FromUnparsed(UnparsedResourceName)
public static RunName FromUnparsed(UnparsedResourceName unparsedResourceName)
Creates a RunName containing an unparsed resource name.
Parameter | |
---|---|
Name | Description |
unparsedResourceName | UnparsedResourceName The unparsed resource name. Must not be |
Returns | |
---|---|
Type | Description |
RunName | A new instance of RunName containing the provided |
GetHashCode()
public override int GetHashCode()
Returns a hash code for this resource name.
Returns | |
---|---|
Type | Description |
int |
Parse(string)
public static RunName Parse(string runName)
Parses the given resource name string into a new RunName instance.
Parameter | |
---|---|
Name | Description |
runName | string The resource name in string form. Must not be |
Returns | |
---|---|
Type | Description |
RunName | The parsed RunName if successful. |
To parse successfully, the resource name must be formatted as one of the following:
projects/{project}/locations/{location}/processes/{process}/runs/{run}
Parse(string, bool)
public static RunName Parse(string runName, bool allowUnparsed)
Parses the given resource name string into a new RunName instance; optionally allowing an unparseable resource name.
Parameters | |
---|---|
Name | Description |
runName | string The resource name in string form. Must not be |
allowUnparsed | bool If |
Returns | |
---|---|
Type | Description |
RunName | The parsed RunName if successful. |
To parse successfully, the resource name must be formatted as one of the following:
projects/{project}/locations/{location}/processes/{process}/runs/{run}
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. |
TryParse(string, out RunName)
public static bool TryParse(string runName, out RunName result)
Tries to parse the given resource name string into a new RunName instance.
Parameters | |
---|---|
Name | Description |
runName | string The resource name in string form. Must not be |
result | RunName When this method returns, the parsed RunName, or |
Returns | |
---|---|
Type | Description |
bool |
|
To parse successfully, the resource name must be formatted as one of the following:
projects/{project}/locations/{location}/processes/{process}/runs/{run}
TryParse(string, bool, out RunName)
public static bool TryParse(string runName, bool allowUnparsed, out RunName result)
Tries to parse the given resource name string into a new RunName instance; optionally allowing an unparseable resource name.
Parameters | |
---|---|
Name | Description |
runName | string The resource name in string form. Must not be |
allowUnparsed | bool If |
result | RunName When this method returns, the parsed RunName, or |
Returns | |
---|---|
Type | Description |
bool |
|
To parse successfully, the resource name must be formatted as one of the following:
projects/{project}/locations/{location}/processes/{process}/runs/{run}
allowUnparsed
is true
.
Operators
operator ==(RunName, RunName)
public static bool operator ==(RunName a, RunName b)
Parameters | |
---|---|
Name | Description |
a | RunName |
b | RunName |
Returns | |
---|---|
Type | Description |
bool |
operator !=(RunName, RunName)
public static bool operator !=(RunName a, RunName b)
Parameters | |
---|---|
Name | Description |
a | RunName |
b | RunName |
Returns | |
---|---|
Type | Description |
bool |