def add(self, source_id=None, file_path=None, profile_reference="",
            timestamp_reception=None, training_metadata=[]):
        """
        Add a profile resume to a sourced id.

        Args:
            source_id:              <string>
                                    source id
            file_path:              <string>
                                    local path to resume file
            profile_reference:      <string> (default to "")
                                    reference to assign to the profile
            timestamp_reception:    <string>
                                    original date of the application of the profile

        Returns
            Response that contains code 201 if successful
            Other status codes otherwise.

        """
        data = {}
        data["source_id"] = _validate_source_id(source_id)
        data["profile_reference"] = _validate_profile_reference(profile_reference)
        data["timestamp_reception"] = _validate_timestamp(timestamp_reception, "timestamp_reception")
        data["training_metadata"] = _validate_training_metadata(training_metadata)
        files = _get_file_metadata(file_path, profile_reference)
        response = None
        with open(file_path, 'rb') as in_file:
            files = (files[0], in_file, files[2])
            response = self.client.post("profile", data=data, files={"file": files})
        return response.json()
def add ( self , source_id = None , file_path = None , profile_reference = "" , timestamp_reception = None , training_metadata = [ ] ) : data = { } data [ "source_id" ] = _validate_source_id ( source_id ) data [ "profile_reference" ] = _validate_profile_reference ( profile_reference ) data [ "timestamp_reception" ] = _validate_timestamp ( timestamp_reception , "timestamp_reception" ) data [ "training_metadata" ] = _validate_training_metadata ( training_metadata ) files = _get_file_metadata ( file_path , profile_reference ) response = None with open ( file_path , 'rb' ) as in_file : files = ( files [ 0 ] , in_file , files [ 2 ] ) response = self . client . post ( "profile" , data = data , files = { "file" : files } ) return response . json ( )
Add a profile resume to a sourced id.

        Args:
            source_id:              <string>
                                    source id
            file_path:              <string>
                                    local path to resume file
            profile_reference:      <string> (default to "")
                                    reference to assign to the profile
            timestamp_reception:    <string>
                                    original date of the application of the profile

        Returns
            Response that contains code 201 if successful
            Other status codes otherwise.