Class ProjectsResource.LocationsResource.RepositoriesResource.AptArtifactsResource
The "aptArtifacts" collection of methods.
Inherited Members
Namespace: Google.Apis.ArtifactRegistry.v1
Assembly: Google.Apis.ArtifactRegistry.v1.dll
Syntax
public class ProjectsResource.LocationsResource.RepositoriesResource.AptArtifactsResource
Constructors
AptArtifactsResource(IClientService)
Constructs a new resource.
Declaration
public AptArtifactsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Import(ImportAptArtifactsRequest, string)
Imports Apt 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.AptArtifactsResource.ImportRequest Import(ImportAptArtifactsRequest body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| ImportAptArtifactsRequest | 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.AptArtifactsResource.ImportRequest |
Upload(UploadAptArtifactRequest, string)
Directly uploads an Apt 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.AptArtifactsResource.UploadRequest Upload(UploadAptArtifactRequest body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| UploadAptArtifactRequest | 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.AptArtifactsResource.UploadRequest |
Upload(UploadAptArtifactRequest, string, Stream, string)
Directly uploads an Apt 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.AptArtifactsResource.UploadMediaUpload Upload(UploadAptArtifactRequest body, string parent, Stream stream, string contentType)
Parameters
| Type | Name | Description |
|---|---|---|
| UploadAptArtifactRequest | 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.AptArtifactsResource.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