Show / Hide Table of Contents

Class UpdateRetentionRuleRequest

Inheritance
object
UpdateRetentionRuleRequest
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.ObjectstorageService.Requests
Assembly: OCI.DotNetSDK.Objectstorage.dll
Syntax
public class UpdateRetentionRuleRequest : IOciRequest
Examples

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

Properties

BucketName

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

The name of the bucket. Avoid entering confidential information. Example: my-new-bucket1

Remarks

Required

IfMatch

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

The entity tag (ETag) to match with the ETag of an existing resource. If the specified ETag matches the ETag of the existing resource, GET and HEAD requests will return the resource and PUT and POST requests will upload the resource.

NamespaceName

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

The Object Storage namespace used for the request.

Remarks

Required

OpcClientRequestId

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

The client request ID for tracing.

RetentionRuleId

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

The ID of the retention rule.

Remarks

Required

UpdateRetentionRuleDetails

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

Request object for updating the retention rule.

Remarks

Required

Implements

IOciRequest
In this article
Back to top