class ProjectsLocationsServiceProjectAttachments extends Resource (View source)

The "serviceProjectAttachments" collection of methods.

Typical usage is:

 $apphubService = new Google\Service\AppHub(...);
 $serviceProjectAttachments = $apphubService->projects_locations_serviceProjectAttachments;

Methods

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

Attaches a service project to the host project.

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

Deletes a service project attachment. (serviceProjectAttachments.delete)

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

Gets a service project attachment. (serviceProjectAttachments.get)

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

Lists service projects attached to the host project.

Details

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

Attaches a service project to the host project.

(serviceProjectAttachments.create)

Parameters

string $parent

Required. Host project ID and location to which service project is being attached. Only global location is supported. Expected format: projects/{project}/locations/{location}.

ServiceProjectAttachment $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Deletes a service project attachment. (serviceProjectAttachments.delete)

Parameters

string $name

Required. Fully qualified name of the service project attachment to delete. Expected format: projects/{project}/locations/{locatio n}/serviceProjectAttachments/{serviceProjectAttachment}.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Gets a service project attachment. (serviceProjectAttachments.get)

Parameters

string $name

Required. Fully qualified name of the service project attachment to retrieve. Expected format: projects/{project}/locations/{locat ion}/serviceProjectAttachments/{serviceProjectAttachment}.

array $optParams

Optional parameters.

Return Value

ServiceProjectAttachment

Exceptions

Exception

ListServiceProjectAttachmentsResponse listProjectsLocationsServiceProjectAttachments(string $parent, array $optParams = [])

Lists service projects attached to the host project.

(serviceProjectAttachments.listProjectsLocationsServiceProjectAttachments)

Parameters

string $parent

Required. Host project ID and location to list service project attachments. Only global location is supported. Expected format: projects/{project}/locations/{location}.

array $optParams

Optional parameters.

Return Value

ListServiceProjectAttachmentsResponse

Exceptions

Exception