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.
Namespace
Google.Identity.AccessContextManager.V1Assembly
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 | |
---|---|
Name | Description |
organizationId | String The |
gcpUserAccessBindingId | String The |
Properties
GcpUserAccessBindingId
public string GcpUserAccessBindingId { get; }
The GcpUserAccessBinding
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 |
OrganizationId
public string OrganizationId { get; }
The Organization
ID. Will not be null
, unless this instance contains an unparsed resource
name.
Property Value | |
---|---|
Type | Description |
String |
Type
public GcpUserAccessBindingName.ResourceNameType Type { get; }
The GcpUserAccessBindingName.ResourceNameType of the contained resource name.
Property Value | |
---|---|
Type | Description |
GcpUserAccessBindingName.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)
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 | |
---|---|
Name | Description |
organizationId | String The |
gcpUserAccessBindingId | String The |
Returns | |
---|---|
Type | Description |
String | The string representation of this GcpUserAccessBindingName with pattern
|
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 | |
---|---|
Name | Description |
organizationId | String The |
gcpUserAccessBindingId | String The |
Returns | |
---|---|
Type | Description |
String | The string representation of this GcpUserAccessBindingName with pattern
|
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 | |
---|---|
Name | Description |
organizationId | String The |
gcpUserAccessBindingId | String The |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
unparsedResourceName | UnparsedResourceName The unparsed resource name. Must not be |
Returns | |
---|---|
Type | Description |
GcpUserAccessBindingName | A new instance of GcpUserAccessBindingName containing the provided
|
GetHashCode()
public override int GetHashCode()
Returns a hash code for this resource name.
Returns | |
---|---|
Type | Description |
Int32 |
Parse(String)
public static GcpUserAccessBindingName Parse(string gcpUserAccessBindingName)
Parses the given resource name string into a new GcpUserAccessBindingName instance.
Parameter | |
---|---|
Name | Description |
gcpUserAccessBindingName | String The resource name in string form. Must not be |
Returns | |
---|---|
Type | Description |
GcpUserAccessBindingName | The parsed GcpUserAccessBindingName if successful. |
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 | |
---|---|
Name | Description |
gcpUserAccessBindingName | String The resource name in string form. Must not be |
allowUnparsed | Boolean If |
Returns | |
---|---|
Type | Description |
GcpUserAccessBindingName | The parsed GcpUserAccessBindingName if successful. |
To parse successfully, the resource name must be formatted as one of the following:
-
organizations/{organization}/gcpUserAccessBindings/{gcp_user_access_binding}
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 GcpUserAccessBindingName)
public static bool TryParse(string gcpUserAccessBindingName, out GcpUserAccessBindingName result)
Tries to parse the given resource name string into a new GcpUserAccessBindingName instance.
Parameters | |
---|---|
Name | Description |
gcpUserAccessBindingName | String The resource name in string form. Must not be |
result | GcpUserAccessBindingName When this method returns, the parsed GcpUserAccessBindingName, or |
Returns | |
---|---|
Type | Description |
Boolean |
|
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 | |
---|---|
Name | Description |
gcpUserAccessBindingName | String The resource name in string form. Must not be |
allowUnparsed | Boolean If |
result | GcpUserAccessBindingName When this method returns, the parsed GcpUserAccessBindingName, or |
Returns | |
---|---|
Type | Description |
Boolean |
|
To parse successfully, the resource name must be formatted as one of the following:
-
organizations/{organization}/gcpUserAccessBindings/{gcp_user_access_binding}
allowUnparsed
is true
.
Operators
Equality(GcpUserAccessBindingName, GcpUserAccessBindingName)
public static bool operator ==(GcpUserAccessBindingName a, GcpUserAccessBindingName b)
Parameters | |
---|---|
Name | Description |
a | GcpUserAccessBindingName |
b | GcpUserAccessBindingName |
Returns | |
---|---|
Type | Description |
Boolean |
Inequality(GcpUserAccessBindingName, GcpUserAccessBindingName)
public static bool operator !=(GcpUserAccessBindingName a, GcpUserAccessBindingName b)
Parameters | |
---|---|
Name | Description |
a | GcpUserAccessBindingName |
b | GcpUserAccessBindingName |
Returns | |
---|---|
Type | Description |
Boolean |