ProjectsLocationsRepositories
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
Applies a Git commit to a Repository. The Repository must not have a value
for git_remote_settings.url
. (repositories.commit)
Computes a Repository's Git access token status.
Creates a new Repository in a given project and location.
Deletes a single Repository. (repositories.delete)
Fetches a Repository's history of commits. The Repository must not have a
value for git_remote_settings.url
. (repositories.fetchHistory)
Fetches a Repository's remote branches. (repositories.fetchRemoteBranches)
Fetches a single Repository. (repositories.get)
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)
Lists Repositories in a given project and location.
Updates a single Repository. (repositories.patch)
Returns the contents of a given Repository directory. The Repository must not
have a value for git_remote_settings.url
.
Returns the contents of a file (inside a Repository). The Repository must not
have a value for git_remote_settings.url
. (repositories.readFile)
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)
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)
ComputeRepositoryAccessTokenStatusResponse
computeAccessTokenStatus(string $name, array $optParams = [])
Computes a Repository's Git access token status.
(repositories.computeAccessTokenStatus)
Repository
create(string $parent, Repository $postBody, array $optParams = [])
Creates a new Repository in a given project and location.
(repositories.create)
DataformEmpty
delete(string $name, array $optParams = [])
Deletes a single Repository. (repositories.delete)
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)
FetchRemoteBranchesResponse
fetchRemoteBranches(string $name, array $optParams = [])
Fetches a Repository's remote branches. (repositories.fetchRemoteBranches)
Repository
get(string $name, array $optParams = [])
Fetches a single Repository. (repositories.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. (repositories.getIamPolicy)
ListRepositoriesResponse
listProjectsLocationsRepositories(string $parent, array $optParams = [])
Lists Repositories in a given project and location.
(repositories.listProjectsLocationsRepositories)
Repository
patch(string $name, Repository $postBody, array $optParams = [])
Updates a single Repository. (repositories.patch)
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)
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)
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)
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)