class ProjectsLocations extends Resource (View source)

The "locations" collection of methods.

Typical usage is:

 $apphubService = new Google\Service\AppHub(...);
 $locations = $apphubService->projects_locations;

Methods

detachServiceProjectAttachment(string $name, DetachServiceProjectAttachmentRequest $postBody, array $optParams = [])

Detaches a service project from a host project. You can call this API from any service project without needing access to the host project that it is attached to. (locations.detachServiceProjectAttachment)

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

Gets information about a location. (locations.get)

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

Lists information about the supported locations for this service.

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

Lists a service project attachment for a given service project. You can call this API from any project to find if it is attached to a host project.

Details

DetachServiceProjectAttachmentResponse detachServiceProjectAttachment(string $name, DetachServiceProjectAttachmentRequest $postBody, array $optParams = [])

Detaches a service project from a host project. You can call this API from any service project without needing access to the host project that it is attached to. (locations.detachServiceProjectAttachment)

Parameters

string $name

Required. Service project id and location to detach from a host project. Only global location is supported. Expected format: projects/{project}/locations/{location}.

DetachServiceProjectAttachmentRequest $postBody
array $optParams

Optional parameters.

Return Value

DetachServiceProjectAttachmentResponse

Exceptions

Exception

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

Gets information about a location. (locations.get)

Parameters

string $name

Resource name for the location.

array $optParams

Optional parameters.

Return Value

Location

Exceptions

Exception

ListLocationsResponse listProjectsLocations(string $name, array $optParams = [])

Lists information about the supported locations for this service.

(locations.listProjectsLocations)

Parameters

string $name

The resource that owns the locations collection, if applicable.

array $optParams

Optional parameters.

Return Value

ListLocationsResponse

Exceptions

Exception

LookupServiceProjectAttachmentResponse lookupServiceProjectAttachment(string $name, array $optParams = [])

Lists a service project attachment for a given service project. You can call this API from any project to find if it is attached to a host project.

(locations.lookupServiceProjectAttachment)

Parameters

string $name

Required. Service project ID and location to lookup service project attachment for. Only global location is supported. Expected format: projects/{project}/locations/{location}.

array $optParams

Optional parameters.

Return Value

LookupServiceProjectAttachmentResponse

Exceptions

Exception