class ProjectsLocationsRepositories extends Resource (View source)

The "repositories" collection of methods.

Typical usage is:

 $artifactregistryService = new Google\Service\ArtifactRegistry(...);
 $repositories = $artifactregistryService->projects_locations_repositories;

Methods

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

Creates a repository. The returned Operation will finish once the repository has been created. Its response will be the created Repository.

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

Deletes a repository and all of its contents. The returned Operation will finish once the repository has been deleted. It will not have any Operation metadata and will return a google.protobuf.Empty response.

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

Gets a repository. (repositories.get)

getIamPolicy(string $resource, array $optParams = [])

Gets the IAM policy for a given resource. (repositories.getIamPolicy)

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

Lists repositories. (repositories.listProjectsLocationsRepositories)

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

Updates a repository. (repositories.patch)

setIamPolicy(string $resource, SetIamPolicyRequest $postBody, array $optParams = [])

Updates the IAM policy for a given resource. (repositories.setIamPolicy)

testIamPermissions(string $resource, TestIamPermissionsRequest $postBody, array $optParams = [])

Tests if the caller has a list of permissions on a resource.

Details

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

Creates a repository. The returned Operation will finish once the repository has been created. Its response will be the created Repository.

(repositories.create)

Parameters

string $parent

Required. The name of the parent resource where the repository will be created.

Repository $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Deletes a repository and all of its contents. The returned Operation will finish once the repository has been deleted. It will not have any Operation metadata and will return a google.protobuf.Empty response.

(repositories.delete)

Parameters

string $name

Required. The name of the repository to delete.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Gets a repository. (repositories.get)

Parameters

string $name

Required. The name of the repository to retrieve.

array $optParams

Optional parameters.

Return Value

Repository

Exceptions

Exception

Policy getIamPolicy(string $resource, array $optParams = [])

Gets the IAM policy for a given resource. (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. (repositories.listProjectsLocationsRepositories)

Parameters

string $parent

Required. The name of the parent resource whose repositories will be listed.

array $optParams

Optional parameters.

Return Value

ListRepositoriesResponse

Exceptions

Exception

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

Updates a repository. (repositories.patch)

Parameters

string $name

The name of the repository, for example: projects/p1/locations/us-central1/repositories/repo1. For each location in a project, repository names must be unique.

Repository $postBody
array $optParams

Optional parameters.

Return Value

Repository

Exceptions

Exception

Policy setIamPolicy(string $resource, SetIamPolicyRequest $postBody, array $optParams = [])

Updates the IAM policy for a given resource. (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 = [])

Tests if the caller has a list of permissions on a resource.

(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