Method: projects.locations.repositories.goModules.upload

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.

HTTP request


The URLs use gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

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

Authorization requires the following IAM permission on the specified resource parent:

  • artifactregistry.gomodules.create

Request body

The request body must be empty.

Response body

The response to upload a Go module.

If successful, the response body contains data with the following structure:

JSON representation
{
  "operation": {
    object (Operation)
  }
}
Fields
operation

object (Operation)

Operation to be returned to the user.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.