Identity Access Context Manager v1 API - Class GcpUserAccessBindingName (2.1.0)

public sealed class GcpUserAccessBindingName : IResourceName, IEquatable<GcpUserAccessBindingName>

Reference documentation and code samples for the Identity Access Context Manager v1 API class GcpUserAccessBindingName.

Resource name for the GcpUserAccessBinding resource.

Inheritance

Object > GcpUserAccessBindingName

Namespace

Google.Identity.AccessContextManager.V1

Assembly

Google.Identity.AccessContextManager.V1.dll

Constructors

GcpUserAccessBindingName(String, String)

public GcpUserAccessBindingName(string organizationId, string gcpUserAccessBindingId)

Constructs a new instance of a GcpUserAccessBindingName class from the component parts of pattern organizations/{organization}/gcpUserAccessBindings/{gcp_user_access_binding}

Parameters
NameDescription
organizationIdString

The Organization ID. Must not be null or empty.

gcpUserAccessBindingIdString

The GcpUserAccessBinding ID. Must not be null or empty.

Properties

GcpUserAccessBindingId

public string GcpUserAccessBindingId { get; }

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

Property Value
TypeDescription
String

IsKnownPattern

public bool IsKnownPattern { get; }

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

Property Value
TypeDescription
Boolean

OrganizationId

public string OrganizationId { get; }

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

Property Value
TypeDescription
String

Type

public GcpUserAccessBindingName.ResourceNameType Type { get; }

The GcpUserAccessBindingName.ResourceNameType of the contained resource name.

Property Value
TypeDescription
GcpUserAccessBindingName.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 gcpUserAccessBindingId)

Formats the IDs into the string representation of this GcpUserAccessBindingName with pattern organizations/{organization}/gcpUserAccessBindings/{gcp_user_access_binding}.

Parameters
NameDescription
organizationIdString

The Organization ID. Must not be null or empty.

gcpUserAccessBindingIdString

The GcpUserAccessBinding ID. Must not be null or empty.

Returns
TypeDescription
String

The string representation of this GcpUserAccessBindingName with pattern organizations/{organization}/gcpUserAccessBindings/{gcp_user_access_binding}.

FormatOrganizationGcpUserAccessBinding(String, String)

public static string FormatOrganizationGcpUserAccessBinding(string organizationId, string gcpUserAccessBindingId)

Formats the IDs into the string representation of this GcpUserAccessBindingName with pattern organizations/{organization}/gcpUserAccessBindings/{gcp_user_access_binding}.

Parameters
NameDescription
organizationIdString

The Organization ID. Must not be null or empty.

gcpUserAccessBindingIdString

The GcpUserAccessBinding ID. Must not be null or empty.

Returns
TypeDescription
String

The string representation of this GcpUserAccessBindingName with pattern organizations/{organization}/gcpUserAccessBindings/{gcp_user_access_binding}.

FromOrganizationGcpUserAccessBinding(String, String)

public static GcpUserAccessBindingName FromOrganizationGcpUserAccessBinding(string organizationId, string gcpUserAccessBindingId)

Creates a GcpUserAccessBindingName with the pattern organizations/{organization}/gcpUserAccessBindings/{gcp_user_access_binding}.

Parameters
NameDescription
organizationIdString

The Organization ID. Must not be null or empty.

gcpUserAccessBindingIdString

The GcpUserAccessBinding ID. Must not be null or empty.

Returns
TypeDescription
GcpUserAccessBindingName

A new instance of GcpUserAccessBindingName constructed from the provided ids.

FromUnparsed(UnparsedResourceName)

public static GcpUserAccessBindingName FromUnparsed(UnparsedResourceName unparsedResourceName)

Creates a GcpUserAccessBindingName containing an unparsed resource name.

Parameter
NameDescription
unparsedResourceNameUnparsedResourceName

The unparsed resource name. Must not be null.

Returns
TypeDescription
GcpUserAccessBindingName

A new instance of GcpUserAccessBindingName 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 GcpUserAccessBindingName Parse(string gcpUserAccessBindingName)

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

Parameter
NameDescription
gcpUserAccessBindingNameString

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

Returns
TypeDescription
GcpUserAccessBindingName

The parsed GcpUserAccessBindingName if successful.

Remarks

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

  • organizations/{organization}/gcpUserAccessBindings/{gcp_user_access_binding}

Parse(String, Boolean)

public static GcpUserAccessBindingName Parse(string gcpUserAccessBindingName, bool allowUnparsed)

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

Parameters
NameDescription
gcpUserAccessBindingNameString

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
GcpUserAccessBindingName

The parsed GcpUserAccessBindingName if successful.

Remarks

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

  • organizations/{organization}/gcpUserAccessBindings/{gcp_user_access_binding}
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 GcpUserAccessBindingName)

public static bool TryParse(string gcpUserAccessBindingName, out GcpUserAccessBindingName result)

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

Parameters
NameDescription
gcpUserAccessBindingNameString

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

resultGcpUserAccessBindingName

When this method returns, the parsed GcpUserAccessBindingName, 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:

  • organizations/{organization}/gcpUserAccessBindings/{gcp_user_access_binding}

TryParse(String, Boolean, out GcpUserAccessBindingName)

public static bool TryParse(string gcpUserAccessBindingName, bool allowUnparsed, out GcpUserAccessBindingName result)

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

Parameters
NameDescription
gcpUserAccessBindingNameString

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.

resultGcpUserAccessBindingName

When this method returns, the parsed GcpUserAccessBindingName, 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:

  • organizations/{organization}/gcpUserAccessBindings/{gcp_user_access_binding}
Or may be in any format if allowUnparsed is true.

Operators

Equality(GcpUserAccessBindingName, GcpUserAccessBindingName)

public static bool operator ==(GcpUserAccessBindingName a, GcpUserAccessBindingName b)
Parameters
NameDescription
aGcpUserAccessBindingName
bGcpUserAccessBindingName
Returns
TypeDescription
Boolean

Inequality(GcpUserAccessBindingName, GcpUserAccessBindingName)

public static bool operator !=(GcpUserAccessBindingName a, GcpUserAccessBindingName b)
Parameters
NameDescription
aGcpUserAccessBindingName
bGcpUserAccessBindingName
Returns
TypeDescription
Boolean