class ProjectsLocationsConnectionsGitRepositoryLinks extends Resource (View source)

The "gitRepositoryLinks" collection of methods.

Typical usage is:

 $developerconnectService = new Google\Service\DeveloperConnect(...);
 $gitRepositoryLinks = $developerconnectService->projects_locations_connections_gitRepositoryLinks;

Methods

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

Creates a GitRepositoryLink. Upon linking a Git Repository, Developer Connect will configure the Git Repository to send webhook events to Developer Connect. Connections that use Firebase GitHub Application will have events forwarded to the Firebase service. All other Connections will have events forwarded to Cloud Build. (gitRepositoryLinks.create)

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

Deletes a single GitRepositoryLink. (gitRepositoryLinks.delete)

fetchGitRefs(string $gitRepositoryLink, array $optParams = [])

Fetch the list of branches or tags for a given repository.

fetchReadToken(string $gitRepositoryLink, FetchReadTokenRequest $postBody, array $optParams = [])

Fetches read token of a given gitRepositoryLink.

fetchReadWriteToken(string $gitRepositoryLink, FetchReadWriteTokenRequest $postBody, array $optParams = [])

Fetches read/write token of a given gitRepositoryLink.

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

Gets details of a single GitRepositoryLink. (gitRepositoryLinks.get)

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

Lists GitRepositoryLinks in a given project, location, and connection.

Details

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

Creates a GitRepositoryLink. Upon linking a Git Repository, Developer Connect will configure the Git Repository to send webhook events to Developer Connect. Connections that use Firebase GitHub Application will have events forwarded to the Firebase service. All other Connections will have events forwarded to Cloud Build. (gitRepositoryLinks.create)

Parameters

string $parent

Required. Value for parent.

GitRepositoryLink $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Deletes a single GitRepositoryLink. (gitRepositoryLinks.delete)

Parameters

string $name

Required. Name of the resource

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

FetchGitRefsResponse fetchGitRefs(string $gitRepositoryLink, array $optParams = [])

Fetch the list of branches or tags for a given repository.

(gitRepositoryLinks.fetchGitRefs)

Parameters

string $gitRepositoryLink

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

array $optParams

Optional parameters.

Return Value

FetchGitRefsResponse

Exceptions

Exception

FetchReadTokenResponse fetchReadToken(string $gitRepositoryLink, FetchReadTokenRequest $postBody, array $optParams = [])

Fetches read token of a given gitRepositoryLink.

(gitRepositoryLinks.fetchReadToken)

Parameters

string $gitRepositoryLink

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

FetchReadTokenRequest $postBody
array $optParams

Optional parameters.

Return Value

FetchReadTokenResponse

Exceptions

Exception

FetchReadWriteTokenResponse fetchReadWriteToken(string $gitRepositoryLink, FetchReadWriteTokenRequest $postBody, array $optParams = [])

Fetches read/write token of a given gitRepositoryLink.

(gitRepositoryLinks.fetchReadWriteToken)

Parameters

string $gitRepositoryLink

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

FetchReadWriteTokenRequest $postBody
array $optParams

Optional parameters.

Return Value

FetchReadWriteTokenResponse

Exceptions

Exception

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

Gets details of a single GitRepositoryLink. (gitRepositoryLinks.get)

Parameters

string $name

Required. Name of the resource

array $optParams

Optional parameters.

Return Value

GitRepositoryLink

Exceptions

Exception

Lists GitRepositoryLinks in a given project, location, and connection.

(gitRepositoryLinks.listProjectsLocationsConnectionsGitRepositoryLinks)

Parameters

string $parent

Required. Parent value for ListGitRepositoryLinksRequest

array $optParams

Optional parameters.

Return Value

ListGitRepositoryLinksResponse

Exceptions

Exception