Class RelatedAccountGroupMembershipName (1.6.0)

public sealed class RelatedAccountGroupMembershipName : IResourceName, IEquatable<RelatedAccountGroupMembershipName>

Resource name for the RelatedAccountGroupMembership resource.

Inheritance

Object > RelatedAccountGroupMembershipName

Namespace

Google.Cloud.RecaptchaEnterprise.V1

Assembly

Google.Cloud.RecaptchaEnterprise.V1.dll

Constructors

RelatedAccountGroupMembershipName(String, String, String)

public RelatedAccountGroupMembershipName(string projectId, string relatedaccountgroupId, string membershipId)

Constructs a new instance of a RelatedAccountGroupMembershipName class from the component parts of pattern projects/{project}/relatedaccountgroups/{relatedaccountgroup}/memberships/{membership}

Parameters
NameDescription
projectIdString

The Project ID. Must not be null or empty.

relatedaccountgroupIdString

The Relatedaccountgroup ID. Must not be null or empty.

membershipIdString

The Membership ID. Must not be null or empty.

Properties

IsKnownPattern

public bool IsKnownPattern { get; }

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

Property Value
TypeDescription
Boolean

MembershipId

public string MembershipId { get; }

The Membership ID. Will not be null, unless this instance contains an unparsed resource name.

Property Value
TypeDescription
String

ProjectId

public string ProjectId { get; }

The Project ID. Will not be null, unless this instance contains an unparsed resource name.

Property Value
TypeDescription
String

RelatedaccountgroupId

public string RelatedaccountgroupId { get; }

The Relatedaccountgroup ID. Will not be null, unless this instance contains an unparsed resource name.

Property Value
TypeDescription
String

Type

public RelatedAccountGroupMembershipName.ResourceNameType Type { get; }

The RelatedAccountGroupMembershipName.ResourceNameType of the contained resource name.

Property Value
TypeDescription
RelatedAccountGroupMembershipName.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, String)

public static string Format(string projectId, string relatedaccountgroupId, string membershipId)

Formats the IDs into the string representation of this RelatedAccountGroupMembershipName with pattern projects/{project}/relatedaccountgroups/{relatedaccountgroup}/memberships/{membership}.

Parameters
NameDescription
projectIdString

The Project ID. Must not be null or empty.

relatedaccountgroupIdString

The Relatedaccountgroup ID. Must not be null or empty.

membershipIdString

The Membership ID. Must not be null or empty.

Returns
TypeDescription
String

The string representation of this RelatedAccountGroupMembershipName with pattern projects/{project}/relatedaccountgroups/{relatedaccountgroup}/memberships/{membership}.

FormatProjectRelatedaccountgroupMembership(String, String, String)

public static string FormatProjectRelatedaccountgroupMembership(string projectId, string relatedaccountgroupId, string membershipId)

Formats the IDs into the string representation of this RelatedAccountGroupMembershipName with pattern projects/{project}/relatedaccountgroups/{relatedaccountgroup}/memberships/{membership}.

Parameters
NameDescription
projectIdString

The Project ID. Must not be null or empty.

relatedaccountgroupIdString

The Relatedaccountgroup ID. Must not be null or empty.

membershipIdString

The Membership ID. Must not be null or empty.

Returns
TypeDescription
String

The string representation of this RelatedAccountGroupMembershipName with pattern projects/{project}/relatedaccountgroups/{relatedaccountgroup}/memberships/{membership}.

FromProjectRelatedaccountgroupMembership(String, String, String)

public static RelatedAccountGroupMembershipName FromProjectRelatedaccountgroupMembership(string projectId, string relatedaccountgroupId, string membershipId)

Creates a RelatedAccountGroupMembershipName with the pattern projects/{project}/relatedaccountgroups/{relatedaccountgroup}/memberships/{membership}.

Parameters
NameDescription
projectIdString

The Project ID. Must not be null or empty.

relatedaccountgroupIdString

The Relatedaccountgroup ID. Must not be null or empty.

membershipIdString

The Membership ID. Must not be null or empty.

Returns
TypeDescription
RelatedAccountGroupMembershipName

A new instance of RelatedAccountGroupMembershipName constructed from the provided ids.

FromUnparsed(UnparsedResourceName)

public static RelatedAccountGroupMembershipName FromUnparsed(UnparsedResourceName unparsedResourceName)

Creates a RelatedAccountGroupMembershipName containing an unparsed resource name.

Parameter
NameDescription
unparsedResourceNameUnparsedResourceName

The unparsed resource name. Must not be null.

Returns
TypeDescription
RelatedAccountGroupMembershipName

A new instance of RelatedAccountGroupMembershipName containing the provided unparsedResourceName.

GetHashCode()

public override int GetHashCode()

Returns a hash code for this resource name.

Returns
TypeDescription
Int32
Overrides

Parse(String)

public static RelatedAccountGroupMembershipName Parse(string relatedAccountGroupMembershipName)

Parses the given resource name string into a new RelatedAccountGroupMembershipName instance.

Parameter
NameDescription
relatedAccountGroupMembershipNameString

The resource name in string form. Must not be null.

Returns
TypeDescription
RelatedAccountGroupMembershipName

The parsed RelatedAccountGroupMembershipName if successful.

Remarks

To parse successfully, the resource name must be formatted as one of the following:

  • projects/{project}/relatedaccountgroups/{relatedaccountgroup}/memberships/{membership}

Parse(String, Boolean)

public static RelatedAccountGroupMembershipName Parse(string relatedAccountGroupMembershipName, bool allowUnparsed)

Parses the given resource name string into a new RelatedAccountGroupMembershipName instance; optionally allowing an unparseable resource name.

Parameters
NameDescription
relatedAccountGroupMembershipNameString

The resource name in string form. Must not be null.

allowUnparsedBoolean

If true will successfully store an unparseable resource name into the UnparsedResource property; otherwise will throw an ArgumentException if an unparseable resource name is specified.

Returns
TypeDescription
RelatedAccountGroupMembershipName

The parsed RelatedAccountGroupMembershipName if successful.

Remarks

To parse successfully, the resource name must be formatted as one of the following:

  • projects/{project}/relatedaccountgroups/{relatedaccountgroup}/memberships/{membership}
Or may be in any format if allowUnparsed is true.

ToString()

public override string ToString()

The string representation of the resource name.

Returns
TypeDescription
String

The string representation of the resource name.

Overrides

TryParse(String, out RelatedAccountGroupMembershipName)

public static bool TryParse(string relatedAccountGroupMembershipName, out RelatedAccountGroupMembershipName result)

Tries to parse the given resource name string into a new RelatedAccountGroupMembershipName instance.

Parameters
NameDescription
relatedAccountGroupMembershipNameString

The resource name in string form. Must not be null.

resultRelatedAccountGroupMembershipName

When this method returns, the parsed RelatedAccountGroupMembershipName, or null if parsing failed.

Returns
TypeDescription
Boolean

true if the name was parsed successfully; false otherwise.

Remarks

To parse successfully, the resource name must be formatted as one of the following:

  • projects/{project}/relatedaccountgroups/{relatedaccountgroup}/memberships/{membership}

TryParse(String, Boolean, out RelatedAccountGroupMembershipName)

public static bool TryParse(string relatedAccountGroupMembershipName, bool allowUnparsed, out RelatedAccountGroupMembershipName result)

Tries to parse the given resource name string into a new RelatedAccountGroupMembershipName instance; optionally allowing an unparseable resource name.

Parameters
NameDescription
relatedAccountGroupMembershipNameString

The resource name in string form. Must not be null.

allowUnparsedBoolean

If true will successfully store an unparseable resource name into the UnparsedResource property; otherwise will throw an ArgumentException if an unparseable resource name is specified.

resultRelatedAccountGroupMembershipName

When this method returns, the parsed RelatedAccountGroupMembershipName, or null if parsing failed.

Returns
TypeDescription
Boolean

true if the name was parsed successfully; false otherwise.

Remarks

To parse successfully, the resource name must be formatted as one of the following:

  • projects/{project}/relatedaccountgroups/{relatedaccountgroup}/memberships/{membership}
Or may be in any format if allowUnparsed is true.

Operators

Equality(RelatedAccountGroupMembershipName, RelatedAccountGroupMembershipName)

public static bool operator ==(RelatedAccountGroupMembershipName a, RelatedAccountGroupMembershipName b)
Parameters
NameDescription
aRelatedAccountGroupMembershipName
bRelatedAccountGroupMembershipName
Returns
TypeDescription
Boolean

Inequality(RelatedAccountGroupMembershipName, RelatedAccountGroupMembershipName)

public static bool operator !=(RelatedAccountGroupMembershipName a, RelatedAccountGroupMembershipName b)
Parameters
NameDescription
aRelatedAccountGroupMembershipName
bRelatedAccountGroupMembershipName
Returns
TypeDescription
Boolean