예제 #1
0
 def __init__(self, **kwargs):
     self.id = validate.required_string('id', kwargs)
     self.name = validate.required_string('name', kwargs)
     self.description = validate.optional_string('description', kwargs)
     self.website = validate.optional_string('website', kwargs)
     self.email = validate.optional_string('email', kwargs)
     self.locations = kwargs.get('locations', [])
예제 #2
0
 def __init__(self, **kwargs):
     self.address_lines = validate.optional_string('address_lines', kwargs)
     self.city = validate.required_string('city', kwargs)
     self.state_province = validate.optional_string('state_province',
                                                    kwargs)
     self.postal_code = validate.optional_string('postal_code', kwargs)
     self.country = validate.required_string('country', kwargs)
     self.location_id = validate.required_string('location_id', kwargs)
     self.address_type_id = validate.required_string(
         'address_type_id', kwargs)
예제 #3
0
 def __init__(self, **kwargs):
     self.id = validate.required_string('id', kwargs)
     self.name = validate.required_string('name', kwargs)
     self.organization_id = validate.required_string(
         'organization_id', kwargs)
     self.site_id = validate.required_string('site_id', kwargs)
     self.description = validate.optional_string('description', kwargs)
     self.taxonomy_terms = kwargs.get('taxonomy_terms', [])
예제 #4
0
 def __init__(self, **kwargs):
     self.id = validate.required_string('id', kwargs)
     self.name = validate.required_string('name', kwargs)
     self.organization_id = validate.required_string(
         'organization_id', kwargs)
     self.description = validate.optional_string('description', kwargs)
     self.spatial_location = validate.optional_object(
         SpatialLocation, 'spatial_location', kwargs)
     self.services = kwargs.get('services', [])
     self.physical_address = validate.optional_object(
         Address, 'physical_address', kwargs)
     self.postal_address = validate.optional_object(Address,
                                                    'postal_address',
                                                    kwargs)
예제 #5
0
 def __init__(self, **kwargs):
     self.id = validate.required_string('id', kwargs)
     self.name = validate.required_string('name', kwargs)
     self.organization_id = validate.required_string(
         'organization_id', kwargs)
     self.description = validate.optional_string('description', kwargs)
     self.spatial_location = validate.optional_object(
         SpatialLocation, 'spatial_location', kwargs)
     self.services = validate.optional_list_of_objects(
         Service, 'services', kwargs)
     self.physical_address = validate.optional_object(
         Address, 'physical_address', kwargs)
     self.postal_address = validate.optional_object(Address,
                                                    'postal_address',
                                                    kwargs)
     self.phone_numbers = validate.optional_list_of_objects(
         PhoneAtLocation, 'phone_numbers', kwargs)