Class ProjectsResource.LocationsResource.RepositoriesResource.GoogetArtifactsResource
The "googetArtifacts" collection of methods.
Inherited Members
Namespace: Google.Apis.ArtifactRegistry.v1
Assembly: Google.Apis.ArtifactRegistry.v1.dll
Syntax
public class ProjectsResource.LocationsResource.RepositoriesResource.GoogetArtifactsResource
Constructors
GoogetArtifactsResource(IClientService)
Constructs a new resource.
Declaration
public GoogetArtifactsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Import(ImportGoogetArtifactsRequest, string)
Imports GooGet artifacts. The returned Operation will complete once the resources are imported. Package, Version, and File resources are created based on the imported artifacts. Imported artifacts that conflict with existing resources are ignored.
Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.GoogetArtifactsResource.ImportRequest Import(ImportGoogetArtifactsRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
ImportGoogetArtifactsRequest | body | The body of the request. |
string | parent | The name of the parent resource where the artifacts will be imported. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.RepositoriesResource.GoogetArtifactsResource.ImportRequest |
Upload(UploadGoogetArtifactRequest, string)
Directly uploads a GooGet artifact. The returned Operation will complete once the resources are uploaded. Package, Version, and File resources are created based on the imported artifact. Imported artifacts that conflict with existing resources are ignored.
Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.GoogetArtifactsResource.UploadRequest Upload(UploadGoogetArtifactRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
UploadGoogetArtifactRequest | body | The body of the request. |
string | parent | The name of the parent resource where the artifacts will be uploaded. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.RepositoriesResource.GoogetArtifactsResource.UploadRequest |
Upload(UploadGoogetArtifactRequest, string, Stream, string)
Directly uploads a GooGet artifact. The returned Operation will complete once the resources are uploaded. Package, Version, and File resources are created based on the imported artifact. Imported artifacts that conflict with existing resources are ignored.
Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.GoogetArtifactsResource.UploadMediaUpload Upload(UploadGoogetArtifactRequest body, string parent, Stream stream, string contentType)
Parameters
Type | Name | Description |
---|---|---|
UploadGoogetArtifactRequest | body | The body of the request. |
string | parent | The name of the parent resource where the artifacts 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.GoogetArtifactsResource.UploadMediaUpload |
Remarks
Considerations regarding stream
:
-
If
stream
is seekable, then the stream position will be reset to0
before reading commences. Ifstream
is not seekable, then it will be read from its current position -
Caller is responsible for maintaining the
stream
open until the upload is completed - Caller is responsible for closing the
stream