Class ProjectsResource.LocationsResource.RepositoriesResource.GenericArtifactsResource
The "genericArtifacts" collection of methods.
Inherited Members
Namespace: Google.Apis.ArtifactRegistry.v1
Assembly: Google.Apis.ArtifactRegistry.v1.dll
Syntax
public class ProjectsResource.LocationsResource.RepositoriesResource.GenericArtifactsResource
Constructors
GenericArtifactsResource(IClientService)
Constructs a new resource.
Declaration
public GenericArtifactsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Upload(UploadGenericArtifactRequest, string)
Directly uploads a Generic artifact. The returned operation will complete once the resources are
uploaded. Package, version, and file resources are created based on the uploaded artifact.
Uploaded artifacts that conflict with existing resources will raise an ALREADY_EXISTS
error.
Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.GenericArtifactsResource.UploadRequest Upload(UploadGenericArtifactRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
UploadGenericArtifactRequest | body | The body of the request. |
string | parent | The resource name of the repository where the generic artifact will be uploaded. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.RepositoriesResource.GenericArtifactsResource.UploadRequest |
Upload(UploadGenericArtifactRequest, string, Stream, string)
Directly uploads a Generic artifact. The returned operation will complete once the resources are
uploaded. Package, version, and file resources are created based on the uploaded artifact.
Uploaded artifacts that conflict with existing resources will raise an ALREADY_EXISTS
error.
Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.GenericArtifactsResource.UploadMediaUpload Upload(UploadGenericArtifactRequest body, string parent, Stream stream, string contentType)
Parameters
Type | Name | Description |
---|---|---|
UploadGenericArtifactRequest | body | The body of the request. |
string | parent | The resource name of the repository where the generic artifact 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.GenericArtifactsResource.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