public sealed class EncryptionConfigName : IResourceName, IEquatable<EncryptionConfigName>Reference documentation and code samples for the Cloud Dataplex v1 API class EncryptionConfigName.
Resource name for the EncryptionConfig resource.
Namespace
Google.Cloud.Dataplex.V1Assembly
Google.Cloud.Dataplex.V1.dll
Constructors
EncryptionConfigName(string, string, string)
public EncryptionConfigName(string organizationId, string locationId, string encryptionConfigId)Constructs a new instance of a EncryptionConfigName class from the component parts of pattern
organizations/{organization}/locations/{location}/encryptionConfigs/{encryption_config}
| Parameters | |
|---|---|
| Name | Description |
organizationId |
stringThe |
locationId |
stringThe |
encryptionConfigId |
stringThe |
Properties
EncryptionConfigId
public string EncryptionConfigId { get; }The EncryptionConfig 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 |
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 |
|
OrganizationId
public string OrganizationId { get; }The Organization ID. Will not be null, unless this instance contains an unparsed resource
name.
| Property Value | |
|---|---|
| Type | Description |
string |
|
Type
public EncryptionConfigName.ResourceNameType Type { get; }The EncryptionConfigName.ResourceNameType of the contained resource name.
| Property Value | |
|---|---|
| Type | Description |
EncryptionConfigNameResourceNameType |
|
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 organizationId, string locationId, string encryptionConfigId)Formats the IDs into the string representation of this EncryptionConfigName with pattern
organizations/{organization}/locations/{location}/encryptionConfigs/{encryption_config}.
| Parameters | |
|---|---|
| Name | Description |
organizationId |
stringThe |
locationId |
stringThe |
encryptionConfigId |
stringThe |
| Returns | |
|---|---|
| Type | Description |
string |
The string representation of this EncryptionConfigName with pattern
|
FormatOrganizationLocationEncryptionConfig(string, string, string)
public static string FormatOrganizationLocationEncryptionConfig(string organizationId, string locationId, string encryptionConfigId)Formats the IDs into the string representation of this EncryptionConfigName with pattern
organizations/{organization}/locations/{location}/encryptionConfigs/{encryption_config}.
| Parameters | |
|---|---|
| Name | Description |
organizationId |
stringThe |
locationId |
stringThe |
encryptionConfigId |
stringThe |
| Returns | |
|---|---|
| Type | Description |
string |
The string representation of this EncryptionConfigName with pattern
|
FromOrganizationLocationEncryptionConfig(string, string, string)
public static EncryptionConfigName FromOrganizationLocationEncryptionConfig(string organizationId, string locationId, string encryptionConfigId)Creates a EncryptionConfigName with the pattern
organizations/{organization}/locations/{location}/encryptionConfigs/{encryption_config}.
| Parameters | |
|---|---|
| Name | Description |
organizationId |
stringThe |
locationId |
stringThe |
encryptionConfigId |
stringThe |
| Returns | |
|---|---|
| Type | Description |
EncryptionConfigName |
A new instance of EncryptionConfigName constructed from the provided ids. |
FromUnparsed(UnparsedResourceName)
public static EncryptionConfigName FromUnparsed(UnparsedResourceName unparsedResourceName)Creates a EncryptionConfigName containing an unparsed resource name.
| Parameter | |
|---|---|
| Name | Description |
unparsedResourceName |
UnparsedResourceNameThe unparsed resource name. Must not be |
| Returns | |
|---|---|
| Type | Description |
EncryptionConfigName |
A new instance of EncryptionConfigName containing the provided
|
GetHashCode()
public override int GetHashCode()Returns a hash code for this resource name.
| Returns | |
|---|---|
| Type | Description |
int |
|
Parse(string)
public static EncryptionConfigName Parse(string encryptionConfigName)Parses the given resource name string into a new EncryptionConfigName instance.
| Parameter | |
|---|---|
| Name | Description |
encryptionConfigName |
stringThe resource name in string form. Must not be |
| Returns | |
|---|---|
| Type | Description |
EncryptionConfigName |
The parsed EncryptionConfigName if successful. |
To parse successfully, the resource name must be formatted as one of the following:
-
organizations/{organization}/locations/{location}/encryptionConfigs/{encryption_config}
Parse(string, bool)
public static EncryptionConfigName Parse(string encryptionConfigName, bool allowUnparsed)Parses the given resource name string into a new EncryptionConfigName instance; optionally allowing an unparseable resource name.
| Parameters | |
|---|---|
| Name | Description |
encryptionConfigName |
stringThe resource name in string form. Must not be |
allowUnparsed |
boolIf |
| Returns | |
|---|---|
| Type | Description |
EncryptionConfigName |
The parsed EncryptionConfigName if successful. |
To parse successfully, the resource name must be formatted as one of the following:
-
organizations/{organization}/locations/{location}/encryptionConfigs/{encryption_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 EncryptionConfigName)
public static bool TryParse(string encryptionConfigName, out EncryptionConfigName result)Tries to parse the given resource name string into a new EncryptionConfigName instance.
| Parameters | |
|---|---|
| Name | Description |
encryptionConfigName |
stringThe resource name in string form. Must not be |
result |
EncryptionConfigNameWhen this method returns, the parsed EncryptionConfigName, or |
| Returns | |
|---|---|
| Type | Description |
bool |
|
To parse successfully, the resource name must be formatted as one of the following:
-
organizations/{organization}/locations/{location}/encryptionConfigs/{encryption_config}
TryParse(string, bool, out EncryptionConfigName)
public static bool TryParse(string encryptionConfigName, bool allowUnparsed, out EncryptionConfigName result)Tries to parse the given resource name string into a new EncryptionConfigName instance; optionally allowing an unparseable resource name.
| Parameters | |
|---|---|
| Name | Description |
encryptionConfigName |
stringThe resource name in string form. Must not be |
allowUnparsed |
boolIf |
result |
EncryptionConfigNameWhen this method returns, the parsed EncryptionConfigName, or |
| Returns | |
|---|---|
| Type | Description |
bool |
|
To parse successfully, the resource name must be formatted as one of the following:
-
organizations/{organization}/locations/{location}/encryptionConfigs/{encryption_config}
allowUnparsed is true.
Operators
operator ==(EncryptionConfigName, EncryptionConfigName)
public static bool operator ==(EncryptionConfigName a, EncryptionConfigName b)Determines whether two specified resource names have the same value.
| Parameters | |
|---|---|
| Name | Description |
a |
EncryptionConfigNameThe first resource name to compare, or null. |
b |
EncryptionConfigNameThe second resource name to compare, or null. |
| Returns | |
|---|---|
| Type | Description |
bool |
true if the value of |
operator !=(EncryptionConfigName, EncryptionConfigName)
public static bool operator !=(EncryptionConfigName a, EncryptionConfigName b)Determines whether two specified resource names have different values.
| Parameters | |
|---|---|
| Name | Description |
a |
EncryptionConfigNameThe first resource name to compare, or null. |
b |
EncryptionConfigNameThe second resource name to compare, or null. |
| Returns | |
|---|---|
| Type | Description |
bool |
true if the value of |