public sealed class ReusableConfigName : IResourceName, IEquatable<ReusableConfigName>
Reference documentation and code samples for the Certificate Authority v1beta1 API class ReusableConfigName.
Resource name for the ReusableConfig
resource.
Namespace
Google.Cloud.Security.PrivateCA.V1Beta1Assembly
Google.Cloud.Security.PrivateCA.V1Beta1.dll
Constructors
ReusableConfigName(String, String, String)
public ReusableConfigName(string projectId, string locationId, string reusableConfigId)
Constructs a new instance of a ReusableConfigName class from the component parts of pattern
projects/{project}/locations/{location}/reusableConfigs/{reusable_config}
Name | Description |
projectId | String The |
locationId | String The |
reusableConfigId | String The |
Properties
IsKnownPattern
public bool IsKnownPattern { get; }
Whether this instance contains a resource name with a known pattern.
Type | Description |
Boolean |
LocationId
public string LocationId { get; }
The Location
ID. Will not be null
, unless this instance contains an unparsed resource name.
Type | Description |
String |
ProjectId
public string ProjectId { get; }
The Project
ID. Will not be null
, unless this instance contains an unparsed resource name.
Type | Description |
String |
ReusableConfigId
public string ReusableConfigId { get; }
The ReusableConfig
ID. Will not be null
, unless this instance contains an unparsed resource
name.
Type | Description |
String |
Type
public ReusableConfigName.ResourceNameType Type { get; }
The ReusableConfigName.ResourceNameType of the contained resource name.
Type | Description |
ReusableConfigName.ResourceNameType |
UnparsedResource
public UnparsedResourceName UnparsedResource { get; }
The contained UnparsedResourceName. Only non-null
if this instance contains an
unparsed resource name.
Type | Description |
UnparsedResourceName |
Methods
Format(String, String, String)
public static string Format(string projectId, string locationId, string reusableConfigId)
Formats the IDs into the string representation of this ReusableConfigName with pattern
projects/{project}/locations/{location}/reusableConfigs/{reusable_config}
.
Name | Description |
projectId | String The |
locationId | String The |
reusableConfigId | String The |
Type | Description |
String | The string representation of this ReusableConfigName with pattern
|
FormatProjectLocationReusableConfig(String, String, String)
public static string FormatProjectLocationReusableConfig(string projectId, string locationId, string reusableConfigId)
Formats the IDs into the string representation of this ReusableConfigName with pattern
projects/{project}/locations/{location}/reusableConfigs/{reusable_config}
.
Name | Description |
projectId | String The |
locationId | String The |
reusableConfigId | String The |
Type | Description |
String | The string representation of this ReusableConfigName with pattern
|
FromProjectLocationReusableConfig(String, String, String)
public static ReusableConfigName FromProjectLocationReusableConfig(string projectId, string locationId, string reusableConfigId)
Creates a ReusableConfigName with the pattern
projects/{project}/locations/{location}/reusableConfigs/{reusable_config}
.
Name | Description |
projectId | String The |
locationId | String The |
reusableConfigId | String The |
Type | Description |
ReusableConfigName | A new instance of ReusableConfigName constructed from the provided ids. |
FromUnparsed(UnparsedResourceName)
public static ReusableConfigName FromUnparsed(UnparsedResourceName unparsedResourceName)
Creates a ReusableConfigName containing an unparsed resource name.
Name | Description |
unparsedResourceName | UnparsedResourceName The unparsed resource name. Must not be |
Type | Description |
ReusableConfigName | A new instance of ReusableConfigName containing the provided
|
GetHashCode()
public override int GetHashCode()
Returns a hash code for this resource name.
Type | Description |
Int32 |
Parse(String)
public static ReusableConfigName Parse(string reusableConfigName)
Parses the given resource name string into a new ReusableConfigName instance.
Name | Description |
reusableConfigName | String The resource name in string form. Must not be |
Type | Description |
ReusableConfigName | The parsed ReusableConfigName if successful. |
To parse successfully, the resource name must be formatted as one of the following:
projects/{project}/locations/{location}/reusableConfigs/{reusable_config}
Parse(String, Boolean)
public static ReusableConfigName Parse(string reusableConfigName, bool allowUnparsed)
Parses the given resource name string into a new ReusableConfigName instance; optionally allowing an unparseable resource name.
Name | Description |
reusableConfigName | String The resource name in string form. Must not be |
allowUnparsed | Boolean If |
Type | Description |
ReusableConfigName | The parsed ReusableConfigName if successful. |
To parse successfully, the resource name must be formatted as one of the following:
projects/{project}/locations/{location}/reusableConfigs/{reusable_config}
allowUnparsed
is true
.
ToString()
public override string ToString()
The string representation of the resource name.
Type | Description |
String | The string representation of the resource name. |
TryParse(String, out ReusableConfigName)
public static bool TryParse(string reusableConfigName, out ReusableConfigName result)
Tries to parse the given resource name string into a new ReusableConfigName instance.
Name | Description |
reusableConfigName | String The resource name in string form. Must not be |
result | ReusableConfigName When this method returns, the parsed ReusableConfigName, or |
Type | Description |
Boolean |
|
To parse successfully, the resource name must be formatted as one of the following:
projects/{project}/locations/{location}/reusableConfigs/{reusable_config}
TryParse(String, Boolean, out ReusableConfigName)
public static bool TryParse(string reusableConfigName, bool allowUnparsed, out ReusableConfigName result)
Tries to parse the given resource name string into a new ReusableConfigName instance; optionally allowing an unparseable resource name.
Name | Description |
reusableConfigName | String The resource name in string form. Must not be |
allowUnparsed | Boolean If |
result | ReusableConfigName When this method returns, the parsed ReusableConfigName, or |
Type | Description |
Boolean |
|
To parse successfully, the resource name must be formatted as one of the following:
projects/{project}/locations/{location}/reusableConfigs/{reusable_config}
allowUnparsed
is true
.
Operators
Equality(ReusableConfigName, ReusableConfigName)
public static bool operator ==(ReusableConfigName a, ReusableConfigName b)
Name | Description |
a | ReusableConfigName |
b | ReusableConfigName |
Type | Description |
Boolean |
Inequality(ReusableConfigName, ReusableConfigName)
public static bool operator !=(ReusableConfigName a, ReusableConfigName b)
Name | Description |
a | ReusableConfigName |
b | ReusableConfigName |
Type | Description |
Boolean |