def _build_credentials(self, nexus_switches):
credentials = {}<EOL>for switch_ip, attrs in nexus_switches.items():<EOL><INDENT>credentials[switch_ip] = (<EOL>attrs[const.USERNAME], attrs[const.PASSWORD],<EOL>attrs[const.HTTPS_VERIFY], attrs[const.HTTPS_CERT],<EOL>None)<EOL>if not attrs[const.HTTPS_VERIFY]:<EOL><INDENT>LOG.warning("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>",<EOL>{'<STR_LIT>': switch_ip})<EOL><DEDENT><DEDENT>return credentials<EOL>
Build credential table for Rest API Client.

        :param nexus_switches: switch config
        :returns credentials: switch credentials list