public sealed class RunName : IResourceName, IEquatable<RunName>
Resource name for the Run
resource.
Namespace
Google.Cloud.BigQuery.DataTransfer.V1Assembly
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 | |
---|---|
Name | Description |
projectId | String The |
transferConfigId | 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 |
Boolean |
LocationId
public string LocationId { get; }
The Location
ID. May be null
, depending on which resource name is contained by this instance.
Property Value | |
---|---|
Type | Description |
String |
ProjectId
public string ProjectId { get; }
The Project
ID. May be null
, depending on which resource name is contained by this instance.
Property Value | |
---|---|
Type | Description |
String |
RunId
public string RunId { get; }
The Run
ID. May be null
, depending on which resource name is contained by this instance.
Property Value | |
---|---|
Type | Description |
String |
TransferConfigId
public string TransferConfigId { get; }
The TransferConfig
ID. May be null
, depending on which resource name is contained by this
instance.
Property Value | |
---|---|
Type | Description |
String |
Type
public RunName.ResourceNameType Type { get; }
The RunName.ResourceNameType of the contained resource name.
Property Value | |
---|---|
Type | Description |
RunName.ResourceNameType |
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)
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 | |
---|---|
Name | Description |
projectId | String The |
transferConfigId | String The |
runId | String The |
Returns | |
---|---|
Type | Description |
String | The string representation of this RunName with pattern
|
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 | |
---|---|
Name | Description |
projectId | String The |
locationId | String The |
transferConfigId | String The |
runId | String The |
Returns | |
---|---|
Type | Description |
String | The string representation of this RunName with pattern
|
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 | |
---|---|
Name | Description |
projectId | String The |
transferConfigId | String The |
runId | String The |
Returns | |
---|---|
Type | Description |
String | The string representation of this RunName with pattern
|
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 | |
---|---|
Name | Description |
projectId | String The |
locationId | String The |
transferConfigId | String The |
runId | String The |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
projectId | String The |
transferConfigId | 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 |
Int32 |
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}/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 | |
---|---|
Name | Description |
runName | String The resource name in string form. Must not be |
allowUnparsed | Boolean 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}/transferConfigs/{transfer_config}/runs/{run}
-
projects/{project}/locations/{location}/transferConfigs/{transfer_config}/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 |
Boolean |
|
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 | |
---|---|
Name | Description |
runName | String The resource name in string form. Must not be |
allowUnparsed | Boolean If |
result | RunName When this method returns, the parsed RunName, or |
Returns | |
---|---|
Type | Description |
Boolean |
|
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}
allowUnparsed
is true
.
Operators
Equality(RunName, RunName)
public static bool operator ==(RunName a, RunName b)
Parameters | |
---|---|
Name | Description |
a | RunName |
b | RunName |
Returns | |
---|---|
Type | Description |
Boolean |
Inequality(RunName, RunName)
public static bool operator !=(RunName a, RunName b)
Parameters | |
---|---|
Name | Description |
a | RunName |
b | RunName |
Returns | |
---|---|
Type | Description |
Boolean |