public sealed class MetadataJobName : IResourceName, IEquatable<MetadataJobName>
Reference documentation and code samples for the Cloud Dataplex v1 API class MetadataJobName.
Resource name for the MetadataJob
resource.
Namespace
Google.Cloud.Dataplex.V1Assembly
Google.Cloud.Dataplex.V1.dll
Constructors
MetadataJobName(string, string, string)
public MetadataJobName(string projectId, string locationId, string metadataJobId)
Constructs a new instance of a MetadataJobName class from the component parts of pattern
projects/{project}/locations/{location}/metadataJobs/{metadataJob}
Parameters | |
---|---|
Name | Description |
projectId |
string The |
locationId |
string The |
metadataJobId |
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 |
MetadataJobId
public string MetadataJobId { get; }
The MetadataJob
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 MetadataJobName.ResourceNameType Type { get; }
The MetadataJobName.ResourceNameType of the contained resource name.
Property Value | |
---|---|
Type | Description |
MetadataJobNameResourceNameType |
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 locationId, string metadataJobId)
Formats the IDs into the string representation of this MetadataJobName with pattern
projects/{project}/locations/{location}/metadataJobs/{metadataJob}
.
Parameters | |
---|---|
Name | Description |
projectId |
string The |
locationId |
string The |
metadataJobId |
string The |
Returns | |
---|---|
Type | Description |
string |
The string representation of this MetadataJobName with pattern
|
FormatProjectLocationMetadataJob(string, string, string)
public static string FormatProjectLocationMetadataJob(string projectId, string locationId, string metadataJobId)
Formats the IDs into the string representation of this MetadataJobName with pattern
projects/{project}/locations/{location}/metadataJobs/{metadataJob}
.
Parameters | |
---|---|
Name | Description |
projectId |
string The |
locationId |
string The |
metadataJobId |
string The |
Returns | |
---|---|
Type | Description |
string |
The string representation of this MetadataJobName with pattern
|
FromProjectLocationMetadataJob(string, string, string)
public static MetadataJobName FromProjectLocationMetadataJob(string projectId, string locationId, string metadataJobId)
Creates a MetadataJobName with the pattern
projects/{project}/locations/{location}/metadataJobs/{metadataJob}
.
Parameters | |
---|---|
Name | Description |
projectId |
string The |
locationId |
string The |
metadataJobId |
string The |
Returns | |
---|---|
Type | Description |
MetadataJobName |
A new instance of MetadataJobName constructed from the provided ids. |
FromUnparsed(UnparsedResourceName)
public static MetadataJobName FromUnparsed(UnparsedResourceName unparsedResourceName)
Creates a MetadataJobName containing an unparsed resource name.
Parameter | |
---|---|
Name | Description |
unparsedResourceName |
UnparsedResourceName The unparsed resource name. Must not be |
Returns | |
---|---|
Type | Description |
MetadataJobName |
A new instance of MetadataJobName containing the provided
|
GetHashCode()
public override int GetHashCode()
Returns a hash code for this resource name.
Returns | |
---|---|
Type | Description |
int |
Parse(string)
public static MetadataJobName Parse(string metadataJobName)
Parses the given resource name string into a new MetadataJobName instance.
Parameter | |
---|---|
Name | Description |
metadataJobName |
string The resource name in string form. Must not be |
Returns | |
---|---|
Type | Description |
MetadataJobName |
The parsed MetadataJobName if successful. |
To parse successfully, the resource name must be formatted as one of the following:
projects/{project}/locations/{location}/metadataJobs/{metadataJob}
Parse(string, bool)
public static MetadataJobName Parse(string metadataJobName, bool allowUnparsed)
Parses the given resource name string into a new MetadataJobName instance; optionally allowing an unparseable resource name.
Parameters | |
---|---|
Name | Description |
metadataJobName |
string The resource name in string form. Must not be |
allowUnparsed |
bool If |
Returns | |
---|---|
Type | Description |
MetadataJobName |
The parsed MetadataJobName if successful. |
To parse successfully, the resource name must be formatted as one of the following:
projects/{project}/locations/{location}/metadataJobs/{metadataJob}
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 MetadataJobName)
public static bool TryParse(string metadataJobName, out MetadataJobName result)
Tries to parse the given resource name string into a new MetadataJobName instance.
Parameters | |
---|---|
Name | Description |
metadataJobName |
string The resource name in string form. Must not be |
result |
MetadataJobName When this method returns, the parsed MetadataJobName, or |
Returns | |
---|---|
Type | Description |
bool |
|
To parse successfully, the resource name must be formatted as one of the following:
projects/{project}/locations/{location}/metadataJobs/{metadataJob}
TryParse(string, bool, out MetadataJobName)
public static bool TryParse(string metadataJobName, bool allowUnparsed, out MetadataJobName result)
Tries to parse the given resource name string into a new MetadataJobName instance; optionally allowing an unparseable resource name.
Parameters | |
---|---|
Name | Description |
metadataJobName |
string The resource name in string form. Must not be |
allowUnparsed |
bool If |
result |
MetadataJobName When this method returns, the parsed MetadataJobName, or |
Returns | |
---|---|
Type | Description |
bool |
|
To parse successfully, the resource name must be formatted as one of the following:
projects/{project}/locations/{location}/metadataJobs/{metadataJob}
allowUnparsed
is true
.
Operators
operator ==(MetadataJobName, MetadataJobName)
public static bool operator ==(MetadataJobName a, MetadataJobName b)
Determines whether two specified resource names have the same value.
Parameters | |
---|---|
Name | Description |
a |
MetadataJobName The first resource name to compare, or null. |
b |
MetadataJobName The second resource name to compare, or null. |
Returns | |
---|---|
Type | Description |
bool |
true if the value of |
operator !=(MetadataJobName, MetadataJobName)
public static bool operator !=(MetadataJobName a, MetadataJobName b)
Determines whether two specified resource names have different values.
Parameters | |
---|---|
Name | Description |
a |
MetadataJobName The first resource name to compare, or null. |
b |
MetadataJobName The second resource name to compare, or null. |
Returns | |
---|---|
Type | Description |
bool |
true if the value of |