class GlobalAddresses extends Resource (View source)

The "globalAddresses" collection of methods.

Typical usage is:

 $computeService = new Google\Service\Compute(...);
 $globalAddresses = $computeService->globalAddresses;

Methods

delete(string $project, string $address, array $optParams = [])

Deletes the specified address resource. (globalAddresses.delete)

get(string $project, string $address, array $optParams = [])

Returns the specified address resource. (globalAddresses.get)

insert(string $project, Address $postBody, array $optParams = [])

Creates an address resource in the specified project by using the data included in the request. (globalAddresses.insert)

listGlobalAddresses(string $project, array $optParams = [])

Retrieves a list of global addresses. (globalAddresses.listGlobalAddresses)

move(string $project, string $address, GlobalAddressesMoveRequest $postBody, array $optParams = [])

Moves the specified address resource from one project to another project.

setLabels(string $project, string $resource, GlobalSetLabelsRequest $postBody, array $optParams = [])

Sets the labels on a GlobalAddress. To learn more about labels, read the Labeling Resources documentation. (globalAddresses.setLabels)

Details

Operation delete(string $project, string $address, array $optParams = [])

Deletes the specified address resource. (globalAddresses.delete)

Parameters

string $project

Project ID for this request.

string $address

Name of the address resource to delete.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Address get(string $project, string $address, array $optParams = [])

Returns the specified address resource. (globalAddresses.get)

Parameters

string $project

Project ID for this request.

string $address

Name of the address resource to return.

array $optParams

Optional parameters.

Return Value

Address

Exceptions

Exception

Operation insert(string $project, Address $postBody, array $optParams = [])

Creates an address resource in the specified project by using the data included in the request. (globalAddresses.insert)

Parameters

string $project

Project ID for this request.

Address $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

AddressList listGlobalAddresses(string $project, array $optParams = [])

Retrieves a list of global addresses. (globalAddresses.listGlobalAddresses)

Parameters

string $project

Project ID for this request.

array $optParams

Optional parameters.

Return Value

AddressList

Exceptions

Exception

Operation move(string $project, string $address, GlobalAddressesMoveRequest $postBody, array $optParams = [])

Moves the specified address resource from one project to another project.

(globalAddresses.move)

Parameters

string $project

Source project ID which the Address is moved from.

string $address

Name of the address resource to move.

GlobalAddressesMoveRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation setLabels(string $project, string $resource, GlobalSetLabelsRequest $postBody, array $optParams = [])

Sets the labels on a GlobalAddress. To learn more about labels, read the Labeling Resources documentation. (globalAddresses.setLabels)

Parameters

string $project

Project ID for this request.

string $resource

Name or id of the resource for this request.

GlobalSetLabelsRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception