ForwardingRules
class ForwardingRules extends Resource (View source)
The "forwardingRules" collection of methods.
Typical usage is:
$computeService = new Google\Service\Compute(...);
$forwardingRules = $computeService->forwardingRules;
Methods
Retrieves an aggregated list of forwarding rules. To prevent failure, Google
recommends that you set the returnPartialSuccess
parameter to true
.
Deletes the specified ForwardingRule resource. (forwardingRules.delete)
Returns the specified ForwardingRule resource. (forwardingRules.get)
Creates a ForwardingRule resource in the specified project and region using the data included in the request. (forwardingRules.insert)
Retrieves a list of ForwardingRule resources available to the specified project and region. (forwardingRules.listForwardingRules)
Updates the specified forwarding rule with the data included in the request.
Sets the labels on the specified resource. To learn more about labels, read the Labeling Resources documentation. (forwardingRules.setLabels)
Changes target URL for forwarding rule. The new target should be of the same type as the old target. (forwardingRules.setTarget)
Details
ForwardingRuleAggregatedList
aggregatedList(string $project, array $optParams = [])
Retrieves an aggregated list of forwarding rules. To prevent failure, Google
recommends that you set the returnPartialSuccess
parameter to true
.
(forwardingRules.aggregatedList)
Operation
delete(string $project, string $region, string $forwardingRule, array $optParams = [])
Deletes the specified ForwardingRule resource. (forwardingRules.delete)
ForwardingRule
get(string $project, string $region, string $forwardingRule, array $optParams = [])
Returns the specified ForwardingRule resource. (forwardingRules.get)
Operation
insert(string $project, string $region, ForwardingRule $postBody, array $optParams = [])
Creates a ForwardingRule resource in the specified project and region using the data included in the request. (forwardingRules.insert)
ForwardingRuleList
listForwardingRules(string $project, string $region, array $optParams = [])
Retrieves a list of ForwardingRule resources available to the specified project and region. (forwardingRules.listForwardingRules)
Operation
patch(string $project, string $region, string $forwardingRule, ForwardingRule $postBody, array $optParams = [])
Updates the specified forwarding rule with the data included in the request.
This method supports PATCH semantics and uses the JSON merge patch format and processing rules. Currently, you can only patch the network_tier field. (forwardingRules.patch)
Operation
setLabels(string $project, string $region, string $resource, RegionSetLabelsRequest $postBody, array $optParams = [])
Sets the labels on the specified resource. To learn more about labels, read the Labeling Resources documentation. (forwardingRules.setLabels)
Operation
setTarget(string $project, string $region, string $forwardingRule, TargetReference $postBody, array $optParams = [])
Changes target URL for forwarding rule. The new target should be of the same type as the old target. (forwardingRules.setTarget)