public sealed class WarmPoolName : IResourceName, IEquatable<WarmPoolName>Reference documentation and code samples for the Infrastructure Manager v1 API class WarmPoolName.
Resource name for the WarmPool resource.
Namespace
Google.Cloud.Config.V1Assembly
Google.Cloud.Config.V1.dll
Constructors
WarmPoolName(string, string, string)
public WarmPoolName(string projectId, string locationId, string warmPoolId)Constructs a new instance of a WarmPoolName class from the component parts of pattern
projects/{project}/locations/{location}/warmPools/{warm_pool}
| Parameters | |
|---|---|
| Name | Description |
projectId |
stringThe |
locationId |
stringThe |
warmPoolId |
stringThe |
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 |
|
Type
public WarmPoolName.ResourceNameType Type { get; }The WarmPoolName.ResourceNameType of the contained resource name.
| Property Value | |
|---|---|
| Type | Description |
WarmPoolNameResourceNameType |
|
UnparsedResource
public UnparsedResourceName UnparsedResource { get; }The contained UnparsedResourceName. Only non-null if this instance contains an
unparsed resource name.
| Property Value | |
|---|---|
| Type | Description |
UnparsedResourceName |
|
WarmPoolId
public string WarmPoolId { get; }The WarmPool ID. Will not be null, unless this instance contains an unparsed resource name.
| Property Value | |
|---|---|
| Type | Description |
string |
|
Methods
Format(string, string, string)
public static string Format(string projectId, string locationId, string warmPoolId)Formats the IDs into the string representation of this WarmPoolName with pattern
projects/{project}/locations/{location}/warmPools/{warm_pool}.
| Parameters | |
|---|---|
| Name | Description |
projectId |
stringThe |
locationId |
stringThe |
warmPoolId |
stringThe |
| Returns | |
|---|---|
| Type | Description |
string |
The string representation of this WarmPoolName with pattern
|
FormatProjectLocationWarmPool(string, string, string)
public static string FormatProjectLocationWarmPool(string projectId, string locationId, string warmPoolId)Formats the IDs into the string representation of this WarmPoolName with pattern
projects/{project}/locations/{location}/warmPools/{warm_pool}.
| Parameters | |
|---|---|
| Name | Description |
projectId |
stringThe |
locationId |
stringThe |
warmPoolId |
stringThe |
| Returns | |
|---|---|
| Type | Description |
string |
The string representation of this WarmPoolName with pattern
|
FromProjectLocationWarmPool(string, string, string)
public static WarmPoolName FromProjectLocationWarmPool(string projectId, string locationId, string warmPoolId)Creates a WarmPoolName with the pattern
projects/{project}/locations/{location}/warmPools/{warm_pool}.
| Parameters | |
|---|---|
| Name | Description |
projectId |
stringThe |
locationId |
stringThe |
warmPoolId |
stringThe |
| Returns | |
|---|---|
| Type | Description |
WarmPoolName |
A new instance of WarmPoolName constructed from the provided ids. |
FromUnparsed(UnparsedResourceName)
public static WarmPoolName FromUnparsed(UnparsedResourceName unparsedResourceName)Creates a WarmPoolName containing an unparsed resource name.
| Parameter | |
|---|---|
| Name | Description |
unparsedResourceName |
UnparsedResourceNameThe unparsed resource name. Must not be |
| Returns | |
|---|---|
| Type | Description |
WarmPoolName |
A new instance of WarmPoolName containing the provided |
GetHashCode()
public override int GetHashCode()Returns a hash code for this resource name.
| Returns | |
|---|---|
| Type | Description |
int |
|
Parse(string)
public static WarmPoolName Parse(string warmPoolName)Parses the given resource name string into a new WarmPoolName instance.
| Parameter | |
|---|---|
| Name | Description |
warmPoolName |
stringThe resource name in string form. Must not be |
| Returns | |
|---|---|
| Type | Description |
WarmPoolName |
The parsed WarmPoolName if successful. |
To parse successfully, the resource name must be formatted as one of the following:
projects/{project}/locations/{location}/warmPools/{warm_pool}
Parse(string, bool)
public static WarmPoolName Parse(string warmPoolName, bool allowUnparsed)Parses the given resource name string into a new WarmPoolName instance; optionally allowing an unparseable resource name.
| Parameters | |
|---|---|
| Name | Description |
warmPoolName |
stringThe resource name in string form. Must not be |
allowUnparsed |
boolIf |
| Returns | |
|---|---|
| Type | Description |
WarmPoolName |
The parsed WarmPoolName if successful. |
To parse successfully, the resource name must be formatted as one of the following:
projects/{project}/locations/{location}/warmPools/{warm_pool}
Or may be in any format if 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 WarmPoolName)
public static bool TryParse(string warmPoolName, out WarmPoolName result)Tries to parse the given resource name string into a new WarmPoolName instance.
| Parameters | |
|---|---|
| Name | Description |
warmPoolName |
stringThe resource name in string form. Must not be |
result |
WarmPoolNameWhen this method returns, the parsed WarmPoolName, or |
| Returns | |
|---|---|
| Type | Description |
bool |
|
To parse successfully, the resource name must be formatted as one of the following:
projects/{project}/locations/{location}/warmPools/{warm_pool}
TryParse(string, bool, out WarmPoolName)
public static bool TryParse(string warmPoolName, bool allowUnparsed, out WarmPoolName result)Tries to parse the given resource name string into a new WarmPoolName instance; optionally allowing an unparseable resource name.
| Parameters | |
|---|---|
| Name | Description |
warmPoolName |
stringThe resource name in string form. Must not be |
allowUnparsed |
boolIf |
result |
WarmPoolNameWhen this method returns, the parsed WarmPoolName, or |
| Returns | |
|---|---|
| Type | Description |
bool |
|
To parse successfully, the resource name must be formatted as one of the following:
projects/{project}/locations/{location}/warmPools/{warm_pool}
Or may be in any format if allowUnparsed is true.
Operators
operator ==(WarmPoolName, WarmPoolName)
public static bool operator ==(WarmPoolName a, WarmPoolName b)Determines whether two specified resource names have the same value.
| Parameters | |
|---|---|
| Name | Description |
a |
WarmPoolNameThe first resource name to compare, or null. |
b |
WarmPoolNameThe second resource name to compare, or null. |
| Returns | |
|---|---|
| Type | Description |
bool |
true if the value of |
operator !=(WarmPoolName, WarmPoolName)
public static bool operator !=(WarmPoolName a, WarmPoolName b)Determines whether two specified resource names have different values.
| Parameters | |
|---|---|
| Name | Description |
a |
WarmPoolNameThe first resource name to compare, or null. |
b |
WarmPoolNameThe second resource name to compare, or null. |
| Returns | |
|---|---|
| Type | Description |
bool |
true if the value of |