Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.RepositoriesResource.YumArtifactsResource

The "yumArtifacts" collection of methods.

Inheritance
object
ProjectsResource.LocationsResource.RepositoriesResource.YumArtifactsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.ArtifactRegistry.v1
Assembly: Google.Apis.ArtifactRegistry.v1.dll
Syntax
public class ProjectsResource.LocationsResource.RepositoriesResource.YumArtifactsResource

Constructors

YumArtifactsResource(IClientService)

Constructs a new resource.

Declaration
public YumArtifactsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Import(ImportYumArtifactsRequest, string)

Imports Yum (RPM) 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.YumArtifactsResource.ImportRequest Import(ImportYumArtifactsRequest body, string parent)
Parameters
Type Name Description
ImportYumArtifactsRequest 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.YumArtifactsResource.ImportRequest

Upload(UploadYumArtifactRequest, string)

Directly uploads a Yum 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.YumArtifactsResource.UploadRequest Upload(UploadYumArtifactRequest body, string parent)
Parameters
Type Name Description
UploadYumArtifactRequest 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.YumArtifactsResource.UploadRequest

Upload(UploadYumArtifactRequest, string, Stream, string)

Directly uploads a Yum 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.YumArtifactsResource.UploadMediaUpload Upload(UploadYumArtifactRequest body, string parent, Stream stream, string contentType)
Parameters
Type Name Description
UploadYumArtifactRequest 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.YumArtifactsResource.UploadMediaUpload
Remarks

Considerations regarding stream:

  • If stream is seekable, then the stream position will be reset to 0 before reading commences. If stream 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
In this article
Back to top Generated by DocFX