public sealed class WorkflowTemplateName : IResourceName, IEquatable<WorkflowTemplateName>Resource name for the WorkflowTemplate resource.
Namespace
Google.Cloud.Dataproc.V1Assembly
Google.Cloud.Dataproc.V1.dll
Constructors
WorkflowTemplateName(String, String, String)
public WorkflowTemplateName(string projectId, string regionId, string workflowTemplateId)Constructs a new instance of a WorkflowTemplateName class from the component parts of pattern
projects/{project}/regions/{region}/workflowTemplates/{workflow_template}
| Parameters | |
|---|---|
| Name | Description |
projectId |
StringThe |
regionId |
StringThe |
workflowTemplateId |
StringThe |
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. 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 |
|
RegionId
public string RegionId { get; }The Region ID. May be null, depending on which resource name is contained by this instance.
| Property Value | |
|---|---|
| Type | Description |
String |
|
Type
public WorkflowTemplateName.ResourceNameType Type { get; }The WorkflowTemplateName.ResourceNameType of the contained resource name.
| Property Value | |
|---|---|
| Type | Description |
WorkflowTemplateName.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 |
|
WorkflowTemplateId
public string WorkflowTemplateId { get; }The WorkflowTemplate ID. May be null, depending on which resource name is contained by this
instance.
| Property Value | |
|---|---|
| Type | Description |
String |
|
Methods
Format(String, String, String)
public static string Format(string projectId, string regionId, string workflowTemplateId)Formats the IDs into the string representation of this WorkflowTemplateName with pattern
projects/{project}/regions/{region}/workflowTemplates/{workflow_template}.
| Parameters | |
|---|---|
| Name | Description |
projectId |
StringThe |
regionId |
StringThe |
workflowTemplateId |
StringThe |
| Returns | |
|---|---|
| Type | Description |
String |
The string representation of this WorkflowTemplateName with pattern
|
FormatProjectLocationWorkflowTemplate(String, String, String)
public static string FormatProjectLocationWorkflowTemplate(string projectId, string locationId, string workflowTemplateId)Formats the IDs into the string representation of this WorkflowTemplateName with pattern
projects/{project}/locations/{location}/workflowTemplates/{workflow_template}.
| Parameters | |
|---|---|
| Name | Description |
projectId |
StringThe |
locationId |
StringThe |
workflowTemplateId |
StringThe |
| Returns | |
|---|---|
| Type | Description |
String |
The string representation of this WorkflowTemplateName with pattern
|
FormatProjectRegionWorkflowTemplate(String, String, String)
public static string FormatProjectRegionWorkflowTemplate(string projectId, string regionId, string workflowTemplateId)Formats the IDs into the string representation of this WorkflowTemplateName with pattern
projects/{project}/regions/{region}/workflowTemplates/{workflow_template}.
| Parameters | |
|---|---|
| Name | Description |
projectId |
StringThe |
regionId |
StringThe |
workflowTemplateId |
StringThe |
| Returns | |
|---|---|
| Type | Description |
String |
The string representation of this WorkflowTemplateName with pattern
|
FromProjectLocationWorkflowTemplate(String, String, String)
public static WorkflowTemplateName FromProjectLocationWorkflowTemplate(string projectId, string locationId, string workflowTemplateId)Creates a WorkflowTemplateName with the pattern
projects/{project}/locations/{location}/workflowTemplates/{workflow_template}.
| Parameters | |
|---|---|
| Name | Description |
projectId |
StringThe |
locationId |
StringThe |
workflowTemplateId |
StringThe |
| Returns | |
|---|---|
| Type | Description |
WorkflowTemplateName |
A new instance of WorkflowTemplateName constructed from the provided ids. |
FromProjectRegionWorkflowTemplate(String, String, String)
public static WorkflowTemplateName FromProjectRegionWorkflowTemplate(string projectId, string regionId, string workflowTemplateId)Creates a WorkflowTemplateName with the pattern
projects/{project}/regions/{region}/workflowTemplates/{workflow_template}.
| Parameters | |
|---|---|
| Name | Description |
projectId |
StringThe |
regionId |
StringThe |
workflowTemplateId |
StringThe |
| Returns | |
|---|---|
| Type | Description |
WorkflowTemplateName |
A new instance of WorkflowTemplateName constructed from the provided ids. |
FromUnparsed(UnparsedResourceName)
public static WorkflowTemplateName FromUnparsed(UnparsedResourceName unparsedResourceName)Creates a WorkflowTemplateName containing an unparsed resource name.
| Parameter | |
|---|---|
| Name | Description |
unparsedResourceName |
UnparsedResourceNameThe unparsed resource name. Must not be |
| Returns | |
|---|---|
| Type | Description |
WorkflowTemplateName |
A new instance of WorkflowTemplateName containing the provided
|
GetHashCode()
public override int GetHashCode()Returns a hash code for this resource name.
| Returns | |
|---|---|
| Type | Description |
Int32 |
|
Parse(String)
public static WorkflowTemplateName Parse(string workflowTemplateName)Parses the given resource name string into a new WorkflowTemplateName instance.
| Parameter | |
|---|---|
| Name | Description |
workflowTemplateName |
StringThe resource name in string form. Must not be |
| Returns | |
|---|---|
| Type | Description |
WorkflowTemplateName |
The parsed WorkflowTemplateName if successful. |
To parse successfully, the resource name must be formatted as one of the following:
projects/{project}/regions/{region}/workflowTemplates/{workflow_template}-
projects/{project}/locations/{location}/workflowTemplates/{workflow_template}
Parse(String, Boolean)
public static WorkflowTemplateName Parse(string workflowTemplateName, bool allowUnparsed)Parses the given resource name string into a new WorkflowTemplateName instance; optionally allowing an unparseable resource name.
| Parameters | |
|---|---|
| Name | Description |
workflowTemplateName |
StringThe resource name in string form. Must not be |
allowUnparsed |
BooleanIf |
| Returns | |
|---|---|
| Type | Description |
WorkflowTemplateName |
The parsed WorkflowTemplateName if successful. |
To parse successfully, the resource name must be formatted as one of the following:
projects/{project}/regions/{region}/workflowTemplates/{workflow_template}-
projects/{project}/locations/{location}/workflowTemplates/{workflow_template}
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 WorkflowTemplateName)
public static bool TryParse(string workflowTemplateName, out WorkflowTemplateName result)Tries to parse the given resource name string into a new WorkflowTemplateName instance.
| Parameters | |
|---|---|
| Name | Description |
workflowTemplateName |
StringThe resource name in string form. Must not be |
result |
WorkflowTemplateNameWhen this method returns, the parsed WorkflowTemplateName, or |
| Returns | |
|---|---|
| Type | Description |
Boolean |
|
To parse successfully, the resource name must be formatted as one of the following:
projects/{project}/regions/{region}/workflowTemplates/{workflow_template}-
projects/{project}/locations/{location}/workflowTemplates/{workflow_template}
TryParse(String, Boolean, out WorkflowTemplateName)
public static bool TryParse(string workflowTemplateName, bool allowUnparsed, out WorkflowTemplateName result)Tries to parse the given resource name string into a new WorkflowTemplateName instance; optionally allowing an unparseable resource name.
| Parameters | |
|---|---|
| Name | Description |
workflowTemplateName |
StringThe resource name in string form. Must not be |
allowUnparsed |
BooleanIf |
result |
WorkflowTemplateNameWhen this method returns, the parsed WorkflowTemplateName, or |
| Returns | |
|---|---|
| Type | Description |
Boolean |
|
To parse successfully, the resource name must be formatted as one of the following:
projects/{project}/regions/{region}/workflowTemplates/{workflow_template}-
projects/{project}/locations/{location}/workflowTemplates/{workflow_template}
allowUnparsed is true.
Operators
Equality(WorkflowTemplateName, WorkflowTemplateName)
public static bool operator ==(WorkflowTemplateName a, WorkflowTemplateName b)| Parameters | |
|---|---|
| Name | Description |
a |
WorkflowTemplateName |
b |
WorkflowTemplateName |
| Returns | |
|---|---|
| Type | Description |
Boolean |
|
Inequality(WorkflowTemplateName, WorkflowTemplateName)
public static bool operator !=(WorkflowTemplateName a, WorkflowTemplateName b)| Parameters | |
|---|---|
| Name | Description |
a |
WorkflowTemplateName |
b |
WorkflowTemplateName |
| Returns | |
|---|---|
| Type | Description |
Boolean |
|