class ProjectsLocationsConnections extends Resource (View source)

The "connections" collection of methods.

Typical usage is:

 $developerconnectService = new Google\Service\DeveloperConnect(...);
 $connections = $developerconnectService->projects_locations_connections;

Methods

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

Creates a new Connection in a given project and location.

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

Deletes a single Connection. (connections.delete)

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

FetchGitHubInstallations returns the list of GitHub Installations that are available to be added to a Connection. For github.com, only installations accessible to the authorizer token are returned. For GitHub Enterprise, all installations are returned. (connections.fetchGitHubInstallations)

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

FetchLinkableGitRepositories returns a list of git repositories from an SCM that are available to be added to a Connection.

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

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

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

Lists Connections in a given project and location.

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

Updates the parameters of a single Connection. (connections.patch)

Details

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

Creates a new Connection in a given project and location.

(connections.create)

Parameters

string $parent

Required. Value for parent.

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. Name of the resource

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

FetchGitHubInstallationsResponse fetchGitHubInstallations(string $connection, array $optParams = [])

FetchGitHubInstallations returns the list of GitHub Installations that are available to be added to a Connection. For github.com, only installations accessible to the authorizer token are returned. For GitHub Enterprise, all installations are returned. (connections.fetchGitHubInstallations)

Parameters

string $connection

Required. The resource name of the connection in the format projects/locations/connections.

array $optParams

Optional parameters.

Return Value

FetchGitHubInstallationsResponse

Exceptions

Exception

FetchLinkableGitRepositoriesResponse fetchLinkableGitRepositories(string $connection, array $optParams = [])

FetchLinkableGitRepositories returns a list of git repositories from an SCM that are available to be added to a Connection.

(connections.fetchLinkableGitRepositories)

Parameters

string $connection

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

array $optParams

Optional parameters.

Return Value

FetchLinkableGitRepositoriesResponse

Exceptions

Exception

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

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

Parameters

string $name

Required. Name of the resource

array $optParams

Optional parameters.

Return Value

Connection

Exceptions

Exception

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

Lists Connections in a given project and location.

(connections.listProjectsLocationsConnections)

Parameters

string $parent

Required. Parent value for ListConnectionsRequest

array $optParams

Optional parameters.

Return Value

ListConnectionsResponse

Exceptions

Exception

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

Updates the parameters of a single Connection. (connections.patch)

Parameters

string $name

Identifier. 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