code: def create_repository(self):
          
          repo = repository.Repository(
              self.repository_config['repository'],
              self.username,
              self.password,
              self.disable_progress_bar
          )
          repo.set_certificate_authority(self.cacert)
          repo.set_client_certificate(self.client_cert)
          return repo
docs: Create a new repository for uploading.