gi-nm-1.0.1: NM bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.NM.Objects.SettingOvsExternalIDs

Description

OVS External IDs Settings

Synopsis

Exported types

class (GObject o, IsDescendantOf SettingOvsExternalIDs o) => IsSettingOvsExternalIDs o Source #

Type class for types which can be safely cast to SettingOvsExternalIDs, for instance with toSettingOvsExternalIDs.

Instances

Instances details
(GObject o, IsDescendantOf SettingOvsExternalIDs o) => IsSettingOvsExternalIDs o Source # 
Instance details

Defined in GI.NM.Objects.SettingOvsExternalIDs

toSettingOvsExternalIDs :: (MonadIO m, IsSettingOvsExternalIDs o) => o -> m SettingOvsExternalIDs Source #

Cast to SettingOvsExternalIDs, for types for which this is known to be safe. For general casts, use castTo.

Methods

checkKey

settingOvsExternalIDsCheckKey Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Maybe Text

key: the key to check

-> m ()

(Can throw GError)

Checks whether key is a valid key for OVS' external-ids. This means, the key cannot be Nothing, not too large and valid ASCII. Also, only digits and numbers are allowed with a few special characters. They key must also not start with "NM.".

Since: 1.30

checkVal

settingOvsExternalIDsCheckVal Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Maybe Text

val: the value to check

-> m ()

(Can throw GError)

Checks whether val is a valid user data value. This means, value is not Nothing, not too large and valid UTF-8.

Since: 1.30

getData

settingOvsExternalIDsGetData Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingOvsExternalIDs a) 
=> a

setting: the SettingOvsExternalIDs instance

-> Text

key: the external-id to lookup

-> m Text

Returns: the value associated with key or Nothing if no such value exists.

No description available in the introspection data.

Since: 1.30

getDataKeys

settingOvsExternalIDsGetDataKeys Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingOvsExternalIDs a) 
=> a

setting: the SettingOvsExternalIDs

-> m [Text]

Returns: a Nothing-terminated array containing each key from the table.

No description available in the introspection data.

Since: 1.30

new

settingOvsExternalIDsNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m SettingOvsExternalIDs

Returns: the new empty SettingOvsExternalIDs object

Creates a new SettingOvsExternalIDs object with default values.

Since: 1.30

setData

settingOvsExternalIDsSetData Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingOvsExternalIDs a) 
=> a

setting: the SettingOvsExternalIDs instance

-> Text

key: the key to set

-> Maybe Text

val: the value to set or Nothing to clear a key.

-> m () 

No description available in the introspection data.

Since: 1.30

Properties

data

A dictionary of key/value pairs with external-ids for OVS.

Since: 1.30

clearSettingOvsExternalIDsData :: (MonadIO m, IsSettingOvsExternalIDs o) => o -> m () Source #

Set the value of the “data” property to Nothing. When overloading is enabled, this is equivalent to

clear #data

constructSettingOvsExternalIDsData :: (IsSettingOvsExternalIDs o, MonadIO m) => Map Text Text -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “data” property. This is rarely needed directly, but it is used by new.

getSettingOvsExternalIDsData :: (MonadIO m, IsSettingOvsExternalIDs o) => o -> m (Maybe (Map Text Text)) Source #

Get the value of the “data” property. When overloading is enabled, this is equivalent to

get settingOvsExternalIDs #data

setSettingOvsExternalIDsData :: (MonadIO m, IsSettingOvsExternalIDs o) => o -> Map Text Text -> m () Source #

Set the value of the “data” property. When overloading is enabled, this is equivalent to

set settingOvsExternalIDs [ #data := value ]