#include <host_rule.h>
UrlMaps A host-matching rule for a URL. If matched, will use the named PathMatcher to select the BackendService.
◆ HostRule() [1/2]
google_compute_api::HostRule::HostRule |
( |
const Json::Value & |
storage | ) |
|
|
explicit |
Standard constructor for an immutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
◆ HostRule() [2/2]
google_compute_api::HostRule::HostRule |
( |
Json::Value * |
storage | ) |
|
|
explicit |
Standard constructor for a mutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
◆ ~HostRule()
google_compute_api::HostRule::~HostRule |
( |
| ) |
|
|
virtual |
◆ clear_description()
void google_compute_api::HostRule::clear_description |
( |
| ) |
|
|
inline |
Clears the 'description
' attribute.
◆ clear_hosts()
void google_compute_api::HostRule::clear_hosts |
( |
| ) |
|
|
inline |
Clears the 'hosts
' attribute.
◆ clear_path_matcher()
void google_compute_api::HostRule::clear_path_matcher |
( |
| ) |
|
|
inline |
Clears the 'pathMatcher
' attribute.
◆ get_description()
const StringPiece google_compute_api::HostRule::get_description |
( |
| ) |
const |
|
inline |
Get the value of the 'description
' attribute.
◆ get_hosts()
const client::JsonCppArray<string > google_compute_api::HostRule::get_hosts |
( |
| ) |
const |
|
inline |
Get a reference to the value of the 'hosts
' attribute.
◆ get_path_matcher()
const StringPiece google_compute_api::HostRule::get_path_matcher |
( |
| ) |
const |
|
inline |
Get the value of the 'pathMatcher
' attribute.
◆ GetTypeName()
const StringPiece google_compute_api::HostRule::GetTypeName |
( |
| ) |
const |
|
inline |
◆ has_description()
bool google_compute_api::HostRule::has_description |
( |
| ) |
const |
|
inline |
Determine if the 'description
' attribute was set.
- Returns
- true if the '
description
' attribute was set.
◆ has_hosts()
bool google_compute_api::HostRule::has_hosts |
( |
| ) |
const |
|
inline |
Determine if the 'hosts
' attribute was set.
- Returns
- true if the '
hosts
' attribute was set.
◆ has_path_matcher()
bool google_compute_api::HostRule::has_path_matcher |
( |
| ) |
const |
|
inline |
Determine if the 'pathMatcher
' attribute was set.
- Returns
- true if the '
pathMatcher
' attribute was set.
◆ mutable_hosts()
client::JsonCppArray<string > google_compute_api::HostRule::mutable_hosts |
( |
| ) |
|
|
inline |
Gets a reference to a mutable value of the 'hosts
' property.
The list of host patterns to match. They must be valid hostnames, except * will match any string of ([a-z0-9-.]*). In that case, * must be the first character and must be followed in the pattern by either - or ..
- Returns
- The result can be modified to change the attribute value.
◆ New()
HostRule * google_compute_api::HostRule::New |
( |
| ) |
|
|
static |
Creates a new default instance.
- Returns
- Ownership is passed back to the caller.
◆ set_description()
void google_compute_api::HostRule::set_description |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'description
' attribute.
An optional description of this resource. Provide this property when you create the resource.
- Parameters
-
◆ set_path_matcher()
void google_compute_api::HostRule::set_path_matcher |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'pathMatcher
' attribute.
The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL's host portion.
- Parameters
-
The documentation for this class was generated from the following files:
- google/compute_api/host_rule.h
- google/compute_api/host_rule.cc