ConfigurationRule

class ConfigurationRule
property id

The id of the rule.

Type

str, read-only

property name

The name of the rule.

Type

str

Raises

ReadOnlyError -- If Database is in read only mode.

property expression

The expression of the rule.

Type

str

Raises

ReadOnlyError -- If Database is in read only mode.

property enabled

The enable state of the rule.

Type

bool

Raises

ReadOnlyError -- If Database is in read only mode.

list_targets()

List all the ConfigurationTarget.

Returns

The list of ConfigurationTarget in this rule.

Return type

list(ConfigurationTarget)

create_target(layer_id)

Create a new ConfigurationTarget in this rule.

Parameters

layer_id (str) -- Id of the layer targeted.

Returns

The newly created ConfigurationTarget.

Return type

ConfigurationTarget

Raises

ReadOnlyError -- If Database is in read only mode.

remove()

Delete this rule.

Raises

ReadOnlyError -- If Database is in read only mode.