ResumeTime#

Python pydantic class corresponding to json type `resume.time`.

class gnf.types.ResumeTime(*, FromGNodeAlias, FromGNodeInstanceId, ToGNodeAlias, TypeName='resume.time', Version='000')#
Parameters:
  • FromGNodeAlias (str) –

  • FromGNodeInstanceId (str) –

  • ToGNodeAlias (str) –

  • TypeName (Literal['resume.time']) –

  • Version (str) –

FromGNodeAlias:
  • Description:

  • Format: LeftRightDot

FromGNodeInstanceId:
  • Description:

  • Format: UuidCanonicalTextual

ToGNodeAlias:
  • Description:

  • Format: LeftRightDot

class gnf.types.resume_time.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.resume_time.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.ResumeTime_Maker(from_g_node_alias, from_g_node_instance_id, to_g_node_alias)#
Parameters:
  • from_g_node_alias (str) –

  • from_g_node_instance_id (str) –

  • to_g_node_alias (str) –

classmethod tuple_to_type(tuple)#

Given a Python class object, returns the serialized JSON type object

Parameters:

tuple (ResumeTime) –

Return type:

str

classmethod type_to_tuple(t)#

Given a serialized JSON type object, returns the Python class object

Parameters:

t (str) –

Return type:

ResumeTime