Class InspectTemplateName (4.1.0)

public sealed class InspectTemplateName : IResourceName, IEquatable<InspectTemplateName>

Resource name for the InspectTemplate resource.

Inheritance

Object > InspectTemplateName

Namespace

Google.Cloud.Dlp.V2

Assembly

Google.Cloud.Dlp.V2.dll

Constructors

InspectTemplateName(String, String)

public InspectTemplateName(string organizationId, string inspectTemplateId)

Constructs a new instance of a InspectTemplateName class from the component parts of pattern organizations/{organization}/inspectTemplates/{inspect_template}

Parameters
NameDescription
organizationIdString

The Organization ID. Must not be null or empty.

inspectTemplateIdString

The InspectTemplate ID. Must not be null or empty.

Properties

InspectTemplateId

public string InspectTemplateId { get; }

The InspectTemplate ID. May be null, depending on which resource name is contained by this instance.

Property Value
TypeDescription
String

IsKnownPattern

public bool IsKnownPattern { get; }

Whether this instance contains a resource name with a known pattern.

Property Value
TypeDescription
Boolean

LocationId

public string LocationId { get; }

The Location ID. May be null, depending on which resource name is contained by this instance.

Property Value
TypeDescription
String

OrganizationId

public string OrganizationId { get; }

The Organization ID. May be null, depending on which resource name is contained by this instance.

Property Value
TypeDescription
String

ProjectId

public string ProjectId { get; }

The Project ID. May be null, depending on which resource name is contained by this instance.

Property Value
TypeDescription
String

Type

public InspectTemplateName.ResourceNameType Type { get; }

The InspectTemplateName.ResourceNameType of the contained resource name.

Property Value
TypeDescription
InspectTemplateName.ResourceNameType

UnparsedResource

public UnparsedResourceName UnparsedResource { get; }

The contained UnparsedResourceName. Only non-null if this instance contains an unparsed resource name.

Property Value
TypeDescription
UnparsedResourceName

Methods

Format(String, String)

public static string Format(string organizationId, string inspectTemplateId)

Formats the IDs into the string representation of this InspectTemplateName with pattern organizations/{organization}/inspectTemplates/{inspect_template}.

Parameters
NameDescription
organizationIdString

The Organization ID. Must not be null or empty.

inspectTemplateIdString

The InspectTemplate ID. Must not be null or empty.

Returns
TypeDescription
String

The string representation of this InspectTemplateName with pattern organizations/{organization}/inspectTemplates/{inspect_template}.

FormatOrganizationInspectTemplate(String, String)

public static string FormatOrganizationInspectTemplate(string organizationId, string inspectTemplateId)

Formats the IDs into the string representation of this InspectTemplateName with pattern organizations/{organization}/inspectTemplates/{inspect_template}.

Parameters
NameDescription
organizationIdString

The Organization ID. Must not be null or empty.

inspectTemplateIdString

The InspectTemplate ID. Must not be null or empty.

Returns
TypeDescription
String

The string representation of this InspectTemplateName with pattern organizations/{organization}/inspectTemplates/{inspect_template}.

FormatOrganizationLocationInspectTemplate(String, String, String)

public static string FormatOrganizationLocationInspectTemplate(string organizationId, string locationId, string inspectTemplateId)

Formats the IDs into the string representation of this InspectTemplateName with pattern organizations/{organization}/locations/{location}/inspectTemplates/{inspect_template}.

Parameters
NameDescription
organizationIdString

The Organization ID. Must not be null or empty.

locationIdString

The Location ID. Must not be null or empty.

inspectTemplateIdString

The InspectTemplate ID. Must not be null or empty.

Returns
TypeDescription
String

The string representation of this InspectTemplateName with pattern organizations/{organization}/locations/{location}/inspectTemplates/{inspect_template}.

FormatP