Show / Hide Table of Contents

Class ObjectNameFilter

A filter that compares object names to a set of prefixes or patterns to determine if a rule applies to a given object. The filter can contain include glob patterns, exclude glob patterns and inclusion prefixes. The inclusion prefixes property is kept for backward compatibility. It is recommended to use inclusion patterns instead of prefixes. Exclusions take precedence over inclusions.

Inheritance
object
ObjectNameFilter
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.ObjectstorageService.Models
Assembly: OCI.DotNetSDK.Objectstorage.dll
Syntax
public class ObjectNameFilter

Properties

ExclusionPatterns

Declaration
[JsonProperty(PropertyName = "exclusionPatterns")]
public List<string> ExclusionPatterns { get; set; }
Property Value
Type Description
List<string>

An array of glob patterns to match the object names to exclude. An empty array is ignored. Exclusion patterns take precedence over inclusion patterns. A Glob pattern is a sequence of characters to match text. Any character that appears in the pattern, other than the special pattern characters described below, matches itself. Glob patterns must be between 1 and 1024 characters.
The special pattern characters have the following meanings:
\ Escapes the following character * Matches any string of characters. ? Matches any single character . [...] Matches a group of characters. A group of characters can be: A set of characters, for Example: [Zafg9@]. This matches any character in the brackets. A range of characters, for

InclusionPatterns

Declaration
[JsonProperty(PropertyName = "inclusionPatterns")]
public List<string> InclusionPatterns { get; set; }
Property Value
Type Description
List<string>

An array of glob patterns to match the object names to include. An empty array includes all objects in the bucket. Exclusion patterns take precedence over inclusion patterns. A Glob pattern is a sequence of characters to match text. Any character that appears in the pattern, other than the special pattern characters described below, matches itself. Glob patterns must be between 1 and 1024 characters.
The special pattern characters have the following meanings:
\ Escapes the following character * Matches any string of characters. ? Matches any single character . [...] Matches a group of characters. A group of characters can be: A set of characters, for Example: [Zafg9@]. This matches any character in the brackets. A range of characters, for

InclusionPrefixes

Declaration
[JsonProperty(PropertyName = "inclusionPrefixes")]
public List<string> InclusionPrefixes { get; set; }
Property Value
Type Description
List<string>

An array of object name prefixes that the rule will apply to. An empty array means to include all objects.

In this article
Back to top