public sealed class ReusableConfigName : IResourceName, IEquatable<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}
Parameters | |
---|---|
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.
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 |
ReusableConfigId
public string ReusableConfigId { get; }
The ReusableConfig
ID. Will not be null
, unless this instance contains an unparsed resource
name.
Property Value | |
---|---|
Type | Description |
String |
Type
public ReusableConfigName.ResourceNameType Type { get; }
The ReusableConfigName.ResourceNameType of the contained resource name.
Property Value | |
---|---|
Type | Description |
ReusableConfigName.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 reusableConfigId)
Formats the IDs into the string representation of this ReusableConfigName with pattern
projects/{project}/locations/{location}/reusableConfigs/{reusable_config}
.
Parameters | |
---|---|
Name | Description |
projectId | String The |
locationId | String The |
reusableConfigId | String The |
Returns | |
---|---|
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}
.
Parameters | |
---|---|
Name | Description |
projectId | String The |
locationId | String The |
reusableConfigId | String The |
Returns | |
---|---|
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}
.
Parameters | |
---|---|
Name | Description |
projectId | String The |
locationId | String The |
reusableConfigId | String The |
Returns | |
---|---|
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.
Parameter | |
---|---|
Name | Description |
unparsedResourceName | UnparsedResourceName The unparsed resource name. Must not be |
Returns | |
---|---|
Type | Description |
ReusableConfigName | A new instance of ReusableConfigName containing the provided
|
GetHashCode()
public override int GetHashCode()
Returns a hash code for this resource name.
Returns | |
---|---|
Type | Description |
Int32 |
Parse(String)
public static ReusableConfigName Parse(string reusableConfigName)
Parses the given resource name string into a new ReusableConfigName instance.
Parameter | |
---|---|
Name | Description |
reusableConfigName | String The resource name in string form. Must not be |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
reusableConfigName | String The resource name in string form. Must not be |
allowUnparsed | Boolean If |
Returns | |
---|---|
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.
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
reusableConfigName | String The resource name in string form. Must not be |
result | ReusableConfigName When this method returns, the parsed ReusableConfigName, or |
Returns | |
---|---|
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.
Parameters | |
---|---|
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 |
Returns | |
---|---|
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)
Parameters | |
---|---|
Name | Description |
a | ReusableConfigName |
b | ReusableConfigName |
Returns | |
---|---|
Type | Description |
Boolean |
Inequality(ReusableConfigName, ReusableConfigName)
public static bool operator !=(ReusableConfigName a, ReusableConfigName b)
Parameters | |
---|---|
Name | Description |
a | ReusableConfigName |
b | ReusableConfigName |
Returns | |
---|---|
Type | Description |
Boolean |