class ProjectsLocationsConnections extends Resource (View source)

The "connections" collection of methods.

Typical usage is:

 $cloudbuildService = new Google\Service\CloudBuild(...);
 $connections = $cloudbuildService->projects_locations_connections;

Methods

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

Creates a Connection. (connections.create)

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

Deletes a single connection. (connections.delete)

fetchLinkableRepositories(string $connection, array $optParams = [])

FetchLinkableRepositories get repositories from SCM that are accessible and could be added to the connection. (connections.fetchLinkableRepositories)

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

Gets details of a single connection. (connections.get)

getIamPolicy(string $resource, array $optParams = [])

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. (connections.getIamPolicy)

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

Lists Connections in a given project and location.

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

Updates a single connection. (connections.patch)

processWebhook(string $parent, HttpBody $postBody, array $optParams = [])

ProcessWebhook is called by the external SCM for notifying of events.

setIamPolicy(string $resource, SetIamPolicyRequest $postBody, array $optParams = [])

Sets the access control policy on the specified resource. Replaces any existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. (connections.setIamPolicy)

testIamPermissions(string $resource, TestIamPermissionsRequest $postBody, array $optParams = [])

Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking.

Details

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

Creates a Connection. (connections.create)

Parameters

string $parent

Required. Project and location where the connection will be created. Format: projects/locations.

Connection $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Deletes a single connection. (connections.delete)

Parameters

string $name

Required. The name of the Connection to delete. Format: projects/locations/connections.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

FetchLinkableRepositoriesResponse fetchLinkableRepositories(string $connection, array $optParams = [])

FetchLinkableRepositories get repositories from SCM that are accessible and could be added to the connection. (connections.fetchLinkableRepositories)

Parameters

string $connection

Required. The name of the Connection. Format: projects/locations/connections.

array $optParams

Optional parameters.

Return Value

FetchLinkableRepositoriesResponse

Exceptions

Exception

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

Gets details of a single connection. (connections.get)

Parameters

string $name

Required. The name of the Connection to retrieve. Format: projects/locations/connections.

array $optParams

Optional parameters.

Return Value

Connection

Exceptions

Exception

Policy getIamPolicy(string $resource, array $optParams = [])

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. (connections.getIamPolicy)

Parameters

string $resource

REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.

array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception

ListConnectionsResponse listProjectsLocationsConnections(string $parent, array $optParams = [])

Lists Connections in a given project and location.

(connections.listProjectsLocationsConnections)

Parameters

string $parent

Required. The parent, which owns this collection of Connections. Format: projects/locations.

array $optParams

Optional parameters.

Return Value

ListConnectionsResponse

Exceptions

Exception

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

Updates a single connection. (connections.patch)

Parameters

string $name

Immutable. The resource name of the connection, in the format projects/{project}/locations/{location}/connections/{connection_id}.

Connection $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

CloudbuildEmpty processWebhook(string $parent, HttpBody $postBody, array $optParams = [])

ProcessWebhook is called by the external SCM for notifying of events.

(connections.processWebhook)

Parameters

string $parent

Required. Project and location where the webhook will be received. Format: projects/locations.

HttpBody $postBody
array $optParams

Optional parameters.

Return Value

CloudbuildEmpty

Exceptions

Exception

Policy setIamPolicy(string $resource, SetIamPolicyRequest $postBody, array $optParams = [])

Sets the access control policy on the specified resource. Replaces any existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. (connections.setIamPolicy)

Parameters

string $resource

REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.

SetIamPolicyRequest $postBody
array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception

TestIamPermissionsResponse testIamPermissions(string $resource, TestIamPermissionsRequest $postBody, array $optParams = [])

Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking.

This operation may "fail open" without warning. (connections.testIamPermissions)

Parameters

string $resource

REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.

TestIamPermissionsRequest $postBody
array $optParams

Optional parameters.

Return Value

TestIamPermissionsResponse

Exceptions

Exception