class ProjectsLocationsConnectionsRepositories extends Resource (View source)

The "repositories" collection of methods.

Typical usage is:

 $cloudbuildService = new Google\Service\CloudBuild(...);
 $repositories = $cloudbuildService->projects_locations_connections_repositories;

Methods

accessReadToken(string $repository, FetchReadTokenRequest $postBody, array $optParams = [])

Fetches read token of a given repository. (repositories.accessReadToken)

accessReadWriteToken(string $repository, FetchReadWriteTokenRequest $postBody, array $optParams = [])

Fetches read/write token of a given repository.

batchCreate(string $parent, BatchCreateRepositoriesRequest $postBody, array $optParams = [])

Creates multiple repositories inside a connection. (repositories.batchCreate)

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

Creates a Repository. (repositories.create)

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

Deletes a single repository. (repositories.delete)

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

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

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

Gets details of a single repository. (repositories.get)

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

Lists Repositories in a given connection.

Details

FetchReadTokenResponse accessReadToken(string $repository, FetchReadTokenRequest $postBody, array $optParams = [])

Fetches read token of a given repository. (repositories.accessReadToken)

Parameters

string $repository

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

FetchReadTokenRequest $postBody
array $optParams

Optional parameters.

Return Value

FetchReadTokenResponse

Exceptions

Exception

FetchReadWriteTokenResponse accessReadWriteToken(string $repository, FetchReadWriteTokenRequest $postBody, array $optParams = [])

Fetches read/write token of a given repository.

(repositories.accessReadWriteToken)

Parameters

string $repository

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

FetchReadWriteTokenRequest $postBody
array $optParams

Optional parameters.

Return Value

FetchReadWriteTokenResponse

Exceptions

Exception

Operation batchCreate(string $parent, BatchCreateRepositoriesRequest $postBody, array $optParams = [])

Creates multiple repositories inside a connection. (repositories.batchCreate)

Parameters

string $parent

Required. The connection to contain all the repositories being created. Format: projects/locations/connections The parent field in the CreateRepositoryRequest messages must either be empty or match this field.

BatchCreateRepositoriesRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Creates a Repository. (repositories.create)

Parameters

string $parent

Required. The connection to contain the repository. If the request is part of a BatchCreateRepositoriesRequest, this field should be empty or match the parent specified there.

Repository $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Deletes a single repository. (repositories.delete)

Parameters

string $name

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

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

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

(repositories.fetchGitRefs)

Parameters

string $repository

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

array $optParams

Optional parameters.

Return Value

FetchGitRefsResponse

Exceptions

Exception

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

Gets details of a single repository. (repositories.get)

Parameters

string $name

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

array $optParams

Optional parameters.

Return Value

Repository

Exceptions

Exception

ListRepositoriesResponse listProjectsLocationsConnectionsRepositories(string $parent, array $optParams = [])

Lists Repositories in a given connection.

(repositories.listProjectsLocationsConnectionsRepositories)

Parameters

string $parent

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

array $optParams

Optional parameters.

Return Value

ListRepositoriesResponse

Exceptions

Exception