class ProjectsLocationsNetworks extends Resource (View source)

The "networks" collection of methods.

Typical usage is:

 $baremetalsolutionService = new Google\Service\Baremetalsolution(...);
 $networks = $baremetalsolutionService->projects_locations_networks;

Methods

get(string $name, array $optParams = [])

Get details of a single network. (networks.get)

listProjectsLocationsNetworks(string $parent, array $optParams = [])

List network in a given project and location.

listNetworkUsage(string $location, array $optParams = [])

List all Networks (and used IPs for each Network) in the vendor account associated with the specified project. (networks.listNetworkUsage)

patch(string $name, Network $postBody, array $optParams = [])

Update details of a single network. (networks.patch)

rename(string $name, RenameNetworkRequest $postBody, array $optParams = [])

RenameNetwork sets a new name for a network. Use with caution, previous names become immediately invalidated. (networks.rename)

Details

Network get(string $name, array $optParams = [])

Get details of a single network. (networks.get)

Parameters

string $name

Required. Name of the resource.

array $optParams

Optional parameters.

Return Value

Network

Exceptions

Exception

ListNetworksResponse listProjectsLocationsNetworks(string $parent, array $optParams = [])

List network in a given project and location.

(networks.listProjectsLocationsNetworks)

Parameters

string $parent

Required. Parent value for ListNetworksRequest.

array $optParams

Optional parameters.

Return Value

ListNetworksResponse

Exceptions

Exception

ListNetworkUsageResponse listNetworkUsage(string $location, array $optParams = [])

List all Networks (and used IPs for each Network) in the vendor account associated with the specified project. (networks.listNetworkUsage)

Parameters

string $location

Required. Parent value (project and location).

array $optParams

Optional parameters.

Return Value

ListNetworkUsageResponse

Exceptions

Exception

Operation patch(string $name, Network $postBody, array $optParams = [])

Update details of a single network. (networks.patch)

Parameters

string $name

Output only. The resource name of this Network. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. Format: projects/{project}/locations/{location}/networks/{network}

Network $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Network rename(string $name, RenameNetworkRequest $postBody, array $optParams = [])

RenameNetwork sets a new name for a network. Use with caution, previous names become immediately invalidated. (networks.rename)

Parameters

string $name

Required. The name field is used to identify the network. Format: projects/{project}/locations/{location}/networks/{network}

RenameNetworkRequest $postBody
array $optParams

Optional parameters.

Return Value

Network

Exceptions

Exception