class LocationsPlaceActionLinks extends Resource (View source)

The "placeActionLinks" collection of methods.

Typical usage is:

 $mybusinessplaceactionsService = new Google\Service\MyBusinessPlaceActions(...);
 $placeActionLinks = $mybusinessplaceactionsService->locations_placeActionLinks;

Methods

create(string $parent, PlaceActionLink $postBody, array $optParams = [])

Creates a place action link associated with the specified location, and returns it. The request is considered duplicate if the parent, place_action_link.uri and place_action_link.place_action_type are the same as a previous request. (placeActionLinks.create)

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

Deletes a place action link from the specified location.

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

Gets the specified place action link. (placeActionLinks.get)

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

Lists the place action links for the specified location.

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

Updates the specified place action link and returns it.

Details

PlaceActionLink create(string $parent, PlaceActionLink $postBody, array $optParams = [])

Creates a place action link associated with the specified location, and returns it. The request is considered duplicate if the parent, place_action_link.uri and place_action_link.place_action_type are the same as a previous request. (placeActionLinks.create)

Parameters

string $parent

Required. The resource name of the location where to create this place action link. locations/{location_id}.

PlaceActionLink $postBody
array $optParams

Optional parameters.

Return Value

PlaceActionLink

Exceptions

Exception

MybusinessplaceactionsEmpty delete(string $name, array $optParams = [])

Deletes a place action link from the specified location.

(placeActionLinks.delete)

Parameters

string $name

Required. The resource name of the place action link to remove from the location.

array $optParams

Optional parameters.

Return Value

MybusinessplaceactionsEmpty

Exceptions

Exception

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

Gets the specified place action link. (placeActionLinks.get)

Parameters

string $name

Required. The name of the place action link to fetch.

array $optParams

Optional parameters.

Return Value

PlaceActionLink

Exceptions

Exception

Lists the place action links for the specified location.

(placeActionLinks.listLocationsPlaceActionLinks)

Parameters

string $parent

Required. The name of the location whose place action links will be listed. locations/{location_id}.

array $optParams

Optional parameters.

Return Value

ListPlaceActionLinksResponse

Exceptions

Exception

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

Updates the specified place action link and returns it.

(placeActionLinks.patch)

Parameters

string $name

Optional. The resource name, in the format locations/{location_id}/placeActionLinks/{place_action_link_id}. The name field will only be considered in UpdatePlaceActionLink and DeletePlaceActionLink requests for updating and deleting links respectively. However, it will be ignored in CreatePlaceActionLink request, where place_action_link_id will be assigned by the server on successful creation of a new link and returned as part of the response.

PlaceActionLink $postBody
array $optParams

Optional parameters.

Return Value

PlaceActionLink

Exceptions

Exception