Class ProjectsResource.LocationsResource.RepositoriesResource.GoModulesResource
The "goModules" collection of methods.
Inherited Members
Namespace: Google.Apis.ArtifactRegistry.v1
Assembly: Google.Apis.ArtifactRegistry.v1.dll
Syntax
public class ProjectsResource.LocationsResource.RepositoriesResource.GoModulesResource
Constructors
GoModulesResource(IClientService)
Constructs a new resource.
Declaration
public GoModulesResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Upload(UploadGoModuleRequest, string)
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.
Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.GoModulesResource.UploadRequest Upload(UploadGoModuleRequest body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| UploadGoModuleRequest | body | The body of the request. |
| string | parent | The resource name of the repository where the Go module will be uploaded. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.RepositoriesResource.GoModulesResource.UploadRequest |
Upload(UploadGoModuleRequest, string, Stream, string)
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.
Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.GoModulesResource.UploadMediaUpload Upload(UploadGoModuleRequest body, string parent, Stream stream, string contentType)
Parameters
| Type | Name | Description |
|---|---|---|
| UploadGoModuleRequest | body | The body of the request. |
| string | parent | The resource name of the repository where the Go module will be uploaded. |
| Stream | stream | The stream to upload. See remarks for further information. |
| string | contentType | The content type of the stream to upload. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.RepositoriesResource.GoModulesResource.UploadMediaUpload |
Remarks
Considerations regarding stream:
-
If
streamis seekable, then the stream position will be reset to0before reading commences. Ifstreamis not seekable, then it will be read from its current position -
Caller is responsible for maintaining the
streamopen until the upload is completed - Caller is responsible for closing the
stream