public sealed class InterceptDeploymentName : IResourceName, IEquatable<InterceptDeploymentName>Reference documentation and code samples for the Network Security v1 API class InterceptDeploymentName.
Resource name for the InterceptDeployment resource.
Namespace
Google.Cloud.NetworkSecurity.V1Assembly
Google.Cloud.NetworkSecurity.V1.dll
Constructors
InterceptDeploymentName(string, string, string)
public InterceptDeploymentName(string projectId, string locationId, string interceptDeploymentId)Constructs a new instance of a InterceptDeploymentName class from the component parts of
pattern projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment}
| Parameters | |
|---|---|
| Name | Description |
projectId |
stringThe |
locationId |
stringThe |
interceptDeploymentId |
stringThe |
Properties
InterceptDeploymentId
public string InterceptDeploymentId { get; }The InterceptDeployment 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 InterceptDeploymentName.ResourceNameType Type { get; }The InterceptDeploymentName.ResourceNameType of the contained resource name.
| Property Value | |
|---|---|
| Type | Description |
InterceptDeploymentNameResourceNameType |
|
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 interceptDeploymentId)Formats the IDs into the string representation of this InterceptDeploymentName with pattern
projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment}.
| Parameters | |
|---|---|
| Name | Description |
projectId |
stringThe |
locationId |
stringThe |
interceptDeploymentId |
stringThe |
| Returns | |
|---|---|
| Type | Description |
string |
The string representation of this InterceptDeploymentName with pattern
|
FormatProjectLocationInterceptDeployment(string, string, string)
public static string FormatProjectLocationInterceptDeployment(string projectId, string locationId, string interceptDeploymentId)Formats the IDs into the string representation of this InterceptDeploymentName with pattern
projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment}.
| Parameters | |
|---|---|
| Name | Description |
projectId |
stringThe |
locationId |
stringThe |
interceptDeploymentId |
stringThe |
| Returns | |
|---|---|
| Type | Description |
string |
The string representation of this InterceptDeploymentName with pattern
|
FromProjectLocationInterceptDeployment(string, string, string)
public static InterceptDeploymentName FromProjectLocationInterceptDeployment(string projectId, string locationId, string interceptDeploymentId)Creates a InterceptDeploymentName with the pattern
projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment}.
| Parameters | |
|---|---|
| Name | Description |
projectId |
stringThe |
locationId |
stringThe |
interceptDeploymentId |
stringThe |
| Returns | |
|---|---|
| Type | Description |
InterceptDeploymentName |
A new instance of InterceptDeploymentName constructed from the provided ids. |
FromUnparsed(UnparsedResourceName)
public static InterceptDeploymentName FromUnparsed(UnparsedResourceName unparsedResourceName)Creates a InterceptDeploymentName containing an unparsed resource name.
| Parameter | |
|---|---|
| Name | Description |
unparsedResourceName |
UnparsedResourceNameThe unparsed resource name. Must not be |
| Returns | |
|---|---|
| Type | Description |
InterceptDeploymentName |
A new instance of InterceptDeploymentName containing the provided
|
GetHashCode()
public override int GetHashCode()Returns a hash code for this resource name.
| Returns | |
|---|---|
| Type | Description |
int |
|
Parse(string)
public static InterceptDeploymentName Parse(string interceptDeploymentName)Parses the given resource name string into a new InterceptDeploymentName instance.
| Parameter | |
|---|---|
| Name | Description |
interceptDeploymentName |
stringThe resource name in string form. Must not be |
| Returns | |
|---|---|
| Type | Description |
InterceptDeploymentName |
The parsed InterceptDeploymentName if successful. |
To parse successfully, the resource name must be formatted as one of the following:
-
projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment}
Parse(string, bool)
public static InterceptDeploymentName Parse(string interceptDeploymentName, bool allowUnparsed)Parses the given resource name string into a new InterceptDeploymentName instance; optionally allowing an unparseable resource name.
| Parameters | |
|---|---|
| Name | Description |
interceptDeploymentName |
stringThe resource name in string form. Must not be |
allowUnparsed |
boolIf |
| Returns | |
|---|---|
| Type | Description |
InterceptDeploymentName |
The parsed InterceptDeploymentName if successful. |
To parse successfully, the resource name must be formatted as one of the following:
-
projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment}
Or may be in any format if 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 InterceptDeploymentName)
public static bool TryParse(string interceptDeploymentName, out InterceptDeploymentName result)Tries to parse the given resource name string into a new InterceptDeploymentName instance.
| Parameters | |
|---|---|
| Name | Description |
interceptDeploymentName |
stringThe resource name in string form. Must not be |
result |
InterceptDeploymentNameWhen this method returns, the parsed InterceptDeploymentName, or |
| Returns | |
|---|---|
| Type | Description |
bool |
|
To parse successfully, the resource name must be formatted as one of the following:
-
projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment}
TryParse(string, bool, out InterceptDeploymentName)
public static bool TryParse(string interceptDeploymentName, bool allowUnparsed, out InterceptDeploymentName result)Tries to parse the given resource name string into a new InterceptDeploymentName instance; optionally allowing an unparseable resource name.
| Parameters | |
|---|---|
| Name | Description |
interceptDeploymentName |
stringThe resource name in string form. Must not be |
allowUnparsed |
boolIf |
result |
InterceptDeploymentNameWhen this method returns, the parsed InterceptDeploymentName, or |
| Returns | |
|---|---|
| Type | Description |
bool |
|
To parse successfully, the resource name must be formatted as one of the following:
-
projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment}
Or may be in any format if allowUnparsed is true.
Operators
operator ==(InterceptDeploymentName, InterceptDeploymentName)
public static bool operator ==(InterceptDeploymentName a, InterceptDeploymentName b)Determines whether two specified resource names have the same value.
| Parameters | |
|---|---|
| Name | Description |
a |
InterceptDeploymentNameThe first resource name to compare, or null. |
b |
InterceptDeploymentNameThe second resource name to compare, or null. |
| Returns | |
|---|---|
| Type | Description |
bool |
true if the value of |
operator !=(InterceptDeploymentName, InterceptDeploymentName)
public static bool operator !=(InterceptDeploymentName a, InterceptDeploymentName b)Determines whether two specified resource names have different values.
| Parameters | |
|---|---|
| Name | Description |
a |
InterceptDeploymentNameThe first resource name to compare, or null. |
b |
InterceptDeploymentNameThe second resource name to compare, or null. |
| Returns | |
|---|---|
| Type | Description |
bool |
true if the value of |