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

#include <forwarding_rule.h>

Inheritance diagram for google_compute_api::ForwardingRule:

Public Member Functions

 ForwardingRule (const Json::Value &storage)
 
 ForwardingRule (Json::Value *storage)
 
virtual ~ForwardingRule ()
 
const StringPiece GetTypeName () const
 
bool has_ipa_ddress () const
 
void clear_ipa_ddress ()
 
const StringPiece get_ipa_ddress () const
 
void set_ipa_ddress (const StringPiece &value)
 
bool has_ipp_rotocol () const
 
void clear_ipp_rotocol ()
 
const StringPiece get_ipp_rotocol () const
 
void set_ipp_rotocol (const StringPiece &value)
 
bool has_all_ports () const
 
void clear_all_ports ()
 
bool get_all_ports () const
 
void set_all_ports (bool value)
 
bool has_backend_service () const
 
void clear_backend_service ()
 
const StringPiece get_backend_service () const
 
void set_backend_service (const StringPiece &value)
 
bool has_creation_timestamp () const
 
void clear_creation_timestamp ()
 
const StringPiece get_creation_timestamp () const
 
void set_creation_timestamp (const StringPiece &value)
 
bool has_description () const
 
void clear_description ()
 
const StringPiece get_description () const
 
void set_description (const StringPiece &value)
 
bool has_id () const
 
void clear_id ()
 
uint64 get_id () const
 
void set_id (uint64 value)
 
bool has_ip_version () const
 
void clear_ip_version ()
 
const StringPiece get_ip_version () const
 
void set_ip_version (const StringPiece &value)
 
bool has_kind () const
 
void clear_kind ()
 
const StringPiece get_kind () const
 
void set_kind (const StringPiece &value)
 
bool has_load_balancing_scheme () const
 
void clear_load_balancing_scheme ()
 
const StringPiece get_load_balancing_scheme () const
 
void set_load_balancing_scheme (const StringPiece &value)
 
bool has_name () const
 
void clear_name ()
 
const StringPiece get_name () const
 
void set_name (const StringPiece &value)
 
bool has_network () const
 
void clear_network ()
 
const StringPiece get_network () const
 
void set_network (const StringPiece &value)
 
bool has_network_tier () const
 
void clear_network_tier ()
 
const StringPiece get_network_tier () const
 
void set_network_tier (const StringPiece &value)
 
bool has_port_range () const
 
void clear_port_range ()
 
const StringPiece get_port_range () const
 
void set_port_range (const StringPiece &value)
 
bool has_ports () const
 
void clear_ports ()
 
const client::JsonCppArray< string > get_ports () const
 
client::JsonCppArray< string > mutable_ports ()
 
bool has_region () const
 
void clear_region ()
 
const StringPiece get_region () const
 
void set_region (const StringPiece &value)
 
bool has_self_link () const
 
void clear_self_link ()
 
const StringPiece get_self_link () const
 
void set_self_link (const StringPiece &value)
 
bool has_service_label () const
 
void clear_service_label ()
 
const StringPiece get_service_label () const
 
void set_service_label (const StringPiece &value)
 
bool has_service_name () const
 
void clear_service_name ()
 
const StringPiece get_service_name () const
 
void set_service_name (const StringPiece &value)
 
bool has_subnetwork () const
 
void clear_subnetwork ()
 
const StringPiece get_subnetwork () const
 
void set_subnetwork (const StringPiece &value)
 
bool has_target () const
 
void clear_target ()
 
const StringPiece get_target () const
 
void set_target (const StringPiece &value)
 

Static Public Member Functions

static ForwardingRuleNew ()
 

Detailed Description

A ForwardingRule resource. A ForwardingRule resource specifies which pool of target virtual machines to forward a packet to if it matches the given [IPAddress, IPProtocol, ports] tuple. (== resource_for beta.forwardingRules ==) (== resource_for v1.forwardingRules ==) (== resource_for beta.globalForwardingRules ==) (== resource_for v1.globalForwardingRules ==) (== resource_for beta.regionForwardingRules ==) (== resource_for v1.regionForwardingRules ==).

Constructor & Destructor Documentation

◆ ForwardingRule() [1/2]

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

Standard constructor for an immutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ ForwardingRule() [2/2]

google_compute_api::ForwardingRule::ForwardingRule ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ ~ForwardingRule()

google_compute_api::ForwardingRule::~ForwardingRule ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_all_ports()

void google_compute_api::ForwardingRule::clear_all_ports ( )
inline

Clears the 'allPorts' attribute.

◆ clear_backend_service()

void google_compute_api::ForwardingRule::clear_backend_service ( )
inline

Clears the 'backendService' attribute.

◆ clear_creation_timestamp()

void google_compute_api::ForwardingRule::clear_creation_timestamp ( )
inline

Clears the 'creationTimestamp' attribute.

◆ clear_description()

void google_compute_api::ForwardingRule::clear_description ( )
inline

Clears the 'description' attribute.

◆ clear_id()

void google_compute_api::ForwardingRule::clear_id ( )
inline

Clears the 'id' attribute.

◆ clear_ip_version()

void google_compute_api::ForwardingRule::clear_ip_version ( )
inline

Clears the 'ipVersion' attribute.

◆ clear_ipa_ddress()

void google_compute_api::ForwardingRule::clear_ipa_ddress ( )
inline

Clears the 'IPAddress' attribute.

◆ clear_ipp_rotocol()

void google_compute_api::ForwardingRule::clear_ipp_rotocol ( )
inline

Clears the 'IPProtocol' attribute.

◆ clear_kind()

void google_compute_api::ForwardingRule::clear_kind ( )
inline

Clears the 'kind' attribute.

◆ clear_load_balancing_scheme()

void google_compute_api::ForwardingRule::clear_load_balancing_scheme ( )
inline

Clears the 'loadBalancingScheme' attribute.

◆ clear_name()

void google_compute_api::ForwardingRule::clear_name ( )
inline

Clears the 'name' attribute.

◆ clear_network()

void google_compute_api::ForwardingRule::clear_network ( )
inline

Clears the 'network' attribute.

◆ clear_network_tier()

void google_compute_api::ForwardingRule::clear_network_tier ( )
inline

Clears the 'networkTier' attribute.

◆ clear_port_range()

void google_compute_api::ForwardingRule::clear_port_range ( )
inline

Clears the 'portRange' attribute.

◆ clear_ports()

void google_compute_api::ForwardingRule::clear_ports ( )
inline

Clears the 'ports' attribute.

◆ clear_region()

void google_compute_api::ForwardingRule::clear_region ( )
inline

Clears the 'region' attribute.

◆ clear_self_link()

void google_compute_api::ForwardingRule::clear_self_link ( )
inline

Clears the 'selfLink' attribute.

◆ clear_service_label()

void google_compute_api::ForwardingRule::clear_service_label ( )
inline

Clears the 'serviceLabel' attribute.

◆ clear_service_name()

void google_compute_api::ForwardingRule::clear_service_name ( )
inline

Clears the 'serviceName' attribute.

◆ clear_subnetwork()

void google_compute_api::ForwardingRule::clear_subnetwork ( )
inline

Clears the 'subnetwork' attribute.

◆ clear_target()

void google_compute_api::ForwardingRule::clear_target ( )
inline

Clears the 'target' attribute.

◆ get_all_ports()

bool google_compute_api::ForwardingRule::get_all_ports ( ) const
inline

Get the value of the 'allPorts' attribute.

◆ get_backend_service()

const StringPiece google_compute_api::ForwardingRule::get_backend_service ( ) const
inline

Get the value of the 'backendService' attribute.

◆ get_creation_timestamp()

const StringPiece google_compute_api::ForwardingRule::get_creation_timestamp ( ) const
inline

Get the value of the 'creationTimestamp' attribute.

◆ get_description()

const StringPiece google_compute_api::ForwardingRule::get_description ( ) const
inline

Get the value of the 'description' attribute.

◆ get_id()

uint64 google_compute_api::ForwardingRule::get_id ( ) const
inline

Get the value of the 'id' attribute.

◆ get_ip_version()

const StringPiece google_compute_api::ForwardingRule::get_ip_version ( ) const
inline

Get the value of the 'ipVersion' attribute.

◆ get_ipa_ddress()

const StringPiece google_compute_api::ForwardingRule::get_ipa_ddress ( ) const
inline

Get the value of the 'IPAddress' attribute.

◆ get_ipp_rotocol()

const StringPiece google_compute_api::ForwardingRule::get_ipp_rotocol ( ) const
inline

Get the value of the 'IPProtocol' attribute.

◆ get_kind()

const StringPiece google_compute_api::ForwardingRule::get_kind ( ) const
inline

Get the value of the 'kind' attribute.

◆ get_load_balancing_scheme()

const StringPiece google_compute_api::ForwardingRule::get_load_balancing_scheme ( ) const
inline

Get the value of the 'loadBalancingScheme' attribute.

◆ get_name()

const StringPiece google_compute_api::ForwardingRule::get_name ( ) const
inline

Get the value of the 'name' attribute.

◆ get_network()

const StringPiece google_compute_api::ForwardingRule::get_network ( ) const
inline

Get the value of the 'network' attribute.

◆ get_network_tier()

const StringPiece google_compute_api::ForwardingRule::get_network_tier ( ) const
inline

Get the value of the 'networkTier' attribute.

◆ get_port_range()

const StringPiece google_compute_api::ForwardingRule::get_port_range ( ) const
inline

Get the value of the 'portRange' attribute.

◆ get_ports()

const client::JsonCppArray<string > google_compute_api::ForwardingRule::get_ports ( ) const
inline

Get a reference to the value of the 'ports' attribute.

◆ get_region()

const StringPiece google_compute_api::ForwardingRule::get_region ( ) const
inline

Get the value of the 'region' attribute.

◆ get_self_link()

const StringPiece google_compute_api::ForwardingRule::get_self_link ( ) const
inline

Get the value of the 'selfLink' attribute.

◆ get_service_label()

const StringPiece google_compute_api::ForwardingRule::get_service_label ( ) const
inline

Get the value of the 'serviceLabel' attribute.

◆ get_service_name()

const StringPiece google_compute_api::ForwardingRule::get_service_name ( ) const
inline

Get the value of the 'serviceName' attribute.

◆ get_subnetwork()

const StringPiece google_compute_api::ForwardingRule::get_subnetwork ( ) const
inline

Get the value of the 'subnetwork' attribute.

◆ get_target()

const StringPiece google_compute_api::ForwardingRule::get_target ( ) const
inline

Get the value of the 'target' attribute.

◆ GetTypeName()

const StringPiece google_compute_api::ForwardingRule::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_compute_api::ForwardingRule

◆ has_all_ports()

bool google_compute_api::ForwardingRule::has_all_ports ( ) const
inline

Determine if the 'allPorts' attribute was set.

Returns
true if the 'allPorts' attribute was set.

◆ has_backend_service()

bool google_compute_api::ForwardingRule::has_backend_service ( ) const
inline

Determine if the 'backendService' attribute was set.

Returns
true if the 'backendService' attribute was set.

◆ has_creation_timestamp()

bool google_compute_api::ForwardingRule::has_creation_timestamp ( ) const
inline

Determine if the 'creationTimestamp' attribute was set.

Returns
true if the 'creationTimestamp' attribute was set.

◆ has_description()

bool google_compute_api::ForwardingRule::has_description ( ) const
inline

Determine if the 'description' attribute was set.

Returns
true if the 'description' attribute was set.

◆ has_id()

bool google_compute_api::ForwardingRule::has_id ( ) const
inline

Determine if the 'id' attribute was set.

Returns
true if the 'id' attribute was set.

◆ has_ip_version()

bool google_compute_api::ForwardingRule::has_ip_version ( ) const
inline

Determine if the 'ipVersion' attribute was set.

Returns
true if the 'ipVersion' attribute was set.

◆ has_ipa_ddress()

bool google_compute_api::ForwardingRule::has_ipa_ddress ( ) const
inline

Determine if the 'IPAddress' attribute was set.

Returns
true if the 'IPAddress' attribute was set.

◆ has_ipp_rotocol()

bool google_compute_api::ForwardingRule::has_ipp_rotocol ( ) const
inline

Determine if the 'IPProtocol' attribute was set.

Returns
true if the 'IPProtocol' attribute was set.

◆ has_kind()

bool google_compute_api::ForwardingRule::has_kind ( ) const
inline

Determine if the 'kind' attribute was set.

Returns
true if the 'kind' attribute was set.

◆ has_load_balancing_scheme()

bool google_compute_api::ForwardingRule::has_load_balancing_scheme ( ) const
inline

Determine if the 'loadBalancingScheme' attribute was set.

Returns
true if the 'loadBalancingScheme' attribute was set.

◆ has_name()

bool google_compute_api::ForwardingRule::has_name ( ) const
inline

Determine if the 'name' attribute was set.

Returns
true if the 'name' attribute was set.

◆ has_network()

bool google_compute_api::ForwardingRule::has_network ( ) const
inline

Determine if the 'network' attribute was set.

Returns
true if the 'network' attribute was set.

◆ has_network_tier()

bool google_compute_api::ForwardingRule::has_network_tier ( ) const
inline

Determine if the 'networkTier' attribute was set.

Returns
true if the 'networkTier' attribute was set.

◆ has_port_range()

bool google_compute_api::ForwardingRule::has_port_range ( ) const
inline

Determine if the 'portRange' attribute was set.

Returns
true if the 'portRange' attribute was set.

◆ has_ports()

bool google_compute_api::ForwardingRule::has_ports ( ) const
inline

Determine if the 'ports' attribute was set.

Returns
true if the 'ports' attribute was set.

◆ has_region()

bool google_compute_api::ForwardingRule::has_region ( ) const
inline

Determine if the 'region' attribute was set.

Returns
true if the 'region' attribute was set.

◆ has_self_link()

bool google_compute_api::ForwardingRule::has_self_link ( ) const
inline

Determine if the 'selfLink' attribute was set.

Returns
true if the 'selfLink' attribute was set.

◆ has_service_label()

bool google_compute_api::ForwardingRule::has_service_label ( ) const
inline

Determine if the 'serviceLabel' attribute was set.

Returns
true if the 'serviceLabel' attribute was set.

◆ has_service_name()

bool google_compute_api::ForwardingRule::has_service_name ( ) const
inline

Determine if the 'serviceName' attribute was set.

Returns
true if the 'serviceName' attribute was set.

◆ has_subnetwork()

bool google_compute_api::ForwardingRule::has_subnetwork ( ) const
inline

Determine if the 'subnetwork' attribute was set.

Returns
true if the 'subnetwork' attribute was set.

◆ has_target()

bool google_compute_api::ForwardingRule::has_target ( ) const
inline

Determine if the 'target' attribute was set.

Returns
true if the 'target' attribute was set.

◆ mutable_ports()

client::JsonCppArray<string > google_compute_api::ForwardingRule::mutable_ports ( )
inline

Gets a reference to a mutable value of the 'ports' property.

This field is used along with the backend_service field for internal load balancing.

When the load balancing scheme is INTERNAL, a list of ports can be configured, for example, ['80'], ['8000','9000'] etc. Only packets addressed to these ports will be forwarded to the backends configured with this forwarding rule.

You may specify a maximum of up to 5 ports.

Returns
The result can be modified to change the attribute value.

◆ New()

ForwardingRule * google_compute_api::ForwardingRule::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_all_ports()

void google_compute_api::ForwardingRule::set_all_ports ( bool  value)
inline

Change the 'allPorts' attribute.

This field is used along with the backend_service field for internal load balancing or with the target field for internal TargetInstance. This field cannot be used with port or portRange fields.

When the load balancing scheme is INTERNAL and protocol is TCP/UDP, specify this field to allow packets addressed to any ports will be forwarded to the backends configured with this forwarding rule.

Parameters
[in]valueThe new value.

◆ set_backend_service()

void google_compute_api::ForwardingRule::set_backend_service ( const StringPiece &  value)
inline

Change the 'backendService' attribute.

This field is only used for INTERNAL load balancing.

For internal load balancing, this field identifies the BackendService resource to receive the matched traffic.

Parameters
[in]valueThe new value.

◆ set_creation_timestamp()

void google_compute_api::ForwardingRule::set_creation_timestamp ( const StringPiece &  value)
inline

Change the 'creationTimestamp' attribute.

[Output Only] Creation timestamp in RFC3339 text format.

Parameters
[in]valueThe new value.

◆ set_description()

void google_compute_api::ForwardingRule::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
[in]valueThe new value.

◆ set_id()

void google_compute_api::ForwardingRule::set_id ( uint64  value)
inline

Change the 'id' attribute.

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

Parameters
[in]valueThe new value.

◆ set_ip_version()

void google_compute_api::ForwardingRule::set_ip_version ( const StringPiece &  value)
inline

Change the 'ipVersion' attribute.

The IP Version that will be used by this forwarding rule. Valid options are IPV4 or IPV6. This can only be specified for an external global forwarding rule.

Parameters
[in]valueThe new value.

◆ set_ipa_ddress()

void google_compute_api::ForwardingRule::set_ipa_ddress ( const StringPiece &  value)
inline

Change the 'IPAddress' attribute.

The IP address that this forwarding rule is serving on behalf of.

Addresses are restricted based on the forwarding rule's load balancing scheme (EXTERNAL or INTERNAL) and scope (global or regional).

When the load balancing scheme is EXTERNAL, for global forwarding rules, the address must be a global IP, and for regional forwarding rules, the address must live in the same region as the forwarding rule. If this field is empty, an ephemeral IPv4 address from the same scope (global or regional) will be assigned. A regional forwarding rule supports IPv4 only. A global forwarding rule supports either IPv4 or IPv6.

When the load balancing scheme is INTERNAL_SELF_MANAGED, this must be a URL reference to an existing Address resource ( internal regional static IP address), with a purpose of GCE_END_POINT and address_type of INTERNAL.

When the load balancing scheme is INTERNAL, this can only be an RFC 1918 IP address belonging to the network/subnet configured for the forwarding rule. By default, if this field is empty, an ephemeral internal IP address will be automatically allocated from the IP range of the subnet or network configured for this forwarding rule.

An address can be specified either by a literal IP address or a URL reference to an existing Address resource. The following examples are all valid:

Parameters
[in]valueThe new value.

◆ set_ipp_rotocol()

void google_compute_api::ForwardingRule::set_ipp_rotocol ( const StringPiece &  value)
inline

Change the 'IPProtocol' attribute.

The IP protocol to which this rule applies. Valid options are TCP, UDP, ESP, AH, SCTP or ICMP.

When the load balancing scheme is INTERNAL, only TCP and UDP are valid. When the load balancing scheme is INTERNAL_SELF_MANAGED, only TCPis valid.

Parameters
[in]valueThe new value.

◆ set_kind()

void google_compute_api::ForwardingRule::set_kind ( const StringPiece &  value)
inline

Change the 'kind' attribute.

[Output Only] Type of the resource. Always compute::forwardingRule for Forwarding Rule resources.

Parameters
[in]valueThe new value.

◆ set_load_balancing_scheme()

void google_compute_api::ForwardingRule::set_load_balancing_scheme ( const StringPiece &  value)
inline

Change the 'loadBalancingScheme' attribute.

This signifies what the ForwardingRule will be used for and can only take the following values: INTERNAL, INTERNAL_SELF_MANAGED, EXTERNAL. The value of INTERNAL means that this will be used for Internal Network Load Balancing (TCP, UDP). The value of INTERNAL_SELF_MANAGED means that this will be used for Internal Global HTTP(S) LB. The value of EXTERNAL means that this will be used for External Load Balancing (HTTP(S) LB, External TCP/UDP LB, SSL Proxy).

Parameters
[in]valueThe new value.

◆ set_name()

void google_compute_api::ForwardingRule::set_name ( const StringPiece &  value)
inline

Change the 'name' attribute.

Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

Parameters
[in]valueThe new value.

◆ set_network()

void google_compute_api::ForwardingRule::set_network ( const StringPiece &  value)
inline

Change the 'network' attribute.

This field is not used for external load balancing.

For INTERNAL and INTERNAL_SELF_MANAGED load balancing, this field identifies the network that the load balanced IP should belong to for this Forwarding Rule. If this field is not specified, the default network will be used.

Parameters
[in]valueThe new value.

◆ set_network_tier()

void google_compute_api::ForwardingRule::set_network_tier ( const StringPiece &  value)
inline

Change the 'networkTier' attribute.

This signifies the networking tier used for configuring this load balancer and can only take the following values: PREMIUM , STANDARD.

For regional ForwardingRule, the valid values are PREMIUM and STANDARD. For GlobalForwardingRule, the valid value is PREMIUM.

If this field is not specified, it is assumed to be PREMIUM. If IPAddress is specified, this value must be equal to the networkTier of the Address.

Parameters
[in]valueThe new value.

◆ set_port_range()

void google_compute_api::ForwardingRule::set_port_range ( const StringPiece &  value)
inline

Change the 'portRange' attribute.

This field is used along with the target field for TargetHttpProxy, TargetHttpsProxy, TargetSslProxy, TargetTcpProxy, TargetVpnGateway, TargetPool, TargetInstance.

Applicable only when IPProtocol is TCP, UDP, or SCTP, only packets addressed to ports in the specified range will be forwarded to target. Forwarding rules with the same [IPAddress, IPProtocol] pair must have disjoint port ranges.

Some types of forwarding target have constraints on the acceptable ports:

TargetHttpProxy
80, 8080.
TargetHttpsProxy
443.
TargetTcpProxy
25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, 1883, 5222.
TargetSslProxy
25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, 1883, 5222.
TargetVpnGateway
500, 4500.
Parameters
[in]valueThe new value.

◆ set_region()

void google_compute_api::ForwardingRule::set_region ( const StringPiece &  value)
inline

Change the 'region' attribute.

[Output Only] URL of the region where the regional forwarding rule resides. This field is not applicable to global forwarding rules. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

Parameters
[in]valueThe new value.

◆ set_self_link()

void google_compute_api::ForwardingRule::set_self_link ( const StringPiece &  value)
inline

Change the 'selfLink' attribute.

[Output Only] Server-defined URL for the resource.

Parameters
[in]valueThe new value.

◆ set_service_label()

void google_compute_api::ForwardingRule::set_service_label ( const StringPiece &  value)
inline

Change the 'serviceLabel' attribute.

An optional prefix to the service name for this Forwarding Rule. If specified, will be the first label of the fully qualified service name.

The label must be 1-63 characters long, and comply with RFC1035. Specifically, the label must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

This field is only used for internal load balancing.

Parameters
[in]valueThe new value.

◆ set_service_name()

void google_compute_api::ForwardingRule::set_service_name ( const StringPiece &  value)
inline

Change the 'serviceName' attribute.

[Output Only] The internal fully qualified service name for this Forwarding Rule.

This field is only used for internal load balancing.

Parameters
[in]valueThe new value.

◆ set_subnetwork()

void google_compute_api::ForwardingRule::set_subnetwork ( const StringPiece &  value)
inline

Change the 'subnetwork' attribute.

This field is only used for INTERNAL load balancing.

For internal load balancing, this field identifies the subnetwork that the load balanced IP should belong to for this Forwarding Rule.

If the network specified is in auto subnet mode, this field is optional. However, if the network is in custom subnet mode, a subnetwork must be specified.

Parameters
[in]valueThe new value.

◆ set_target()

void google_compute_api::ForwardingRule::set_target ( const StringPiece &  value)
inline

Change the 'target' attribute.

The URL of the target resource to receive the matched traffic. For regional forwarding rules, this target must live in the same region as the forwarding rule. For global forwarding rules, this target must be a global load balancing resource. The forwarded traffic must be of a type appropriate to the target object. For INTERNAL_SELF_MANAGED load balancing, only HTTP and HTTPS targets are valid.

Parameters
[in]valueThe new value.

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