Class RunName (3.3.0)

public sealed class RunName : IResourceName, IEquatable<RunName>

Resource name for the Run resource.

Inheritance

Object > RunName

Namespace

Google.Cloud.BigQuery.DataTransfer.V1

Assembly

Google.Cloud.BigQuery.DataTransfer.V1.dll

Constructors

RunName(String, String, String)

public RunName(string projectId, string transferConfigId, string runId)

Constructs a new instance of a RunName class from the component parts of pattern projects/{project}/transferConfigs/{transfer_config}/runs/{run}

Parameters
NameDescription
projectIdString

The Project ID. Must not be null or empty.

transferConfigIdString

The TransferConfig ID. Must not be null or empty.

runIdString

The Run ID. Must not be null or empty.

Properties

IsKnownPattern

public bool IsKnownPattern { get; }

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

Property Value
TypeDescription
Boolean

LocationId

public string LocationId { get; }

The Location ID. May be null, depending on which resource name is contained by this instance.

Property Value
TypeDescription
String

ProjectId

public string ProjectId { get; }

The Project ID. May be null, depending on which resource name is contained by this instance.

Property Value
TypeDescription
String

RunId

public string RunId { get; }

The Run ID. May be null, depending on which resource name is contained by this instance.

Property Value
TypeDescription
String

TransferConfigId

public string TransferConfigId { get; }

The TransferConfig ID. May be null, depending on which resource name is contained by this instance.

Property Value
TypeDescription
String

Type

public RunName.ResourceNameType Type { get; }

The RunName.ResourceNameType of the contained resource name.

Property Value
TypeDescription
RunName.ResourceNameType

UnparsedResource

public UnparsedResourceName UnparsedResource { get; }

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

Property Value
TypeDescription
UnparsedResourceName

Methods

Format(String, String, String)

public static string Format(string projectId, string transferConfigId, string runId)

Formats the IDs into the string representation of this RunName with pattern projects/{project}/transferConfigs/{transfer_config}/runs/{run}.

Parameters
NameDescription
projectIdString

The Project ID. Must not be null or empty.

transferConfigIdString

The TransferConfig ID. Must not be null or empty.

runIdString

The Run ID. Must not be null or empty.

Returns
TypeDescription
String

The string representation of this RunName with pattern projects/{project}/transferConfigs/{transfer_config}/runs/{run}.

FormatProjectLocationTransferConfigRun(String, String, String, String)

public static string FormatProjectLocationTransferConfigRun(string projectId, string locationId, string transferConfigId, string runId)

Formats the IDs into the string representation of this RunName with pattern projects/{project}/locations/{location}/transferConfigs/{transfer_config}/runs/{run}.

Parameters
NameDescription
projectIdString

The Project ID. Must not be null or empty.

locationIdString

The Location ID. Must not be null or empty.

transferConfigIdString

The TransferConfig ID. Must not be null or empty.

runIdString

The Run ID. Must not be null or empty.

Returns
TypeDescription
String

The string representation of this RunName with pattern projects/{project}/locations/{location}/transferConfigs/{transfer_config}/runs/{run}.

FormatProjectTransferConfigRun(String, String, String)

public static string FormatProjectTransferConfigRun(string projectId, string transferConfigId, string runId)

Formats the IDs into the string representation of this RunName with pattern projects/{project}/transferConfigs/{transfer_config}/runs/{run}.

Parameters
NameDescription
projectIdString

The Project ID. Must not be null or empty.

transferConfigIdString

The TransferConfig ID. Must not be null or empty.

runIdString

The Run ID. Must not be null or empty.

Returns
TypeDescription
String

The string representation of this RunName with pattern projects/{project}/transferConfigs/{transfer_config}/runs/{run}.

FromProjectLocationTransferConfigRun(String, String, String, String)

public static RunName FromProjectLocationTransferConfigRun(string projectId, string locationId, string transferConfigId, string runId)

Creates a RunName with the pattern projects/{project}/locations/{location}/transferConfigs/{transfer_config}/runs/{run}.

Parameters
NameDescription
projectIdString

The Project ID. Must not be null or empty.

locationIdString

The Location ID. Must not be null or empty.

transferConfigIdString

The TransferConfig ID. Must not be null or empty.

runIdString

The Run ID. Must not be null or empty.

Returns
TypeDescription
RunName

A new instance of RunName constructed from the provided ids.

FromProjectTransferConfigRun(String, String, String)

public static RunName FromProjectTransferConfigRun(string projectId, string transferConfigId, string runId)

Creates a RunName with the pattern projects/{project}/transferConfigs/{transfer_config}/runs/{run}.

Parameters
NameDescription
projectIdString

The Project ID. Must not be null or empty.

transferConfigIdString

The TransferConfig ID. Must not be null or empty.

runIdString

The Run ID. Must not be null or empty.

Returns
TypeDescription
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
NameDescription
unparsedResourceNameUnparsedResourceName

The unparsed resource name. Must not be null.

Returns
TypeDescription
RunName

A new instance of RunName containing the provided unparsedResourceName.

GetHashCode()

public override int GetHashCode()

Returns a hash code for this resource name.

Returns
TypeDescription
Int32
Overrides

Parse(String)

public static RunName Parse(string runName)

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

Parameter
NameDescription
runNameString

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

Returns
TypeDescription
RunName

The parsed RunName if successful.

Remarks

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

  • projects/{project}/transferConfigs/{transfer_config}/runs/{run}
  • projects/{project}/locations/{location}/transferConfigs/{transfer_config}/runs/{run}

Parse(String, Boolean)

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
NameDescription
runNameString

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

allowUnparsedBoolean

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
TypeDescription
RunName

The parsed RunName if successful.

Remarks

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

  • projects/{project}/transferConfigs/{transfer_config}/runs/{run}
  • projects/{project}/locations/{location}/transferConfigs/{transfer_config}/runs/{run}
Or may be in any format if allowUnparsed is true.

ToString()

public override string ToString()

The string representation of the resource name.

Returns
TypeDescription
String

The string representation of the resource name.

Overrides

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
NameDescription
runNameString

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

resultRunName

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

Returns
TypeDescription
Boolean

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}/transferConfigs/{transfer_config}/runs/{run}
  • projects/{project}/locations/{location}/transferConfigs/{transfer_config}/runs/{run}

TryParse(String, Boolean, 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
NameDescription
runNameString

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

allowUnparsedBoolean

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.

resultRunName

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

Returns
TypeDescription
Boolean

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}/transferConfigs/{transfer_config}/runs/{run}
  • projects/{project}/locations/{location}/transferConfigs/{transfer_config}/runs/{run}
Or may be in any format if allowUnparsed is true.

Operators

Equality(RunName, RunName)

public static bool operator ==(RunName a, RunName b)
Parameters
NameDescription
aRunName
bRunName
Returns
TypeDescription
Boolean

Inequality(RunName, RunName)

public static bool operator !=(RunName a, RunName b)
Parameters
NameDescription
aRunName
bRunName
Returns
TypeDescription
Boolean