#include <path_rule.h>
A path-matching rule for a URL. If matched, will use the specified BackendService to handle the traffic arriving at this URL.
◆ PathRule() [1/2]
google_compute_api::PathRule::PathRule |
( |
const Json::Value & |
storage | ) |
|
|
explicit |
Standard constructor for an immutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
◆ PathRule() [2/2]
google_compute_api::PathRule::PathRule |
( |
Json::Value * |
storage | ) |
|
|
explicit |
Standard constructor for a mutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
◆ ~PathRule()
google_compute_api::PathRule::~PathRule |
( |
| ) |
|
|
virtual |
◆ clear_paths()
void google_compute_api::PathRule::clear_paths |
( |
| ) |
|
|
inline |
Clears the 'paths
' attribute.
◆ clear_service()
void google_compute_api::PathRule::clear_service |
( |
| ) |
|
|
inline |
Clears the 'service
' attribute.
◆ get_paths()
const client::JsonCppArray<string > google_compute_api::PathRule::get_paths |
( |
| ) |
const |
|
inline |
Get a reference to the value of the 'paths
' attribute.
◆ get_service()
const StringPiece google_compute_api::PathRule::get_service |
( |
| ) |
const |
|
inline |
Get the value of the 'service
' attribute.
◆ GetTypeName()
const StringPiece google_compute_api::PathRule::GetTypeName |
( |
| ) |
const |
|
inline |
◆ has_paths()
bool google_compute_api::PathRule::has_paths |
( |
| ) |
const |
|
inline |
Determine if the 'paths
' attribute was set.
- Returns
- true if the '
paths
' attribute was set.
◆ has_service()
bool google_compute_api::PathRule::has_service |
( |
| ) |
const |
|
inline |
Determine if the 'service
' attribute was set.
- Returns
- true if the '
service
' attribute was set.
◆ mutable_paths()
client::JsonCppArray<string > google_compute_api::PathRule::mutable_paths |
( |
| ) |
|
|
inline |
Gets a reference to a mutable value of the 'paths
' property.
The list of path patterns to match. Each must start with / and the only place a * is allowed is at the end following a /. The string fed to the path matcher does not include any text after the first ? or #, and those chars are not allowed here.
- Returns
- The result can be modified to change the attribute value.
◆ New()
PathRule * google_compute_api::PathRule::New |
( |
| ) |
|
|
static |
Creates a new default instance.
- Returns
- Ownership is passed back to the caller.
◆ set_service()
void google_compute_api::PathRule::set_service |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'service
' attribute.
The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is additionally specified, advanced routing actions like URL Rewrites, etc. take effect prior to sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendService s. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set.
- Parameters
-
The documentation for this class was generated from the following files:
- google/compute_api/path_rule.h
- google/compute_api/path_rule.cc