GeoFilter Class

Definition

Rules defining user's geo access within a CDN endpoint.

public class GeoFilter : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Cdn.Models.GeoFilter>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Cdn.Models.GeoFilter>
public class GeoFilter
type GeoFilter = class
    interface IJsonModel<GeoFilter>
    interface IPersistableModel<GeoFilter>
type GeoFilter = class
Public Class GeoFilter
Implements IJsonModel(Of GeoFilter), IPersistableModel(Of GeoFilter)
Public Class GeoFilter
Inheritance
GeoFilter
Implements

Constructors

GeoFilter(String, GeoFilterAction, IEnumerable<String>)

Initializes a new instance of GeoFilter.

Properties

Action

Action of the geo filter, i.e. allow or block access.

CountryCodes

Two letter country or region codes defining user country or region access in a geo filter, e.g. AU, MX, US.

RelativePath

Relative path applicable to geo filter. (e.g. '/mypictures', '/mypicture/kitty.jpg', and etc.).

Explicit Interface Implementations

IJsonModel<GeoFilter>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<GeoFilter>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<GeoFilter>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<GeoFilter>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<GeoFilter>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to