kappa_sdk.FieldDataTypesCatalog#

class kappa_sdk.FieldDataTypesCatalog(field_id, id, data_type_catalog, field_api, dto_converter)[source]#

Field Data Types catalog

Methods

FieldDataTypesCatalog.append(data_type)

Append object to the end of the list.

FieldDataTypesCatalog.clear()

Remove all items from list.

FieldDataTypesCatalog.copy()

Return a shallow copy of the list.

FieldDataTypesCatalog.count(value, /)

Return number of occurrences of value.

FieldDataTypesCatalog.extend(other_list)

Extend list by appending elements from the iterable.

FieldDataTypesCatalog.index(value[, start, stop])

Return first index of value.

FieldDataTypesCatalog.insert(index, data_type)

Insert object before index.

FieldDataTypesCatalog.pop([index])

Remove and return item at index (default last).

FieldDataTypesCatalog.remove(data_type)

Remove first occurrence of value.

FieldDataTypesCatalog.reverse()

Reverse IN PLACE.

FieldDataTypesCatalog.sort(*[, key, reverse])

Sort the list in ascending order and return None.

Parameters:
  • field_id (Optional[str])

  • id (Optional[str])

  • data_type_catalog (List[DataType])

  • field_api (FieldAPI)

  • dto_converter (FieldDataTypeCatalogDtoConverter)

__init__(field_id, id, data_type_catalog, field_api, dto_converter)[source]#
Parameters:
  • field_id (str | None)

  • id (str | None)

  • data_type_catalog (List[DataType])

  • field_api (FieldAPI)

  • dto_converter (FieldDataTypeCatalogDtoConverter)

Return type:

None

append(data_type)[source]#

Append object to the end of the list.

Parameters:

data_type (DataType)

Return type:

None

insert(index, data_type)[source]#

Insert object before index.

Parameters:
  • index (SupportsIndex)

  • data_type (DataType)

Return type:

None

extend(other_list)[source]#

Extend list by appending elements from the iterable.

Parameters:

other_list (List[DataType])

Return type:

None

remove(data_type)[source]#

Remove first occurrence of value.

Raises ValueError if the value is not present.

Parameters:

data_type (DataType)

Return type:

None