class ProjectsLocationsRepositoriesFiles extends Resource (View source)

The "files" collection of methods.

Typical usage is:

 $artifactregistryService = new Google\Service\ArtifactRegistry(...);
 $files = $artifactregistryService->projects_locations_repositories_files;

Methods

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

Deletes a file and all of its content. It is only allowed on generic repositories. The returned operation will complete once the file has been deleted. (files.delete)

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

Download a file. (files.download)

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

Gets a file. (files.get)

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

Lists files. (files.listProjectsLocationsRepositoriesFiles)

Details

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

Deletes a file and all of its content. It is only allowed on generic repositories. The returned operation will complete once the file has been deleted. (files.delete)

Parameters

string $name

Required. The name of the file to delete.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

DownloadFileResponse download(string $name, array $optParams = [])

Download a file. (files.download)

Parameters

string $name

Required. The name of the file to download.

array $optParams

Optional parameters.

Return Value

DownloadFileResponse

Exceptions

Exception

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

Gets a file. (files.get)

Parameters

string $name

Required. The name of the file to retrieve.

array $optParams

Optional parameters.

Return Value

GoogleDevtoolsArtifactregistryV1File

Exceptions

Exception

ListFilesResponse listProjectsLocationsRepositoriesFiles(string $parent, array $optParams = [])

Lists files. (files.listProjectsLocationsRepositoriesFiles)

Parameters

string $parent

Required. The name of the repository whose files will be listed. For example: "projects/p1/locations/us-central1/repositories/repo1

array $optParams

Optional parameters.

Return Value

ListFilesResponse

Exceptions

Exception