Show / Hide Table of Contents

Class GoModule

Go module to upload to Artifact Registry upon successful completion of all build steps. A module refers to all dependencies in a go.mod file.

Inheritance
object
GoModule
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.CloudBuild.v1.Data
Assembly: Google.Apis.CloudBuild.v1.dll
Syntax
public class GoModule : IDirectResponseSchema

Properties

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

ModulePath

Optional. The Go module's "module path". e.g. example.com/foo/v2

Declaration
[JsonProperty("modulePath")]
public virtual string ModulePath { get; set; }
Property Value
Type Description
string

ModuleVersion

Optional. The Go module's semantic version in the form vX.Y.Z. e.g. v0.1.1 Pre-release identifiers can also be added by appending a dash and dot separated ASCII alphanumeric characters and hyphens. e.g. v0.2.3-alpha.x.12m.5

Declaration
[JsonProperty("moduleVersion")]
public virtual string ModuleVersion { get; set; }
Property Value
Type Description
string

RepositoryLocation

Optional. Location of the Artifact Registry repository. i.e. us-east1 Defaults to the build’s location.

Declaration
[JsonProperty("repositoryLocation")]
public virtual string RepositoryLocation { get; set; }
Property Value
Type Description
string

RepositoryName

Optional. Artifact Registry repository name. Specified Go modules will be zipped and uploaded to Artifact Registry with this location as a prefix. e.g. my-go-repo

Declaration
[JsonProperty("repositoryName")]
public virtual string RepositoryName { get; set; }
Property Value
Type Description
string

RepositoryProjectId

Optional. Project ID of the Artifact Registry repository. Defaults to the build project.

Declaration
[JsonProperty("repositoryProjectId")]
public virtual string RepositoryProjectId { get; set; }
Property Value
Type Description
string

SourcePath

Optional. Source path of the go.mod file in the build's workspace. If not specified, this will default to the current directory. e.g. ~/code/go/mypackage

Declaration
[JsonProperty("sourcePath")]
public virtual string SourcePath { get; set; }
Property Value
Type Description
string

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX