class ProjectsLocationsRepositories extends Resource (View source)

The "repositories" collection of methods.

Typical usage is:

 $dataformService = new Google\Service\Dataform(...);
 $repositories = $dataformService->projects_locations_repositories;

Methods

commit(string $name, CommitRepositoryChangesRequest $postBody, array $optParams = [])

Applies a Git commit to a Repository. The Repository must not have a value for git_remote_settings.url. (repositories.commit)

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

Computes a Repository's Git access token status.

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

Creates a new Repository in a given project and location.

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

Deletes a single Repository. (repositories.delete)

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

Fetches a Repository's history of commits. The Repository must not have a value for git_remote_settings.url. (repositories.fetchHistory)

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

Fetches a Repository's remote branches. (repositories.fetchRemoteBranches)

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

Fetches a single Repository. (repositories.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. (repositories.getIamPolicy)

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

Lists Repositories in a given project and location.

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

Updates a single Repository. (repositories.patch)

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

Returns the contents of a given Repository directory. The Repository must not have a value for git_remote_settings.url.

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

Returns the contents of a file (inside a Repository). The Repository must not have a value for git_remote_settings.url. (repositories.readFile)

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. (repositories.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

CommitRepositoryChangesResponse commit(string $name, CommitRepositoryChangesRequest $postBody, array $optParams = [])

Applies a Git commit to a Repository. The Repository must not have a value for git_remote_settings.url. (repositories.commit)

Parameters

string $name

Required. The repository's name.

CommitRepositoryChangesRequest $postBody
array $optParams

Optional parameters.

Return Value

CommitRepositoryChangesResponse

Exceptions

Exception

ComputeRepositoryAccessTokenStatusResponse computeAccessTokenStatus(string $name, array $optParams = [])

Computes a Repository's Git access token status.

(repositories.computeAccessTokenStatus)

Parameters

string $name

Required. The repository's name.

array $optParams

Optional parameters.

Return Value

ComputeRepositoryAccessTokenStatusResponse

Exceptions

Exception

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

Creates a new Repository in a given project and location.

(repositories.create)

Parameters

string $parent

Required. The location in which to create the repository. Must be in the format projects/locations.

Repository $postBody
array $optParams

Optional parameters.

Return Value

Repository

Exceptions

Exception

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

Deletes a single Repository. (repositories.delete)

Parameters

string $name

Required. The repository's name.

array $optParams

Optional parameters.

Return Value

DataformEmpty

Exceptions

Exception

FetchRepositoryHistoryResponse fetchHistory(string $name, array $optParams = [])

Fetches a Repository's history of commits. The Repository must not have a value for git_remote_settings.url. (repositories.fetchHistory)

Parameters

string $name

Required. The repository's name.

array $optParams

Optional parameters.

Return Value

FetchRepositoryHistoryResponse

Exceptions

Exception

FetchRemoteBranchesResponse fetchRemoteBranches(string $name, array $optParams = [])

Fetches a Repository's remote branches. (repositories.fetchRemoteBranches)

Parameters

string $name

Required. The repository's name.

array $optParams

Optional parameters.

Return Value

FetchRemoteBranchesResponse

Exceptions

Exception

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

Fetches a single Repository. (repositories.get)

Parameters

string $name

Required. The repository's name.

array $optParams

Optional parameters.

Return Value

Repository

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. (repositories.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

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

Lists Repositories in a given project and location.

(repositories.listProjectsLocationsRepositories)

Parameters

string $parent

Required. The location in which to list repositories. Must be in the format projects/locations.

array $optParams

Optional parameters.

Return Value

ListRepositoriesResponse

Exceptions

Exception

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

Updates a single Repository. (repositories.patch)

Parameters

string $name

Identifier. The repository's name.

Repository $postBody
array $optParams

Optional parameters.

Return Value

Repository

Exceptions

Exception

QueryRepositoryDirectoryContentsResponse queryDirectoryContents(string $name, array $optParams = [])

Returns the contents of a given Repository directory. The Repository must not have a value for git_remote_settings.url.

(repositories.queryDirectoryContents)

Parameters

string $name

Required. The repository's name.

array $optParams

Optional parameters.

Return Value

QueryRepositoryDirectoryContentsResponse

Exceptions

Exception

ReadRepositoryFileResponse readFile(string $name, array $optParams = [])

Returns the contents of a file (inside a Repository). The Repository must not have a value for git_remote_settings.url. (repositories.readFile)

Parameters

string $name

Required. The repository's name.

array $optParams

Optional parameters.

Return Value

ReadRepositoryFileResponse

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. (repositories.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. (repositories.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