def METHOD_NAME(self, secret_info):
    managed_secret_info, index = self.secret_manager.get_matching_managed_secret_info(secret_info)
    secret_info.managed_storage_classes = 1
    if index == -1:
        MANAGED_SECRETS.append(secret_info)
        self._define_nodes_from_secret_info(secret_info)
    elif managed_secret_info.managed_storage_classes == 0:
        MANAGED_SECRETS[index] = secret_info
        self._define_nodes_from_secret_info(secret_info)
    else:
        secret_info.managed_storage_classes = managed_secret_info.managed_storage_classes + 1
        MANAGED_SECRETS[index] = secret_info