public sealed class NodeGroupName : IResourceName, IEquatable<NodeGroupName>
Reference documentation and code samples for the Google Cloud Dataproc v1 API class NodeGroupName.
Resource name for the NodeGroup
resource.
Namespace
Google.Cloud.Dataproc.V1Assembly
Google.Cloud.Dataproc.V1.dll
Constructors
NodeGroupName(String, String, String, String)
public NodeGroupName(string projectId, string regionId, string clusterId, string nodeGroupId)
Constructs a new instance of a NodeGroupName class from the component parts of pattern
projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{node_group}
Parameters | |
---|---|
Name | Description |
projectId | String The |
regionId | String The |
clusterId | String The |
nodeGroupId | String The |
Properties
ClusterId
public string ClusterId { get; }
The Cluster
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 |
Boolean |
NodeGroupId
public string NodeGroupId { get; }
The NodeGroup
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 |
RegionId
public string RegionId { get; }
The Region
ID. Will not be null
, unless this instance contains an unparsed resource name.
Property Value | |
---|---|
Type | Description |
String |
Type
public NodeGroupName.ResourceNameType Type { get; }
The NodeGroupName.ResourceNameType of the contained resource name.
Property Value | |
---|---|
Type | Description |
NodeGroupName.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, String)
public static string Format(string projectId, string regionId, string clusterId, string nodeGroupId)
Formats the IDs into the string representation of this NodeGroupName with pattern
projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{node_group}
.
Parameters | |
---|---|
Name | Description |
projectId | String The |
regionId | String The |
clusterId | String The |
nodeGroupId | String The |
Returns | |
---|---|
Type | Description |
String | The string representation of this NodeGroupName with pattern
|
FormatProjectRegionClusterNodeGroup(String, String, String, String)
public static string FormatProjectRegionClusterNodeGroup(string projectId, string regionId, string clusterId, string nodeGroupId)
Formats the IDs into the string representation of this NodeGroupName with pattern
projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{node_group}
.
Parameters | |
---|---|
Name | Description |
projectId | String The |
regionId | String The |
clusterId | String The |
nodeGroupId | String The |
Returns | |
---|---|
Type | Description |
String | The string representation of this NodeGroupName with pattern
|
FromProjectRegionClusterNodeGroup(String, String, String, String)
public static NodeGroupName FromProjectRegionClusterNodeGroup(string projectId, string regionId, string clusterId, string nodeGroupId)
Creates a NodeGroupName with the pattern
projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{node_group}
.
Parameters | |
---|---|
Name | Description |
projectId | String The |
regionId | String The |
clusterId | String The |
nodeGroupId | String The |
Returns | |
---|---|
Type | Description |
NodeGroupName | A new instance of NodeGroupName constructed from the provided ids. |
FromUnparsed(UnparsedResourceName)
public static NodeGroupName FromUnparsed(UnparsedResourceName unparsedResourceName)
Creates a NodeGroupName containing an unparsed resource name.
Parameter | |
---|---|
Name | Description |
unparsedResourceName | UnparsedResourceName The unparsed resource name. Must not be |
Returns | |
---|---|
Type | Description |
NodeGroupName | A new instance of NodeGroupName containing the provided
|
GetHashCode()
public override int GetHashCode()
Returns a hash code for this resource name.
Returns | |
---|---|
Type | Description |
Int32 |
Parse(String)
public static NodeGroupName Parse(string nodeGroupName)
Parses the given resource name string into a new NodeGroupName instance.
Parameter | |
---|---|
Name | Description |
nodeGroupName | String The resource name in string form. Must not be |
Returns | |
---|---|
Type | Description |
NodeGroupName | The parsed NodeGroupName if successful. |
To parse successfully, the resource name must be formatted as one of the following:
-
projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{node_group}
Parse(String, Boolean)
public static NodeGroupName Parse(string nodeGroupName, bool allowUnparsed)
Parses the given resource name string into a new NodeGroupName instance; optionally allowing an unparseable resource name.
Parameters | |
---|---|
Name | Description |
nodeGroupName | String The resource name in string form. Must not be |
allowUnparsed | Boolean If |
Returns | |
---|---|
Type | Description |
NodeGroupName | The parsed NodeGroupName if successful. |
To parse successfully, the resource name must be formatted as one of the following:
-
projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{node_group}
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 NodeGroupName)
public static bool TryParse(string nodeGroupName, out NodeGroupName result)
Tries to parse the given resource name string into a new NodeGroupName instance.
Parameters | |
---|---|
Name | Description |
nodeGroupName | String The resource name in string form. Must not be |
result | NodeGroupName When this method returns, the parsed NodeGroupName, or |
Returns | |
---|---|
Type | Description |
Boolean |
|
To parse successfully, the resource name must be formatted as one of the following:
-
projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{node_group}
TryParse(String, Boolean, out NodeGroupName)
public static bool TryParse(string nodeGroupName, bool allowUnparsed, out NodeGroupName result)
Tries to parse the given resource name string into a new NodeGroupName instance; optionally allowing an unparseable resource name.
Parameters | |
---|---|
Name | Description |
nodeGroupName | String The resource name in string form. Must not be |
allowUnparsed | Boolean If |
result | NodeGroupName When this method returns, the parsed NodeGroupName, or |
Returns | |
---|---|
Type | Description |
Boolean |
|
To parse successfully, the resource name must be formatted as one of the following:
-
projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{node_group}
allowUnparsed
is true
.
Operators
Equality(NodeGroupName, NodeGroupName)
public static bool operator ==(NodeGroupName a, NodeGroupName b)
Parameters | |
---|---|
Name | Description |
a | NodeGroupName |
b | NodeGroupName |
Returns | |
---|---|
Type | Description |
Boolean |
Inequality(NodeGroupName, NodeGroupName)
public static bool operator !=(NodeGroupName a, NodeGroupName b)
Parameters | |
---|---|
Name | Description |
a | NodeGroupName |
b | NodeGroupName |
Returns | |
---|---|
Type | Description |
Boolean |