Show / Hide Table of Contents

Class PutGenericArtifactContentByPathRequest

Inheritance
object
PutGenericArtifactContentByPathRequest
Implements
IOciRequest
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.GenericartifactscontentService.Requests
Assembly: OCI.DotNetSDK.Genericartifactscontent.dll
Syntax
public class PutGenericArtifactContentByPathRequest : IOciRequest
Examples

Click here to see an example of how to use PutGenericArtifactContentByPath request.

Properties

ArtifactPath

Declaration
[Required(ErrorMessage = "ArtifactPath is required.")]
[HttpConverter(TargetEnum.Path, "artifactPath")]
public string ArtifactPath { get; set; }
Property Value
Type Description
string

A user-defined path to describe the location of an artifact. You can use slashes to organize the repository, but slashes do not create a directory structure. An artifact path does not include an artifact version.
Example: project01/my-web-app/artifact-abc

Remarks

Required

GenericArtifactContentBody

Declaration
[Required(ErrorMessage = "GenericArtifactContentBody is required.")]
[HttpConverter(TargetEnum.Body)]
public Stream GenericArtifactContentBody { get; set; }
Property Value
Type Description
Stream

Uploads an artifact. Provide artifact path, version and content. Avoid entering confidential information when you define the path and version.

Remarks

Required

IfMatch

Declaration
[HttpConverter(TargetEnum.Header, "if-match")]
public string IfMatch { get; set; }
Property Value
Type Description
string

For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.

OpcRequestId

Declaration
[HttpConverter(TargetEnum.Header, "opc-request-id")]
public string OpcRequestId { get; set; }
Property Value
Type Description
string

Unique Oracle-assigned request ID
Example: bxxxxxxx-fxxx-4xxx-9xxx-bxxxxxxxxxxxIf you contact Oracle about a request, provide this request ID.

RepositoryId

Declaration
[Required(ErrorMessage = "RepositoryId is required.")]
[HttpConverter(TargetEnum.Path, "repositoryId")]
public string RepositoryId { get; set; }
Property Value
Type Description
string

The OCID of the repository.
Example: ocid1.repository.oc1..exampleuniqueID

Remarks

Required

Version

Declaration
[Required(ErrorMessage = "Version is required.")]
[HttpConverter(TargetEnum.Path, "version")]
public string Version { get; set; }
Property Value
Type Description
string

A user-defined string to describe the artifact version.
Example: 1.1.2 or 1.2-beta-2

Remarks

Required

Implements

IOciRequest
In this article
Back to top