Пример #1
0
 def to_structure(self):
     return {
         "company_id":
         to_structure_UnsignedIntegerType_32(self.company_id),
         "short_url":
         to_structure_Text(self.short_url),
         "company_server_ip":
         to_structure_RecordType_protocol_IPAddress(self.company_server_ip),
         "is_group":
         to_structure_Bool(self.is_group),
         "file_server_info":
         to_structure_VectorType_RecordType_protocol_FileServer(
             self.file_server_info)
     }
Пример #2
0
 def to_structure(self):
     return {
         "company_id":
         to_structure_UnsignedIntegerType_32(self.company_id),
         "short_url":
         to_structure_Text(self.short_url),
         "db_username":
         to_structure_Text(self.db_username),
         "db_password":
         to_structure_Text(self.db_password),
         "db_name":
         to_structure_Text(self.db_name),
         "db_ip":
         to_structure_RecordType_protocol_IPAddress(self.db_ip),
         "company_server_ip":
         to_structure_RecordType_protocol_IPAddress(self.company_server_ip),
         "is_group":
         to_structure_Bool(self.is_group)
     }