Sdílet prostřednictvím


GeoFilter Class

Definition

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

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240201.GeoFilterTypeConverter))]
public class GeoFilter : Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240201.IGeoFilter
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240201.GeoFilterTypeConverter))>]
type GeoFilter = class
    interface IGeoFilter
    interface IJsonSerializable
Public Class GeoFilter
Implements IGeoFilter
Inheritance
GeoFilter
Attributes
Implements

Constructors

GeoFilter()

Creates an new GeoFilter instance.

Properties

Action

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

CountryCode

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.)

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of GeoFilter.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of GeoFilter.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240201.IGeoFilter.

FromJsonString(String)

Creates a new instance of GeoFilter, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of GeoFilter into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to