public sealed class CaPoolName : IResourceName, IEquatable<CaPoolName>
Reference documentation and code samples for the Certificate Authority v1 API class CaPoolName.
Resource name for the CaPool
resource.
Namespace
Google.Cloud.Security.PrivateCA.V1Assembly
Google.Cloud.Security.PrivateCA.V1.dll
Constructors
CaPoolName(String, String, String)
public CaPoolName(string projectId, string locationId, string caPoolId)
Constructs a new instance of a CaPoolName class from the component parts of pattern
projects/{project}/locations/{location}/caPools/{ca_pool}
Parameters | |
---|---|
Name | Description |
projectId | String The |
locationId | String The |
caPoolId | String The |
Properties
CaPoolId
public string CaPoolId { get; }
The CaPool
ID. Will not be null
, unless this instance contains an unparsed resource name.
Property Value | |
---|---|
Type | Description |
String |
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. 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 CaPoolName.ResourceNameType Type { get; }
The CaPoolName.ResourceNameType of the contained resource name.
Property Value | |
---|---|
Type | Description |
CaPoolName.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 locationId, string caPoolId)
Formats the IDs into the string representation of this CaPoolName with pattern
projects/{project}/locations/{location}/caPools/{ca_pool}
.
Parameters | |
---|---|
Name | Description |
projectId | String The |
locationId | String The |
caPoolId | String The |
Returns | |
---|---|
Type | Description |
String | The string representation of this CaPoolName with pattern
|
FormatProjectLocationCaPool(String, String, String)
public static string FormatProjectLocationCaPool(string projectId, string locationId, string caPoolId)
Formats the IDs into the string representation of this CaPoolName with pattern
projects/{project}/locations/{location}/caPools/{ca_pool}
.
Parameters | |
---|---|
Name | Description |
projectId | String The |
locationId | String The |
caPoolId | String The |
Returns | |
---|---|
Type | Description |
String | The string representation of this CaPoolName with pattern
|
FromProjectLocationCaPool(String, String, String)
public static CaPoolName FromProjectLocationCaPool(string projectId, string locationId, string caPoolId)
Creates a CaPoolName with the pattern
projects/{project}/locations/{location}/caPools/{ca_pool}
.
Parameters | |
---|---|
Name | Description |
projectId | String The |
locationId | String The |
caPoolId | String The |
Returns | |
---|---|
Type | Description |
CaPoolName | A new instance of CaPoolName constructed from the provided ids. |
FromUnparsed(UnparsedResourceName)
public static CaPoolName FromUnparsed(UnparsedResourceName unparsedResourceName)
Creates a CaPoolName containing an unparsed resource name.
Parameter | |
---|---|
Name | Description |
unparsedResourceName | UnparsedResourceName The unparsed resource name. Must not be |
Returns | |
---|---|
Type | Description |
CaPoolName | A new instance of CaPoolName containing the provided |
GetHashCode()
public override int GetHashCode()
Returns a hash code for this resource name.
Returns | |
---|---|
Type | Description |
Int32 |
Parse(String)
public static CaPoolName Parse(string caPoolName)
Parses the given resource name string into a new CaPoolName instance.
Parameter | |
---|---|
Name | Description |
caPoolName | String The resource name in string form. Must not be |
Returns | |
---|---|
Type | Description |
CaPoolName | The parsed CaPoolName if successful. |
To parse successfully, the resource name must be formatted as one of the following:
projects/{project}/locations/{location}/caPools/{ca_pool}
Parse(String, Boolean)
public static CaPoolName Parse(string caPoolName, bool allowUnparsed)
Parses the given resource name string into a new CaPoolName instance; optionally allowing an unparseable resource name.
Parameters | |
---|---|
Name | Description |
caPoolName | String The resource name in string form. Must not be |
allowUnparsed | Boolean If |
Returns | |
---|---|
Type | Description |
CaPoolName | The parsed CaPoolName if successful. |
To parse successfully, the resource name must be formatted as one of the following:
projects/{project}/locations/{location}/caPools/{ca_pool}
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 CaPoolName)
public static bool TryParse(string caPoolName, out CaPoolName result)
Tries to parse the given resource name string into a new CaPoolName instance.
Parameters | |
---|---|
Name | Description |
caPoolName | String The resource name in string form. Must not be |
result | CaPoolName When this method returns, the parsed CaPoolName, or |
Returns | |
---|---|
Type | Description |
Boolean |
|
To parse successfully, the resource name must be formatted as one of the following:
projects/{project}/locations/{location}/caPools/{ca_pool}
TryParse(String, Boolean, out CaPoolName)
public static bool TryParse(string caPoolName, bool allowUnparsed, out CaPoolName result)
Tries to parse the given resource name string into a new CaPoolName instance; optionally allowing an unparseable resource name.
Parameters | |
---|---|
Name | Description |
caPoolName | String The resource name in string form. Must not be |
allowUnparsed | Boolean If |
result | CaPoolName When this method returns, the parsed CaPoolName, or |
Returns | |
---|---|
Type | Description |
Boolean |
|
To parse successfully, the resource name must be formatted as one of the following:
projects/{project}/locations/{location}/caPools/{ca_pool}
allowUnparsed
is true
.
Operators
Equality(CaPoolName, CaPoolName)
public static bool operator ==(CaPoolName a, CaPoolName b)
Parameters | |
---|---|
Name | Description |
a | CaPoolName |
b | CaPoolName |
Returns | |
---|---|
Type | Description |
Boolean |
Inequality(CaPoolName, CaPoolName)
public static bool operator !=(CaPoolName a, CaPoolName b)
Parameters | |
---|---|
Name | Description |
a | CaPoolName |
b | CaPoolName |
Returns | |
---|---|
Type | Description |
Boolean |