class ProjectsLocationsRepositoriesGoModules extends Resource (View source)

The "goModules" collection of methods.

Typical usage is:

 $artifactregistryService = new Google\Service\ArtifactRegistry(...);
 $goModules = $artifactregistryService->projects_locations_repositories_goModules;

Methods

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

Directly uploads a Go module. The returned Operation will complete once the Go module is uploaded. Package, Version, and File resources are created based on the uploaded Go module. (goModules.upload)

Details

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

Directly uploads a Go module. The returned Operation will complete once the Go module is uploaded. Package, Version, and File resources are created based on the uploaded Go module. (goModules.upload)

Parameters

string $parent

The resource name of the repository where the Go module will be uploaded.

UploadGoModuleRequest $postBody
array $optParams

Optional parameters.

Return Value

UploadGoModuleMediaResponse

Exceptions

Exception