public sealed class ColumnDataProfileName : IResourceName, IEquatable<ColumnDataProfileName>
Reference documentation and code samples for the Google Cloud Data Loss Prevention v2 API class ColumnDataProfileName.
Resource name for the ColumnDataProfile
resource.
Namespace
Google.Cloud.Dlp.V2Assembly
Google.Cloud.Dlp.V2.dll
Constructors
ColumnDataProfileName(string, string, string)
public ColumnDataProfileName(string organizationId, string locationId, string columnDataProfileId)
Constructs a new instance of a ColumnDataProfileName class from the component parts of pattern
organizations/{organization}/locations/{location}/columnDataProfiles/{column_data_profile}
Parameters | |
---|---|
Name | Description |
organizationId | string The |
locationId | string The |
columnDataProfileId | string The |
Properties
ColumnDataProfileId
public string ColumnDataProfileId { get; }
The ColumnDataProfile
ID. May be null
, depending on which resource name is contained by this
instance.
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. May be null
, depending on which resource name is contained by this instance.
Property Value | |
---|---|
Type | Description |
string |
OrganizationId
public string OrganizationId { get; }
The Organization
ID. May be null
, depending on which resource name is contained by this
instance.
Property Value | |
---|---|
Type | Description |
string |
ProjectId
public string ProjectId { get; }
The Project
ID. May be null
, depending on which resource name is contained by this instance.
Property Value | |
---|---|
Type | Description |
string |
Type
public ColumnDataProfileName.ResourceNameType Type { get; }
The ColumnDataProfileName.ResourceNameType of the contained resource name.
Property Value | |
---|---|
Type | Description |
ColumnDataProfileNameResourceNameType |
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 columnDataProfileId)
Formats the IDs into the string representation of this ColumnDataProfileName with pattern
organizations/{organization}/locations/{location}/columnDataProfiles/{column_data_profile}
.
Parameters | |
---|---|
Name | Description |
organizationId | string The |
locationId | string The |
columnDataProfileId | string The |
Returns | |
---|---|
Type | Description |
string | The string representation of this ColumnDataProfileName with pattern
|
FormatOrganizationLocationColumnDataProfile(string, string, string)
public static string FormatOrganizationLocationColumnDataProfile(string organizationId, string locationId, string columnDataProfileId)
Formats the IDs into the string representation of this ColumnDataProfileName with pattern
organizations/{organization}/locations/{location}/columnDataProfiles/{column_data_profile}
.
Parameters | |
---|---|
Name | Description |
organizationId | string The |
locationId | string The |
columnDataProfileId | string The |
Returns | |
---|---|
Type | Description |
string | The string representation of this ColumnDataProfileName with pattern
|
FormatProjectLocationColumnDataProfile(string, string, string)
public static string FormatProjectLocationColumnDataProfile(string projectId, string locationId, string columnDataProfileId)
Formats the IDs into the string representation of this ColumnDataProfileName with pattern
projects/{project}/locations/{location}/columnDataProfiles/{column_data_profile}
.
Parameters | |
---|---|
Name | Description |
projectId | string The |
locationId | string The |
columnDataProfileId | string The |
Returns | |
---|---|
Type | Description |
string | The string representation of this ColumnDataProfileName with pattern
|
FromOrganizationLocationColumnDataProfile(string, string, string)
public static ColumnDataProfileName FromOrganizationLocationColumnDataProfile(string organizationId, string locationId, string columnDataProfileId)
Creates a ColumnDataProfileName with the pattern
organizations/{organization}/locations/{location}/columnDataProfiles/{column_data_profile}
.
Parameters | |
---|---|
Name | Description |
organizationId | string The |
locationId | string The |
columnDataProfileId | string The |
Returns | |
---|---|
Type | Description |
ColumnDataProfileName | A new instance of ColumnDataProfileName constructed from the provided ids. |
FromProjectLocationColumnDataProfile(string, string, string)
public static ColumnDataProfileName FromProjectLocationColumnDataProfile(string projectId, string locationId, string columnDataProfileId)
Creates a ColumnDataProfileName with the pattern
projects/{project}/locations/{location}/columnDataProfiles/{column_data_profile}
.
Parameters | |
---|---|
Name | Description |
projectId | string The |
locationId | string The |
columnDataProfileId | string The |
Returns | |
---|---|
Type | Description |
ColumnDataProfileName | A new instance of ColumnDataProfileName constructed from the provided ids. |
FromUnparsed(UnparsedResourceName)
public static ColumnDataProfileName FromUnparsed(UnparsedResourceName unparsedResourceName)
Creates a ColumnDataProfileName containing an unparsed resource name.
Parameter | |
---|---|
Name | Description |
unparsedResourceName | UnparsedResourceName The unparsed resource name. Must not be |
Returns | |
---|---|
Type | Description |
ColumnDataProfileName | A new instance of ColumnDataProfileName containing the provided
|
GetHashCode()
public override int GetHashCode()
Returns a hash code for this resource name.
Returns | |
---|---|
Type | Description |
int |
Parse(string)
public static ColumnDataProfileName Parse(string columnDataProfileName)
Parses the given resource name string into a new ColumnDataProfileName instance.
Parameter | |
---|---|
Name | Description |
columnDataProfileName | string The resource name in string form. Must not be |
Returns | |
---|---|
Type | Description |
ColumnDataProfileName | The parsed ColumnDataProfileName if successful. |
To parse successfully, the resource name must be formatted as one of the following:
-
organizations/{organization}/locations/{location}/columnDataProfiles/{column_data_profile}
-
projects/{project}/locations/{location}/columnDataProfiles/{column_data_profile}
Parse(string, bool)
public static ColumnDataProfileName Parse(string columnDataProfileName, bool allowUnparsed)
Parses the given resource name string into a new ColumnDataProfileName instance; optionally allowing an unparseable resource name.
Parameters | |
---|---|
Name | Description |
columnDataProfileName | string The resource name in string form. Must not be |
allowUnparsed | bool If |
Returns | |
---|---|
Type | Description |
ColumnDataProfileName | The parsed ColumnDataProfileName if successful. |
To parse successfully, the resource name must be formatted as one of the following:
-
organizations/{organization}/locations/{location}/columnDataProfiles/{column_data_profile}
-
projects/{project}/locations/{location}/columnDataProfiles/{column_data_profile}
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 ColumnDataProfileName)
public static bool TryParse(string columnDataProfileName, out ColumnDataProfileName result)
Tries to parse the given resource name string into a new ColumnDataProfileName instance.
Parameters | |
---|---|
Name | Description |
columnDataProfileName | string The resource name in string form. Must not be |
result | ColumnDataProfileName When this method returns, the parsed ColumnDataProfileName, or |
Returns | |
---|---|
Type | Description |
bool |
|
To parse successfully, the resource name must be formatted as one of the following:
-
organizations/{organization}/locations/{location}/columnDataProfiles/{column_data_profile}
-
projects/{project}/locations/{location}/columnDataProfiles/{column_data_profile}
TryParse(string, bool, out ColumnDataProfileName)
public static bool TryParse(string columnDataProfileName, bool allowUnparsed, out ColumnDataProfileName result)
Tries to parse the given resource name string into a new ColumnDataProfileName instance; optionally allowing an unparseable resource name.
Parameters | |
---|---|
Name | Description |
columnDataProfileName | string The resource name in string form. Must not be |
allowUnparsed | bool If |
result | ColumnDataProfileName When this method returns, the parsed ColumnDataProfileName, or |
Returns | |
---|---|
Type | Description |
bool |
|
To parse successfully, the resource name must be formatted as one of the following:
-
organizations/{organization}/locations/{location}/columnDataProfiles/{column_data_profile}
-
projects/{project}/locations/{location}/columnDataProfiles/{column_data_profile}
allowUnparsed
is true
.
Operators
operator ==(ColumnDataProfileName, ColumnDataProfileName)
public static bool operator ==(ColumnDataProfileName a, ColumnDataProfileName b)
Determines whether two specified resource names have the same value.
Parameters | |
---|---|
Name | Description |
a | ColumnDataProfileName The first resource name to compare, or null. |
b | ColumnDataProfileName The second resource name to compare, or null. |
Returns | |
---|---|
Type | Description |
bool | true if the value of |
operator !=(ColumnDataProfileName, ColumnDataProfileName)
public static bool operator !=(ColumnDataProfileName a, ColumnDataProfileName b)
Determines whether two specified resource names have different values.
Parameters | |
---|---|
Name | Description |
a | ColumnDataProfileName The first resource name to compare, or null. |
b | ColumnDataProfileName The second resource name to compare, or null. |
Returns | |
---|---|
Type | Description |
bool | true if the value of |