Reference documentation and code samples for the Compute V1 Client class RoutePolicy.
Generated from protobuf message google.cloud.compute.v1.RoutePolicy
Namespace
Google \ Cloud \ Compute \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ description
string
An optional description of route policy.
↳ fingerprint
string
A fingerprint for the Route Policy being applied to this Router, which is essentially a hash of the Route Policy used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update Route Policy. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make a getRoutePolicy() request to retrieve a Route Policy.
↳ name
string
Route Policy name, which must be a resource ID segment and unique within all the router's Route Policies. Name should conform to RFC1035.
↳ terms
array< RoutePolicyPolicyTerm
>
List of terms (the order in the list is not important, they are evaluated in order of priority). Order of policies is not retained and might change when getting policy later.
↳ type
string
Check the Type enum for the list of possible values.
getDescription
An optional description of route policy.
string
hasDescription
clearDescription
setDescription
An optional description of route policy.
var
string
$this
getFingerprint
A fingerprint for the Route Policy being applied to this Router, which is essentially a hash of the Route Policy used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update Route Policy. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make a getRoutePolicy() request to retrieve a Route Policy.
string
hasFingerprint
clearFingerprint
setFingerprint
A fingerprint for the Route Policy being applied to this Router, which is essentially a hash of the Route Policy used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update Route Policy. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make a getRoutePolicy() request to retrieve a Route Policy.
var
string
$this
getName
Route Policy name, which must be a resource ID segment and unique within all the router's Route Policies. Name should conform to RFC1035.
string
hasName
clearName
setName
Route Policy name, which must be a resource ID segment and unique within all the router's Route Policies. Name should conform to RFC1035.
var
string
$this
getTerms
List of terms (the order in the list is not important, they are evaluated in order of priority). Order of policies is not retained and might change when getting policy later.
setTerms
List of terms (the order in the list is not important, they are evaluated in order of priority). Order of policies is not retained and might change when getting policy later.
$this
getType
Check the Type enum for the list of possible values.
string
hasType
clearType
setType
Check the Type enum for the list of possible values.
var
string
$this