class ProjectsLocationsRepositoriesGenericArtifacts extends Resource (View source)

The "genericArtifacts" collection of methods.

Typical usage is:

 $artifactregistryService = new Google\Service\ArtifactRegistry(...);
 $genericArtifacts = $artifactregistryService->projects_locations_repositories_genericArtifacts;

Methods

upload(string $parent, UploadGenericArtifactRequest $postBody, array $optParams = [])

Directly uploads a Generic artifact. The returned operation will complete once the resources are uploaded. Package, version, and file resources are created based on the uploaded artifact. Uploaded artifacts that conflict with existing resources will raise an ALREADY_EXISTS error.

Details

UploadGenericArtifactMediaResponse upload(string $parent, UploadGenericArtifactRequest $postBody, array $optParams = [])

Directly uploads a Generic artifact. The returned operation will complete once the resources are uploaded. Package, version, and file resources are created based on the uploaded artifact. Uploaded artifacts that conflict with existing resources will raise an ALREADY_EXISTS error.

(genericArtifacts.upload)

Parameters

string $parent

The resource name of the repository where the generic artifact will be uploaded.

UploadGenericArtifactRequest $postBody
array $optParams

Optional parameters.

Return Value

UploadGenericArtifactMediaResponse

Exceptions

Exception