Subnetworks
class Subnetworks extends Resource (View source)
The "subnetworks" collection of methods.
Typical usage is:
$computeService = new Google\Service\Compute(...);
$subnetworks = $computeService->subnetworks;
Methods
Retrieves an aggregated list of subnetworks. To prevent failure, Google
recommends that you set the returnPartialSuccess
parameter to true
.
Deletes the specified subnetwork. (subnetworks.delete)
Expands the IP CIDR range of the subnetwork to a specified value.
Returns the specified subnetwork. (subnetworks.get)
Gets the access control policy for a resource. May be empty if no such policy or resource exists. (subnetworks.getIamPolicy)
Creates a subnetwork in the specified project using the data included in the request. (subnetworks.insert)
Retrieves a list of subnetworks available to the specified project.
Retrieves an aggregated list of all usable subnetworks in the project.
Patches the specified subnetwork with the data included in the request. Only certain fields can be updated with a patch request as indicated in the field descriptions. You must specify the current fingerprint of the subnetwork resource being patched. (subnetworks.patch)
Sets the access control policy on the specified resource. Replaces any existing policy. (subnetworks.setIamPolicy)
Set whether VMs in this subnet can access Google services without assigning external IP addresses through Private Google Access.
Returns permissions that a caller has on the specified resource.
Details
SubnetworkAggregatedList
aggregatedList(string $project, array $optParams = [])
Retrieves an aggregated list of subnetworks. To prevent failure, Google
recommends that you set the returnPartialSuccess
parameter to true
.
(subnetworks.aggregatedList)
Operation
delete(string $project, string $region, string $subnetwork, array $optParams = [])
Deletes the specified subnetwork. (subnetworks.delete)
Operation
expandIpCidrRange(string $project, string $region, string $subnetwork, SubnetworksExpandIpCidrRangeRequest $postBody, array $optParams = [])
Expands the IP CIDR range of the subnetwork to a specified value.
(subnetworks.expandIpCidrRange)
Subnetwork
get(string $project, string $region, string $subnetwork, array $optParams = [])
Returns the specified subnetwork. (subnetworks.get)
Policy
getIamPolicy(string $project, string $region, string $resource, array $optParams = [])
Gets the access control policy for a resource. May be empty if no such policy or resource exists. (subnetworks.getIamPolicy)
Operation
insert(string $project, string $region, Subnetwork $postBody, array $optParams = [])
Creates a subnetwork in the specified project using the data included in the request. (subnetworks.insert)
SubnetworkList
listSubnetworks(string $project, string $region, array $optParams = [])
Retrieves a list of subnetworks available to the specified project.
(subnetworks.listSubnetworks)
UsableSubnetworksAggregatedList
listUsable(string $project, array $optParams = [])
Retrieves an aggregated list of all usable subnetworks in the project.
(subnetworks.listUsable)
Operation
patch(string $project, string $region, string $subnetwork, Subnetwork $postBody, array $optParams = [])
Patches the specified subnetwork with the data included in the request. Only certain fields can be updated with a patch request as indicated in the field descriptions. You must specify the current fingerprint of the subnetwork resource being patched. (subnetworks.patch)
Policy
setIamPolicy(string $project, string $region, string $resource, RegionSetPolicyRequest $postBody, array $optParams = [])
Sets the access control policy on the specified resource. Replaces any existing policy. (subnetworks.setIamPolicy)
Operation
setPrivateIpGoogleAccess(string $project, string $region, string $subnetwork, SubnetworksSetPrivateIpGoogleAccessRequest $postBody, array $optParams = [])
Set whether VMs in this subnet can access Google services without assigning external IP addresses through Private Google Access.
(subnetworks.setPrivateIpGoogleAccess)
TestPermissionsResponse
testIamPermissions(string $project, string $region, string $resource, TestPermissionsRequest $postBody, array $optParams = [])
Returns permissions that a caller has on the specified resource.
(subnetworks.testIamPermissions)