public sealed class ResourceChangeName : IResourceName, IEquatable<ResourceChangeName>Reference documentation and code samples for the Infrastructure Manager v1 API class ResourceChangeName.
Resource name for the ResourceChange resource.
Namespace
Google.Cloud.Config.V1Assembly
Google.Cloud.Config.V1.dll
Constructors
ResourceChangeName(string, string, string, string)
public ResourceChangeName(string projectId, string locationId, string previewId, string resourceChangeId)Constructs a new instance of a ResourceChangeName class from the component parts of pattern
projects/{project}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}
| Parameters | |
|---|---|
| Name | Description |
projectId |
stringThe |
locationId |
stringThe |
previewId |
stringThe |
resourceChangeId |
stringThe |
Properties
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 |
|
PreviewId
public string PreviewId { get; }The Preview 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 |
|
ResourceChangeId
public string ResourceChangeId { get; }The ResourceChange ID. Will not be null, unless this instance contains an unparsed resource
name.
| Property Value | |
|---|---|
| Type | Description |
string |
|
Type
public ResourceChangeName.ResourceNameType Type { get; }The ResourceChangeName.ResourceNameType of the contained resource name.
| Property Value | |
|---|---|
| Type | Description |
ResourceChangeNameResourceNameType |
|
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, string)
public static string Format(string projectId, string locationId, string previewId, string resourceChangeId)Formats the IDs into the string representation of this ResourceChangeName with pattern
projects/{project}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}.
| Parameters | |
|---|---|
| Name | Description |
projectId |
stringThe |
locationId |
stringThe |
previewId |
stringThe |
resourceChangeId |
stringThe |
| Returns | |
|---|---|
| Type | Description |
string |
The string representation of this ResourceChangeName with pattern
|
FormatProjectLocationPreviewResourceChange(string, string, string, string)
public static string FormatProjectLocationPreviewResourceChange(string projectId, string locationId, string previewId, string resourceChangeId)Formats the IDs into the string representation of this ResourceChangeName with pattern
projects/{project}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}.
| Parameters | |
|---|---|
| Name | Description |
projectId |
stringThe |
locationId |
stringThe |
previewId |
stringThe |
resourceChangeId |
stringThe |
| Returns | |
|---|---|
| Type | Description |
string |
The string representation of this ResourceChangeName with pattern
|
FromProjectLocationPreviewResourceChange(string, string, string, string)
public static ResourceChangeName FromProjectLocationPreviewResourceChange(string projectId, string locationId, string previewId, string resourceChangeId)Creates a ResourceChangeName with the pattern
projects/{project}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}.
| Parameters | |
|---|---|
| Name | Description |
projectId |
stringThe |
locationId |
stringThe |
previewId |
stringThe |
resourceChangeId |
stringThe |
| Returns | |
|---|---|
| Type | Description |
ResourceChangeName |
A new instance of ResourceChangeName constructed from the provided ids. |
FromUnparsed(UnparsedResourceName)
public static ResourceChangeName FromUnparsed(UnparsedResourceName unparsedResourceName)Creates a ResourceChangeName containing an unparsed resource name.
| Parameter | |
|---|---|
| Name | Description |
unparsedResourceName |
UnparsedResourceNameThe unparsed resource name. Must not be |
| Returns | |
|---|---|
| Type | Description |
ResourceChangeName |
A new instance of ResourceChangeName containing the provided
|
GetHashCode()
public override int GetHashCode()Returns a hash code for this resource name.
| Returns | |
|---|---|
| Type | Description |
int |
|
Parse(string)
public static ResourceChangeName Parse(string resourceChangeName)Parses the given resource name string into a new ResourceChangeName instance.
| Parameter | |
|---|---|
| Name | Description |
resourceChangeName |
stringThe resource name in string form. Must not be |
| Returns | |
|---|---|
| Type | Description |
ResourceChangeName |
The parsed ResourceChangeName if successful. |
To parse successfully, the resource name must be formatted as one of the following:
projects/{project}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}
Parse(string, bool)
public static ResourceChangeName Parse(string resourceChangeName, bool allowUnparsed)Parses the given resource name string into a new ResourceChangeName instance; optionally allowing an unparseable resource name.
| Parameters | |
|---|---|
| Name | Description |
resourceChangeName |
stringThe resource name in string form. Must not be |
allowUnparsed |
boolIf |
| Returns | |
|---|---|
| Type | Description |
ResourceChangeName |
The parsed ResourceChangeName if successful. |
To parse successfully, the resource name must be formatted as one of the following:
projects/{project}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}
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 ResourceChangeName)
public static bool TryParse(string resourceChangeName, out ResourceChangeName result)Tries to parse the given resource name string into a new ResourceChangeName instance.
| Parameters | |
|---|---|
| Name | Description |
resourceChangeName |
stringThe resource name in string form. Must not be |
result |
ResourceChangeNameWhen this method returns, the parsed ResourceChangeName, or |
| Returns | |
|---|---|
| Type | Description |
bool |
|
To parse successfully, the resource name must be formatted as one of the following:
projects/{project}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}
TryParse(string, bool, out ResourceChangeName)
public static bool TryParse(string resourceChangeName, bool allowUnparsed, out ResourceChangeName result)Tries to parse the given resource name string into a new ResourceChangeName instance; optionally allowing an unparseable resource name.
| Parameters | |
|---|---|
| Name | Description |
resourceChangeName |
stringThe resource name in string form. Must not be |
allowUnparsed |
boolIf |
result |
ResourceChangeNameWhen this method returns, the parsed ResourceChangeName, or |
| Returns | |
|---|---|
| Type | Description |
bool |
|
To parse successfully, the resource name must be formatted as one of the following:
projects/{project}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}
allowUnparsed is true.
Operators
operator ==(ResourceChangeName, ResourceChangeName)
public static bool operator ==(ResourceChangeName a, ResourceChangeName b)Determines whether two specified resource names have the same value.
| Parameters | |
|---|---|
| Name | Description |
a |
ResourceChangeNameThe first resource name to compare, or null. |
b |
ResourceChangeNameThe second resource name to compare, or null. |
| Returns | |
|---|---|
| Type | Description |
bool |
true if the value of |
operator !=(ResourceChangeName, ResourceChangeName)
public static bool operator !=(ResourceChangeName a, ResourceChangeName b)Determines whether two specified resource names have different values.
| Parameters | |
|---|---|
| Name | Description |
a |
ResourceChangeNameThe first resource name to compare, or null. |
b |
ResourceChangeNameThe second resource name to compare, or null. |
| Returns | |
|---|---|
| Type | Description |
bool |
true if the value of |