public sealed class ConversionWorkspaceName : IResourceName, IEquatable<ConversionWorkspaceName>
Reference documentation and code samples for the Database Migration v1 API class ConversionWorkspaceName.
Resource name for the ConversionWorkspace
resource.
Namespace
Google.Cloud.CloudDms.V1Assembly
Google.Cloud.CloudDms.V1.dll
Constructors
ConversionWorkspaceName(string, string, string)
public ConversionWorkspaceName(string projectId, string locationId, string conversionWorkspaceId)
Constructs a new instance of a ConversionWorkspaceName class from the component parts of
pattern projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}
Parameters | |
---|---|
Name | Description |
projectId | string The |
locationId | string The |
conversionWorkspaceId | string The |
Properties
ConversionWorkspaceId
public string ConversionWorkspaceId { get; }
The ConversionWorkspace
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 |
bool |
LocationId
public string LocationId { get; }
The Location
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 |
Type
public ConversionWorkspaceName.ResourceNameType Type { get; }
The ConversionWorkspaceName.ResourceNameType of the contained resource name.
Property Value | |
---|---|
Type | Description |
ConversionWorkspaceNameResourceNameType |
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)
public static string Format(string projectId, string locationId, string conversionWorkspaceId)
Formats the IDs into the string representation of this ConversionWorkspaceName with pattern
projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}
.
Parameters | |
---|---|
Name | Description |
projectId | string The |
locationId | string The |
conversionWorkspaceId | string The |
Returns | |
---|---|
Type | Description |
string | The string representation of this ConversionWorkspaceName with pattern
|
FormatProjectLocationConversionWorkspace(string, string, string)
public static string FormatProjectLocationConversionWorkspace(string projectId, string locationId, string conversionWorkspaceId)
Formats the IDs into the string representation of this ConversionWorkspaceName with pattern
projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}
.
Parameters | |
---|---|
Name | Description |
projectId | string The |
locationId | string The |
conversionWorkspaceId | string The |
Returns | |
---|---|
Type | Description |
string | The string representation of this ConversionWorkspaceName with pattern
|
FromProjectLocationConversionWorkspace(string, string, string)
public static ConversionWorkspaceName FromProjectLocationConversionWorkspace(string projectId, string locationId, string conversionWorkspaceId)
Creates a ConversionWorkspaceName with the pattern
projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}
.
Parameters | |
---|---|
Name | Description |
projectId | string The |
locationId | string The |
conversionWorkspaceId | string The |
Returns | |
---|---|
Type | Description |
ConversionWorkspaceName | A new instance of ConversionWorkspaceName constructed from the provided ids. |
FromUnparsed(UnparsedResourceName)
public static ConversionWorkspaceName FromUnparsed(UnparsedResourceName unparsedResourceName)
Creates a ConversionWorkspaceName containing an unparsed resource name.
Parameter | |
---|---|
Name | Description |
unparsedResourceName | UnparsedResourceName The unparsed resource name. Must not be |
Returns | |
---|---|
Type | Description |
ConversionWorkspaceName | A new instance of ConversionWorkspaceName containing the provided
|
GetHashCode()
public override int GetHashCode()
Returns a hash code for this resource name.
Returns | |
---|---|
Type | Description |
int |
Parse(string)
public static ConversionWorkspaceName Parse(string conversionWorkspaceName)
Parses the given resource name string into a new ConversionWorkspaceName instance.
Parameter | |
---|---|
Name | Description |
conversionWorkspaceName | string The resource name in string form. Must not be |
Returns | |
---|---|
Type | Description |
ConversionWorkspaceName | The parsed ConversionWorkspaceName if successful. |
To parse successfully, the resource name must be formatted as one of the following:
-
projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}
Parse(string, bool)
public static ConversionWorkspaceName Parse(string conversionWorkspaceName, bool allowUnparsed)
Parses the given resource name string into a new ConversionWorkspaceName instance; optionally allowing an unparseable resource name.
Parameters | |
---|---|
Name | Description |
conversionWorkspaceName | string The resource name in string form. Must not be |
allowUnparsed | bool If |
Returns | |
---|---|
Type | Description |
ConversionWorkspaceName | The parsed ConversionWorkspaceName if successful. |
To parse successfully, the resource name must be formatted as one of the following:
-
projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}
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 ConversionWorkspaceName)
public static bool TryParse(string conversionWorkspaceName, out ConversionWorkspaceName result)
Tries to parse the given resource name string into a new ConversionWorkspaceName instance.
Parameters | |
---|---|
Name | Description |
conversionWorkspaceName | string The resource name in string form. Must not be |
result | ConversionWorkspaceName When this method returns, the parsed ConversionWorkspaceName, or |
Returns | |
---|---|
Type | Description |
bool |
|
To parse successfully, the resource name must be formatted as one of the following:
-
projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}
TryParse(string, bool, out ConversionWorkspaceName)
public static bool TryParse(string conversionWorkspaceName, bool allowUnparsed, out ConversionWorkspaceName result)
Tries to parse the given resource name string into a new ConversionWorkspaceName instance; optionally allowing an unparseable resource name.
Parameters | |
---|---|
Name | Description |
conversionWorkspaceName | string The resource name in string form. Must not be |
allowUnparsed | bool If |
result | ConversionWorkspaceName When this method returns, the parsed ConversionWorkspaceName, or |
Returns | |
---|---|
Type | Description |
bool |
|
To parse successfully, the resource name must be formatted as one of the following:
-
projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}
allowUnparsed
is true
.
Operators
operator ==(ConversionWorkspaceName, ConversionWorkspaceName)
public static bool operator ==(ConversionWorkspaceName a, ConversionWorkspaceName b)
Parameters | |
---|---|
Name | Description |
a | ConversionWorkspaceName |
b | ConversionWorkspaceName |
Returns | |
---|---|
Type | Description |
bool |
operator !=(ConversionWorkspaceName, ConversionWorkspaceName)
public static bool operator !=(ConversionWorkspaceName a, ConversionWorkspaceName b)
Parameters | |
---|---|
Name | Description |
a | ConversionWorkspaceName |
b | ConversionWorkspaceName |
Returns | |
---|---|
Type | Description |
bool |