BasegnodeCtnCreate#
Python pydantic class corresponding to json type `basegnode.ctn.create`
.
- class gnf.types.BasegnodeCtnCreate(*, FromGNodeAlias, FromGNodeInstanceId, CtnGNodeAlias, MicroLat, MicroLon, ChildAliasList, GNodeRegistryAddr, TypeName='basegnode.ctn.create', Version='000')#
- Parameters:
FromGNodeAlias (str) –
FromGNodeInstanceId (str) –
CtnGNodeAlias (str) –
MicroLat (int) –
MicroLon (int) –
ChildAliasList (List[str]) –
GNodeRegistryAddr (str) –
TypeName (Literal['basegnode.ctn.create']) –
Version (str) –
- FromGNodeAlias:
Description:
Format: LeftRightDot
- FromGNodeInstanceId:
Description:
Format: UuidCanonicalTextual
- CtnGNodeAlias:
Description:
Format: LeftRightDot
- MicroLat:
Description:
- MicroLon:
Description:
- ChildAliasList:
Description:
Format: LeftRightDot
- GNodeRegistryAddr:
Description:
Format: AlgoAddressStringFormat
- class gnf.types.basegnode_ctn_create.check_is_uuid_canonical_textual(v)#
UuidCanonicalTextual format: A string of hex words separated by hyphens of length 8-4-4-4-12.
- Raises:
ValueError – if not UuidCanonicalTextual format
- Parameters:
v (str) –
- class gnf.types.basegnode_ctn_create.check_is_left_right_dot(v)#
LeftRightDot format: Lowercase alphanumeric words separated by periods, most significant word (on the left) starting with an alphabet character.
- Raises:
ValueError – if not LeftRightDot format
- Parameters:
v (str) –
- class gnf.types.basegnode_ctn_create.check_is_algo_address_string_format(v)#
AlgoAddressStringFormat format: The public key of a private/public Ed25519 key pair, transformed into an Algorand address, by adding a 4-byte checksum to the end of the public key and then encoding in base32.
- Raises:
ValueError – if not AlgoAddressStringFormat format
- Parameters:
v (str) –
- class gnf.types.BasegnodeCtnCreate_Maker(from_g_node_alias, from_g_node_instance_id, ctn_g_node_alias, micro_lat, micro_lon, child_alias_list, g_node_registry_addr)#
- Parameters:
from_g_node_alias (str) –
from_g_node_instance_id (str) –
ctn_g_node_alias (str) –
micro_lat (int) –
micro_lon (int) –
child_alias_list (List[str]) –
g_node_registry_addr (str) –
- classmethod tuple_to_type(tuple)#
Given a Python class object, returns the serialized JSON type object
- Parameters:
tuple (BasegnodeCtnCreate) –
- Return type:
str
- classmethod type_to_tuple(t)#
Given a serialized JSON type object, returns the Python class object
- Parameters:
t (str) –
- Return type: