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