Google.Cloud.Memcache.V1 by Google LLC

<PackageReference Include="Google.Cloud.Memcache.V1" Version="2.0.0" />

 InstanceName

Resource name for the Instance resource.
public enum ResourceNameType

The possible contents of InstanceName.

public string InstanceId { get; }

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

public bool IsKnownPattern { get; }

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

public string LocationId { get; }

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

public string ProjectId { get; }

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

public ResourceNameType Type { get; }

The ResourceNameType of the contained resource name.

The contained UnparsedResourceName. Only non-null if this instance contains an unparsed resource name.

public InstanceName(string projectId, string locationId, string instanceId)

Constructs a new instance of a InstanceName class from the component parts of pattern projects/{project}/locations/{location}/instances/{instance}

public static string Format(string projectId, string locationId, string instanceId)

Formats the IDs into the string representation of this InstanceName with pattern projects/{project}/locations/{location}/instances/{instance}.

public static string FormatProjectLocationInstance(string projectId, string locationId, string instanceId)

Formats the IDs into the string representation of this InstanceName with pattern projects/{project}/locations/{location}/instances/{instance}.

public static InstanceName FromProjectLocationInstance(string projectId, string locationId, string instanceId)

Creates a InstanceName with the pattern projects/{project}/locations/{location}/instances/{instance}.

public static InstanceName FromUnparsed(UnparsedResourceName unparsedResourceName)

Creates a InstanceName containing an unparsed resource name.

public static bool op_Equality(InstanceName a, InstanceName b)

public static bool op_Inequality(InstanceName a, InstanceName b)

public static InstanceName Parse(string instanceName)

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

public static InstanceName Parse(string instanceName, bool allowUnparsed)

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

public static bool TryParse(string instanceName, out InstanceName result)

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

public static bool TryParse(string instanceName, bool allowUnparsed, out InstanceName result)

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

public bool Equals(InstanceName other)