code: def set_credentials(self, username, password=None, region=None,
              tenant_id=None, authenticate=False):
          
          self.username = username
          self.password = password
          self.tenant_id = tenant_id
          if region:
              self.region = region
          if authenticate:
              self.authenticate()
docs: Sets the username and password directly.