compute  v1
Public Member Functions | Static Public Member Functions | List of all members
google_compute_api::PathRule Class Reference

#include <path_rule.h>

Inheritance diagram for google_compute_api::PathRule:

Public Member Functions

 PathRule (const Json::Value &storage)
 
 PathRule (Json::Value *storage)
 
virtual ~PathRule ()
 
const StringPiece GetTypeName () const
 
bool has_paths () const
 
void clear_paths ()
 
const client::JsonCppArray< string > get_paths () const
 
client::JsonCppArray< string > mutable_paths ()
 
bool has_service () const
 
void clear_service ()
 
const StringPiece get_service () const
 
void set_service (const StringPiece &value)
 

Static Public Member Functions

static PathRuleNew ()
 

Detailed Description

A path-matching rule for a URL. If matched, will use the specified BackendService to handle the traffic arriving at this URL.

Constructor & Destructor Documentation

◆ PathRule() [1/2]

google_compute_api::PathRule::PathRule ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

Parameters
[in]storageThe 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]storageThe underlying data storage for this instance.

◆ ~PathRule()

google_compute_api::PathRule::~PathRule ( )
virtual

Standard destructor.

Member Function Documentation

◆ 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

Returns a string denoting the type of this data object.

Returns
google_compute_api::PathRule

◆ 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
[in]valueThe new value.

The documentation for this class was generated from the following files: