ProjectsRepos
class ProjectsRepos extends Resource (View source)
The "repos" collection of methods.
Typical usage is:
$sourcerepoService = new Google\Service\CloudSourceRepositories(...);
$repos = $sourcerepoService->projects_repos;
Methods
Deletes a repo. (repos.delete)
Gets the IAM policy policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. (repos.getIamPolicy)
Returns all repos belonging to a project. The sizes of the repos are not set by ListRepos. To get the size of a repo, use GetRepo.
Updates information about a repo. (repos.patch)
Sets the IAM policy on the specified resource. Replaces any existing policy.
Synchronize a connected repo. The response contains SyncRepoMetadata in the metadata field. (repos.sync)
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. (repos.testIamPermissions)
Details
Repo
create(string $parent, Repo $postBody, array $optParams = [])
Creates a repo in the given project with the given name. If the named
repository already exists, CreateRepo
returns ALREADY_EXISTS
.
(repos.create)
SourcerepoEmpty
delete(string $name, array $optParams = [])
Deletes a repo. (repos.delete)
Repo
get(string $name, array $optParams = [])
Returns information about a repo. (repos.get)
Policy
getIamPolicy(string $resource, array $optParams = [])
Gets the IAM policy policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. (repos.getIamPolicy)
ListReposResponse
listProjectsRepos(string $name, array $optParams = [])
Returns all repos belonging to a project. The sizes of the repos are not set by ListRepos. To get the size of a repo, use GetRepo.
(repos.listProjectsRepos)
Repo
patch(string $name, UpdateRepoRequest $postBody, array $optParams = [])
Updates information about a repo. (repos.patch)
Policy
setIamPolicy(string $resource, SetIamPolicyRequest $postBody, array $optParams = [])
Sets the IAM policy on the specified resource. Replaces any existing policy.
(repos.setIamPolicy)
Operation
sync(string $name, SyncRepoRequest $postBody, array $optParams = [])
Synchronize a connected repo. The response contains SyncRepoMetadata in the metadata field. (repos.sync)
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. (repos.testIamPermissions)