Networks
class Networks extends Resource (View source)
The "networks" collection of methods.
Typical usage is:
$computeService = new Google\Service\Compute(...);
$networks = $computeService->networks;
Methods
Adds a peering to the specified network. (networks.addPeering)
Deletes the specified network. (networks.delete)
Returns the specified network. (networks.get)
Returns the effective firewalls on a given network.
Retrieves the list of networks available to the specified project.
Lists the peering routes exchanged over peering connection.
Removes a peering from the specified network. (networks.removePeering)
Switches the network mode from auto subnet mode to custom subnet mode.
Updates the specified network peering with the data included in the request.
Details
Operation
addPeering(string $project, string $network, NetworksAddPeeringRequest $postBody, array $optParams = [])
Adds a peering to the specified network. (networks.addPeering)
Operation
delete(string $project, string $network, array $optParams = [])
Deletes the specified network. (networks.delete)
Network
get(string $project, string $network, array $optParams = [])
Returns the specified network. (networks.get)
NetworksGetEffectiveFirewallsResponse
getEffectiveFirewalls(string $project, string $network, array $optParams = [])
Returns the effective firewalls on a given network.
(networks.getEffectiveFirewalls)
Operation
insert(string $project, Network $postBody, array $optParams = [])
Creates a network in the specified project using the data included in the request. (networks.insert)
NetworkList
listNetworks(string $project, array $optParams = [])
Retrieves the list of networks available to the specified project.
(networks.listNetworks)
ExchangedPeeringRoutesList
listPeeringRoutes(string $project, string $network, array $optParams = [])
Lists the peering routes exchanged over peering connection.
(networks.listPeeringRoutes)
Operation
patch(string $project, string $network, Network $postBody, array $optParams = [])
Patches the specified network with the data included in the request. Only routingConfig can be modified. (networks.patch)
Operation
removePeering(string $project, string $network, NetworksRemovePeeringRequest $postBody, array $optParams = [])
Removes a peering from the specified network. (networks.removePeering)
Operation
switchToCustomMode(string $project, string $network, array $optParams = [])
Switches the network mode from auto subnet mode to custom subnet mode.
(networks.switchToCustomMode)
Operation
updatePeering(string $project, string $network, NetworksUpdatePeeringRequest $postBody, array $optParams = [])
Updates the specified network peering with the data included in the request.
You can only modify the NetworkPeering.export_custom_routes field and the NetworkPeering.import_custom_routes field. (networks.updatePeering)