ProjectsLocationsConnections
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
Creates a Connection. (connections.create)
Deletes a single connection. (connections.delete)
FetchLinkableRepositories get repositories from SCM that are accessible and could be added to the connection. (connections.fetchLinkableRepositories)
Gets details of a single connection. (connections.get)
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)
Lists Connections in a given project and location.
Updates a single connection. (connections.patch)
ProcessWebhook is called by the external SCM for notifying of events.
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)
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)
Operation
delete(string $name, array $optParams = [])
Deletes a single connection. (connections.delete)
FetchLinkableRepositoriesResponse
fetchLinkableRepositories(string $connection, array $optParams = [])
FetchLinkableRepositories get repositories from SCM that are accessible and could be added to the connection. (connections.fetchLinkableRepositories)
Connection
get(string $name, array $optParams = [])
Gets details of a single connection. (connections.get)
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)
ListConnectionsResponse
listProjectsLocationsConnections(string $parent, array $optParams = [])
Lists Connections in a given project and location.
(connections.listProjectsLocationsConnections)
Operation
patch(string $name, Connection $postBody, array $optParams = [])
Updates a single connection. (connections.patch)
CloudbuildEmpty
processWebhook(string $parent, HttpBody $postBody, array $optParams = [])
ProcessWebhook is called by the external SCM for notifying of events.
(connections.processWebhook)
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)
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)