public sealed class ServicePerimeterName : IResourceName, IEquatable<ServicePerimeterName>Resource name for the ServicePerimeter resource.
Namespace
Google.Identity.AccessContextManager.V1Assembly
Google.Identity.AccessContextManager.V1.dll
Constructors
ServicePerimeterName(String, String)
public ServicePerimeterName(string accessPolicyId, string servicePerimeterId)Constructs a new instance of a ServicePerimeterName class from the component parts of pattern
accessPolicies/{access_policy}/servicePerimeters/{service_perimeter}
| Parameters | |
|---|---|
| Name | Description |
accessPolicyId |
StringThe |
servicePerimeterId |
StringThe |
Properties
AccessPolicyId
public string AccessPolicyId { get; }The AccessPolicy 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 |
|
ServicePerimeterId
public string ServicePerimeterId { get; }The ServicePerimeter ID. Will not be null, unless this instance contains an unparsed resource
name.
| Property Value | |
|---|---|
| Type | Description |
String |
|
Type
public ServicePerimeterName.ResourceNameType Type { get; }The ServicePerimeterName.ResourceNameType of the contained resource name.
| Property Value | |
|---|---|
| Type | Description |
ServicePerimeterName.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 accessPolicyId, string servicePerimeterId)Formats the IDs into the string representation of this ServicePerimeterName with pattern
accessPolicies/{access_policy}/servicePerimeters/{service_perimeter}.
| Parameters | |
|---|---|
| Name | Description |
accessPolicyId |
StringThe |
servicePerimeterId |
StringThe |
| Returns | |
|---|---|
| Type | Description |
String |
The string representation of this ServicePerimeterName with pattern
|
FormatAccessPolicyServicePerimeter(String, String)
public static string FormatAccessPolicyServicePerimeter(string accessPolicyId, string servicePerimeterId)Formats the IDs into the string representation of this ServicePerimeterName with pattern
accessPolicies/{access_policy}/servicePerimeters/{service_perimeter}.
| Parameters | |
|---|---|
| Name | Description |
accessPolicyId |
StringThe |
servicePerimeterId |
StringThe |
| Returns | |
|---|---|
| Type | Description |
String |
The string representation of this ServicePerimeterName with pattern
|
FromAccessPolicyServicePerimeter(String, String)
public static ServicePerimeterName FromAccessPolicyServicePerimeter(string accessPolicyId, string servicePerimeterId)Creates a ServicePerimeterName with the pattern
accessPolicies/{access_policy}/servicePerimeters/{service_perimeter}.
| Parameters | |
|---|---|
| Name | Description |
accessPolicyId |
StringThe |
servicePerimeterId |
StringThe |
| Returns | |
|---|---|
| Type | Description |
ServicePerimeterName |
A new instance of ServicePerimeterName constructed from the provided ids. |
FromUnparsed(UnparsedResourceName)
public static ServicePerimeterName FromUnparsed(UnparsedResourceName unparsedResourceName)Creates a ServicePerimeterName containing an unparsed resource name.
| Parameter | |
|---|---|
| Name | Description |
unparsedResourceName |
UnparsedResourceNameThe unparsed resource name. Must not be |
| Returns | |
|---|---|
| Type | Description |
ServicePerimeterName |
A new instance of ServicePerimeterName containing the provided
|
GetHashCode()
public override int GetHashCode()Returns a hash code for this resource name.
| Returns | |
|---|---|
| Type | Description |
Int32 |
|
Parse(String)
public static ServicePerimeterName Parse(string servicePerimeterName)Parses the given resource name string into a new ServicePerimeterName instance.
| Parameter | |
|---|---|
| Name | Description |
servicePerimeterName |
StringThe resource name in string form. Must not be |
| Returns | |
|---|---|
| Type | Description |
ServicePerimeterName |
The parsed ServicePerimeterName if successful. |
To parse successfully, the resource name must be formatted as one of the following:
accessPolicies/{access_policy}/servicePerimeters/{service_perimeter}
Parse(String, Boolean)
public static ServicePerimeterName Parse(string servicePerimeterName, bool allowUnparsed)Parses the given resource name string into a new ServicePerimeterName instance; optionally allowing an unparseable resource name.
| Parameters | |
|---|---|
| Name | Description |
servicePerimeterName |
StringThe resource name in string form. Must not be |
allowUnparsed |
BooleanIf |
| Returns | |
|---|---|
| Type | Description |
ServicePerimeterName |
The parsed ServicePerimeterName if successful. |
To parse successfully, the resource name must be formatted as one of the following:
accessPolicies/{access_policy}/servicePerimeters/{service_perimeter}
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 ServicePerimeterName)
public static bool TryParse(string servicePerimeterName, out ServicePerimeterName result)Tries to parse the given resource name string into a new ServicePerimeterName instance.
| Parameters | |
|---|---|
| Name | Description |
servicePerimeterName |
StringThe resource name in string form. Must not be |
result |
ServicePerimeterNameWhen this method returns, the parsed ServicePerimeterName, or |
| Returns | |
|---|---|
| Type | Description |
Boolean |
|
To parse successfully, the resource name must be formatted as one of the following:
accessPolicies/{access_policy}/servicePerimeters/{service_perimeter}
TryParse(String, Boolean, out ServicePerimeterName)
public static bool TryParse(string servicePerimeterName, bool allowUnparsed, out ServicePerimeterName result)Tries to parse the given resource name string into a new ServicePerimeterName instance; optionally allowing an unparseable resource name.
| Parameters | |
|---|---|
| Name | Description |
servicePerimeterName |
StringThe resource name in string form. Must not be |
allowUnparsed |
BooleanIf |
result |
ServicePerimeterNameWhen this method returns, the parsed ServicePerimeterName, or |
| Returns | |
|---|---|
| Type | Description |
Boolean |
|
To parse successfully, the resource name must be formatted as one of the following:
accessPolicies/{access_policy}/servicePerimeters/{service_perimeter}
allowUnparsed is true.
Operators
Equality(ServicePerimeterName, ServicePerimeterName)
public static bool operator ==(ServicePerimeterName a, ServicePerimeterName b)| Parameters | |
|---|---|
| Name | Description |
a |
ServicePerimeterName |
b |
ServicePerimeterName |
| Returns | |
|---|---|
| Type | Description |
Boolean |
|
Inequality(ServicePerimeterName, ServicePerimeterName)
public static bool operator !=(ServicePerimeterName a, ServicePerimeterName b)| Parameters | |
|---|---|
| Name | Description |
a |
ServicePerimeterName |
b |
ServicePerimeterName |
| Returns | |
|---|---|
| Type | Description |
Boolean |
|