- 3.22.0 (latest)
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.0
- 3.0.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.0
- 2.2.0
- 2.1.0
- 2.0.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.0
- 1.0.0
public sealed class HostRule : IMessage<HostRule>, IEquatable<HostRule>, IDeepCloneable<HostRule>, IBufferMessage, IMessageReference documentation and code samples for the Compute Engine v1 API class HostRule.
UrlMaps A host-matching rule for a URL. If matched, will use the namedPathMatcher to select the BackendService.
Namespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Constructors
HostRule()
public HostRule()HostRule(HostRule)
public HostRule(HostRule other)| Parameter | |
|---|---|
| Name | Description |
other |
HostRule |
Properties
Description
public string Description { get; set; }An optional description of this resource. Provide this property when you create the resource.
| Property Value | |
|---|---|
| Type | Description |
string |
|
HasDescription
public bool HasDescription { get; }Gets whether the "description" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasPathMatcher
public bool HasPathMatcher { get; }Gets whether the "path_matcher" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
Hosts
public RepeatedField<string> Hosts { get; }The list of host patterns to match. They must be valid hostnames with optional port numbers in the format host:port.* matches any string of ([a-z0-9-.]*). In that case, * must be the first character, and if followed by anything, the immediate following character must be either - or ..
- based matching is not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldstring |
|
PathMatcher
public string PathMatcher { get; set; }The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL's host portion.
| Property Value | |
|---|---|
| Type | Description |
string |
|