GlobalForwardingRules
class GlobalForwardingRules extends Resource (View source)
The "globalForwardingRules" collection of methods.
Typical usage is:
$computeService = new Google\Service\Compute(...);
$globalForwardingRules = $computeService->globalForwardingRules;
Methods
Deletes the specified GlobalForwardingRule resource.
Returns the specified GlobalForwardingRule resource. Gets a list of available forwarding rules by making a list() request. (globalForwardingRules.get)
Creates a GlobalForwardingRule resource in the specified project using the data included in the request. (globalForwardingRules.insert)
Retrieves a list of GlobalForwardingRule resources available to the specified project. (globalForwardingRules.listGlobalForwardingRules)
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. (globalForwardingRules.setLabels)
Changes target URL for the GlobalForwardingRule resource. The new target should be of the same type as the old target.
Details
Operation
delete(string $project, string $forwardingRule, array $optParams = [])
Deletes the specified GlobalForwardingRule resource.
(globalForwardingRules.delete)
ForwardingRule
get(string $project, string $forwardingRule, array $optParams = [])
Returns the specified GlobalForwardingRule resource. Gets a list of available forwarding rules by making a list() request. (globalForwardingRules.get)
Operation
insert(string $project, ForwardingRule $postBody, array $optParams = [])
Creates a GlobalForwardingRule resource in the specified project using the data included in the request. (globalForwardingRules.insert)
ForwardingRuleList
listGlobalForwardingRules(string $project, array $optParams = [])
Retrieves a list of GlobalForwardingRule resources available to the specified project. (globalForwardingRules.listGlobalForwardingRules)
Operation
patch(string $project, 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. (globalForwardingRules.patch)
Operation
setLabels(string $project, string $resource, GlobalSetLabelsRequest $postBody, array $optParams = [])
Sets the labels on the specified resource. To learn more about labels, read the Labeling resources documentation. (globalForwardingRules.setLabels)
Operation
setTarget(string $project, string $forwardingRule, TargetReference $postBody, array $optParams = [])
Changes target URL for the GlobalForwardingRule resource. The new target should be of the same type as the old target.
(globalForwardingRules.setTarget)